Skip to content
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

Export populations as dataframe from a FlowJo workspace #149

Open
rohitfarmer opened this issue Oct 27, 2022 · 2 comments
Open

Export populations as dataframe from a FlowJo workspace #149

rohitfarmer opened this issue Oct 27, 2022 · 2 comments

Comments

@rohitfarmer
Copy link

Hi there, I want to export populations as a data frame starting from a FlowJo workspace, and I am stuck after this step:

ws <- open_flowjo_xml("flowjo_workspace.wsp")
gs <- flowjo_to_gatingset(ws, name = 1, path = "all-fcs-files", execute = TRUE)
gate1 <- gs_pop_get_gate(gs, "CD8+")
gate1dat <- gs_pop_get_data(gs, y = "CD8+")

Also, gate1dat seems to be empty. I aim to load a FlowJo workspace, export events/cells per population, and concatenate them in a single file for all the samples. Any suggestions would be helpful. Thanks!

@rohitfarmer
Copy link
Author

I figured out this issue. I had to downgrade Bioconductor to 3.13 for the CytoML, flowWorkspace, and flowcore to work. However, now I have a different issue. The exported cells do not match the original data either in the timestamp or the channel values. Somehow, the data is being transformed.

I tried to switch off any transform flag in my functions. However, it is still the same.

gs <- flowjo_to_gatingset(ws, name = 1, path = file.path(data_folder, "all-fcs-files"), execute = TRUE, transform = FALSE)
getdat <- gs_pop_get_data(gs, y = g, inverse.transform = FALSE)

Any suggestions would be helpful. Thanks!

@mikejiang
Copy link
Member

See here RGLab/flowWorkspace#381 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants