Description Usage Arguments Examples
generateRandomSequences
returns a list with indices for train and test sets.
1 2 | generateRandomSequences(n = 2, meanLen = 10, sdLen = 0, seed = NULL,
ncores = NULL, prob = rep(0.25, 4))
|
n |
- int, number of sequences to generate. |
meanLen |
- float, mean of the length distribution (gaussian) of the generated sequences. |
sdLen |
- float, sd of the length distribution (gaussian) of the generated sequences. |
seed |
- int, when the same seed and parameters are used, exact same sequences are generated. |
ncores |
- int, number of cores to use. |
prob |
- vector of length 4 with the probability for the 4 nucleotides (A, C, G, T). |
1 2 | generateRandomSequences(n = 2, meanLen = 20, sdLen = 2)
generateRandomSequences(n = 4, meanLen = 5, sdLen = 0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.