Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Data.Fasta.Text.Lazy.Translation
Description
Collects all functions pertaining to the translation of nucleotides to amino acids for Lazy Text.
Documentation
codon2aa :: Codon -> Either Text Text Source
Converts a codon to an amino acid Remember, if there is an N in that DNA sequence, then it is invalid and treated as a gap
translate :: Int64 -> FastaSequence -> Either Text FastaSequence Source
Translates a text of nucleotides given a reading frame (1, 2, or 3) -- drops the first 0, 1, or 2 nucleotides respectively. Returns a text with the error if the codon is invalid.