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

Post-hoc residue numbering adjustments #605

Closed atc3 closed 1 year ago

atc3 commented 1 year ago

Some gene residues are conventionally numbered starting from the signal peptide cleavage site (i.e., flu HA). Add a property in the genes.json definition file to set a new zero - so that residues to the left are negative.

To minimize changes necessary - it would be easiest to do this as a cosmetic change on the JS side -- simply adjust the residue numbers before the mutation is displayed. Modifying the underlying data is possible but would require adjust a lot of our DNA --> AA translation code (both in python and JS).

Downside to UI only -- downloaded data will be different from the data on the site, and we'll have to make it clear that residue adjustments are happening. OR, add the residue adjustment logic to the API endpoints