docs(plotting): add inline plot example for highest_expr_genes#4025
Merged
flying-sheep merged 3 commits intoscverse:mainfrom Apr 7, 2026
Merged
docs(plotting): add inline plot example for highest_expr_genes#4025flying-sheep merged 3 commits intoscverse:mainfrom
highest_expr_genes#4025flying-sheep merged 3 commits intoscverse:mainfrom
Conversation
…ghly_variable_genes Add ``.. plot::`` directive examples to the docstrings of: - ``sc.pl.highest_expr_genes``: default usage and n_top=10 - ``sc.pl.highly_variable_genes``: default usage and log=True These are two of the remaining unchecked items from scverse#1664.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4025 +/- ##
==========================================
- Coverage 78.51% 78.06% -0.46%
==========================================
Files 117 117
Lines 12753 12753
==========================================
- Hits 10013 9955 -58
- Misses 2740 2798 +58
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Member
|
hi, thank you for your contribution! @Ekin-Kahraman had the same idea for hvg, but uses the usual preprocessing, so I’ll merge both PRs. |
highest_expr_genes
meeseeksmachine
pushed a commit
to meeseeksmachine/scanpy
that referenced
this pull request
Apr 7, 2026
… `highest_expr_genes`
flying-sheep
pushed a commit
that referenced
this pull request
Apr 7, 2026
…xample for `highest_expr_genes`) (#4035) Co-authored-by: haoyu-haoyu <85037553+haoyu-haoyu@users.noreply.github.com>
56 tasks
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.
Summary
Add
.. plot::directive examples to the docstrings of two plotting functions that were missing inline examples:sc.pl.highest_expr_genes: default usage andn_top=10variantsc.pl.highly_variable_genes: default usage andlog=TruevariantThese are two of the remaining unchecked items from #1664.
Pattern
Follows the established pattern from existing inline examples (e.g.,
pca_loadings,rank_genes_groups_heatmap):sc.datasets.pbmc3k_processed():context: close-figsdirective optionRef #1664