vector-engineering / covidcg

A COVID-19 CoV Genetics (CG) browser to inform therapeutics development
https://covidcg.org
MIT License
26 stars 5 forks source link

Add AZ report endpoint #355

Closed atc3 closed 3 years ago

atc3 commented 3 years ago

Generate a Spike mutation and lineage report

This report will consist of: 1) Single Spike SNV frequencies, both global and regional 2) Co-occurring Spike SNV frequencies, both global and regional 3) PANGO lineage frequencies, both global and regional

Fetch the more complex data (regional data) from the database, and then from this compute the global counts in python. Format the regional tables as pivot tables, and do this in python, since crosstab() in Postgres makes me sad

Start and end dates are passed via. URL query params Download the full excel file with: curl http://[host]/az_report?start_date=YYYY-MM-DD&end_date=YYYY-MM-DD -o out.xlsx Dates are in ISO format "YYYY-MM-DD"