biostockholm-0.2.1: Parsing and rendering of Stockholm files (used by Pfam, Rfam and Infernal).

Bio.Sequence.Stockholm.Stream

Contents

Description

Parsing of an Stockholm 1.0 file into a stream of events.

Synopsis

Streams

data Event Source

An event (roughly a line in the file).

Constructors

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

Instances

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.