Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Collects all functions pertaining to the translation of nucleotides to amino acids for ByteStrings
- chunksOf :: Int -> ByteString -> [ByteString]
- codon2aa :: Codon -> Either ByteString ByteString
- translate :: Int -> FastaSequence -> Either ByteString FastaSequence
Documentation
chunksOf :: Int -> ByteString -> [ByteString] Source
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 :: Int -> FastaSequence -> Either ByteString FastaSequence Source
Translates a string of nucleotides. Returns a text with the error if the codon is invalid.