spillover_ng {flowCore} | R Documentation |
Spillover information for a particular experiment is often
obtained by running several tubes of beads or cells stained with
a single color that can then be used to determine a spillover
matrix for use with compensate
.
Matching stain channels to compensation controls is done via a matching csv file with columns 'filename' and 'channel'. The 'channel' entries should exactly match the channel names in the FCS file. The 'filename' should be the FCS file name of each compensation control as well as one unstained control with the channel 'unstained'.
Pregating is always done on the channels using this API, and the mode of the channel is used to compute the spillover matrix. FSC and SSC channels can be provided to allow a pregating on (approximately) a population in the FSC and SSC dimensions.
## S4 method for signature 'flowSet' spillover_ng(x, fsc = "FSC-A", ssc = "SSC-A", plot = FALSE, matchfile = NULL, ...)
x |
A flowSet of compensation beads or cells |
fsc |
The name or index of the forward scatter parameter |
ssc |
The name or index of the side scatter parameter |
plot |
logical. Plots the kernel density for each channel when
pregating. Displays the gate used. If |
matchfile |
Name of the csv file holding the compensation control file to channel matching infomration. |
... |
Additional arguments passed to |
The algorithm used is fairly simple. First, using the scatter parameters, we restrict ourselves to the most closely clustered population to reduce the amount of debris. The selected statistic is then calculated on all appropriate parameters and the unstained values swept out of the matrix. Every sample is then normalized to [0,1] with respect to the maximum value of the sample, giving the spillover in terms of a proportion of the primary channel intensity.
A matrix for each of the parameters
B. Ellis
C. B. Bagwell \& E. G. Adams (1993). Fluorescence spectral overlap compensation for any number of flow cytometry parameters. in: Annals of the New York Academy of Sciences, 677:167-184.