You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered a ValueError when using pyGenomeTracks for visualizing genomic intervals as part of the SCGLUE regulatory inference tutorial. The specific error is:
ValueError: IntervalTree: Null Interval objects not allowed in IntervalTree: Interval(127522206.5, 127522093.5, [127521981, 127522432, 127522093, 127522094, 0.9112896919250488])
This error seems to arise during the generation of visualization tracks for genomic regions with very short intervals. Here is the context of the tutorial code where the error occurs:
The related entry in the gene2peak.links file is as follows:
Chromosome: chr2
Start1: 127522093
End1: 127522094
Chromosome: chr2
Start2: 127521981
End2: 127522432
Score: 0.91129
The above data represents a very short interval (from 127522093 to 127522094) and a corresponding larger interval (from 127521981 to 127522432). It appears that the midpoint calculation for this interval pair is leading to an inverted interval, where the start is greater than the end, causing the ValueError.
Has anyone been able to successfully run the tutorial without encountering this error? It seems like there could be an issue with how pyGenomeTracks handles the midpoint calculation for very short intervals.
I would appreciate any insights or solutions to this problem. Thank you!
The text was updated successfully, but these errors were encountered:
I suppose this is a duplicate of #52, which should have been fixed in latest versions of pygenometracks. Could you check what version you are using and try upgrading?
Thank you for your prompt attention to this matter. I have submitted a pull request that updates the env.yaml file to include the latest version of pyGenomeTracks. This should facilitate a smoother experience for others when running the tutorial by circumventing the ValueError related to interval handling. I hope this update will be beneficial for all users working through the tutorial.
Hello,
I've encountered a
ValueError
when usingpyGenomeTracks
for visualizing genomic intervals as part of the SCGLUE regulatory inference tutorial. The specific error is:This error seems to arise during the generation of visualization tracks for genomic regions with very short intervals. Here is the context of the tutorial code where the error occurs:
The related entry in the
gene2peak.links
file is as follows:The above data represents a very short interval (from 127522093 to 127522094) and a corresponding larger interval (from 127521981 to 127522432). It appears that the midpoint calculation for this interval pair is leading to an inverted interval, where the start is greater than the end, causing the
ValueError
.Has anyone been able to successfully run the tutorial without encountering this error? It seems like there could be an issue with how
pyGenomeTracks
handles the midpoint calculation for very short intervals.I would appreciate any insights or solutions to this problem. Thank you!
The text was updated successfully, but these errors were encountered: