codon_optimize | R Documentation |
codon_optimize
takes a coding sequence (without stop codon) and replace
each codon to the corresponding synonymous optimal codon.
codon_optimize(
seq,
optimal_codons,
codon_table = get_codon_table(),
level = "subfam"
)
seq |
DNAString, or an object that can be coerced to a DNAString. |
optimal_codons |
table optimze codons as generated by |
codon_table |
a table of genetic code derived from |
level |
"subfam" (default) or "amino_acid". Optimize codon usage at which level. |
a DNAString of the optimized coding sequence.
cf_all <- count_codons(yeast_cds)
optimal_codons <- est_optimal_codons(cf_all)
seq <- 'ATGCTACGA'
codon_optimize(seq, optimal_codons)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.