Comments (6)
if you are able to supply the file you are testing on it may help. i can't reproduce this on my sample file, but don't doubt something could be wrong
the ranges code is definitely one of the more legacy parts of the codebase, i didn't try to refactor it at all when refactoring this module out of our jbrowse 1 codebase so would be happy to review/modernize it at some point
from bbi-js.
any update? having the file may be easiest if you can send it, feel free to email at [email protected]
from bbi-js.
Hi Colin,
Apologies for the delay. We were trying to figure out what was causing the original issue. We found that the files that have the chromosomes sorted lexicographically (i.e., chr1, chr10, chr11) don't have the issue, whereas the ones that have the chromosomes sorted by number (i.e., chr1, chr2, chr3) will show the error.
The ones with the error will have multiple values in recurOffsets
in block-view.js
and will go into the following code:
if (recurOffsets.length > 0) {
cirFobRecur(recurOffsets, level + 1);
}
and inside the method cirFobRecur
, it will reach the union
method that's causing the error:
spans = spans.union(blockSpan);
example_bigwig_sorted_without_error_small.bw.zip
example_bigwig_unsorted_with_error_small.bw.zip
from bbi-js.
thanks for the examples! now that you mention the sorting, I remember that another user ran into this same issue here GMOD/jbrowse-components#4168
from bbi-js.
I published a new version (4.0.4) that appeared to fix the usage for the example file you added. The ranges code was simplified so that it should be less bug prone now. Let me know if that works :)
from bbi-js.
Hi Colin,
That works! Thanks for the quick response and fix :)
from bbi-js.
Related Issues (20)
- Unhandled Rejection (TypeError): fsOpen is not a function HOT 8
- Guaranteed order of returned results
- Proposal: Use async iterator instead of observable
- Example doc? HOT 10
- pre-compile parser objects for performance HOT 4
- Version parsers HOT 3
- Allow accessing zoom level directly instead of via scale/bpPerScale HOT 1
- Method to enumerate all features in BigBed file
- Use generator to emit data as it is received HOT 1
- Aborting not being caught? HOT 1
- RangeError: Trying to access beyond buffer length HOT 4
- Request: iteration function without allocation HOT 5
- Parse/test names index in bigbed HOT 1
- Possible alternative compression support
- ESM export is commonjs HOT 8
- Possible alternative format support
- Improve caching behavior HOT 2
- Error while parsing a custom-format bigbed file HOT 4
- need more doc in readme HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bbi-js.