generateRandomSequences: Split randomly any R object for which method length() has...

Description Usage Arguments Examples

View source: R/generateData.R

Description

generateRandomSequences returns a list with indices for train and test sets.

Usage

1
2
generateRandomSequences(n = 2, meanLen = 10, sdLen = 0, seed = NULL,
  ncores = NULL, prob = rep(0.25, 4))

Arguments

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).

Examples

1
2
generateRandomSequences(n = 2, meanLen = 20, sdLen = 2)
generateRandomSequences(n = 4, meanLen = 5, sdLen = 0)

gphmm documentation built on Oct. 2, 2017, 5:03 p.m.