codons2aa | R Documentation |
Convert codon to amino acid
codons2aa(codons, type = "code", naReplace = "z", warn = TRUE)
codons |
Vector of 3 base codons |
type |
Amino acid info to return; code for single letter, name for full name, or abbr for 3-letter abbreviation |
naReplace |
Replace NAs with this string. Anything other than a single character will result in a protein longer than the number of codons |
warn |
Warn if any unknown codons are found. Usually due to ACTG characters |
Vector of amino acids
codons2aa(c('AUG','GTT','AGG','GTA')) codons2aa(dna2codons('ATGTTTATTGGG')[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.