Git Product home page Git Product logo

Comments (11)

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024 1

Thanks for your input I think I figured it out:
It may have been a malformatted special character in the $FIL-Keyword. Some system along the way must have turned an Ü into something different. When I changed the $FIL-Keyword without extraordinary characters it worked.

While additional keywords can be added to identify FCS files by flowjo_to_gatingset(), the $FIL keyword appears to be obligatory.

I thought I tried to fix the issue that way earlier but it did not help then. When I tried again it did help.

Sorry for disturbing you.

from cytoml.

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024

Here you can find a respective FCS file (https://www.dropbox.com/s/t3qaixahp6vze78/test.fcs?dl=0).

As described, flowCore::read.FCS works. But when the file is within a flowjo workspace and one tries to read the workspace with CytoML::flowjo_to_gatingset the above mentioned error comes up. Any ideas?

from cytoml.

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024

I am also having a hard time to find out where this is triggered. I think it is somewhere in the C++ routine which I am not familiar with. I wonder what exactly makes the function think this is not a valid FCS file.

from cytoml.

gfinak avatar gfinak commented on July 29, 2024

What happens if you pass emptyValue = F to CytoML::flowjo_to_gatingset instead when reading the file?

from cytoml.

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024

Same error.

from cytoml.

SamGG avatar SamGG commented on July 29, 2024

Incidentally, a colleague was facing a similar error using read.flowSet(path = "somedir"). In fact, there was a non FCS hidden file in the dir, which leads to the same error. As read.flowset does not show the file being invalid, it tooks me a few minutes before finding it, as all FCS files were correctly read with read.FCS. Maybe the same problem...
Best,
Samuel

from cytoml.

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024

I tried to trace the error. So I isolated a respective FCS file and the related workspace. Hence I would say this is unlikely. Thanks for your input though.

from cytoml.

SamGG avatar SamGG commented on July 29, 2024

Your OS is MacOS, Linux or Windows?

from cytoml.

Close-your-eyes avatar Close-your-eyes commented on July 29, 2024

MacOS

from cytoml.

SamGG avatar SamGG commented on July 29, 2024

I cannot test this OS.
I don't see why the FCS could be invalid. The raised error depends only checking the first bytes of the file. So very strange.
I would apply list.files() to the directory that contains the FCS files. I think this the same directory as the workspace file. It might be surprising.
What you could try is to add one of the following arguments to https://rdrr.io/bioc/CytoML/man/flowjo_to_gatingset.html():

  • specify the fcs_extension to be "\.fcs$" in case it is currently not strict enough
  • use subset to specify explicitly the FCS files to load (IIUC)
    Hope this help.

from cytoml.

SamGG avatar SamGG commented on July 29, 2024

That's OK to try helping as long as the helpers get some feedback in the end. It's good to keep a track in order to help if the case occurs again.
Your feedback really shows that only basic characters should be used from the very beginning, ie the acquisition.
Thanks for your contribution.

from cytoml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.