Description Usage Arguments Value Author(s) See Also Examples
Flow samples are often stained with multiple types of fluorophores. Unfortunately, the emission spectra for these different fluorophores often overlap, and the signals must be corrected before proceeding with the analysis. Compensate adjusts for spillover using the method implemented in the package flowCore. Unlike flowCore, compensate only adjusts for the dyes/fluorophores listed in wellAnnotation.
1 2 | ## S4 method for signature 'flowPlate,ANY'
compensate(x, spillover)
|
x |
A flowPlate |
spillover |
The compensation matrix where the row and column names match the fluorescence channels of the flowPlate. |
Returns a compensated flowPlate
.
Errol Strain
See Also compensation-class
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(plateCore)
data(plateCore)
# Create the compensation matrix
comp.mat <- spillover(x=compensationSet,unstained=sampleNames(compensationSet)[5],
patt=".*H",fsc="FSC-H",ssc="SSC-H",method="median")
## Get the lymphocytes
rectGate <- rectangleGate("FSC-H"=c(300,700),"SSC-H"=c(50,400))
pbmcPlate <- Subset(pbmcPlate, rectGate)
# Create a flowPlate from the sample data in plateCore
fp <- flowPlate(pbmcPlate,wellAnnotation,plateName="P1")
# apply the compensation matrix
fp <- compensate(fp,comp.mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.