Skip to content

Conversation

@giovanamotta
Copy link

This PR adds values_to_plot support for rank_genes_groups_matrixplot and rank_genes_groups_heatmap, addressing issue #3842.

I implemented a small wrapper module (_rank_genes_groups.py) that extracts the selected differential expression metric (scores, logfoldchanges, pvals, or pvals_adj) from adata.uns['rank_genes_groups'] and passes it to MatrixPlot / Heatmap via values_df.

No changes were required to the plot base classes; the new functions simply reuse the existing engines (matrixplot, heatmap, dotplot). This keeps the PR minimal and adds full parity with the existing dotplot behavior.

@giovanamotta giovanamotta marked this pull request as draft November 25, 2025 22:13
@giovanamotta giovanamotta marked this pull request as ready for review November 25, 2025 22:13
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.

Support values_to_plot in pl.rank_genes_groups_matrixplot and pl.rank_genes_groups_heatmap (parity with dotplot)

1 participant