Skip to content

Add downloadable cells dataset via scverse-misc#1149

Open
timtreis wants to merge 4 commits into
mainfrom
add-cells-dataset
Open

Add downloadable cells dataset via scverse-misc#1149
timtreis wants to merge 4 commits into
mainfrom
add-cells-dataset

Conversation

@timtreis

@timtreis timtreis commented Jun 19, 2026

Copy link
Copy Markdown
Member

Summary

Exposes spatialdata.datasets.cells() alongside blobs/raccoon. It downloads the cells example dataset and loads it as a SpatialData object.

Dataset fetching is delegated to scverse-misc[datasets] (>=0.1.0, the first released version with the datasets feature). The registry shipped in src/spatialdata/datasets.yaml is parsed and fetched (downloaded, hash-verified, cached, loaded) at call time.

The actual download is exercised by test_cells_download, marked slow; the network-free test_cells_registry validates the shipped registry on every run.

timtreis and others added 2 commits June 22, 2026 10:54
Expose spatialdata.datasets.cells() alongside blobs/raccoon. It downloads
the cells example dataset and loads it as a SpatialData object, reusing the
scverse-misc datasets infrastructure (parse_registry + fetch with the
built-in spatialdata loader) rather than reimplementing a downloader.

- ship src/spatialdata/datasets.yaml registry (base_url + cells.zip sha256)
- add scverse-misc[datasets]>=0.0.10 dependency
- bump requires-python and ruff target to 3.12 (scverse-misc requires >=3.12)
- update CI matrix 3.11 -> 3.12
- docs + network-free registry test and a slow download test

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@timtreis timtreis force-pushed the add-cells-dataset branch from 7d60be6 to c453909 Compare June 22, 2026 10:14
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.44%. Comparing base (78d0fe6) to head (a48e66d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1149      +/-   ##
==========================================
+ Coverage   92.43%   92.44%   +0.01%     
==========================================
  Files          51       51              
  Lines        7815     7826      +11     
==========================================
+ Hits         7224     7235      +11     
  Misses        591      591              
Files with missing lines Coverage Δ
src/spatialdata/datasets.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

timtreis and others added 2 commits June 22, 2026 12:17
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant