eweitz / ideogram

Chromosome visualization for the web
https://eweitz.github.io/ideogram
Other
288 stars 72 forks source link

Prioritize popular genes, reduce overcrowding while increasing threshold #288

Closed eweitz closed 2 years ago

eweitz commented 2 years ago

This refines the related genes kit.

Prioritize popular genes

It incorporates data from Gene Hints on which genes are most popular, as measured by page views in Wikipedia or citations in PubMed. This data on interesting genes is used to sort the gene cache.

Reduce overcrowding while increasing threshold

Only the 20 top genes per that new ranking are labeled. However, up to 40 genes are shown, theoretically doubling previous threshold of 20. Additionally, labels that would occur within 5 pixels of other labels are now hidden.

Here are some examples of how these changes refine "Related genes" example.

YES1

Old:

YES1_related_genes_old__Ideogram_2021-12-01

New:

YES1_related_genes_new__Ideogram_2021-12-01

CDK15

Old:

CDK15_related_genes_old__Ideogram_2021-12-01

New:

CDK15_related_genes_new__Ideogram_2021-12-01

This also updates dependencies, and reverts use of optional chaining, which can break code that imports Ideogram.