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

Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Fasta.ByteString.Lazy.Translation

Description

Collects all functions pertaining to the translation of nucleotides to amino acids for Lazy ByteString.

Synopsis

Documentation

chunksOf :: Int64 -> ByteString -> [ByteString] Source

Lazy ByteString version of chunksOf

codon2aa :: Codon -> Either ByteString ByteString Source

Converts a codon to an amino acid Remember, if there is an N in that DNA sequence, then it is invalid

translate :: Int64 -> FastaSequence -> Either ByteString FastaSequence Source

Translates a string of nucleotides. Returns a text with the error if the codon is invalid.