Build a gatingObj from a gatingSet

GOFromGatingSet(gs, annotation = NULL, populations = NULL,
  imageDir = NULL, mapVar = NULL, objId = NULL, makeGraphs = FALSE)

Arguments

gs

- a GatingSet object.

annotation

- annotation object. if NULL, will try to pull from phenoData in gs@data

populations

- set of populations to display in data. Used in Shiny modules

imageDir

- image directory for making all gating images. Will be created if it doesn't exist.

mapVar

- a named variable that will map to populationTable.

objId

- unique ID for this object. Used in shiny modules to avoid namespace collisions.

makeGraphs

- Boolean that sets whether the function will generate all gating images The column to map in popTable is `name`. Default value is FALSE.

Value

gatingObj

Examples

gsFile <- system.file("extdata", "gvHDgs", package="flowDashboard") gs <- load_gs(gsFile)
#> Error in eval(expr, envir, enclos): could not find function "load_gs"
tmpDir <- tempdir() GO <- GOFromGatingSet(gs, imageDir=tmpDir, makeGraphs=TRUE)
#> Error in GOFromGatingSet(gs, imageDir = tmpDir, makeGraphs = TRUE): could not find function "pData"
GO
#> Error in eval(expr, envir, enclos): object 'GO' not found
annot <- pData(gs@data@phenoData)
#> Error in eval(expr, envir, enclos): could not find function "pData"
GO <- GOFromGatingSet(gs, annotation=annot, makeGraphs=FALSE)
#> Error in GOFromGatingSet(gs, annotation = annot, makeGraphs = FALSE): object 'annot' not found