-
Notifications
You must be signed in to change notification settings - Fork 17
render_labels
and render_shapes
now scan for and respect xyz_colors in adata.uns
#492
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
base: main
Are you sure you want to change the base?
render_labels
and render_shapes
now scan for and respect xyz_colors in adata.uns
#492
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #492 +/- ##
==========================================
- Coverage 83.89% 83.38% -0.51%
==========================================
Files 8 8
Lines 1819 1884 +65
==========================================
+ Hits 1526 1571 +45
- Misses 293 313 +20
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool feature :)
sdata_blobs["other_table"].obs["category"] = sdata_blobs["other_table"].obs["category"].astype("category") | ||
sdata_blobs["other_table"].uns["category_colors"] = ["#800080", "#008000", "#FFFF00"] # purple, green ,yellow | ||
|
||
sdata_blobs.pl.render_labels("blobs_labels", color="category").pl.show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct me if I'm wrong but shouldn't this all be about shapes and not plotting the labels again?
|
||
# Validate na_color format | ||
if "#" not in str(na_color): | ||
logger.warning("Expected `na_color` to be a hex color, converting...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, do we really expect that the user passes a hex?
No description provided.