setGate: update the gate

Description Usage Arguments Details Examples

Description

update the population node with a flowCore-compatible gate object

Usage

1
2
3
4
5
6
7
8
9
## S4 method for signature 'GatingHierarchy,character,filter'
setGate(obj, y, value,
  negated = FALSE, ...)

## S4 method for signature 'GatingSet,character,list'
setGate(obj, y, value, ...)

## S4 method for signature 'GatingSet,character,filterList'
setGate(obj, y, value, ...)

Arguments

obj

GatingHierarchy or GatingSet

y

character node name or path

value

filter or filterList or list of filter objects

negated

logical see add

...

other aguments

Details

Usually recompute is followed by this call since updating a gate doesn't re-calculating the cell events within the gate automatically. see filterObject for the gate types that are currently supported.

Examples

1
2
3
4
5
6
7
8
9
## Not run:   
rg1 <- rectangleGate("FSC-H"=c(200,400), "SSC-H"=c(250, 400), filterId="rectangle")
rg2 <- rectangleGate("FSC-H"=c(200,400), "SSC-H"=c(250, 400), filterId="rectangle")
flist <- list(rg1,rg2)
names(flist) <- sampleNames(gs[1:2])
setGate(gs[1:2], "lymph", flist)
recompute(gs[1:2], "lymph") 

## End(Not run)

flowWorkspace documentation built on July 17, 2017, 2 a.m.

Search within the flowWorkspace package
Search all R packages, documentation and source code