gs_pop_get_children: Return the name of the parent population or a list of child...

Description Usage Arguments Value See Also Examples

View source: R/GatingHierarchy_Methods.R

Description

Returns the name of the parent population or a character/numeric vector of all the children of the current population in the given GatingHierarchy

Usage

1
2
3
4
5
6
7
gs_pop_get_parent(obj, y, ...)

gh_pop_get_parent(obj, y, ...)

gs_pop_get_children(obj, y, showHidden = TRUE, ...)

gh_pop_get_children(obj, y, showHidden = TRUE, ...)

Arguments

obj

A GatingHierarchy

y

a character/numeric the name or full(/partial) gating path or node indices of the node / population.

...

other arguments passed to gs_get_pop_paths methods

showHidden

logical whether to include the hidden children nodes.

Value

gs_pop_get_parent returns a character vector, the name of the parent population. gs_pop_get_children returns a character or numeric vector of the node names or node indices of the child nodes of the current node. An empty vector if the node has no children.

See Also

gs_get_pop_paths

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
    # G is a GatingHierarchy
    # return the name of the parent of the fifth node in the hierarchy.
    gs_pop_get_parent(G,gs_get_pop_paths(G[[1]])[5])
    n<-gs_get_pop_paths(G,tsort=T)[4]
    #Get the names of the child nodes of the 4th node in this gating hierarchy.
    gs_pop_get_children(G,n)
    #Get the ids of the child nodes
    gs_pop_get_children(G,4)

## End(Not run)

flowWorkspace documentation built on Nov. 8, 2020, 8:08 p.m.