compensate_data: Compensate the Data

View source: R/fun.R

compensate_dataR Documentation

Compensate the Data

Description

It will attempt to find the compensation controls using the regex '.*Setup.*fcs'

Usage

compensate_data(comp_controls, channels, us_num)

Arguments

comp_controls

the folder containing single-stained compensation controls

channels

the channels to be compensated in the pattern 'BV421-A|BV570-A'

us_num

the number of the unstained control tube in the set

Value

a list with a summary of the comp controls and a spillover matrix

Examples

gs.uncomped <- flowWorkspace::GatingSet(resQC)
spillover_matrix <- compensate_data(comp_controls, 'BV421-A|BV570-A', 3)[[2]]
gs.comped <- compensate(gs.uncomped, spillover_matrix)

jonesnoaht/BTIPFlow documentation built on Feb. 20, 2024, 8:45 a.m.