Performs gating on scatter parameters and returns a vector with the indexes of events inside the initial gate.
The gating proceeds in three steps:
Defines bounds by data trimming
Defines a region around the target maximum found within the bounds
Defines a gate around the target maximum, only within that region
The method uses numerical search of maxima over estimated densities and Voronoi tessellations to improve density estimation around maxima.
do.gate(
gate.data,
viability.gate,
large.gate,
samp,
scatter.and.channel.label,
control.type,
asp
)A data frame containing the gate data.
A logical vector indicating the viability gate.
A logical vector indicating the large gate.
A sample identifier.
A label for scatter and channel.
The type of control used, either "beads" or "cells".
The AutoSpectral parameter list, prepared using
get.autospectral.param.
A vector with the indexes of events inside the initial gate.