curvPeaks: Parse curv1Filter output

View source: R/curvPeaks.R

curvPeaksR Documentation

Parse curv1Filter output

Description

Parse the output of curv1Filter and find modes and midpoints of the high-density regions. This function is considered to be internal.

Usage


curvPeaks(x, dat, borderQuant = 0.01, n = 201, from, to, densities=NULL)

Arguments

x

A multipleFilterResult produced by a curv1Filter operation.

dat

The corresponding flowFrame.

borderQuant

A numeric in [0,1] giving the extreme quantiles for which high-density regions are ignored.

n, from, to

Arguments are passed on to density.

densities

The optional y values of the density estimate computed for the respective data.

Value

A list with items

peaks

x and y locations of the modes of the regions in the density estimates.

regions

the left and right margins of the regions.

midpoints

the mean of regions.

regPoints

x and y locations of the outline of the significant density regions.

densFuns

an approximation function of the density estimate

Author(s)

Florian Hahne

See Also

landmarkMatrix

Examples

library(flowCore)
data(GvHD)
tmp <- filter(GvHD[[10]], curv1Filter("FSC-H"))
res <-  flowStats:::curvPeaks(tmp, exprs(GvHD[[10]])[, "FSC-H"])


RGLab/flowStats documentation built on July 20, 2023, 1:33 a.m.