Code Monkey home page Code Monkey logo

Comments (6)

eyurtsev avatar eyurtsev commented on August 14, 2024

Could you attach your FCS file, so I could debug?

Could you also confirm that you're using using python 2.7 rather than python >3?

At the command terminal you can type the following:

python --version

from flowcytometrytools.

JLautin avatar JLautin commented on August 14, 2024

I'm running Python 2.7.10 64-bit on a mac (os x Yosemite).

I've attached a zipped file below, since it didn't support to attach .fcs files. Hope it doesn't mess with your AV too much.

Regards
JLautin
LMO_bacteria.fcs.zip

from flowcytometrytools.

eyurtsev avatar eyurtsev commented on August 14, 2024

Thanks! I will take a look at this over the weekend.

On Thu, Dec 17, 2015 at 9:28 AM, JLautin [email protected] wrote:

I'm running Python 2.7.10 64-bit on a mac (os x Yosemite).

I've attached a zipped file below, since it didn't support to attach .fcs
files. Hope it doesn't mess with your AV too much.

Regards
JLautin
LMO_bacteria.fcs.zip
https://github.com/eyurtsev/FlowCytometryTools/files/65467/LMO_bacteria.fcs.zip


Reply to this email directly or view it on GitHub
#9 (comment)
.

Eugene Yurtsev

Personal Website: http://eyurtsev.mit.edu

from flowcytometrytools.

eyurtsev avatar eyurtsev commented on August 14, 2024

Looks like this is caused by an issue with numpy numpy/numpy#2407

I'll try and release a fix within the next few days

If you need a fix quicker than that you can try and do the following:

  1. locate the directory for the fcsparser package
import fcsparser
fcsparser.__path__
  1. go to that directory and open api.py

  2. Make the following change in the code:

@@ -353,7 +353,8 @@ class FCSParser(object):
             # values saved in mixed data formats
             dtype = ','.join(par_numeric_type_list)
             data = numpy.fromfile(file_handle, dtype=dtype, count=num_events)
-            data.dtype.names = self.get_channel_names()
+            names = self.get_channel_names()
+            data.dtype.names = [name.encode('ascii', errors='ignore') for name in names]
         else:
             # values saved in a single data format
             dtype = par_numeric_type_list[0]

where a (-) is remove, and a (+) is add

from flowcytometrytools.

eyurtsev avatar eyurtsev commented on August 14, 2024

Fixed in this commit: eyurtsev/fcsparser@398b6b0

Please install the newest version of fcsparser (and FlowCytometryTools)

pip install fcsparser==0.1.2
pip install FlowCytometryTools==0.4.5

from flowcytometrytools.

JLautin avatar JLautin commented on August 14, 2024

Thank you for solving it!

/JLautin

from flowcytometrytools.

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.