telescope icon indicating copy to clipboard operation
telescope copied to clipboard

TypeError: '<=' not supported between instances of 'int' and 'Interval'

Open zya226 opened this issue 4 years ago • 1 comments

Hi mlbendall,

I had a problem when I was running telescope. Could you please let me know how to solve it?

(from run in telescope_assign.py:197) 2021-02-11 01:21:50 INFO Loading annotation... (from run in telescope_assign.py:205) Traceback (most recent call last): File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/intervaltree/intervaltree.py", line 1039, in getitem start, stop = index.start, index.stop AttributeError: 'Interval' object has no attribute 'start'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/Anaconda/envs_app/telescope/1.0.2/bin/telescope", line 11, in sys.exit(main()) File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/telescope/main.py", line 58, in main args.func(args) File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/telescope/telescope_assign.py", line 207, in run annot = Annotation(opts.gtffile, opts.attribute) File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/telescope/utils/_annotation_intervaltree.py", line 48, in init overlap = self.itree[f.chrom][new_iv] File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/intervaltree/intervaltree.py", line 1048, in getitem return self.at(index) File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/intervaltree/intervaltree.py", line 800, in at return root.search_point(p, set()) File "/usr/local/Anaconda/envs_app/telescope/1.0.2/lib/python3.6/site-packages/intervaltree/node.py", line 297, in search_point if k.begin <= point < k.end: TypeError: '<=' not supported between instances of 'int' and 'Interval'

Thanks, Yong

zya226 avatar Feb 11 '21 17:02 zya226

I get the same error when running telescope and would like help on how to solve this issue.

sanhe374 avatar Sep 01 '23 08:09 sanhe374