Parsing of an Stockholm 1.0 file into a stream of events.
- data Event
- parseEvents :: ResourceThrow m => Conduit ByteString m Event
- renderEvents :: ResourceUnsafeIO m => Conduit Event m ByteString
Streams
An event (roughly a line in the file).
EvHeader | # STOCKHOLM 1.0 |
EvEnd | // |
EvComment ByteString | # .... |
EvSeqData ByteString ByteString | seqlabel seqdata |
EvGF ByteString ByteString | #GF feature data |
EvGC ByteString ByteString | #GC feature data |
EvGS ByteString ByteString ByteString | #GS seqlabel feature data |
EvGR ByteString ByteString ByteString | #GR seqlabel feature data |
parseEvents :: ResourceThrow m => Conduit ByteString m EventSource
Conduit that parses a file into events.
renderEvents :: ResourceUnsafeIO m => Conduit Event m ByteStringSource
Conduit that pretty prints an event stream into a file.