allClassMeansToGR: Convert allClassMeans table to GenomicRanges

View source: R/EMbasic.R

allClassMeansToGRR Documentation

Convert allClassMeans table to GenomicRanges

Description

Convert allClassMeans table to GenomicRanges with absolute genomic coordinates and with methylation score at each position for each class and multiple replicates in the metadata columns (required for plotting with Gviz)

Usage

allClassMeansToGR(allClassMeans, regionGR, anchorPoint = "middle", dSMFwin = 1)

Arguments

allClassMeans

A long data frame of methylation or bincount values with columns for position, methylation frequency (methFreq), class and replicate.

regionGR

A genomic range for the region that is being plotted

anchorPoint

One of "middle" or "start": the position from which numbering starts

dSMFwin

Width of dSMF score window (default is 1bp)

Value

Returns a GenomicRanges object with absolute genomic coordinates and methylation score for different classes and replicates in mcols


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.