segmentation: segmentation function

Description Usage Arguments Value Author(s)

View source: R/cghseg.R

Description

This function launches the segmentation of a signal.

Usage

1
2
3
4
5
6
7
8
9
segmentation(
  signal,
  method = c("PELT", "cghseg"),
  Rho = NULL,
  Kmax = 10,
  position = NULL,
  plot = TRUE,
  verbose = TRUE
)

Arguments

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

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.

Author(s)

Quentin Grimonprez


sblanck/MPAgenomics documentation built on Dec. 22, 2021, 10:18 p.m.