consensus: Calculate consensus segments from a list of segmentation...

Description Usage Arguments

View source: R/consseg_r.R

Description

Calculate consensus segments from a list of segmentation breakpoints

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
consensus(
  b,
  n,
  w,
  e,
  return = "breakpoints",
  store = FALSE,
  test = FALSE,
  verb = 1
)

Arguments

b

list of breakpoints of different segmentations or a data.frame of segments with "start", "end" and "type columns", or a segmenTier results object of class "segments".

n

total sequence length (max(b) if not provided).

w

weights vector, must sum up to 1 or will be normalized.

e

potential function either a XPtr pointer to a function pre-compiled with compileEquation or a string of a (C++-compatible) mathematical equation using L for the interval length and n for the total sequence length to calculate potentials during the consseg recursion, eg. "(L/n)*log(L/n)" to use the negentropy.

return

return class, simple "breakpoints" or "segments", where breakpoints are considered the start, and ends are cut one before.

store

for debugging: store and return all internal vectors.

test

for debugging.

verb

verbosity level, 0 is silent.


Bierinformatik/consseg documentation built on March 18, 2021, 1:33 p.m.