Description Usage Arguments Details Value Note See Also Examples

View source: R/GatingHierarchy_Methods.R

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

1 | ```
gh_pop_get_indices(obj, y)
``` |

`obj` |
A |

`y` |
A |

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.

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.

Generally you should not need to use `gh_pop_get_indices`

but the more convenient methods `gh_pop_get_proportion`

and `gh_pop_compare_stats`

which return population frequencies relative to the parent node.
The indices returned reference all events in the file and are not directly suitable for computing population statistics, unless subsets are taken with respect to the parent populations.

1 2 3 4 5 6 | ```
## Not run:
#G is a gating hierarchy
#Return the indices for population 5 (topological sort)
gh_pop_get_indices(G,gs_get_pop_paths(G,tsort=TRUE)[5]);
## End(Not run)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.