gene.iobio
gene.iobio copied to clipboard
Clinvar variants track reverts back to counts when switching between genes
When displaying Clinvar variants, if you click a gene card again (same gene or another gene) it reverts back to counts, not variants. Once counts (or variants) is set, we probably want to keep it at that view, not have it always revert back to counts.
I think we discussed this before, but don't really remember. I think the rationale was that if you choose another gene that is really large, loading the variants could take a long time and it's a lot quicker to just load the counts. Matt's point is valid, but not sure if it is preferable given the load times?
Gene.iobio now has a hash of Clinvar counts by gene, which is used to be only retrieve the clinvar positions of interests when dealing the the uber catalogued genes in Clinvar. This hash could be used to only switch back to showing counts on these small number of hefty genes.