Skip to content

Comments

Barplot rework#186

Merged
casblaauw merged 9 commits intov2.0from
bar_rework
Feb 9, 2026
Merged

Barplot rework#186
casblaauw merged 9 commits intov2.0from
bar_rework

Conversation

@casblaauw
Copy link
Collaborator

Rework the barplot logic (for what I think is the third time), but now I think I'm finally happy with it.

This integrates region and region_predictions into one function. There's just one function now, provisionally called scores (but to be renamed in #183), which can take one or multiple targets. I'd already considered making 'region' support multiple model_names like other functions anyway, and when renaming I couldn't find a good name that distinguished region_predictions from region, a sign that the functions overlapped too much.

By default (targets=None), it plots ground truth + all predictions akin to region_predictions, but scores(targets='truth'/'model_name') to gets you back to plotting a specific one. You can of course also plot only the prediction layers (scores(targets=adata.layers.keys())), plot a subset of the targets, plot them in a different order, etc etc.

region, region_predictions and prediction stubs are left as wrappers to match the old behavior, with deprecation notices pointing people to scores (or the new name once it's renamed).

@casblaauw casblaauw merged commit d42ce38 into v2.0 Feb 9, 2026
1 check passed
@casblaauw casblaauw deleted the bar_rework branch February 9, 2026 13:57
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.

1 participant