Repository navigation
feat: add anndata.acc support to mask params - #4333
Merged
Merged
Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4333 +/- ##
==========================================
- Coverage 81.98% 81.92% -0.06%
==========================================
Files 134 134
Lines 13235 13027 -208
==========================================
- Hits 10851 10673 -178
+ Misses 2384 2354 -30
Flags with carried forward coverage won't be shown. Click here to find out more.
|
ilan-gold
reviewed
Sep 4, 2026
ilan-gold
approved these changes
Sep 10, 2026
Intron7
added a commit
to scverse/rapids-singlecell
that referenced
this pull request
Nov 8, 2026
Port scverse/scanpy#4333: pp.pca takes `mask` with anndata.acc references and deprecates `mask_var`; pca, scale and rank_genes_groups share one `_mask_arg`, the PCA mask is stored in `.uns` as scanpy stores it, and ingest reads that form. Signed-off-by: Intron7 <[email protected]>
Intron7
added a commit
to scverse/rapids-singlecell
that referenced
this pull request
Nov 11, 2026
* Adopt scanpy's use/out parameters in pp, tl and get Match scanpy 1.13 (scverse/scanpy#4359): `use` names where a function reads from (an anndata.acc accessor or its string form) and `out` where it writes (False for the default place, True to return the result, an accessor, or a mapping for functions with several outputs). Functions with several outputs return a ...Result NamedTuple for out=True and take a ...Out TypedDict. Groupings and covariates take refs such as A.obs["batch"]. Deprecate layer, obsm, use_rep, use_raw, neighbors_key, obsp, adjacency, key_added, batch_key, inplace and copy as scanpy does; filter_cells and filter_genes keep copy. Signed-off-by: Intron7 <[email protected]> * Add PR number to release notes Signed-off-by: Intron7 <[email protected]> * Fix docs build for the use/out output types Signed-off-by: Intron7 <[email protected]> * Match scanpy's calculate_qc_metrics preset default and umap rep Signed-off-by: Intron7 <[email protected]> * Fix scanpy-main compat and sparse score_genes with duplicate var_names Signed-off-by: Intron7 <[email protected]> * Explain use/out and the calculate_qc_metrics default in the skill Signed-off-by: Intron7 <[email protected]> * Rename mask_var/mask_obs to mask in pca, as scanpy does Port scverse/scanpy#4333: pp.pca takes `mask` with anndata.acc references and deprecates `mask_var`; pca, scale and rank_genes_groups share one `_mask_arg`, the PCA mask is stored in `.uns` as scanpy stores it, and ingest reads that form. Signed-off-by: Intron7 <[email protected]> * Fix review findings for use/out - normalize_total: norm_factor on sparse and dense Dask input; results not written back to their source no longer modify it - anndata 0.12/0.13.0-0.13.2: guard the anndata.acc imports and resolve(vec=...), with a compat test that hides anndata.acc - scale(inplace=False) returns the matrix again - regress_out: ndarray/Index keys and vectors held on the GPU - normalize_shifted_clr(inplace=False) rejects a conflicting out - use=A.obsm["X"] no longer falls back to adata.X - embedding_density: reject non-obsm use and non-categorical groupby for out=True - mixscape: the PCA recompute rewrites uns as well - HVG and scrublet with use= no longer rebuild obs_names or copy the whole AnnData - release notes for the normalize_total, neighbors/bbknn and draw_graph alignments with scanpy Signed-off-by: Intron7 <[email protected]> * Test harmony_integrate with a list of batch accessors Signed-off-by: Intron7 <[email protected]> --------- Signed-off-by: Intron7 <[email protected]>
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.
TODO:
_mask_argwith_check_mask?mask_{obs,var}tomask:mask="obs.xy")pcacould be fit on a subset orscalecould be called on a subset)anndata.accbased API formask/mask_{obs,var}#4331