est_optimal_codons | R Documentation |
est_optimal_codons
determine optimal codon of each codon family with binomial regression.
Usage of optimal codons should correlate negatively with enc.
est_optimal_codons(
cf,
codon_table = get_codon_table(),
level = "subfam",
gene_score = NULL,
fdr = 0.001
)
cf |
matrix of codon frequencies as calculated by |
codon_table |
a table of genetic code derived from |
level |
"subfam" (default) or "amino_acid". For which level to determine optimal codons. |
gene_score |
a numeric vector of scores for genes. The order of values should match with
gene orders in the codon frequency matrix. The length of the vector should be equal to the
number of rows in the matrix. The scores could be gene expression levels (RPKM or TPM) that are
optionally log-transformed (for example, with |
fdr |
false discovery rate used to determine optimal codons. |
data.table of optimal codons.
# perform binomial regression for optimal codon estimation
cf_all <- count_codons(yeast_cds)
codons_opt <- est_optimal_codons(cf_all)
codons_opt <- codons_opt[optimal == TRUE]
codons_opt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.