Skip to content

Update tutorial notebooks to current read_h5ad and PCA APIs - #13

Merged
Zethson merged 1 commit into
scverse:mainfrom
taureandyernv:main
Nov 13, 2026
Merged

Zethson merged 1 commit into
scverse:mainfrom
taureandyernv:main

Conversation

@taureandyernv

@taureandyernv taureandyernv commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Update the tutorial notebooks to use explicit H5AD readers and the current PCA argument.

  • Replace ad.read/sc.read with ad.read_h5ad/sc.read_h5ad in the basic workflow, Pearson residuals, and brain 1M notebooks.
  • Replace use_highly_variable=False with mask_var=None in the brain 1M PCA call.
  • Reset execution counts on two edited cells.

Validation: the notebooks were tested against the latest rapids-singlecell (rsc) release.

@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

Comment thread brain_1M.ipynb
@@ -112,7 +112,7 @@
],

@sarajimenez sarajimenez Nov 11, 2026 •

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.

I'd modify the comment here as well:

With mask_var = None


Reply via ReviewNB

@Zethson
Zethson merged commit 126e8c9 into scverse:main Nov 13, 2026
Zethson added a commit that referenced this pull request Nov 15, 2026
#13 switched the PCA call from use_highly_variable=False to mask_var=None
but left the markdown cell above it describing the old argument.
Addresses #13 (comment)
Zethson added a commit that referenced this pull request Nov 15, 2026
Targets the released stack: rapids-singlecell 0.18.1, anndata 0.13.4,
scanpy 1.12.2, squidpy 1.8.4, decoupler 2.3.1, pertpy 1.5.0.
rsc 0.18.1 does not import under scanpy 1.13.0, so the scanpy 1.13 /
rsc 0.19 use/out/mask spellings are left for the 0.19 release.

- 04_squidpy: replace sq.gr.spatial_neighbors, deprecated since squidpy
  1.7 and slated for removal in 1.9, with rsc.gr.spatial_neighbors_grid.
  The graph is identical to the old default for Visium (15,580 edges).
  Re-executed end to end; Moran's I is unchanged and Geary's C agrees
  to about 1e-5, the permutation columns and Geary's pval_norm/var_norm moved as expected
  after rsc 0.18.1 aligned Geary's C with squidpy 1.8.2.
- 00/06/07: drop the anndata < 0.12 gate for read_elem_as_dask, which is
  dead code since rsc requires anndata >= 0.12.14, and name
  read_elem_lazy in the prose.
- ligrec_benchmark/seuratv3_harmony: sc.read -> sc.read_h5ad, the two
  calls #13 missed.
- 03_decoupler: fix the network name (CollecTRI, not DoRothEA) and drop
  the trailing cell reading nets/progeny.parquet, a file no notebook
  creates, plus its now-unused pandas import.

Only 04 was re-executed; the other edits do not change outputs.
The lazy-loading cells of 00/06 and the 06 pipeline were smoke-run on
synthetic data with rsc 0.18.1 and anndata 0.13.4.
Zethson added a commit to scverse/rapids-singlecell that referenced this pull request Nov 15, 2026
Bumps notebooks 0b059a3 -> f2a9c13, pulling in
scverse/rapids-singlecell-tutorials#13, #14 and #15: explicit
read_h5ad readers, mask_var=None in brain_1M, read_elem_lazy without the
anndata<0.12 gate, rsc.gr.spatial_neighbors_grid in 04_squidpy
(re-executed), and removal of a broken trailing cell in 03_decoupler.
The notebooks target the released 0.18.1 API; the scanpy 1.13 use/out
migration from #882 is not applied to them yet.
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