gate_remove: Remove Gate(s) and Edit gatingTemplate csv File

Description Usage Arguments Value Author(s) Examples

View source: R/gatingTemplate-modifiers.R

Description

Remove Gate(s) and Edit gatingTemplate csv File

Usage

1
gate_remove(gs, alias = NULL, gatingTemplate = NULL)

Arguments

gs

an object of class GatingSet.

alias

name(s) of the population(s) to remove (e.g. "Single Cells"). By default all descendant populations will be removed as well.

gatingTemplate

name of the gatingTemplate csv file (e.g. "gatingTemplate.csv").

Value

an object of class gatingSet with gate and children removed, as well as gatingTemplate file with population removed.

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
22
## Not run: 
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)

# Remove T Cells population - replace gatingTemplate name
gate_remove(gs, "T Cells", gatingTemplate = "gatingTemplate.csv")

## End(Not run)

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