move a node along with all of its descendant nodes to the given ancester
gh_pop_move(gh, node, to, recompute = TRUE)
the node to be moved
the new parent node under which the
whether to recompute the gates after the node is moved. Default is TRUE.
library(flowWorkspace) dataDir <- system.file("extdata",package="flowWorkspaceData") suppressMessages(gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE))) gh <- gs[] old.parent <- gs_pop_get_parent(gh, "CD4") new.parent <- "singlets" gh_pop_move(gh, "CD4", new.parent)#>gs_pop_get_parent(gh, "CD4")#>  "/not debris/singlets"