aboutsummaryrefslogtreecommitdiff
path: root/include/libbio.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2021-09-08 15:51:40 -0700
committerNicholas Noll <nbnoll@eml.cc>2021-09-08 15:51:53 -0700
commitc0a7b53baf2a6e7bf9bc1fbec7ac05e43ac59154 (patch)
tree385b83f4d505da960820932f7357eb46b31abac3 /include/libbio.h
parent8c0475f97675245d1bcbb112dc79c9f490fad361 (diff)
checkin
Diffstat (limited to 'include/libbio.h')
-rw-r--r--include/libbio.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/libbio.h b/include/libbio.h
index 558c163..b3d0426 100644
--- a/include/libbio.h
+++ b/include/libbio.h
@@ -5,15 +5,12 @@
typedef struct bio·Node
{
- string name;
- string comment;
- double dist;
- double support;
- int nnode;
- int nchild;
- struct bio·Node *parent;
- struct bio·Node *sibling;
- struct bio·Node *child;
+ string name, comment;
+ double dist, support;
+ int nnode, nchild;
+ struct bio·Node *parent, *sibling, *child;
+
+ void *data;
} bio·Node;
typedef struct bio·Tree
@@ -53,7 +50,6 @@ error bio·writenewick(bio·Tree tree, io·Putter out, void*);
/* i/o */
typedef struct bio·SeqReader bio·SeqReader;
-typedef struct bio·SeqWriter bio·SeqWriter;
typedef struct bio·Seq
{
@@ -68,3 +64,6 @@ error bio·closeseq(bio·SeqReader *rdr);
error bio·readfasta(bio·SeqReader *rdr, bio·Seq *seq);
error bio·readfastq(bio·SeqReader *rdr, bio·Seq *seq);
+
+error bio·writefasta(io·Writer io, void *wtr, bio·Seq seq);
+error bio·writefastq(io·Writer io, void *wtr, bio·Seq seq);