jpiper / pyDNase

Python module for the easy handling and analysis of DNase-seq data
http://jpiper.github.io/pyDNase
MIT License
37 stars 24 forks source link

pyDNase not compatible with Python 2.6.6 #1

Closed akjohnson closed 10 years ago

akjohnson commented 10 years ago

So, the documentation here says Python >= 2.6:

http://pythonhosted.org/pyDNase/installation.html#pre-installation-requirements

However, trying to import pyDNase in Python 2.6.6 gives the following syntax error:

import pyDNase
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "pyDNase/__init__.py", line 58
   self.cutCache    =  {i:{"+":{},"-":{}} for i in self.samfile.references}
                                            ^
SyntaxError: invalid syntax

I don't know if you prefer to change the documentation or the code, but either would be sufficient I think!

jpiper commented 10 years ago

Thanks for the bug report, Audra. This was actually my fault, the documentation should have stated 2.7. However, considering that I've now had two people come to me with this, I've pushed version 0.1.1 (aa94ae091e3c5ac658698e844f61e7e47dc84fea) , rewriting the 2.6-incompatible code. I think I've caught it all, although my test coverage isn't amazing so there might be a few bugs.

Hope this helps!