aboutsummaryrefslogtreecommitdiff
path: root/include/libbio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbio.h')
-rw-r--r--include/libbio.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libbio.h b/include/libbio.h
index 261c732..9ce96b5 100644
--- a/include/libbio.h
+++ b/include/libbio.h
@@ -9,8 +9,8 @@ typedef struct bio·Node
string comment;
double dist;
double support;
+ int nnode;
int nchild;
- int ndescendent;
struct bio·Node *parent;
struct bio·Node *sibling;
struct bio·Node *child;
@@ -25,10 +25,13 @@ typedef struct bio·Tree
// clade functions
error phylo·addchild(bio·Node* parent, bio·Node* child);
+error phylo·rmchild(bio·Node* parent, bio·Node* child);
error phylo·countnodes(bio·Node *node, int *n);
error phylo·countleafs(bio·Node *node, int *n);
+error phylo·ladderize(bio·Node *root);
+
/* newick i/o */
error bio·readnewick(io·Peeker stream, void*, mem·Allocator heap, void*, bio·Tree* tree);
error bio·writenewick(bio·Tree tree, io·Putter out, void*);