eweitz / ideogram

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

Refine annotation labels: better algorithms for sorting and overlap #296

Closed eweitz closed 2 years ago

eweitz commented 2 years ago

This refines the layout algorithm for annotation labels, for more relevant sorting and more precise overlap calculations. It builds on #295. Examples below highlight how this enriches the related genes kit.

Example

Previous unrefined label sorting: RAD52 was preferentially labeled, but much less well-known than the unlabeled BRCA2.

0_Unrefined_label_sorting_RAD51__Ideogram_2022-03-09

New refined label sorting: BRCA2 is much more popular than RAD52, and now labeled instead.

1_Refined_label_sorting_RAD51__Ideogram_2022-03-09

Also new, hovering over the full gene name shows the gene's rank, using popularity data from Gene Hints.

2_Gene_interest_rank_BRCA2__Ideogram_2022-03-09

Another example

Excessive padding in overlap calculations hid important genes. Now, nearby genes like LDLR can be shown without colliding.

3_Unrefined_label_sorting_APOE__Ideogram_2022-03-09 4_Refined_label_sorting_APOE__Ideogram_2022-03-09
coveralls commented 2 years ago

Coverage Status

Coverage decreased (-0.5%) to 88.426% when pulling aeb966f5c6458ff4691ea1370c1dc6b5230b5908 on label-sort-overlap into 8586f29fa9531a1cd6d59322fedc5c29bfc61bb6 on master.