grlToDf: Convert Genomic ranges list to long data frame for plotting

View source: R/bam2methMats.R

grlToDfR Documentation

Convert Genomic ranges list to long data frame for plotting

Description

Methylation frequency data stored in a list(by sample) of list (by C context) of genomic ranges is extracted into a data frame. By specifying a context type ("CG","GC" or "C") this type of data is extracted for all samples listed in "samples" can converted to a dataframe.

Usage

grlToDf(methFreqGR, samples, Ctype)

Arguments

methFreqGR

A list (by sample) of a list (by C context) of genomic ranges for cytosine methylation frquency

samples

a vector of sample names for which to extract the data

Ctype

The type of sequence context for the cytosine _("CG","GC" or "C")

Value

A long-form data frame with methylation frequency and counts at different sites in different samples


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