getPeaks: Finding Peaks

Description Usage Arguments Value Author(s) See Also Examples

View source: R/helper_functions.R View source: R/flowDensity_methods.R

Description

Find all peaks in density along with their indices

Usage

1
getPeaks(frame, channel,tinypeak.removal=1/25,...)

Arguments

frame

a 'FlowFrame' object.

channel

a channel's name or its corresponding index in the 'flow.frame'.

tinypeak.removal

A number in [0,1] to exclude/include tiny peaks in density distribution.

...

Arguments passed to smoothSpline function, spar is 0.4.

Value

a list, including peaks and their corresponding indices

Author(s)

Mehrnoush Malek <[email protected]>

See Also

deGate notSubFrame flowDensity

Examples

1
2
3
4
5
data_dir <- system.file("extdata", package = "flowDensity")
load(list.files(pattern = 'sampleFCS_1', data_dir, full = TRUE))
#Find the threshold for CD20
peaks <- getPeaks(f,channel="PerCP-Cy5-5-A",tinypeak.removal=1/30)
peaks

Bioconductor-mirror/flowDensity documentation built on July 19, 2017, 8:44 a.m.