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

dnase_wig_tracks.py crushes - python3 #31

Closed
mcjmigdal opened this issue Feb 28, 2018 · 2 comments
Closed

dnase_wig_tracks.py crushes - python3 #31

mcjmigdal opened this issue Feb 28, 2018 · 2 comments
Assignees

Comments

@mcjmigdal
Copy link

mcjmigdal commented Feb 28, 2018

Hi, apparently dnase_wig_tracks.py python3 version crushes. Python says the reason is that GenomicInterval objects canot be compared to each other. Indeed I can't find any internal method for such comaprison in pyDNase package. In package for python2 it works however but I can't figure where it's defined. Could you give me a hint on that?
Thx!

>>> import pyDNase
>>> regions = pyDNase.GenomicIntervalSet("some.bed")
Reading BED File...
[################################] 39169/39169 - 00:00:01
>>> for each in [item for sublist in sorted(regions.intervals.values()) for item in sorted(sublist, key=lambda peak: peak.startbp)]:
...     continue
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: GenomicInterval() < GenomicInterval()
@jpiper
Copy link
Owner

jpiper commented Mar 24, 2018

Can you try upgrading (pip install -u pyDnase) and see if the error is still there?

jpiper added a commit that referenced this issue Mar 29, 2018
@mcjmigdal
Copy link
Author

Works! Nicely done thanks

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

2 participants