eweitz / ideogram

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

Ensure top max-expressing tissue is shown, robustify curve shift #367

Closed eweitz closed 10 months ago

eweitz commented 10 months ago

This ensures the tissue with the maximum expression across all tissues is shown. It also fixes an edge case with reframing.

Previously (#366), the "Reference tissues by expression" list showed the top 10 tissues as sorted only by median. In rare but important cases, this would exclude tissues that had a remarkably high maximum expression for a given gene. Such rare cases can be biologically relevant. For example, the gene XDH is related to milk synthesis, and while it has extremely high maximum expression in the tissue "Breast - mammary gland", its median expression there is very low.

Now, such edge cases are intuitively accounted for. Specifically, if a tissue has the highest maximum expression but isn't among the top 10 tissues by median expression, then the last tissue in that list is replaced by the top max tissue. A brief inspection suggests the top max tissue is usually more biologically relevant than the 10-highest-by-median-expression tissue.

Here's how it looks!

https://github.com/eweitz/ideogram/assets/1334561/4abff785-0a55-40b3-a459-2018f886cc5b