Get name of most recent common ancestor shared by nodes

cyto_nodes_ancestor(x, nodes = NULL, ...)

Arguments

x

object of class GatingHierarchy or GatingSet.

nodes

vector of nodes for which the most recent common ancestor should be returned.

...

additional arguments passed to cyto_nodes_convert to control the format of the returned ancestral node.

Author

Dillon Hammill, Dillon.Hammill@anu.edu.au

Examples

library(CytoExploreRData) # Activation GatingSet gs <- GatingSet(Activation) # Compensation gs <- cyto_compensate(gs) # Transformations gs <- cyto_transform(gs)
# Gating gs <- cyto_gatingTemplate_apply(gs, Activation_gatingTemplate)
#> Preprocessing for 'Cells'
#> Gating for 'Cells'
#> done!
#> done.
#> Preprocessing for 'Single Cells'
#> Gating for 'Single Cells'
#> done!
#> done.
#> Preprocessing for 'Dead Cells'
#> Gating for 'Dead Cells'
#> done!
#> done.
#> Live Cells gating...
#> done!
#> done.
#> Preprocessing for 'T Cells'
#> Gating for 'T Cells'
#> done!
#> done.
#> Preprocessing for 'CD8 T Cells'
#> Gating for 'CD8 T Cells'
#> done!
#> done.
#> Preprocessing for 'CD69+ CD8 T Cells'
#> Gating for 'CD69+ CD8 T Cells'
#> done!
#> done.
#> Preprocessing for 'CD4 T Cells'
#> Gating for 'CD4 T Cells'
#> done!
#> done.
#> Preprocessing for 'CD69+ CD4 T Cells'
#> Gating for 'CD69+ CD4 T Cells'
#> done!
#> done.
#> Preprocessing for 'Dendritic Cells'
#> Gating for 'Dendritic Cells'
#> done!
#> done.
#> finished.
# Ancestral node of CD4 T Cells & CD8 T Cells cyto_nodes_ancestor(gs, nodes = c("CD4 T Cells", "CD8 T Cells"))
#> [1] "T Cells"