vignettes/CytoRSuite-Manual-Automated-Gating.Rmd
CytoRSuite-Manual-Automated-Gating.Rmd
CytoRSuite is built on and shares the same gatingTemplate as the openCyto package. This means that users can take advantage of both the manual gating in CytoRSuite and the automated gating in openCyto for their analyses. Furthermore, CytoRSuite users can take advantage of some of the other features of the openCyto gatingTemplate, such as boolean and reference gates. More information on the openCyto gatingTemplate can be found here.
Here we aim to demonstrate the use of both manual and automated gating approaches using CytoRSuite and openCyto. For demonstration purposes we will use the Activation
dataset shipped with CytoRSuiteData.
library(CytoRSuite) # openCyto is imported with CytoRSuite
library(CytoRSuiteData)
# Assign Activation flowSet to fs
fs <- Activation
# Add fs to a GatingSet
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)
# Assign Activation flowSet to fs
fs <- Activation
# Add fs to a GatingSet
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)
# Apply gatingTemplate
gt <- gatingTemplate("gatingTemplate.csv")
gating(gt,gs)
# Visualise Gating Scheme
cyto_plot_gating_scheme(gs[[4]])
For more information on manual gating using CytoRSuite refer to Gating Functions and Gate Manipulation vignettes. For more information on automated gating using openCyto refer to this Gating Methods vignette.