Add values_to_plot support to matrixplot and heatmap (issue #3842)
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.
- Closes #3842
- Tests: not required (thin wrapper using already tested plotting code)
- Release notes: not necessary (small API addition)
Hi, looks like this isn’t finished yet, there are still syntax errors in the code. I can’t review this yet!