elsiklab / gwasviewer

A JBrowse plugin for viewing GWAS data
11 stars 0 forks source link

gwasviewer

A JBrowse plugin that adds some custom glyphs for variants and GWAS data

Options

Fetch API options

Notes

Example configuration

Using the "BEDTabix" class

  {
     "maxFeatureScreenDensity": 6,
     "storeClass" : "JBrowse/Store/SeqFeature/BEDTabix",
     "urlTemplate" : "HDL_pval_name.sort.bed.gz",
     "label" : "HDL_pvals",
     "type" : "GWASViewer/View/Track/VariantPlotter"
  }

Using a track loaded with flatfile-to-json.pl (GWASViewer can load GFF file with scores, or a BED with a score column)

  {
     "maxFeatureScreenDensity": 6,
     "storeClass" : "JBrowse/Store/SeqFeature/NCList",
     "urlTemplate" : "tracks/HDL_pval_name/{refseq}/trackData.json",
     "label" : "HDL_pvals",
     "type" : "GWASViewer/View/Track/VariantPlotter"
  }

Note you can use flatfile-to-json.pl with --trackType "GWASViewer/View/Track/VariantPlotter" to automatically set this up

Screenshot

Basic GWASViewer track

Shows track with useEnsemblR2 enabled, which fetches R^2 from Ensembl for variants in linkage with a variant that is clicked (pink diamond)

Install

Still in beta! Feel free to provide feedback

Test data

Test GWASViewer tracks are in the test/data/ directory, visit http://localhost/jbrowse/?data=plugins/GWASViewer/test/data or similar to view