methSeg2bed: Export segments to BED files

Description Usage Arguments Value See Also

View source: R/methSeg.R

Description

The segments are color coded based on their score (methylation or differential methylation value). They are named by segment group (components in mixture modeling) and the score in the BED file is obtained from 'seg.mean' column of segments object.

Usage

1
2
3
4
5
6
methSeg2bed(
  segments,
  filename,
  trackLine = "track name='meth segments' description='meth segments' itemRgb=On",
  colramp = colorRamp(c("gray", "green", "darkgreen"))
)

Arguments

segments

GRanges object with segment classification and information. This should be the result of methSeg function

filename

name of the output data

trackLine

UCSC browser trackline

colramp

color scale to be used in the BED display defaults to gray,green, darkgreen scale.

Value

A BED files with the segmented data which can be visualized in the UCSC browser

See Also

methSeg


methylKit documentation built on Jan. 30, 2021, 2 a.m.