View source: R/create_sequences.R
create_sequences | R Documentation |
Generate random sequences from any set of characters, represented as
XStringSet
objects.
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, benjamin.tremblay@uwaterloo.ca
create_motif()
, shuffle_sequences()
## 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.