Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FastaSequence = FastaSequence {
- _header :: [ByteString]
- _sequence :: ByteString
- sequence :: Lens' FastaSequence ByteString
- header :: Lens' FastaSequence [ByteString]
- parseHeader :: ParseConstraint m => m [ByteString]
- parseSequenceLine :: ParseConstraint m => m ByteString
- parseSequence' :: ParseConstraint m => m FastaSequence
- parseSequences' :: ParseConstraint m => m [FastaSequence]
Documentation
data FastaSequence #
sequence :: Lens' FastaSequence ByteString #
header :: Lens' FastaSequence [ByteString] #
parseHeader :: ParseConstraint m => m [ByteString] #
Parses the header of a FASTA file.
The header starts with a >
character and gets separated by |
(pipe)
characters. When making use of BioSeq
, the first word of the
header is used as the seqid
.
parseSequenceLine :: ParseConstraint m => m ByteString #
Parses an individual line of the sequence.
parseSequence' :: ParseConstraint m => m FastaSequence #
Parses an entire sequence including its header.
parseSequences' :: ParseConstraint m => m [FastaSequence] #
Parses many sequences.