flAlignThreshold: Aligns two densities A and B with each other and transfers a...

Description Usage Arguments Value Examples

Description

Uses Derivative Dynamic Time Warping to align a given density A with a reference density B and transfers a reference threshold fromB to A.

Usage

1
flAlignThreshold(dens, refDens, refThreshold)

Arguments

dens

A R density object with unknown threshold.

refDens

A reference R density object with known threshold.

refThreshold

The threshold belonging to refDens.

Value

A double value representing the threshold that resulted from aligning both densities and transferring the reference threshold. If refThreshold is NA, this method returns NA as well.

Examples

1
2
3
4
5
6
7
8
dd <- flFind(flSampleDensdat, population = 'plasma', channelIdx = 1)
dens <- flGetDensity(flAt(dd, 1))
trueThresh <- flGetGate(flAt(dd, 1))[1]
refDens <- flGetDensity(flAt(dd, 2))
refThresh <- flGetGate(flAt(dd, 2))[1]

predictedThreshold <- flAlignThreshold(dens, refDens, refThresh)
flPlotDensThresh(dens, refThresh, trueThresh)

mlux86/flowLearn documentation built on May 29, 2019, 5:43 a.m.