View source: R/merge.quad.gates.R
merge.quad.gates | R Documentation |
For internal usage.
## S3 method for class 'quad.gates'
merge(gh, pops, bool = TRUE)
gh |
a GatingHierarchy |
pops |
a vector of population names |
bool |
whether to deal with boolean gate |
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
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.