Coder Social home page Coder Social logo

Comments (6)

dpryan79 avatar dpryan79 commented on August 16, 2024

In fact, the issue is that nperblock is set incorrectly with > 65535 contigs!

from pybigwig.

dpryan79 avatar dpryan79 commented on August 16, 2024

In general, writing doesn't work properly when a non-leaf node for chromosomes is needed.

from pybigwig.

dpryan79 avatar dpryan79 commented on August 16, 2024

The good new is that there can't be more than 4 billion contigs (uin32_t), so a single non-leaf node of size 0xFFFF suffices and we don't need to do multiple levels. The issue was essentially that nperblock was the wrong size, so setting it to -1 was producing an illegal result and the iterator overflowed. In addition, the non-leaf node was never properly constructed to begin with. The modifications should really be tested more, but at least in theory this should fix the issue.

from pybigwig.

dpryan79 avatar dpryan79 commented on August 16, 2024

This apparently makes deepTools happy, but not IGV.

from pybigwig.

dpryan79 avatar dpryan79 commented on August 16, 2024

So IGV is broken because java doesn't do unsigned integers, which exist in every other language. I'll halve my maximum values per leaf...

from pybigwig.

dpryan79 avatar dpryan79 commented on August 16, 2024

The fix36_many_contigs branch should now work in IGV too and generally be a bit more similar to what UCSC is doing (with the exception that I don't use a fixed nperblock of 256, but go up to 0x7FFF). There's currently a limit of ~1 billion contigs, which is a bit artificial when the same library can read up to ~4 billion, but since java-based tools set a limit at ~2 billion contigs (int32_t rather than uint32_t) I guess I'm not alone. I also don't expect anything with more than a billion contigs will ever be created, since it'd be useless to make a bigWig of that.

from pybigwig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.