farhat-lab / gentb-site

The genTB project, the Django site, variant calling and prediciton pipeline, and mapping pipeline with hooks to two ravens
https://gentb.hms.harvard.edu
Other
8 stars 11 forks source link

Display probability instead of binary resistance value when hovering over drug heatmap #255

Closed mgro closed 2 years ago

mgro commented 3 years ago

It would be great if instead of the binary resistance value (1 or 0, according to which the heatmap is colored) we would see the probability value (the last item in the list of drug-lists in the JSON).

So the heatmap is colored according to binary resistance 1 or 0, but shown is the probability.

Screen Shot 2021-08-24 at 11 34 45 AM
doctormo commented 3 years ago

I've implemented a more robust parser and added a test suite which covers more of the code. This should stabilize our implementation more and allow us to add the extra format requested here.

Please append to this issue the json files for the the format required.

mgro commented 3 years ago

See here the 'old' format currently in use by the default pipeline, that is not featuring the binary resistance number: pipeline_2.1._old_format.txt

This will be the new default, featuring an additional item in the drug-lists (binary resistance and probability of resistance): pipeline_2.2_new_format.txt

doctormo commented 2 years ago

This is now done, where there is a prediction format.