statgen / pheweb

A tool to build a website to browse hundreds or thousands of GWAS.
MIT License
158 stars 65 forks source link

Specify exactly which `.fields` to use to LZ. #98

Closed pjvandehaar closed 3 years ago

pjvandehaar commented 6 years ago

(reason: to get rid of the need for https://github.com/statgen/locuszoom/pull/102)

  1. Keep a dictionary: phenotype -> fields needed

  2. Keep an ordered dictionary: field -> template line

  3. When somebody requests a LZ: send along the exact .fields and tooltip_template as "JSON" in the HTML.

  4. When somebody requests a PheWAS: send along the exact .fields (union of all traits) and tooltip_template as "JSON" in the HTML.