compensate: compensate the flow data asssociated with the GatingSet

Description Usage Arguments Value Examples

Description

The compensation is saved in the GatingSet and can be retrieved by gh_get_compensations.

Usage

1
2
## S4 method for signature 'GatingSet,ANY'
compensate(x, spillover)

Arguments

x

GatingSet, GatingSetList, cytoframe, or cytoset

spillover

compensation object or spillover matrix or a list of compensation objects

Value

a GatingSet, GatingSetList, cytoframe, or cytoset object with the underling flow data compensated.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

cfile <- system.file("extdata","compdata","compmatrix", package="flowCore")
comp.mat <- read.table(cfile, header=TRUE, skip=2, check.names = FALSE)
## create a compensation object
comp <- compensation(comp.mat,compensationId="comp1")
#add it to GatingSet
gs <- compensate(gs, comp)

## End(Not run)

flowWorkspace documentation built on Nov. 8, 2020, 8:08 p.m.