Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Collects all functions pertaining to the translation of nucleotides to amino acids for strings.
Documentation
codon2aa :: Codon -> Either String Char Source
Converts a codon to an amino acid Remember, if there is an N in that DNA sequence, then it is invalid
translate :: Int -> FastaSequence -> Either String FastaSequence Source
Translates a string of nucleotides. Returns a string with the error if the codon is invalid.