Get Gate Type from Saved Gate.

gate_type(gates)

Arguments

gates

an object of class filters containing the gates from which the type(s) must be obtained.

Value

vector of gate type names for supplied gates.

Examples

library(CytoRSuiteData) # Load in samples fs <- Activation gs <- GatingSet(fs)
#> .
#> .
#> .
#> .
#> done!
# Apply compensation gs <- compensate(gs, fs[[1]]@description$SPILL) # Transform fluorescent channels trans <- estimateLogicle(gs[[4]], cyto_fluor_channels(gs)) gs <- transform(gs, trans) # Gate using gate_draw gt <- Activation_gatingTemplate gating(gt, gs)
#> Preprocessing for 'Cells'
#> Gating for 'Cells'
#> done.
#> Preprocessing for 'Single Cells'
#> Gating for 'Single Cells'
#> done.
#> Preprocessing for 'Live Cells'
#> Gating for 'Live Cells'
#> done.
#> Preprocessing for 'Dendritic Cells'
#> Gating for 'Dendritic Cells'
#> done.
#> Preprocessing for 'T Cells'
#> Gating for 'T Cells'
#> done.
#> Preprocessing for 'CD8 T Cells'
#> Gating for 'CD8 T Cells'
#> done.
#> Preprocessing for 'CD69+ CD8 T Cells'
#> Gating for 'CD69+ CD8 T Cells'
#> done.
#> Preprocessing for 'CD4 T Cells'
#> Gating for 'CD4 T Cells'
#> done.
#> Preprocessing for 'CD69+ CD4 T Cells'
#> Gating for 'CD69+ CD4 T Cells'
#> done.
#> finished.
# Get gate type used for T Cells gate gate_type(getGate(gs, "Cells")[[1]])
#> [1] "polygon"
gate_type(getGate(gs, "T Cells")[[1]])
#> [1] "ellipse"
gate_type(getGate(gs, "CD69+ CD4 T Cells")[[1]])
#> [1] "interval"