makeSegmentation: Create objects of class segmentation

Description Usage Arguments Value Examples

View source: R/GenomeGraphs-classes.R

Description

Construct objects of class segmentation

Usage

1
makeSegmentation(start, end, value, dp = NULL)

Arguments

start

Either a list or a vector. If it is a list then it is a list of vectors of start position (this is the way it is represented in the segmentation class) If it is a vector it is a vector of start positions.

end

Same as start, but the corresponding end positions.

value

The y value of the segmentation, ie. segments(start[i], value[i], end[i], value[i])

dp

The Display parameters.

Value

An object of class Segmentation

Examples

1
2
3
4
5
6
data("exampleData", package="GenomeGraphs")
seg <- makeSegmentation(segStart[[1]], segEnd[[1]], segments[[1]], 
                        dp = DisplayPars(color = "black", lwd=2,lty = "solid"))
cop <- makeGenericArray(intensity  = cn, probeStart = probestart, 
                        trackOverlay =  seg, dp = DisplayPars(size=3, color = "seagreen", type="dot"))
gdPlot(cop)

GenomeGraphs documentation built on Oct. 31, 2019, 4:34 a.m.