Description Usage Arguments Value Examples
makeSeq
outputs a string that contains a random sequence of characters
(A/C/G/T by default). By default the first three letters are "ATG" and the
last three letters are a stop-codon ("TAA", "TAG" or "TGA"). The number of
characters in the output is three times the len
argument, i.e. it
contains len
codons. Note: the function does not set.seed()
;
according to current best-practice, functions should never change the state
of the RNG since this is a global change. Instead, execute set.seed()
with a parameter of your choice before the function call if you wish the
sequence to be reproducible.
1 2 |
len |
(integer) number of codons in the returned string |
useInit |
(logical) make the first codon an initiation codon. Default
is |
useStop |
(logical) make the last codon a stop codon. Default is
|
alphabet |
(character vector) the elements that are randomly concatenated. Default is A/C/G/T. |
p |
(numeric vector) Probabilites for each character to occur. Default is equiprobable. |
(character) a single string
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.