biohazard-0.6.2: bioinformatics support library

Safe HaskellNone
LanguageHaskell98

Bio.Glf

Synopsis

Documentation

data GlfSeq Source

Constructors

GlfSeq 

Instances

enee_glf_file :: Monad m => (GlfSeq -> Enumeratee [GlfRec] a m b) -> (ByteString -> Enumerator a m b) -> Enumeratee ByteString a m b Source

Iterates over a GLF file. In get_glf_file per_seq per_file, the enumerator per_file genome_name, where genome_name is the name stored in the GLF header, is run once, then the enumeratee per_seq glfseq is iterated over the records in each sequence.

enum_glf_file :: (MonadIO m, MonadMask m) => FilePath -> (GlfSeq -> Enumeratee [GlfRec] a m b) -> (ByteString -> Enumerator a m b) -> Enumerator a m b Source

Enumerate the contents of a GLF file, apply suitable Enumeratees to both sequences and records, resulting in an Enumerator of whatever, typically output Strings or records...

This type is positively weird and I'm not entirely sure this is the right way to go about it.