modeCenter: Center continuous data on mode

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Copynumber data distributions are generally multi-modal. It is often assumed that the tallest peak represents 'normal' and should therefore be centered on a log2ratio of zero. This function uses the density function to find the mode of the dominant peak and subtracts that value from the input data.

Usage

1

Arguments

ds

numeric matrix

Value

numeric matrix

Examples

1
  modeCenter( matrix( rnorm(150, mean=0), ncol=3 ))

genoset documentation built on Nov. 8, 2020, 6:07 p.m.