Learn R Programming

cubar (version 1.2.0)

ca_pairs: Generate codon-anticodon pairing relationship

Description

ca_pairs show possible codon-anticodons pairings

Usage

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

Value

a data.table of codon-anticodon pairing information. The columns represent the pairing type, codon, corresponding anticodon, and the encoded amino acid when the argument "plot" is 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.

Examples

Run this code
# get possible codon and anticodon pairings for the vertebrate mitochondrial genetic code
ctab <- get_codon_table(gcid = '2')
pairing <- ca_pairs(ctab)
head(pairing)

Run the code above in your browser using DataLab