Description Usage Arguments Examples
View source: R/select_alternative.R
Select a codon from a provided list that has a decent codon usage. Works by selecting a codon at random from the possible_codons list until it isn't also on the excluded forbidden_codons list. Codon lists with only one variant, or with no non-forbidden options will return original codon. Returned codon is provided as lower case string. Verbose option helps to follow the function as it is working. Is called by synonymise function, but can also be used independently.
1 2 | select_alternative(input = "", possible_codons, forbidden_codons,
verbose = FALSE)
|
input |
optional. string used to specify input codon, only required for verbosity. Defaults to "". |
possible_codons |
dataframe of codons to choose from (eg. output from find_synonymous_codons function). |
forbidden_codons |
dataframe of codons to exclude, such as rare codons. |
verbose |
logical. Defaults to FALSE. |
1 | select_alternative(possible_codons = synonymous_codons, forbidden_codons = c(very_rare_codons, rare_codons), verbose=TRUE, input="CGC")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.