getMetaMethFreq: Calculate methylation frequency at each position for metagene...

View source: R/methMatrixManipulation.R

getMetaMethFreqR Documentation

Calculate methylation frequency at each position for metagene plots

Description

Calculate methylation frequency at each position for metagene plots

Usage

getMetaMethFreq(matList, regionGRs, minReads = 50)

Arguments

matList

A table of filepaths of methylation matrices with names that match the regionsGRs object

regionGRs

A genomicRanges object of the regions for which aggregate methylation frequency will be calculated. the object must contain a metadata column called "ID" containing names that match the methylation matrices in matList

minReads

The minimal number of reads a matrix must have in order to be used (default=50)

Value

A long form dataframe with four columns: "position" is the C position within the genomic Ranges, "methFreq" is the frequency of methylation at that position, "ID" is the name of the region, "chr" is the chromosome on which that region is present.


jsemple19/methMatrix documentation built on Aug. 19, 2022, 3:57 p.m.