Description Usage Arguments Details Value Examples
View source: R/scMethrix_dimensionality.R
Reduces a assay to a representative matrix
1 2 3 4 5 6 7 8 | reduce_cpgs(
scm,
assay = "score",
var = c("top", "rand"),
top_var = 1000,
na.rm = FALSE,
verbose = FALSE
)
|
scm |
scMethrix; Input |
assay |
string; The assay to use. Default is 'score' |
var |
strning; Choose between random CpG sites ('rand') or most variable CpGs ('top'). Default 'top' |
top_var |
integer; Number of variable CpGs to use. Default 1000 Set it to NULL to use all CpGs (which is not recommended due to memory requirements). |
na.rm |
boolean; flag to remove NA values |
verbose |
boolean; flag to output messages or not |
For the purposes of dimensionality reduction, this function selects either random CpGs or those with the highest variability.
matrix; the reduced form of the input assay
1 2 | data('scMethrix_data')
reduce_cpgs(scMethrix_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.