MethylDiff.Rd
Using a chromDictMeth() output object, quickly calculate the mean methylation difference across a user-specified region.
MethylDiff(chromDictMeth, chrom, start, end)
chromDictMeth() output object
character
, chromosome
integer
, region start
integer
, region end
Returns a list of data.tables
for each chromosome, for faster analysis.
chromDictMethylDiff <- chromDictMeth(eigen, c("trt", "ctl"))
#> Removing low depth sites...
#> Calculating mean methylation differences...
#> Splitting by chromosome...
MethylDiff(chromDictMethylDiff, "chr3", 4920450, 4923267)
#> [1] -0.5493768