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

Unable to parse FCS files within the workspace #334

Closed
ppremraj-zs opened this issue Jun 27, 2020 · 3 comments
Closed

Unable to parse FCS files within the workspace #334

ppremraj-zs opened this issue Jun 27, 2020 · 3 comments

Comments

@ppremraj-zs
Copy link

Hello,

I am trying to parse the fcs files within a flowjo workspace. I am getting the following error. Can you please guide me how to solve this

gs <- flowjo_to_gatingset(ws, name=1, isNcdf=FALSE)

Parsing 1 samples
windows version of flowJo workspace recognized.
version X
Creating flowSet...
loading data: /home/ppremraj/projects/cell-bio-flow-autogate/Specimen_002_D1_D01_030.fcs
Compensating
gating ...
Error in .cpp_gating(gs@pointer, mat, guid, gains, nodeInd, recompute, :
try to extend the coordinates for ellipse gate!
In addition: Warning message:
In .parse.pData(obj = obj, keywords = keywords, sg = sg, keywords.source = keywords.source, :
Can't find the FCS files for the following samples:

@gfinak
Copy link
Member

gfinak commented Jun 27, 2020

The error indicates that the gating scheme in the workspace has an ellipse gate whose coordinates cross 0, and is likely truncated in the workspace. flowJo to gatingset tries to deal with this by extending the coordinates of gates truncated on the boundary by extending them in the negative direction in order capture all the cells they are intended to capture.
Except this doesn't work for ellipse gates and you get this error.
Your can disable this by setting the extend_val argument to flowjo_to_gatingset to a large negative value (try -1000). This is the threshold at which the method will try to extend gates on the boundary, effectively disabling the behavior.
But then you will have there issue with other rectangle gates that if they're truncated on the boundary they will not capture all the intended cells.
To be clear, this is an issue with flowJo export to XML.

@ppremraj-zs
Copy link
Author

Thank you so much, after setting extend_val = -14000 it worked.

@mikejiang
Copy link
Member

mikejiang commented Jun 30, 2020

With latest patch from cytolib RGLab/cytolib@88b3887
changing extend_val shouldn't be needed for parsing ellipsoidGate properly.

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

3 participants