compensate,GatingSet,ANY-method {flowWorkspace} | R Documentation

## compensate the flow data asssociated with the GatingSet

### Description

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

### Usage

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

    ## S4 method for signature 'GatingSetList,ANY'
    compensate(x, spillover)

### Arguments

`x` | `GatingSet` or `GatingSetList`
`spillover` | `compensation` object or a list of `compensation` objects

### Value

a `GatingSet` or `GatingSetList` object with the underling flow data compensated.

### Examples

    ## 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)

[Package flowWorkspace version 3.32.0 Index]