Does anyone have a working version of the nested containment list for Python?
0
0
Entering edit mode
6.0 years ago
endrebak ▴ 960

I am interested in using the nested containment list described in https://www.ncbi.nlm.nih.gov/pubmed/17234640

but the version in the github repo https://github.com/cjlee112/pygr does not seem to build properly. Does anyone have an example project that uses the nested containment list?

nested containment list python • 983 views
ADD COMMENT
0
Entering edit mode

I was able to update it for cython so the installation runs smoothly, but I am still unable to run it. Is it really better or was it just better than the intervaltree implementations back in 2009?

ADD REPLY
1
Entering edit mode

Which version of python are you using? The code is really old - from 2011 - and mentions as requirement "Python >= 2.3", among others. I guess it bit-rotted. Try to use old versions of the requirements packages, you may even have to use some older python version.

edit: by the way, use virtualenv to manage these old, potentially conflicting old packages.

ADD REPLY
0
Entering edit mode

I was able to get it to compile with cython https://github.com/endrebak/pygr

Still cannot get it to work though. Will rather try to write a new wrapper for the C API.

Thanks.

ADD REPLY
0
Entering edit mode

Wow it is fast! Uses about 1/240 of the time to build the structure, even compared to https://github.com/biocore-ntnu/kerneltree !!! Will push a Python wrapper soon.

ADD REPLY

Login before adding your answer.

Traffic: 2799 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6