aertslab / SCope

Fast visualization tool for large-scale and high dimensional single-cell data
GNU General Public License v3.0
69 stars 14 forks source link

Custom colors for annotations #492

Closed dweemx closed 2 years ago

dweemx commented 2 years ago

It would be useful for a user to be able to set custom colors for a given annotation.

The idea would be to extend the JSON metadata with a new colors key:

{
   'name': 'batch', 
   'values': ['0', '1'], 
   'colors': ['#00FF00', '#800080']
}

Each color would be assigned to its respective annotation value (order matters). In this example this would be:

Loom files won't require to have this new colors key in order for SCope to work.

The result would look like: image