aboutsummaryrefslogtreecommitdiff
path: root/include/libbio.h
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-04-22 19:33:09 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-04-22 19:33:09 -0700
commit18383b973877f4c30c878414a51c0b44ea5dafe4 (patch)
tree811e7ccbdb9b0ba15b0ef95c8ab36502097abab2 /include/libbio.h
parent9fb0a22dcb1ae04a1007316497fe6d11b91d8183 (diff)
feat: added generic interfaces for I/O
Diffstat (limited to 'include/libbio.h')
-rw-r--r--include/libbio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libbio.h b/include/libbio.h
index 58540d4..9f54015 100644
--- a/include/libbio.h
+++ b/include/libbio.h
@@ -24,8 +24,17 @@ typedef struct bio·Tree
bio·Node *root;
} bio·Tree;
+/* newick i/o */
bio·Tree bio·readnewick(Stream *file, mem·Allocator heap);
error bio·writenewick(bio·Tree tree, Stream *out);
// -----------------------------------------------------------------------
// Sequences
+
+typedef struct bio·FastaReader bio·FastaReader;
+
+/* fasta/q i/o */
+bio·Seq *bio·newfastareader(Stream *file, mem·Allocator heap);
+bio·Seq *bio·readfasta(bio·FastaParser *p);
+error bio·writefasta(bio·Seq *seq, Stream *out);
+