ca_pairs: Generate codon-anticodon pairing relationship

View source: R/codon_weight.R

ca_pairsR Documentation

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)

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

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)


cubar documentation built on Aug. 21, 2025, 5:40 p.m.