Description Usage Arguments Value Examples
Generate a DNA sequence.
1 2 3 | generate_sequence(num = 100, start_codon = TRUE, stop_codon = TRUE,
probabilities = c(0.25, 0.25, 0.25, 0.25),
allow_internal_stop_codons = FALSE)
|
num |
Number of codons in the sequence. |
start_codon |
TRUE/FALSE, whether a start codon should be included. |
stop_codon |
TRUE/FALSE, whether a stop codon should be included. |
probabilities |
Probabilities for A, T, C, and G, respectively. |
allow_internal_stop_codons |
TRUE/FALSE, whether stop codons should be generated in the sequence (not including the terminus if stop_codon is TRUE). |
A vector of nucleotides
1 | generate_sequence(100, start_codon = TRUE, stop_codon = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.