insertGate {flowWorkspace} | R Documentation |
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')
insertGate(gs, gate, parent, children)
gs |
|
gate |
|
parent |
|
children |
|
a new GatingSet
object with the new gate added but share the same flow data with the input 'GatingSet'
## 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)