spatialdata-plot icon indicating copy to clipboard operation
spatialdata-plot copied to clipboard

Add a gene_symbols parameter to `render_shapes` and `render_points`

Open grst opened this issue 4 months ago • 2 comments

It would be great to have a gene_symbols argument to render_shapes and render_points, similar to what scanpy has in all (most?) plotting functions.

The goal is being able to use ensembl identifiers are var_names, while retaining the possibility to conveniently make plots by gene symbols, which are stored in another column in adata.var.

Possible alternatives: Instead of passing this to the function call, there could be a per-spatialdata configuration option which columns in .var to lookup when a color is specified.

grst avatar Apr 08 '24 12:04 grst