docs: update 'Plotting with Marsilea' in how-to - #4311
Open
Mr-Milk wants to merge 1 commit into
Open
Conversation
Rewrite the how-to against the anndata.acc reference API added in marsilea 0.8. The AnnData binds to the board once and arrays are named with `A`, rather than pulled out by hand. Group order comes from the pandas categories, so most `order=` arguments are no longer needed. Add two sections: significance annotation with `annotate_stats`, and combining boards with `+`. Fix three things that were broken on the published page: - the stacked violin raised `ValueError` from `zip(..., strict=True)` - the tracksplot had no gene labels, its annotation board was created and never filled - the tracksplot and stacked violin outputs predated their source, so the published figures did not match the published code Replace `session_info` with `sc.logging.print_header()`, matching the other how-tos. Requires marsilea >= 0.8.1.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4311 +/- ##
==========================================
+ Coverage 80.01% 80.06% +0.05%
==========================================
Files 132 133 +1
Lines 13397 13406 +9
==========================================
+ Hits 10719 10733 +14
+ Misses 2678 2673 -5
Flags with carried forward coverage won't be shown. Click here to find out more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As discussed with @flying-sheep in scverse/ecosystem-packages#398, Marsilea now supports the accessor syntax for anndata. So I updated the notebook to incorporate the newest changes.
The old notebook was run on Marsilea 0.3.x and three examples are broken. These are also fixed.
Two new sections on significance annotation and combining plots are added.
Replace
session_infowithsc.logging.print_header(), matching the other how-tos.