diff options
Diffstat (limited to 'include/libbio.h')
-rw-r--r-- | include/libbio.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 |