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.
methSeg2bed(segments,
trackLine = "track name='meth segments' description='meth segments' itemRgb=On",
filename = "data/H1.chr21.chr22.trial.seg.bed",
colramp = colorRamp(c("gray", "green", "darkgreen")))
UCSC browser trackline
name of the output data
color scale to be used in the BED display defaults to gray,green, darkgreen scale.
A BED files with the segmented data which can be visualized in the UCSC browser