Adds descriptive statistics to metadata columns in an scMethrix object.

get_metadata_stats(scm)

Arguments

scm

scMethrix; the single cell methylation experiment

Value

An scMethrix object

Details

Adds the mean, median, SD, and sample count and coverage (if present) for the GenomicRanges in an scMethrix object. This can be accessed using mcols().

This data will not be updated automatically for any subset, merge, bin, etc functions.

Examples

data('scMethrix_data') get_metadata_stats(scMethrix_data)
#> An object of class scMethrix #> n_CpGs: 286 #> n_samples: 4 #> assays: score, counts #> reduced dims: #> is_h5: FALSE #> Reference: hg19 #> Physical size: 56.4 Kb