Description Usage Arguments Value Examples
Takes a character vector of codons and converts them to their amino acids. Useful for creating an amino acid column from a column of codons, in order to facet a plot for example.
1 | codon_to_aa(x, seq_type = c("DNA", "RNA"))
|
x |
Character vector of three nucleotide codons |
seq_type |
Character value of either "DNA" or "RNA" depending on whether "T" or "U" is used in the sequence. |
Character vector of amino acids
1 2 3 4 | codon_to_aa(c('CAT', 'GAC', 'TTT', 'ATG'), seq_type = 'DNA')
codon_to_aa('GAT', seq_type = 'DNA')
codon_to_aa(c('CAU', 'GAC', 'UUU', 'AUG'), seq_type = 'RNA')
codon_to_aa('GAU', seq_type = 'RNA')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.