Skip to contents

ca_pairs show possible codon-anticodons pairings

Usage

ca_pairs(codon_table = get_codon_table(), domain = "Eukarya", plot = FALSE)

Arguments

codon_table

a table of genetic code derived from get_codon_table or create_codon_table.

domain

The taxonomic domain of interest. "Eukarya" (default), "Bacteria" or "Archaea".

plot

FALSE (default) or TRUE. Whether to keep the columns required for plotting.

Value

a data.table of codon-anticodon pairing information

Examples

# get possible codon and anticodon pairings for the vertebrate mitochondrial genetic code
ctab <- get_codon_table(gcid = '2')
pairing <- ca_pairs(ctab)
head(pairing)
#>      type  codon anticodon amino_acid
#>    <char> <char>    <char>     <char>
#> 1:     WC    TTG       CAA        Leu
#> 2:     UG    TTG       TAA        Leu
#> 3:     WC    TTA       TAA        Leu
#> 4:     WC    TTC       GAA        Phe
#> 5:     IC    TTC       AAA        Phe
#> 6:     IU    TTT       AAA        Phe