gate_quantile: Determine the cutpoint by the events quantile.

Description Usage Arguments Value Examples

View source: R/gating-functions.R

Description

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.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gate_quantile(
  fr,
  channel,
  probs = 0.999,
  plot = FALSE,
  filterId = "",
  min = NULL,
  max = NULL,
  ...
)

Arguments

fr

a flowFrame object

channel

the channel from which the cytokine gate is constructed

probs

probabilities passed to 'stats::quantile' function.

plot

whether to plot the gate result

filterId

the name of the filter

min

a numeric value that sets the lower boundary for data filtering

max

a numeric value that sets the upper boundary for data filtering

...

additional arguments passed to 'stats::quantile' function.

Value

a rectangleGate

Examples

1
2
3
4
## Not run: 
 gate <- gate_quantile(fr, Channel = "APC-A", probs = 0.995) # fr is a flowFrame

## End(Not run)

openCyto documentation built on Nov. 8, 2020, 5:40 p.m.