dropRedundantNodes {flowWorkspace} | R Documentation

## Remove the terminal leaf nodes that make the gating trees to be different from one another.

### Description

It is usually called after groupByTree and checkRedundantNodes. The operation is done in place through external pointers which means all the orginal GatingSets are modified.

### Usage

    dropRedundantNodes(x, toRemove)

### Arguments

`x` | `GatingSet` or `list` of groups(each group is a list of 'GatingSet'). When it is a list, it is usually the outcome from groupByTree.
`toRemove` | `list` of the node sets to be removed. its length must equals to the length of 'x'. When `x` is a list, `toRemove` is usually the outcome from checkRedundantNodes.

### Examples

    ## Not run:
    gslist <- list(gs1, gs2, gs3, gs4, gs5)
    gs_groups <- groupByTree(gslist)
    toRm <- checkRedundantNodes(gs_groups)
    dropRedundantNodes(gs_groups, toRm)

    #Now they can be merged into a single GatingSetList.
    #Note that the original gs objects are all modified in place.
    GatingSetList(gslist)

    ## End(Not run)

[Package flowWorkspace version 3.28.2 Index]