filter_dnam_by_quant_diff: Select regions with variations in DNA methylation levels...

View source: R/filter_by_quantile.R

filter_dnam_by_quant_diffR Documentation

Select regions with variations in DNA methylation levels above a threshold

Description

For each region, computes the interquartile range (IQR) of the DNA methylation (DNAm) levels and requires the IQR to be above a threshold

Usage

filter_dnam_by_quant_diff(dnam, min.IQR.threshold = 0.2, cores = 1)

Arguments

dnam

DNA methylation matrix or SummarizedExperiment object

min.IQR.threshold

Threshold for minimal interquantile range (difference between the 75th and 25th percentiles) of the DNAm

cores

Number of CPU cores to be used in the analysis. Default: 1

Value

A subset of the original matrix only with the rows passing the filter threshold.

Examples

data("dna.met.chr21")
dna.met.chr21.filtered <- filter_dnam_by_quant_diff(
  dna.met.chr21
)

TransBioInfoLab/MethReg documentation built on July 28, 2023, 9:17 p.m.