diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 19:19:05 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-04-21 19:19:05 -0700 |
commit | 583656a3537bc43a28c58111520143df04bf27f2 (patch) | |
tree | 8e75d98cea3d6af1d1b85d5c5b5e22ac5e0c4cde /include/libbio.h | |
parent | e596ebd0c129913b7135210b23a50336b6f8556f (diff) |
feat: added skeleton of biological library
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 |