Closed sraorao closed 8 years ago
Can you save and post the subset of your GatingSet
for trouble shooting? i.e.
save_gs(gated.gs[8], path = "mypath")
Attached, thanks.
Your range
slot in the flowSet
was screwed up by logTransform
(even though you've manually cleaned up these NaN
values in exprs
data)
flowFrame object 'H2O2-ann'
with 9778 cells and 5 observables:
name desc range minRange maxRange
$P1 FSC.A <NA> 262144 0 2.621430e+05
$P2 SSC.A <NA> 262144 0 2.621430e+05
$P3 PI.A <NA> 262144 NaN 5.418538e+00
$P4 BV421.A <NA> 262144 NaN 5.418538e+00
$P5 Time <NA> 262144 0 2.621430e+05
So you should really use logicleTransformation
instead of log
.
fs <- read.ncdfFlowSet(files = files)
trans <- estimateLogicle(fs[[1]], c("PI.A", "BV421.A"))
Note that
estimateLogicle
automatically computes the parameter for logicle
transformation and it already returns a transformList
so you don't need to manually construct one.ncdfFlowSet
instead of flowset
because the latter is less efficient in both memory and cpuAh I see, I need to use logicle transformation because I have negative values. It's working now, many thanks for taking the time to troubleshoot!
Experiment_001.zip Hi, I have asked a question at BioStars regarding this (https://www.biostars.org/p/213491/), so apologies for crossposting. I will update both posts if I get an answer.
I am using ggcyto package in R to plot flow cytometry data, and to display stats on the plot, I am using the geom_stats() function as shown here: https://www.bioconductor.org/packages/release/bioc/vignettes/ggcyto/inst/doc/ggcyto.GatingSet.html
But while the plot and gates look fine, geom_stats is not working and I get the following warning messages when I run ggcyto()...geom_stats()
This is the code, but it's not a working example as the data files (FCS files exported from BD FACSdiva) are not uploaded. EDIT: I added a few of the FCS files now as a .zip attachment at the top.
Looking at the ggplot object created by ggcyto, it looks like the problem might be with the x and y columns in the labels data frames, which have NA's, but manually modifying these columns does not seem to have any effect.
Hope that is all the relevant information, but please let me know if I missed anything. Thanks.