It is possible that the cutpoint calculated by quantile function may not produce the exact the probability set by 'probs' argument if there are not enough cell events to reach that precision. Sometime the difference could be significant.

gate_quantile(fr, channel, probs = 0.999, plot = FALSE,
filterId = "", min = NULL, max = NULL, ...)

## Arguments

fr a flowFrame object the channel from which the cytokine gate is constructed probabilities passed to 'stats::quantile' function. whether to plot the gate result the name of the filter a numeric value that sets the lower boundary for data filtering a numeric value that sets the upper boundary for data filtering additional arguments passed to 'stats::quantile' function.

## Value

a rectangleGate

## Examples

if (FALSE) {
gate <- gate_quantile(fr, Channel = "APC-A", probs = 0.995) # fr is a flowFrame
}