-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warpset cutting off low-end or high end data #48
Comments
reproducible example script with data, please |
Hi Mike, I'm afraid I can't upload the data as it's not mine, but here's the script. inputFolder = "/input" suppressMessages(library(tidyverse)) dir.create(file.path(outputFolder, flowSetFolder), recursive = TRUE, showWarnings = FALSE) myfiles <- list.files(path=inputFolder, pattern = ".FCS", ignore.case = TRUE) input.FCS.comp <-compensate(input.FCS, spillover(input.FCS[[1]])$SPILL) input.FCS.comp.cleaned <- flow_auto_qc(input.FCS.comp) trans <- estimateLogicle(input.FCS.comp.cleaned[[1]], fluorophores) removeList = c("FSC-A", "FSC-H", "FSC-W", "SSC-A", "SSC-H","SSC-W", "Time") normalizedData = flowStats::warpSet(x = input.FCS.comp.cleaned.trans, stains = fluorophores, clipRange = 0) png(file.path(outputFolder, normFolder, "FluorDensity_Pre.png"), width = 1600, height = 1600) png(file.path(outputFolder, normFolder, "FluorDensity_Post.png"), width = 1600, height = 1600) multi_gs <- GatingSet(normalizedData) marker1 = "FSC-A" fs_data <- gs_pop_get_data(multi_gs) #non_debris <- fsApply(fs_data, function(fr) openCyto:::.flowClust.2d(fr, channels = c("FSC-A","SSC-A"))) gs_pop_add(multi_gs, non_debris, parent = "root", name="non_debris") plt = autoplot(multi_gs, x=marker1, y=marker2, currentPopName, bins=2012) + marker1 = "SSC-A" fs_data <- gs_pop_get_data(multi_gs, parentPopName) plt = autoplot(multi_gs, x = marker1, y = marker2, currentPopName, bins = 256) +labs(x= marker1, y = marker2) marker1 = "SSC-A" fs_data <- gs_pop_get_data(multi_gs, parentPopName) x_boundary = c(10,2E5) gs_pop_add(multi_gs, live, parent = parentPopName, name=currentPopName) recompute(multi_gs) plt = autoplot(multi_gs, x=marker1, y=marker2, currentPopName, bins=512) + marker1 = "BV570-A" fs_data <- gs_pop_get_data(multi_gs, parentPopName) x_boundary = c(1, 4) gs_pop_add(multi_gs, CD45pos, parent = parentPopName, name=currentPopName) plt = autoplot(multi_gs, x=marker1, y=marker2, currentPopName, bins=512) + marker1 = "BUV805-A" CD16pos <- rectangleGate(filterId="CD16_neg", "BUV805-A" = c(2, 6), "BUV395-A" = c(0,5)) gs_pop_add(multi_gs, CD16pos, parent = parentPopName, name=currentPopName) plt = autoplot(multi_gs, x=marker1, y=marker2, currentPopName, bins=512) + |
Hi, I'm having an issue where warpset is changing values at the lowest end of certain samples, making them a single (lower) value. What is the cause of this and how do I prevent it from happening?
To see if some of the lower values were simply below some threshold, I added a single value to every cell in every channel, effectively shifting everything to the right, then I did the normalization again. This time the lower values were spared, while the upper values were cut off and moved to a single max value. Again, I'm not sure what I need to adjust to avoid this.
The command I've been using is "flowStats::warpSet(x = fixed, stains = fluorophores2, clipRange = 0)". (I set clipRange to zero thinking that this option could be to blame, but I essentially see the same thing when I leave it as default.)
The text was updated successfully, but these errors were encountered: