From 18383b973877f4c30c878414a51c0b44ea5dafe4 Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 22 Apr 2020 19:33:09 -0700 Subject: feat: added generic interfaces for I/O --- include/libbio.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/libbio.h') 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); + -- cgit v1.2.1