saeyslab / FlowSOM_protocol

R code to demonstrate the FlowSOM analysis pipeline.
3 stars 6 forks source link

Can't get GetFlowJoLabels() to match gating in FlowJo workspace #4

Closed gmillerscripps closed 2 weeks ago

gmillerscripps commented 8 months ago

Hello, in the code below, I am getting the FlowJo labels from FlowJo using GetFlowJoLabels ( FlowSOM_2.8.0).

# 20.(B) Check the consistency with manual labeling
# 20.(B)(i) Extract the gating information from the wsp file
gating <- GetFlowJoLabels(files = files,
                          wspFile = "Data/Raw/attachments/General_panel.wsp",
                          path = dir_raw)

I can't get table(gating$manual) to reflect what I am seeing in the FlowJo workspace. Some of them match, but not all. I had the same issue on my own dataset. Is there something I am not understanding about the use of GetFlowJoLabels?

image

image

Thanks!

KatrienQ commented 8 months ago

Hi,

The unlabeled cells, are cells that are gated in none of the populations that were requested (e.g. do not pass the Single Cells gate). For the other populations, there are small differences between the FlowJo numbers and the numbers in R. This might result from slightly different transformations or edge events might be evaluated differently. I hope this clears out the confusion.