Skip to content

Fix Blosc-compressed H5AD input and release 0.2.14 - #16

Merged
rob-p merged 3 commits into
mainfrom
fix/hdf5-compression-plugins
Sep 6, 2026
Merged

Fix Blosc-compressed H5AD input and release 0.2.14#16
rob-p merged 3 commits into
mainfrom
fix/hdf5-compression-plugins

Conversation

@rob-p

@rob-p rob-p commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

QCatch fails while opening Blosc-compressed H5AD files produced by simpleaf because it neither installs nor registers the required HDF5 filters. Add hdf5plugin as a runtime dependency and import it before the shared H5AD reader runs. Both direct-file input and directory discovery now work without copying plugins into a system directory.

This prepares version 0.2.14 and documents a workaround for the existing Bioconda container. The Bioconda recipe must also explicitly include the runtime dependency because it installs QCatch with --no-deps; that update will follow the PyPI release.

Release validation also exposed an AnnData 0.13 compatibility issue: .layers now contains the primary matrix under the None key. Preserve that matrix while sorting named layers instead of comparing None with strings. A round-trip test verifies the primary matrix, named layers, and retained cells in both full and filtered outputs on AnnData 0.11 and 0.13.

Validation: the original 22 local tests passed with Bioconda-aligned dependencies. Six compression regression cases cover Blosc/Zstd, gzip, and uncompressed input in fresh processes without a plugin directory; both Blosc cases fail against unmodified QCatch. An additional run on the official PBMC fixture recompressed with Blosc/Zstd successfully generated the report, H5AD, and CSV. Source and wheel builds pass. The inactivity-disabled Linux test workflow has been restored for release validation.

Fixes #15.

@rob-p
rob-p merged commit d6ce3eb into main Sep 6, 2026
5 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.

simpleaf quant.h5ad Blosc-packed not readable in bioconda container 0.2.13--pyhdfd78af_0

1 participant