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:
GatingTreeToDF()
,
PlotDeltaEnrichment()
,
PruneGatingTree()
,
addChildNode()
,
add_prune()
,
apply_gating_conditions()
,
baseline_entropy()
,
calculate_enrichment()
,
calculate_entropy()
,
collect_all_enrichment()
,
collect_all_entropy()
,
collect_history()
,
collect_leaf_enrichment()
,
collect_markers()
,
convertToDataTree()
,
convert_to_diagrammer()
,
count_nodes()
,
createChildNode()
,
createGatingTreeObject()
,
find_and_update_nodes()
,
gating_entropy()
,
general_node_rule()
,
generate_marker_names()
,
getNode()
,
prune_tree()
,
recursiveAddChildNode()
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")
})
} # }