Skip to contents

This function recursively collects enrichment values from a gating tree structure. Starting from the provided node, it traverses all child nodes to aggregate their enrichment values into a list.

Usage

collect_all_enrichment(tree)

Arguments

tree

A tree node from which to start collecting enrichment values. The node structure is expected to have a `History` component containing `enrichment` values and possibly `Children` with further sub-nodes.

Value

A list of enrichment values collected recursively from the node and its children.

Details

Enrichment values are extracted from the `History` component of each node, if available. The function recursively explores all child nodes to collect their enrichment values.

Examples

if (FALSE) { # \dontrun{
  enrichment_values <- collect_all_enrichment(root_node)
} # }