Description Usage Arguments Value Author(s) See Also Examples
View source: R/create_sequences.R
Generate random sequences from any set of characters, represented as
XStringSet
objects.
1 2 | create_sequences(alphabet = "DNA", seqnum = 100, seqlen = 100, freqs,
nthreads = 1, rng.seed = sample.int(10000, 1))
|
alphabet |
|
seqnum |
|
seqlen |
|
freqs |
|
nthreads |
|
rng.seed |
|
XStringSet
The returned sequences are unnamed.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca
create_motif()
, shuffle_sequences()
1 2 3 4 5 6 | ## Create DNA sequences with slightly increased AT content:
sequences <- create_sequences(freqs = c(A=0.3, C=0.2, G=0.2, T=0.3))
## Create custom sequences:
sequences.QWER <- create_sequences("QWER")
## You can include non-alphabet characters are well, even spaces:
sequences.custom <- create_sequences("!@#$ ")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.