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
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