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

Safe HaskellSafe-Infered

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 :: MonadThrow m => Conduit ByteString m EventSource

Conduit that parses a file into events.

renderEvents :: MonadUnsafeIO m => Conduit Event m ByteStringSource

Conduit that pretty prints an event stream into a file.