This function filters the output of a segmentation and label process. It allows to keep only segments over a minimal length or containing at least a minimal number of probes.
filterSeg(
segmentList,
minLength = 1,
minProbes = 1,
keptLabel = c("loss", "gain")
)
A data.frame containing a description of segments, it must have at least columns named "chromStart", "chromEnd", "probes" and "calls". (see the output of cnSegCallingProcess function).
The minimum length (in bp) for a segment. All the shorter segments are removed.
The minimum number of probes for a segment. All the segments with less probes are removed.
Vector of labels to keep. Only segment with one of the specified label will be kept.
a data.frame of the same format as segmentList.