create_codon_table | R Documentation |
create_codon_table
generates a codon table from a user-defined data
frame that maps codons to their corresponding amino acids. This function
enables analysis of non-standard or artificial genetic codes not available
in the NCBI genetic code collection.
create_codon_table(aa2codon)
aa2codon |
A data frame with two required columns:
|
A data.table with four columns:
aa_code
: Single-letter amino acid code
amino_acid
: Three-letter amino acid abbreviation
codon
: Three-nucleotide codon sequence
subfam
: Codon subfamily identifier (amino_acid_XY format)
# View the example amino acid to codon mapping
head(aa2codon)
# Create a custom codon table
custom_table <- create_codon_table(aa2codon = aa2codon)
head(custom_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.