Skip to content

Full accessor support#158

Merged
ilia-kats merged 19 commits into
scverse:mainfrom
ilia-kats:accessors
Jun 26, 2026
Merged

Full accessor support#158
ilia-kats merged 19 commits into
scverse:mainfrom
ilia-kats:accessors

Conversation

@ilia-kats

@ilia-kats ilia-kats commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Implement MuData acessors. These are similar to and build on AnnData accessors, but add an additional level for modalities. So it is now possible to e.g. do

from mudata.acc import A

acc = A.mod["rna"].obs["cell_type"]

mdata[acc]

@ilia-kats ilia-kats requested review from gtca and ilan-gold June 8, 2026 12:45
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.56219% with 25 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.09%. Comparing base (de6f210) to head (2432894).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/mudata/acc/__init__.py 87.30% 24 Missing ⚠️
src/mudata/_core/mudata.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
- Coverage   91.53%   91.09%   -0.45%     
==========================================
  Files          10       11       +1     
  Lines        1619     1819     +200     
==========================================
+ Hits         1482     1657     +175     
- Misses        137      162      +25     
Files with missing lines Coverage Δ
src/mudata/__init__.py 100.00% <100.00%> (ø)
src/mudata/_core/mudata.py 93.11% <87.50%> (-0.06%) ⬇️
src/mudata/acc/__init__.py 87.30% <87.30%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ilia-kats ilia-kats requested review from ilan-gold and removed request for ilan-gold June 17, 2026 14:53
@ilia-kats ilia-kats force-pushed the accessors branch 2 times, most recently from 0745b03 to 5afcfab Compare June 18, 2026 13:52

@ilan-gold ilan-gold left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice pretty clean!

Comment thread src/mudata/__init__.py
Comment thread tests/test_accessors.py
Comment thread src/mudata/acc/__init__.py
Comment thread src/mudata/acc/__init__.py
Comment thread src/mudata/acc/__init__.py

@flying-sheep flying-sheep left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty much perfect, nice job!

@ilia-kats ilia-kats merged commit caa11b1 into scverse:main Jun 26, 2026
9 checks passed
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.

3 participants