getParent,GatingSet,character-method {flowWorkspace} | R Documentation

## Return the name of the parent population or a list of child populations of the current population in the GatingHierarchy

### 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

    ## S4 method for signature 'GatingSet,character'
    getParent(obj, y, ...)

    ## S4 method for signature 'GatingSet,character'
    getChildren(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 getNodes methods
`showHidden` | `logical` whether to include the hidden children nodes.

### Value

`getParent` returns a `character` vector, the name of the parent population. `getChildren` 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

`getNodes`

### Examples

      ## Not run:
        #G is a gatinghierarchy
        #return the name of the parent of the fifth node in the hierarchy.
        getParent(G,getNodes(G[[1)[5])
        n<-getNodes(G,tsort=T)[4];
        getChildren(G,n);#Get the names of the child nodes of the 4th node in this gating hierarchy.
        getChildren(G,4);#Get the ids of the child nodes

    ## End(Not run)

[Package flowWorkspace version 3.26.9 Index]