segmentation {MPAgenomics} | R Documentation |
This function launches the segmentation of a signal.
segmentation(signal, method = c("PELT", "cghseg"), Rho = NULL, Kmax = 10, position = NULL, plot = TRUE, verbose = TRUE)
signal |
a vector containing the signal. |
method |
method of segmentation, either "PELT" or "cghseg". |
Rho |
For method="PELT", vector containing all the penalization values to test for the segmentation. If no values are provided, default values will be used. |
Kmax |
For method="cghseg", maximal number of segments. |
position |
A vector containing the position of all elements of the signal (not necessary) |
plot |
if TRUE, plot the segmentation results |
verbose |
if TRUE print some informations |
a list containing
A vector containing the signal.
A vector of the same size as signal containing the segmented values.
The position of each probe.
A data.frame that summarizes the results of the segmentation. Each row is a different segment with the start position, end position, number of points in the signal and the value of the segment.
Quentin Grimonprez