Get Gate Type from Saved Gate.
cyto_gate_type(gates)
gates | an object of class |
---|
vector of gate type names for supplied gates.
Dillon Hammill, Dillon.Hammill@anu.edu.au
library(CytoExploreRData) # Load in samples fs <- Activation gs <- GatingSet(fs) # Apply compensation gs <- cyto_compensate(gs) # Transform fluorescent channels gs <- cyto_transform(gs)# Gate using cyto_gate_draw gt <- Activation_gatingTemplate gt_gating(gt, gs)#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#>#># Get gate type used for T Cells gate cyto_gate_type(gs_pop_get_gate(gs, "Cells")[[1]])#> [1] "polygon"cyto_gate_type(gs_pop_get_gate(gs, "T Cells")[[1]])#> [1] "ellipse"cyto_gate_type(gs_pop_get_gate(gs, "CD69+ CD4 T Cells")[[1]])#> [1] "rectangle"