add_pop {openCyto} | R Documentation |
GatingSet
When interacting with the existing gated data, this function provides an alternative way to interact with the GatingSet by supplying the gating description directly through arguments without the need to write the complete csv gating template.
add_pop(gs, alias = "*", pop = "+", parent, dims = NA, gating_method, gating_args = NA, collapseDataForGating = NA, groupBy = NA, preprocessing_method = NA, preprocessing_args = NA, strip_extra_quotes = FALSE, ...)
gs |
GatingSet or GatingSetList |
alias, pop, parent, dims, gating_method, gating_args, collapseDataForGating, groupBy, preprocessing_method, preprocessing_args |
see details in gatingTemplate |
strip_extra_quotes |
|
... |
other arguments
|
Calls to add_pop
can also be easily reversed with remove_pop
. Note, however, that it is not possible
to differentiate between different GatingSet
objects loaded from the same directory with
load_gs
within a session. Thus, to guarantee a clean history for remove_pop
,
it is necessary to call add_pop_init
on the loaded GatingSet
immediately after re-loading it.
See the documentation for add_pop_init
for more details.
This will not be an issue for GatingSet
objects created directly using the constructor.
## Not run: # add quad gates add_pop(gs, gating_method = "mindensity", dims = "CCR7,CD45RA", parent = "cd4-cd8+", pop = "CCR7+/-CD45RA+/-") # polyfunctional gates (boolean combinations of exsiting marginal gates) add_pop(gs, gating_method = "polyFunctions", parent = "cd8", gating_args = "cd8/IFNg:cd8/IL2:cd8/TNFa") #boolGate method add_pop(gs, alias = "IL2orIFNg", gating_method = "boolGate", parent = "cd4", gating_args = "cd4/IL2|cd4/IFNg") ## End(Not run)