gh_pop_move: move a node along with all of its descendant nodes to the...

View source: R/moveNode.R

gh_pop_moveR Documentation

move a node along with all of its descendant nodes to the given ancester

Description

move a node along with all of its descendant nodes to the given ancester

Usage

gh_pop_move(gh, node, to, recompute = TRUE)

Arguments

gh

GatingHierarchy

node

the node to be moved

to

the new parent node under which the node will be moved to

recompute

whether to recompute the gates after the node is moved. Default is TRUE.

Examples

library(flowWorkspace)
dataDir <- system.file("extdata",package="flowWorkspaceData")
suppressMessages(gs <- load_gs(list.files(dataDir, pattern = "gs_manual",full = TRUE)))
gh <- gs[[1]]
old.parent <- gs_pop_get_parent(gh, "CD4")
new.parent <- "singlets"
gh_pop_move(gh, "CD4", new.parent)
gs_pop_get_parent(gh, "CD4")

RGLab/flowWorkspace documentation built on March 17, 2024, 2:24 p.m.