Description Usage Arguments Details Value Examples
Generates a random subset of CpG sites
1 | generate_random_subset(scm = NULL, n_cpgs = 10000, seed = "123")
|
scm |
|
n_cpgs |
numeric; The number of CpGs to include |
seed |
string; value to use for sampling |
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.
scMethrix; an experiment with n_cpgs
1 2 | data('scMethrix_data')
generate_random_subset(scMethrix_data,n_cpgs = round(nrow(scMethrix_data)/2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.