Giter Site home page Giter Site logo

Comments (3)

kortschak avatar kortschak commented on September 28, 2024

Can you post a reproducer of the code that is failing for you and a minimal input data set? Please ensure that you are checking the error returned by idx.Chunks. internal.Index.Chunks should not return a nil []bgzf.Chunk without an error, but I suspect that it does in this case.

from hts.

kortschak avatar kortschak commented on September 28, 2024

Sorry, I misread what you are worried about. It is not possible to return a nil []bgzf.Chunk without saying why. If you use a nil []bgzf.Chunk as a parameter to bgzf.Reader.SetChunk it removes the chunk limitation on the reader which Iterator behaviour is based on. The invalid interval error is not hard (maybe it should have just used io.EOF, but it's done now), and it just there to inform the caller that the returned []bgzf.Chunk should not be used. idx.Chunks returns an error, this is documentation that it may fail and that the error should be checked before the returned []bgzf.Chunks is used.

from hts.

kortschak avatar kortschak commented on September 28, 2024

Are you satisfied with the answer above? If not, please respond, otherwise I'll close this as invalid in the next few days.

from hts.

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.