Description Usage Arguments Value Examples
View source: R/create_simulation_data.R
function generates set of RDS files containing n-gram matrices
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | create_simulation_data(
replications,
seq_nums,
seq_lengths,
num_motifs,
alphabet,
path,
title,
save_files = FALSE,
motifProbs = NULL,
seqProbs = NULL,
fraction = 0.5,
n = 4,
d = 6
)
|
replications |
number of matrices' generation for each set of parameters |
seq_nums |
vector of sequences' numbers |
seq_lengths |
vector of sequences' lengths |
num_motifs |
vector of number of motifs to be injected |
alphabet |
elements used to build both sequence and motif |
path |
file path of RDS files |
title |
simulation name |
save_files |
triggers if RDS will be saved |
motifProbs |
alphabet probabilites for motifs |
seqProbs |
alphabet probabilites for sequences |
fraction |
fraction of positive sequences |
n |
maximum number of alphabet elements in motif |
d |
maximum number of gaps in motif |
data frame with RDS files' details
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | alph <- letters[1:4]
reps <- 10
n_seq <- c(10)
l_seq <- c(10)
n_motifs <- c(1, 2)
path = "./"
results <- create_simulation_data(reps, n_seq, l_seq, n_motifs, alph, path, "SEQ",FALSE)
alph <- letters[1:4]
reps <- 3
n_seq <- c(10)
l_seq <- c(10)
n_motifs <- 1
results <- create_simulation_data(reps, n_seq, l_seq, n_motifs, alph,
path, "SEQ", FALSE,
motifProbs = c(0.7, 0.1, 0.1, 0.1),
seqProbs = c(0.7, 0.1, 0.1, 0.1),
n = 4, d = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.