Skip to content

Add plot_credible to plot_effects_umap - #1063

Merged
Zethson merged 1 commit into
mainfrom
feat/coda-plot-credible
Aug 4, 2026
Merged

Add plot_credible to plot_effects_umap#1063
Zethson merged 1 commit into
mainfrom
feat/coda-plot-credible

Conversation

@Zethson

@Zethson Zethson commented Aug 4, 2026

Copy link
Copy Markdown
Member

Closes #1025

Cell types without a credible effect carry an effect of exactly zero (this is how credible_effects decides credibility), so they were colored as if a zero effect had been measured.
With plot_credible=True they are masked to NaN and rendered in the na_color of sc.pl.umap, leaving only credible effects colored.

Defaults to False to keep existing plots unchanged.

@Zethson
Zethson force-pushed the feat/coda-plot-credible branch from bf587b2 to cdb44aa Compare August 4, 2026 15:13
@Zethson
Zethson merged commit f0fb6e7 into main Aug 4, 2026
13 of 14 checks passed
@Zethson
Zethson deleted the feat/coda-plot-credible branch August 4, 2026 15:20
@codecov-commenter

codecov-commenter commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.72%. Comparing base (40dfeb6) to head (cdb44aa).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1063      +/-   ##
==========================================
+ Coverage   74.15%   78.72%   +4.56%     
==========================================
  Files          52       52              
  Lines        7291     7286       -5     
==========================================
+ Hits         5407     5736     +329     
+ Misses       1884     1550     -334     
Files with missing lines Coverage Δ
src/pertpy/tools/_coda/_base_coda.py 60.66% <ø> (ø)

... and 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve plot_effects_umap()

2 participants