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

ValueError: IntervalTree: Null Interval objects not allowed in IntervalTree #136

Open
robertwhbaldwin opened this issue Feb 16, 2024 · 1 comment

Comments

@robertwhbaldwin
Copy link

robertwhbaldwin commented Feb 16, 2024

a list of tuples:
[(1234, 4)]

def calc_aln_length( aln_intervals: list[tuple] ) -> int:
itree = IntervalTree.from_tuples(aln_intervals)

produces this error:
ValueError: IntervalTree: Null Interval objects not allowed in IntervalTree: Interval(1234, 4)

What is the problem ? This is not the expected behavior

@robertwhbaldwin
Copy link
Author

robertwhbaldwin commented Feb 16, 2024

nevermind it turns out that the begin and end coords were mixed up as you can see it should have been [(2, 1234)]

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

1 participant