gate_type: Get Gate Type from Saved Gate.

Description Usage Arguments Value Author(s) Examples

View source: R/gatingTemplate-modifiers.R

Description

Get Gate Type from Saved Gate.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(CytoRSuiteData)

# Load in samples
fs <- Activation
gs <- GatingSet(fs)

# 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)

# Get gate type used for T Cells gate
gate_type(getGate(gs, "Cells")[[1]])
gate_type(getGate(gs, "T Cells")[[1]])
gate_type(getGate(gs, "CD69+ CD4 T Cells")[[1]])

DillonHammill/cytoSuite documentation built on March 7, 2019, 10:09 a.m.