insertGate {flowWorkspace} | R Documentation

## insert a dummy gate to the GatingSet

### Description

Is is useful trick to make the tree structure of GatingSet same with other so that they can be combined into a 'GatingSetList' object. (deprecated by 'moveNode')

### Usage

    insertGate(gs, gate, parent, children)

### Arguments

`gs` | `GatingSet` to work with
`gate` | `filter` a dummy gate to be inserted, its 'filterId' will be used as the population name
`parent` | `character` full path of parent node where the new dummy gate to be added to
`children` | `character` full path of chidlren nodes that the new dummy gate to be parent of

### Value

a new `GatingSet` object with the new gate added but share the same flow data with the input 'GatingSet'

### Examples

    ## Not run:
    #construct a dummy singlet gate
     dummyGate <- rectangleGate("FSC-A" = c(-Inf, Inf), "FSC-H" = c(-Inf, Inf), filterId = "singlets")
    #insert it between the 'not debris" node and "lymph" node
     gs_clone <- insertGate(gs, dummyGate, "not debris", "lymph")

    ## End(Not run)

[Package flowWorkspace version 3.30.2 Index]