merge.quad.gates: extend the original flowWorkspace:::.mergeGates function to...

Description Usage Arguments Value Examples

View source: R/merge.quad.gates.R

Description

For internal usage.

Usage

1
2
## S3 method for class 'quad.gates'
merge(gh, pops, bool = TRUE)

Arguments

gh

a GatingHierarchy

pops

a vector of population names

bool

whether to deal with boolean gate

Value

a nested list of data structure that captures the information of parent, grouped populations (with the same projections) and the reconstructed quadGate object and the respective quadrant pattern

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(flowWorkspace)
dataDir <- system.file("extdata",package="flowWorkspaceData")
gs <- load_gs(file.path(dataDir, "gs_manual"))
#get the GatingHierarchy object
gh <- gs[[1]]
pops <- gs_pop_get_children(gh, "CD4")
grps  <- ggcyto:::merge.quad.gates(gh, pops)
length(grps) # pops are grouped into two
grps[[1]] # each group is annotaed with quadGate information

ggcyto:::merge.quad.gates(gh, gs_pop_get_children(gh, "CD3+")) # cd3 subsets are not coercible to quadgate thus return as they are

ggcyto documentation built on Nov. 8, 2020, 5:30 p.m.