A JBrowse plugin for viewing info from mygene.info and myvariant.info
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit 279c270 Mar 17, 2017

README.md

myvariantviewer

A JBrowse plugin that fetches info from MyVariant.info and MyGene.info and displays them.

Example configuration

Fetch genes and variants from hg19:

  {
     "storeClass" : "MyVariantViewer/Store/SeqFeature/Genes",
     "urlTemplate" : "http://mygene.info/v2/query?q=hg19.{refseq}:{start}-{end}&fields=all&email=colin.diesh@gmail.com&size=1000",
     "subParts" : [
        "exon"
     ],
     "type" : "CanvasFeatures",
     "label" : "MyGene.info",
     "hg19" : true
  },
  {
     "storeClass" : "MyVariantViewer/Store/SeqFeature/Variants",
     "urlTemplate" : "query?q={refseq}:{start}-{end}&size=1000&fetch_all=true&email=colin.diesh@gmail.com",
     "baseUrl": "http://myvariant.info/v1/",
     "type" : "CanvasFeatures",
     "label" : "MyVariant.info"
  }

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=colin.diesh@gmail.com&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=