cyto_gate_type: Get Gate Type from Saved Gate.

View source: R/cyto_gate-helpers.R

cyto_gate_typeR Documentation

Get Gate Type from Saved Gate.

Description

Get Gate Type from Saved Gate.

Usage

cyto_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.

Author(s)

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

Examples

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]])
cyto_gate_type(gs_pop_get_gate(gs, "T Cells")[[1]])
cyto_gate_type(gs_pop_get_gate(gs, "CD69+ CD4 T Cells")[[1]])

DillonHammill/CytoExploreR documentation built on March 2, 2023, 7:34 a.m.