Comments (5)
Right now, the two that LocusZoom will be consuming are:
- http://browser.sph.umich.edu/api/coverage/region/22-46546715-46615880
- http://browser.sph.umich.edu/api/variants_in_region/22-46546715-46615880
Maybe later we'll do something like:
- http://browser.sph.umich.edu/api/coverage/region/22-46546715-46615880?attributes=pos,cadd_phred&view=exome_utrs
- http://browser.sph.umich.edu/api/variants_in_region/22-46546715-46615880?attributes=start,end,median&consequence=lof&view=exome
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.
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.
That makes sense. I'm happy with that.
from locuszoom.
@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.
I've added some basic documentation about how data sources work and how to create custom sources.
from locuszoom.
Related Issues (20)
- Update docs for pre-release 14
- LocusZoom.js - Unable to use custom adapter for LocusZoom data source HOT 7
- Missing SNP but LD pattern present HOT 1
- Show fewer labels for GWAS catalog view
- Zoom/scroll events not firing in safari
- Improve rendering and readability of labels
- Is it possible to reference custom data fields in the LocusZoom tooltip? HOT 4
- Widget `zoom_region` fails HOT 12
- Error if `region_nav_plot` is attached to a panel rather than the plot HOT 7
- Resulting SVG has black background during conversion to PDF HOT 3
- [Question] Update a `set_state` widget value when the state changes HOT 5
- TypeScript types HOT 3
- Floating point error with high -log10 p-values? HOT 3
- JS formatter HOT 2
- Manhattan plot and LocusZoom plot on the same page HOT 1
- Missing SNP HOT 2
- Can't compile LocusZoom with `npm run build` HOT 2
- Is possible to load local burden test by locuszoom.js ? HOT 5
- UMich SPH server is down? HOT 5
- Inconsistent gene names found in UMich data API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from locuszoom.