Closed iqbal-lab closed 6 years ago
This has been discussed previously, just wanted an issue so we don't lose it. There might easily be more sophisticated things we might do, either using SDSL or using uint16_t during initial quasimap, and then a larger int when re-mapping (but not at all sure the latter is worth it)
Implemented here: https://github.com/iqbal-lab-org/gramtools/commit/442ddfe7d68fca86ad97a123792673edff815b04
Leaving issue open for a few days.
hey this is exciting
So, we might as well store coverage with a cap, and above that ceiling we don't count. eg use uint16_t, with max 65536.
We did something like this in cortex here: https://github.com/iqbal-lab/cortex/blob/59658afe054e3a4b3854dc57954547be5383a9e9/src/cortex_var/many_colours/element.c#L421
This could save us a lot of RAM.