GithubHelp home page GithubHelp logo

lisabang / myvariantviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elsiklab/myvariantviewer

0.0 0.0 0.0 752 KB

A JBrowse plugin for viewing info from mygene.info and myvariant.info

JavaScript 100.00%

myvariantviewer's Introduction

myvariantviewer

A JBrowse plugin that fetches info from MyVariant.info, MyGene.info, and CIVIC and displays it.

Example configuration

Fetch genes and variants from hg19:

  {
     "label" : "MyGene.info",
     "storeClass" : "MyVariantViewer/Store/SeqFeature/Genes",
     "urlTemplate" : "http://mygene.info/v2/query?q=hg19.{refseq}:{start}-{end}&fields=all&[email protected]&size=1000",
     "subParts" : [
        "exon"
     ],
     "type" : "CanvasFeatures",
     "hg19" : true
  },
  {
     "label" : "MyVariant.info"
     "storeClass" : "MyVariantViewer/Store/SeqFeature/Variants",
     "urlTemplate" : "query?q={refseq}:{start}-{end}&size=1000&fetch_all=true&[email protected]",
     "baseUrl": "http://myvariant.info/v1/",
     "type" : "CanvasFeatures",
  },
  {
     "label" : "CIVIC",
     "storeClass" : "MyVariantViewer/Store/SeqFeature/CIVIC",
     "type" : "CanvasVariants",
     "onClick": {
         "action": "iframeDialog",
         "url": "https://civicdb.org/events/genes/{gene_id}/summary/variants/{id}/summary"
     }
  },

Also note that a name store can be configured for querying myvariant.info via the search box as well

"names": {
    "type": "MyVariantViewer/Store/Names/REST",
    "url": "http://myvariant.info/v1/query"
}

Only query from a specific data source

Example to only query variants from clinvar (combining the exists-in clinvar query with fields=clinvar return values)

  {
     "storeClass" : "MyVariantViewer/Store/SeqFeature/Variants",
     "baseUrl" : "http://myvariant.info/v1/",
     "urlTemplate" : "query?q={refseq}:{start}-{end} AND _exists_:clinvar&size=1000&fetch_all=true&[email protected]&fields=clinvar",
     "type" : "CanvasFeatures",
     "label" : "MyVariant.info clinvar"
  }

See https://github.com/cmdcolin/myvariantviewer/blob/master/test/ for test data on hg19 and hg38

Screenshots

Figure. Shows the grasp and clinvar specific data tracks.

Notes

Currently tested with v2 and v3 of MyGene.info and v1 of MyVariant.info on hg19 and hg38 builds. See test/hg19 and test/hg38 for sample tracks. Also works with multiple species, see test/danio for example

Demo

https://gmod.github.io/jbrowse-registry/demos/JBrowse-1.12.1/?data=..%2Fmyvariantviewer&tracks=MyGene.info%20v3%2CMyVariant.info%20clinvar&loc=chr17%3A6334006..6348405&highlight=

myvariantviewer's People

Contributors

cmdcolin avatar rbuels avatar

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.