View source: R/gating-functions.R
gate_mindensity | R Documentation |
We fit a kernel density estimator to the cells in the flowFrame
and
identify the two largest peaks. We then
select as the cutpoint the value at which the minimum density is attained
between the two peaks of interest.
gate_mindensity(
fr,
channel,
filterId = "",
positive = TRUE,
gate_range = NULL,
min = NULL,
max = NULL,
peaks = NULL,
...
)
fr |
a |
channel |
TODO |
filterId |
TODO |
positive |
If |
gate_range |
numeric vector of length 2. If given, this sets the bounds
on the gate applied. If no gate is found within this range, we set the gate to
the minimum value within this range if |
min |
a numeric value that sets the lower boundary for data filtering |
max |
a numeric value that sets the upper boundary for data filtering |
peaks |
|
... |
Additional arguments for peak detection. |
In the default case, the two peaks of interest are the two largest peaks
obtained from the link{density}
function.
In the special case that there is only one peak, we are conservative and set
the cutpoint as the min(x)
if positive
is TRUE
, and the
max(x)
otherwise.
a rectangleGate
object based on the minimum density cutpoint
## Not run:
gate <- gate_mindensity(fr, channel = "APC-A") # fr is a flowFrame
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.