Giter Club home page Giter Club logo

Comments (7)

jrobinso avatar jrobinso commented on August 16, 2024 1

from igv.js.

jrobinso avatar jrobinso commented on August 16, 2024

Unfortunately we can no longer support htsget as there are no reference test servers available, and the project itself does not seem to be active. For example this ticket has been open for more almost 3 years, in fact there are no project updates in three years: ga4gh/htsget-refserver#33.

That said, your change should not affect any other code negatively so I would accept is as a PR. I'm in general hesitant to accept PRs that I cannot personally test, but will make an exception in this special case.

from igv.js.

jmgenomics avatar jmgenomics commented on August 16, 2024

Thanks @jrobinso, happy to raise a PR for this. I'm ready to push my branch - can you add me as a collaborator to the repo please?

from igv.js.

jrobinso avatar jrobinso commented on August 16, 2024

@jmgenomics You don't need to be a collaborator to submit a PR.

from igv.js.

jrobinso avatar jrobinso commented on August 16, 2024

BTW the chr alias table is important and should not be removed. Without it files aligned to a reference with UCSC naming conventions ("chr1", etc) cannot be read if the loaded reference uses the other convention ("1", etc).

This is also the reason the header is read first. It allows the chr alias table to be built. Without this the query for alignments will fail if there is a mismatch in the chr naming convention.

I don't understand why the code as-is fails unless the server has not implemented the "class=header" query, in which case the server is non-conforming. What is your server returning for the "readHeader" method, implementation below.

    async readHeaderData() {
        const url = `${getUrl(this.config)}?class=header&format=${this.format}`
        const ticket = await igvxhr.loadJson(url, buildOptions(this.config))
        return await this.loadUrls(ticket.htsget.urls)
    }

For these reasons I could not accept this change as a PR. Sorry I just gave it a cursory glance earlier, I should have looked in more detail.

from igv.js.

jmgenomics avatar jmgenomics commented on August 16, 2024

Our Htsget server does support header queries and the data returned appears to be ok.

I think the issue with header.chrAliasTable being undefined may be due to bamUtil.js::decodeBamHeader(). It declares chrAliasTable but never assigns to it after that?

from igv.js.

jmgenomics avatar jmgenomics commented on August 16, 2024

I looked back into the code history and found statements from the last working version that had been removed wrt population of chrAliasTable.

I have raised a PR for your consideration.

from igv.js.

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.