fasta-0.10.2.0: A simple, mindless parser for fasta files.

Safe HaskellNone
LanguageHaskell98

Data.Fasta.ByteString.Parse

Description

Collection of functions for the parsing of a fasta file. Uses the - ByteString type.

Synopsis

Documentation

parsecFasta :: ByteString -> [FastaSequence] Source

Parse a standard fasta file into text sequences

parsecCLIPFasta :: ByteString -> CloneMap Source

Parse a CLIP fasta file into text sequences

attoFasta :: ByteString -> [FastaSequence] Source

Parse a standard fasta file

attoCLIPFasta :: ByteString -> [(Germline, [FastaSequence])] Source

Parse a CLIP fasta file into text sequences

pipesFasta :: MonadIO m => Producer ByteString m () -> Producer FastaSequence m () Source

Parse a standard fasta file into strict text sequences for pipes. This is the highly recommeded way of parsing, as it is computationally fast and uses memory based on line length

pipesCLIPFasta :: MonadIO m => Producer ByteString m () -> Producer (Germline, [FastaSequence]) m (Either (ParsingError, Producer ByteString m ()) ()) Source

Parse a CLIP fasta file into strict text sequences for pipes.

removeNs :: [FastaSequence] -> [FastaSequence] Source

Remove Ns from a collection of sequences

removeN :: FastaSequence -> FastaSequence Source

Remove Ns from a sequence

removeCLIPNs :: CloneMap -> CloneMap Source

Remove Ns from a collection of CLIP fasta sequences