gh_apply_to_cs {flowWorkspace} | R Documentation

## Construct a `GatingSet` using a template

### Description

This uses a `GatingHierarchy` as a template to apply to other loaded samples in the form of a `cytoset`, resulting in a `GatingSet`. The transformations and gates from the template are applied to all samples. The compensation applied to each of the samples can be controlled via the `compensation_source` argument.

### Usage

    gh_apply_to_cs(x, cs, swap_cols = FALSE, compensation_source = "sample", ...)

### Arguments

`x` | GatingHierarchy
`cs` | a cytoset
`swap_cols` | for internal usage
`compensation_source` | One of the following options: "sample" – each cytoframe will be compensated with the spillover matrix included in its own FCS "template" – all cytoframes will be compensatied with the spillover matrix of the template GatingHierarchy "none" – no compensation will be applied
`...` | not currently used

### Value

a `GatingSet`

[Package flowWorkspace version 4.4.0 Index]