create_sequences {universalmotif} | R Documentation |
Generate random sequences from any set of characters, represented as
XStringSet
objects.
create_sequences(alphabet = "DNA", seqnum = 100, seqlen = 100, freqs, monofreqs, difreqs, trifreqs, progress = FALSE, BP = FALSE)
alphabet |
|
seqnum |
|
seqlen |
|
freqs |
|
monofreqs |
|
difreqs |
|
trifreqs |
|
progress |
|
BP |
|
XStringSet
The returned sequences are unnamed.
Benjamin Jean-Marie Tremblay, b2tremblay@uwaterloo.ca
Pagès H, Aboyoun P, Gentleman R, DebRoy S (2018). Biostrings: Efficient manipulation of biological strings. R package version 2.48.0.
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("!@#$ ")