From 583656a3537bc43a28c58111520143df04bf27f2 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Tue, 21 Apr 2020 19:19:05 -0700 Subject: feat: added skeleton of biological library --- include/libbio.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 include/libbio.h (limited to 'include/libbio.h') diff --git a/include/libbio.h b/include/libbio.h new file mode 100644 index 0000000..d8430b3 --- /dev/null +++ b/include/libbio.h @@ -0,0 +1,29 @@ +#pragma once + +// ----------------------------------------------------------------------- +// Phylogenetics + +typedef struct bio·Node +{ + string name; + string comment; + double dist; + double support; + int nchild; + int ndescendent; + struct bio·Node *parent; + struct bio·Node *child[2]; + struct bio·Node *sibling; +} bio·Node; + +error phylo·addchild(bio·Node* parent, bio·Node* child); + +typedef struct bio·Tree +{ + bio·Node *root; +} bio·Tree; + +bio·Tree bio·readnewick(Stream *file, mem·Allocator heap); + +// ----------------------------------------------------------------------- +// Sequences -- cgit v1.2.1