DillonHammill / CytoExploreR

Interactive Cytometry Data Analysis
60 stars 13 forks source link

Select and [] function do not return the same data on cyto_gate_draw () #164

Open kim619 opened 1 year ago

kim619 commented 1 year ago

Hi, I ran into the problem of using select =, and [] function to select subset of data to gate my population.

As you can see below,

I use select function here:

#without subset 
cyto_gate_draw(gs,
               parent="root",
               select="05-Well-A1.fcs",
               alias = "R6 GFP+RFP Pi cells4",
               channels = c("SSC-H","FSC-H"),
               overlay=c("R6_GFP1","R6_RFP1"),
               type="polygon",
               gatingTemplate="GatingTemplate.csv",
               plot=TRUE,
               axes_limits="machine",
               popup=FALSE)

and obtain this figure:

Screen Shot 2022-09-14 at 17 24 52

I use the [] function here to select the same file as above:

#with subset
cyto_gate_draw(gs[1],
               parent="root",
               alias = "R6 GFP+RFP Pi cells3",
               channels = c("SSC-H","FSC-H"),
               overlay=c("R6_GFP1","R6_RFP1"),
               type="polygon",
               gatingTemplate="GatingTemplate.csv",
               plot=TRUE,
               axes_limits="machine",
               popup=FALSE)

and obtain this figure which is different from the one above (for comparison I used the "machine" axes_limits)

Screen Shot 2022-09-14 at 17 25 11

I really need to use the select function in order to overlay data from one to another in cyto_plot, however, only my [] gating is getting the expected data I need, how can I do to circumvent this issue?

Thanks again.