Hi, i have been trying to convert a gatingset to a flowJO workspace object by using the gatingset2FlowJO function from cytoML. After some experimentation i succeeded. However i noticed that only my transformation was in the flowJO workspace and not the compensation. The problem seems to be that i do have a Compensation slot in the gatingset but the compensation itself has no spillover information. Which is correct since we usually only apply a compensation matrix with the compensate function to NCDFflowset.
To try and get the spillover information into the NCDFflowset or gatingset i attempted the following:
fcsFiles <-dir(path = "C:/AmazonSWAP/Compensation/ICS-19-00011",pattern = ".fcs",full.names = T)
fcs <- read.ncdfFlowSet(fcsFiles, alter.names = T)
spillover <- spillover(fcs , unstained = 17 , fcs = c("FCS.A", "FCS.H", "FCS.W") , ssc = c("SSC.A", "SSC.H" , "SSC.W") , useNormFilt = TRUE )
But this gives me the error:
Error: Could not find forward scatter parameter. Please set the fsc parameter
I have the following files for a 16 color panel (16 compensation controls on beads with an unstained cells sample)
> fcsFiles
[1] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_alexa fluor 700 stained control_b03_118.fcs"
[2] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_apc-cy7 stained control_b04_119.fcs"
[3] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_apc stained control_a11_114.fcs"
[4] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_buv395 stained control_a05_108.fcs"
[5] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_buv737 stained control_a06_109.fcs"
[6] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv421 stained control_a08_111.fcs"
[7] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv510 stained control_a01_104.fcs"
[8] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv605 stained control_a02_105.fcs"
[9] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv650 stained control_a09_112.fcs"
[10] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv711 stained control_a12_115.fcs"
[11] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_bv786 stained control_a04_107.fcs"
[12] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_fitc stained control_a07_110.fcs"
[13] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_pe-cy5 stained control_a03_106.fcs"
[14] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_pe-cy7 stained control_a10_113.fcs"
[15] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_pe-texas red stained control_b02_117.fcs"
[16] "C:/AmazonSWAP/Compensation/ICS-19-00011/compensation controls_pe stained control_b01_116.fcs"
[17] "C:/AmazonSWAP/Compensation/ICS-19-00011/unstained cells_h12_h12_103.fcs"
The file structure is as followed:
> fcs
An ncdfFlowSet with 17 samples.
NCDF file : C:\Users\kteijgel\AppData\Local\Temp\Rtmpeqsz1r\ncfs38943adf65d3.nc
An object of class 'AnnotatedDataFrame'
rowNames: compensation controls_alexa fluor 700 stained control_b03_118.fcs compensation
controls_apc-cy7 stained control_b04_119.fcs ... unstained cells_h12_h12_103.fcs (17 total)
varLabels: name
varMetadata: labelDescription
column names:
Time, FSC.A, FSC.H, FSC.W, SSC.A, SSC.H, SSC.W, FITC.A, APC.A, Alexa.Fluor.700.A, APC.Cy7.A, BV421.A, BV510.A, BV605.A, BV650.A, BV711.A, BV786.A, BUV395.A, BUV737.A, PE.A, PE.Texas.Red.A, PE.Cy5.A, PE.Cy7.A
The FCS files are also accesible here: https://we.tl/t-SGoKQ351YY
What am i doing wrong?:) Please tell me if you need more information.
Thanks a lot for the thorough explanation and quick response Jake, and also for correcting my typo!
This one works for me :)
No problem. Thanks for including the files and code. It makes troubleshooting so much easier.