Traverses a gating tree starting from a specified root node to find and return a node located at a given path. The path should be a sequence of node names indicating the traversal route from the root to the target node.
See also
Other GatingTree:
ExtractGatingTree(),
GatingTreeToDF(),
PlotDeltaEnrichment(),
PlotDeltaEnrichmentPrunedTree(),
PruneGatingTree(),
createGatingTreeObject(),
getNode()
Examples
if (FALSE) { # \dontrun{
rootNode <- createGatingTreeObject(...) # setup initial node, assumes function definition
path <- c("rootNode", "CD4pos", "CD8neg") # example path to find a specific node
tryCatch({
targetNode <- findNodeByPath(rootNode, path)
print(targetNode)
}, error = function(e) {
cat("Error in findNodeByPath: ", e$message, "\n")
})
} # }