Closed Naghipourfar closed 6 years ago
Hi @Naghipourfar, thanks for getting in touch about your issue. So that I can best help you, can you please provide information on:
I'm using python 3.6, conda 4.5.0. The data is from here (read count).
Aha; cmapPy doesn't have Python 3 compatibility yet, so I'm pretty sure that's actually what's causing your issue. I'd install Python 2.7.11 in your conda environment, that should fix your issue. Additional information on the recommended conda environment can be found here.
Yes, that is the problem. Thanks for your help. I was wondering about the time that cmapPy will be compatible with Python 3. Is it soon?
No problem! Glad that fixed it.
And I'd like for Python 3 compatibility to be added soon but unfortunately can't give you a specific timeline at the moment. You're welcome to contribute though :)
Hi, I wanted to parse a sample gct file but there is a bug in the source code which causes an exception while parsing the file. The function
read_version_and_dims()
in parse_gct.py, there is a problem in its implementation. It opens the file in binary mode, so theversion = f.readline().strip().lstrip("#")
will make error. I reckon that if you open the file in non-binary mode, it will be solved. The exception is : TypeError: a bytes-like object is required, not 'str' when writing to a file