generate_random_subset: Generates a random subset of CpG sites

Description Usage Arguments Details Value Examples

Description

Generates a random subset of CpG sites

Usage

1
generate_random_subset(scm = NULL, n_cpgs = 10000, seed = "123")

Arguments

scm

scMethrix; the single cell methylation experiment

n_cpgs

numeric; The number of CpGs to include

seed

string; value to use for sampling

Details

From an scMethrix object, this will randomly select n_cpgs and create a new object containing only those CpGs. This is typically used for approximation or visualization. The seed can be specified for consistency.

Value

scMethrix; an experiment with n_cpgs

Examples

1
2

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