statgen / pheweb

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

Create paged region API #108

Open pjvandehaar opened 6 years ago

pjvandehaar commented 6 years ago
  1. paging: URL /api/region/<phenotype>/chr1-23432-end?max_num_variants=1000 returns {data: [...], next:'/api/region/<phenotype>/chr1-98432-end?max_num_variants=1000'}.

  2. Make a file (and API endpoint) for each phenotype only including pvals < 1e-6.

  3. Make a single file (and API endpoint) for all phenotypes at once only including pvals < 1e-6. (1e-6 is plenty, because: 0.05 / 1000 traits / 1000 variants = 5e-8)