Learn R Programming

MPAgenomics (version 1.2.3)

segmentation: segmentation function

Description

This function launches the segmentation of a signal.

Usage

segmentation(signal, Rho = NULL, position = NULL, plot = TRUE, verbose = TRUE)

Arguments

signal

A vector containing the signal.

Rho

A vector containing all the penalization values to test for the segmentation. If no values are provided, default values will be used.

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

Value

a list containing

signal

A vector containing the signal.

segmented

A vector of the same size as signal containing the segmented values.

startPos

The position of each probe.

segment

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.