gh_pop_get_gate.RdReturn the flowCore gate definition object associated with a node in a GatingHierarchy or GatingSet object.
# S4 method for GatingHierarchy,character getGate(obj, y) gh_pop_get_gate(obj, y) # S4 method for GatingSet,character getGate(obj, y) gs_pop_get_gate(obj, y) # S4 method for GatingSetList,character getGate(obj, y)
| obj | A |
|---|---|
| y | A |
A gate object from flowCore. Usually a polygonGate, but may be a rectangleGate. Boolean gates are represented by a "BooleanGate" S3 class. This is a list boolean gate definition that references populations in the GatingHierarchy and how they are to be combined logically. If obj is a GatingSet, assuming the trees associated with each GatingHierarchy are identical, then this method will return a list of gates, one for each sample in the GatingSet corresponding to the same population indexed by y.
if (FALSE) #gh is a GatingHierarchy gh_pop_get_gate(gh, "CD3") #return the gate for the fifth node in the tree, but fetch it by name. #G is a GatingSet gs_pop_get_gate(G, "CD3") #return a list of gates for the fifth node in each tree#> Error in lapply(obj, function(x) gh_pop_get_gate(x, y)): object 'G' not found