plotClassMeansWithTracks: Plot smoothed class means from multiple repeats

View source: R/EMbasic.R

plotClassMeansWithTracksR Documentation

Plot smoothed class means from multiple repeats

Description

Plot loess-smoothed class means from multiple repeats of EM.

Usage

plotClassMeansWithTracks(
  allClassMeans,
  regionGR,
  anchorPoint = "middle",
  txdb = NULL,
  featureGR = NULL,
  bigwigListFile = NULL,
  strandedBwFile = NULL
)

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 for the position in allClassMatrix

txdb

A TxDb object e.g. TxDb.Celegans.UCSC.ce11.refGene from which to get the gene regions

featureGR

A genoimc range for a feature you wish to highlight (e.g. TSS). Will be overlaid on transcript track.

bigwigListFile

A chacter string with the name of a file that contains a list of bigwigs to be plotted with the class means. First column of this file must be the file name of the bigwig with the full path. the second column is the dataset name (will be used on the plot so keep it short).

strandedBwFile

A chacter string with the name of a file that contains a list of stranded bigwigs to be plotted with the class means. First column of this file must be the file name of the bigwig with the full path. The second column is the dataset name (will be used on the plot so keep it short), third column is "+" or "-" indicating the strand of the bigwig.

Value

Returns a ggplot2 object


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