codon_to | R Documentation |
Input string of a codon to either the "max.codon = " or "min.codon = " parameter to maximize or minimize the usage of certain codon in the sequence.
codon_to(object, max.codon = NA, min.codon = NA, ...) ## S4 method for signature 'regioned_dna' codon_to(object, max.codon, min.codon)
object |
A regioned_dna object. |
max.codon |
A string of a codon. |
min.codon |
A string of a codon. |
... |
... |
The ideas for this function is simple. We first extract the mutable regions for every sequences, then mutated the synonymous codons of the input to the desired. There will be only one ideal design for the maximization problem, however there may be numerous comparable designs having the same minimal usage of certain codon, as we randomly sample synonymous codon for substitution when solving the minimization problem.
A regioned_dna object.
input_seq
, dinu_to
,
codon_random
, codon_mimic
filepath <- system.file("extdata", "example.fasta", package = "SynMut") rgd.seq <- input_seq(filepath) get_cu(codon_to(rgd.seq, max.codon = "AAC")) - get_cu(rgd.seq) get_cu(codon_to(rgd.seq, min.codon = "AAC")) - get_cu(rgd.seq)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.