Skip to content

feat: add anndata.acc support to mask params - #4333

Open
flying-sheep wants to merge 4 commits into
mainfrom
mask-acc
Open

feat: add anndata.acc support to mask params#4333
flying-sheep wants to merge 4 commits into
mainfrom
mask-acc

Conversation

@flying-sheep

Copy link
Copy Markdown
Member

TODO:

  • probably good to unify _mask_arg with _check_mask?
  • think about if it makes sense to rename from mask_{obs,var} to mask:
    • not explicit from param name anymore which dim is masked
    • but explicit through argument (e.g. mask="obs.xy")
    • also good fit for functions that can operate on either axis (sample, aggregate) or allow to mask either or both axes (e.g. pca could be fit on a subset or scale could be called on a subset)

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.93%. Comparing base (a656a33) to head (8d909d6).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4333      +/-   ##
==========================================
- Coverage   81.98%   81.93%   -0.06%     
==========================================
  Files         134      134              
  Lines       13235    13019     -216     
==========================================
- Hits        10851    10667     -184     
+ Misses       2384     2352      -32     
Flag Coverage Δ
hatch-test.low-vers 78.81% <87.50%> (-0.26%) ⬇️
hatch-test.pre 81.80% <100.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/scanpy/_docs.py 100.00% <100.00%> (ø)
src/scanpy/_settings/presets.py 93.15% <100.00%> (ø)
src/scanpy/_utils/__init__.py 75.57% <100.00%> (ø)
src/scanpy/experimental/pp/_normalization.py 92.75% <100.00%> (-1.93%) ⬇️
src/scanpy/get/_aggregated.py 95.28% <100.00%> (+0.03%) ⬆️
src/scanpy/get/get.py 91.08% <100.00%> (+1.19%) ⬆️
src/scanpy/preprocessing/_docs.py 100.00% <100.00%> (ø)
src/scanpy/preprocessing/_highly_variable_genes.py 94.63% <ø> (ø)
src/scanpy/preprocessing/_pca/__init__.py 90.76% <100.00%> (-0.75%) ⬇️
src/scanpy/preprocessing/_scale.py 100.00% <100.00%> (+10.41%) ⬆️
... and 3 more

@flying-sheep flying-sheep added this to the 1.13.0 milestone Sep 1, 2026
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.

anndata.acc based API for mask/mask_{obs,var}

1 participant