-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom color schemes #147
Comments
Client-side or server-side? |
Well, it requires a bit of work on both ends, but only in the loom-viewer. It shouldn't be too complicated (see below). The main decision revolves around the best naming and schema convention in the loom file. Actually, the most logical schema also seems self-evident (see below as well), it really boils down to choosing a good name for the convention. We may also want to distinguish categorical maps and scales. Would Color map convention
I think the easiest way (for the user) then is to store an array of strings (when adding one color map), or an array of arrays of strings when using multiple. The number of colors per map may be anything, but users should realise that categorical colors cycle around when exhausted (awaiting future support of multiple shapes in the scatter-plot to complement this) Valid color strings follow the pattern If we want to support named color maps, things would get a bit more difficult. Code-changes in loom-viewerServer-side needs to:
Client side code is set up to make color palettes easy to swap already, so all I need to add is
Aside: we currently don't list any conventions for |
By the way, couldn't we adopt a similar convention for custom gene selection lists? Although I suppose we would like to name those. |
Request by lars :)
Probably a global attribute would be enough. Some convention for a name and then just a list of hex strings would be enough. Multiple color maps should be supported.
The text was updated successfully, but these errors were encountered: