Here we will illustrate how to choose and use the appropriate gating methods that are pre-registered in
openCyto package. And users can always define their own
gating algorithms and register them as the
plugin functions in
openCyto framework, see
?registerPlugins for more details.
Note that all the function names illustrated below are prefixed with
. indicating that they are simply the wrapper function registered in
openCyto. The actual
gating engine behind the wrapper can come from other packages (e.g.
flowClust). All these wrappers have these common interfaces: *
flowFrame object *
pp_res: an optional
pre-preocessing result, which can be ignored in this document *
channels: channel names used for gating *
...: any other gating parameters pass on to the actual gating engine
The name of this gating function is self-explaining, that is to find the minimum as the cutpoint between negative and postive peaks in 1d density plot. It is fast,robust and extremely easy to use especially when there is a good separation between
For example, it is usually easy to gate on
CD3 channel and no need to supply any arguments to the method.
However, it may need some guidance when there are more than
2 major peaks/populations detected in densit profile.
Here we actually want to remove the
debris cells that are represented by the first negative peak. But
mindensity cuts between the second and third peaks since they are more predorminant. So we can simply specify a
range that will limit the locations where the cut point should be placed.
And as shown, we also changed the
kernal density smoothing factor
2(default value set in
1.5 to avoid over-smoothing.
Alternatively you can achieve the same effect by setting
max to pre-filter the data before the
mindenstiy works on it.
To choose one way or the other or combining both is highly dependent on how your data. The more contrains will give you more controls on how gating proceeds yet at cost of robustness of your gating pipeline sometime.
This gating method is used in the senarios where there is only one major peak detected thus automatically disqualify the usage of
tol is to control how far the cut point should be placed away from the peak.
This method is an alternative to
tailgate and it determines the cutpoint by the events quantile.
This gating method is more commonly used in gating the
rare populations when the target population is not prominent enough to stand out as the second peak. (e.g.
cytokine gates in
It essentially constructs a rectangle gate from input range (min, max), which is useful for filtering out very extreme signals at the bounary.
height to gate out the singlets. See details from
flowClust package in itself is not limited to 2-dimensional gating. But here we are talking about a dedicated wrapper function
openCyto package that leverages
flowClust clustering engine to work on
2D cases specifically. You won’t need to write the full name of the function in
csv gating template, simply put
flowClust in the
gating_method column, and then the template parser will automatically dispatch to the right function.
K is to tell the algorithm how many major clusters/populations are expected in the 2d profile.
target specify the mean/center of the target population to get, which doesn’t have to be precise. If not supplied, flowClust will pick the most prominent cluster as the target, which would be the right choice in most cases.
quantile specify how large the
ellipse should be.
pp_res is used to provide the
prior information for
flowClust. (More details are in
flowClust.2d can optionally construct a
Transitional gate, which is a speical kind of polygon gate with one edge placed diagonally that is often seen in
flowJo. Here is an example:
The rational behind the algorithm is beyond the scope of this document. Please see its detailed explainations in
This gating method identifies two quadrants (first, and third quadrants) by fitting the data with tmixture model. It is particually useful when the two markers are not well resolved thus the regular quadGate method that is based on
1d gating will not find the perfect cut points on both dimensions.