DillonHammill / CytoExploreR

Interactive Cytometry Data Analysis
61 stars 13 forks source link

cyto_gate_draw/cyto_gate_edit point drawing is very slow #124

Closed humzalikhan closed 3 years ago

humzalikhan commented 3 years ago

Briefly describe what you hope to achieve:

Outline the steps taken to attempt to reach this goal (paste code below):

setwd("~")
files <- list.files(path = "FOLDERPATH", full.names = TRUE)
fs <- read.ncdfFlowSet(files = files)

gs<-GatingSet(fs)

channels <- cyto_fluor_channels(gs)
trans <- estimateLogicle(gs[[1]], channels)
gs <- transform(gs, trans)

# gating ----
setwd("WD")

cyto_map(gs)

# gate drawing ----- 
cyto_gate_draw(gs,
          parent = "root",
          channels=c("Ir191Di","Ir193Di"),
          alias = "Ir+",
          type = "polygon",
          gatingTemplate = "XXX.csv",display=.1)

Include any associated screenshots or images here:

humzalikhan commented 3 years ago

Looks like there were too many cells! Changing display to .05 fixed it.

DillonHammill commented 3 years ago

Precisely! You can also use the select argument to pull events from only a subset of samples. FYI you will see about 5 times speed improvement in plotting in the new version of CytoExploreR (coming soon).

humzalikhan commented 3 years ago

Exciting! Thank you for your awesome work