Giter VIP home page Giter VIP logo

Comments (5)

pjvandehaar avatar pjvandehaar commented on August 16, 2024

Right now, the two that LocusZoom will be consuming are:

Maybe later we'll do something like:

consequence= and view= filter which results will be returned, and attributes= filters the attributes those results will have. I can't think of other parameters that we'll ever need, but some might come up for new graphs. I'm planning to fool around with these kinds of graphs in the next couple weeks, so maybe I'll know soon.

I'll probably need to make a genes API as well.

Flask plays nicely with delimiting variables by slashes, so that's what I do. If you want to stick to the current structure, it should be easy enough to implement.

from locuszoom.

Frencil avatar Frencil commented on August 16, 2024

Update: so with discussion it looks like our approach for now is to not worry too much about making the getURL() method (or data source end point URL composition) more generic, but instead have implementers of the plugin define their own custom getUrl() methods to suit their needs.

I've changed the tags on this issue then to mark it as a Documentation need.

from locuszoom.

pjvandehaar avatar pjvandehaar commented on August 16, 2024

That makes sense. I'm happy with that.

from locuszoom.

Frencil avatar Frencil commented on August 16, 2024

@MrFlick - just poking this issue. The documentation has matured considerably to keep pace with how the layout concept has matured, but data sources documentation is still missing.

The need for this came up this week when trying to build a new data source for fetching PheWAS data for individual variants. @pjvandehaar and I came up with a workable solution (code here), but it doesn't use LocusZoom.DataSources.prototype.addSource() to create it. Instead it adds the new data source the same way the existing data sources are defined. Maybe we just need to sit down some time and iterate over Data.js in general? Either way, I want to figure out the right way to build new data sources now that we've effectively done it four times, get it into the documentation, and hopefully iterate over the workflow to make the syntax as clear and intuitive as possible.

from locuszoom.

MrFlick avatar MrFlick commented on August 16, 2024

I've added some basic documentation about how data sources work and how to create custom sources.

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.