Learn R Programming

flowWorkspace (version 3.16.0)

insertGate: 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.

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

Run this code
## 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)

Run the code above in your browser using DataLab