polygonGate using the prediction bands
from a robust linear model trained on the area and height of one flow
parameter (usually forward scatter).
singletGate(x, area = "FSC-A", height = "FSC-H", sidescatter = NULL, prediction_level = 0.99, subsample_pct = NULL, wider_gate = FALSE, filterId = "singlet", maxit = 5, ...)flowFrame objectx to construct the gate. By default, no subsampling is performed.TRUE, the prediction bands used to construct the singlet gate use the robust fitted weights, which increase prediction uncertainty, especially for large FSC-A. This leads to wider gates, which are sometimes desired.rlmrlm We construct a singlet gate by applying a robust linear model with
rlm. By default, we model the forward-scatter height
(FSC-H)as a function of forward-scatter area (FSC-A). If sidescatter
is given, forward-scatter height is as a function of area +
sidescatter + sidescatter / area.
Because rlm relies on iteratively reweighted least
squares (IRLS), the runtime to construct a singlet gate is dependent in part
on the number of observations in x. To improve the runtime, we provide
an option to subsample randomly a subset of x. A percentage of
observations to subsample can be given in subsample_pct. By default, no
subsampling is applied.
rangeGate,
polygonGate
## Not run:
# # fr is a flowFrame
# sg <- singletGate(fr, area = "FSC-A", height = "FSC-H")
# sg
# # plot the gate
# xyplot(`FSC-H` ~ `FSC-A`, fr, filter = sg)
# ## End(Not run)
Run the code above in your browser using DataLab