generate_training_set: Splits an scMethrix object into two for use as a training and...

Description Usage Arguments Details Value Examples

Description

Splits an scMethrix object into two for use as a training and test set

Usage

1
generate_training_set(scm = NULL, training_prop = 0.2, seed = "123")

Arguments

scm

scMethrix; the single cell methylation experiment

training_prop

numeric; The size of the training set as a proportion of the experiment (0 to 1) For a range, the optimal value will be estimated; this is time-intensive.

seed

string; value to use for sampling

Details

Typically used for teaching classification algorithms. The seed can be set for consistency.

Value

list; two scMethrix objects names 'training' and 'test'

Examples

1
2
data('scMethrix_data')
generate_training_set(scMethrix_data, training_prop = 0.2)

CompEpigen/scMethrix documentation built on Nov. 6, 2021, 3:09 p.m.