Giter VIP home page Giter VIP logo

Comments (3)

Frencil avatar Frencil commented on August 16, 2024

Update: upon further discussion while we would still benefit from a DefaultDataSources object it would be more practical to have this be populated with reliable statgen API endpoints.

from locuszoom.

Frencil avatar Frencil commented on August 16, 2024

2017 Update

This is an older issue but it still holds that LocusZoom.js lacks an obvious approach to working with local files. However, it's not impossible:

apiBase = window.location.origin + window.location.pathname.substr(0, window.location.pathname.length - "demo.html".length) + "staticdata/";
data_sources = new LocusZoom.DataSources()
    .add("assoc", ["AssociationLZ", {url: apiBase + "assoc_10_114550452-115067678.json?", params: {analysis: 3, id_field: "variant"}}])
    .add("ld", ["LDLZ", { url: apiBase + "ld_10_114550452-115067678.json?" }])
    .add("gene", ["GeneLZ", { url: apiBase + "genes_10_114550452-115067678.json?" }])
    .add("recomb", ["RecombLZ", { url: apiBase + "recomb_10_114550452-115067678.json?" }])
    .add("constraint", ["GeneConstraintLZ", {  url: apiBase + "constraint_10_114550452-115067678.json?" }]);

As of v0.5.6 this approach is demonstrated in index.html using local files.

While this is demonstrated in the repo currently it's not clear that it's there. This issue is resolved when this is documented in the README in the repo as well as on the wiki.

from locuszoom.

Frencil avatar Frencil commented on August 16, 2024

Update: README and Wiki updated, repo example tuned up. Good enough for now!

from locuszoom.

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.