Learn R Programming

flowWorkspace (version 3.16.0)

getIndices,GatingHierarchy,character-method: Get the membership indices for each event with respect to a particular gate in a GatingHierarchy

Description

Returns a logical vector that describes whether each event in a sample is included or excluded by this gate.

Usage

"getIndices"(obj, y)

Arguments

obj
A GatingHierarchy representing a sample.
y
A character giving the name or full(/partial) gating path of the population / node of interest.

Value

A logical vector of length equal to the number of events in the FCS file that determines whether each event is or is not included in the current gate.

Details

Returns a logical vector that describes whether each event in the data file is included in the given gate of this GatingHierarchy. The indices are for all events in the file, and do not reflect the population counts relative to the parent but relative to the root. To get population frequencies relative to the parent one cross-tabulate the indices of y with the indices of its parent.

See Also

getPopStats

Examples

Run this code
## Not run: 
#     #G is a gating hierarchy
#     #Return the indices for population 5 (topological sort)
#     getIndices(G,getNodes(G,tsort=TRUE)[5]);
# ## End(Not run)

Run the code above in your browser using DataLab