linnarsson-lab / loom-viewer

Tool for sharing, browsing and visualizing single-cell data stored in the Loom file format
BSD 2-Clause "Simplified" License
35 stars 6 forks source link

Sparkline enhancements #61

Open JobLeonard opened 8 years ago

JobLeonard commented 8 years ago
JobLeonard commented 7 years ago

Working on a simple way to group sparklines, but it has some warts to work out:

image

JobLeonard commented 7 years ago

OK, we have three different but overlapping features that interact in a way that makes them very confusing at the moment:

These all have different interactions. Legend and sorting for example:

Original order: image

Louvain-Jacard: image

Louvain-Jacard, Cdk1: image

Louvain-Jacard, Top2a: image

Louvain-Jacard, Top2a, Cdk1 image

Louvain-Jacard, Cdk1, Top2a: image

(this used to be a bigger issue when we only had heatmap plots)

Clearly grouping and sorting are related: we first group, then we sort within the groups.

Grouping and legend can become confusing if we group by one attribute, but use a different one for the legend. There may be situations where this is useful (say, group by cluster, but use tissue as the legend to see how the clustering worked out), but I think it makes more sense to tie grouping and legend to the same attribute.

groupby

Another issue is that sometimes we have a lot more groups than twenty. The OligosAll set has 266 clusters. Below is the result of gouping the first 100, and putting the rest in an "other" group:

image

One quick fix is to combine every group after the first twenty groups into one "other" group:

image

It doesn't really feel satisfactory though, especially since we currently only show the twenty biggest groups. So this needs to be reworked.