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

Migrate VOCs from `static_data` to `data` #450

Closed atc3 closed 2 years ago

atc3 commented 2 years ago

Currently VOCs are embedded into the source code the site itself, meaning that VOCs don't get updated unless the source code does too. We should move VOCs into the database.

  1. VOC snakemake rules output to the data folder instead the static data folder
    • Make new folder inside data/ folder called VOCs/, put all JSONs there
  2. Add VOCs to jsons table, modify seed database function
    • Only need upload the master file vocs.json, don't need to upload individual agency files
    • Modify db_seed/seed.py to add vocs.json to the jsons table
  3. Adapt VOCList component to use vocs.json (accessible from asyncDataStore) instead of loading from static_data