Skip to content

Supporting X missing/None for EAQ to_anndata#4250

Merged
jp-dark merged 7 commits intomainfrom
kt/SOMA-84/make-x-name-optional-to-anndata
Sep 26, 2025
Merged

Supporting X missing/None for EAQ to_anndata#4250
jp-dark merged 7 commits intomainfrom
kt/SOMA-84/make-x-name-optional-to-anndata

Conversation

@ktsitsi
Copy link
Copy Markdown
Collaborator

@ktsitsi ktsitsi commented Sep 25, 2025

Issue and/or context:

X_layer_name is an optional parameter on tiledbsoma.io.to_anndata(), allowing users to create anndata objects where X is empty.

We should make exporting X optional for tiledbsoma.ExperimentAxisQuery.to_anndata() as well, currently it's a required parameter.

Changes:

  • Chaning EAQ.to_anndata function to support the optional X in parity with tiledbsoma.io.to_anndata
  • Adding unit test for the support of optional X for EAQ API

Notes for Reviewer:

  • In our tests we don't include comparisons against the extra soma_joinid column that is being produced by the EAQ API but not from the soma.io.

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 25, 2025

Codecov Report

❌ Patch coverage is 86.36364% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.42%. Comparing base (9e075fd) to head (58b8b56).
⚠️ Report is 64 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #4250       +/-   ##
===========================================
+ Coverage   76.02%   89.42%   +13.40%     
===========================================
  Files         230       61      -169     
  Lines       32062     7131    -24931     
  Branches     1236        0     -1236     
===========================================
- Hits        24374     6377    -17997     
+ Misses       7267      754     -6513     
+ Partials      421        0      -421     
Flag Coverage Δ
libtiledbsoma ?
python 89.42% <86.36%> (-0.07%) ⬇️
r ?

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

Components Coverage Δ
python_api 89.42% <86.36%> (-0.07%) ⬇️
libtiledbsoma ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@jp-dark jp-dark left a comment

Choose a reason for hiding this comment

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

Looks good for the most part, but I have a couple change requests.

Comment thread apis/python/HISTORY.md Outdated
Comment thread apis/python/src/tiledbsoma/_query.py Outdated
Comment thread apis/python/tests/test_experiment_query.py Outdated
@ktsitsi ktsitsi requested a review from jp-dark September 26, 2025 14:51
Copy link
Copy Markdown
Collaborator

@jp-dark jp-dark left a comment

Choose a reason for hiding this comment

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

One typo left in the HISTORY, but looks good otherwise.

Comment thread apis/python/HISTORY.md Outdated
Co-authored-by: Julia Dark <[email protected]>
@jp-dark jp-dark merged commit 94ae4a5 into main Sep 26, 2025
12 checks passed
@jp-dark jp-dark deleted the kt/SOMA-84/make-x-name-optional-to-anndata branch September 26, 2025 16:39
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.

2 participants