Add support for writing Zarr v3 stores, using (i) zarr_format argument of write_zarr()/as_ZarrAnnData() or (ii) the anndataR.zarr_format option. New stores are written as Zarr v3 by default.
Add support for reading backed objects using DelayedArray matrices, including a backed argument for HDF5AnnData, ZarrAnnData and InMemoryAnnData, and conversion of backed AnnData objects to SingleCellExperiment/Seurat.
Add support for nullable-string-array elements in H5AD and Zarr.
Add a group argument to read_h5ad(), write_h5ad(), as_HDF5AnnData() and HDF5AnnData, to read and write an AnnData stored in a group inside an HDF5 file, e.g. a modality inside a .h5mu file.
Add read_elem() and write_elem() to read and write a single element of an H5AD file or Zarr store, e.g. read_elem(path, "obsm/X_pca"), without reading the whole object. With backed = TRUE, read_elem() returns arrays and matrices as DelayedArray objects.
Support the anndata.AnnData class name used by Python anndata >= 0.13
Handle the None layer key used by Python anndata >= 0.13 which stores X as a layer
Read the sharded Zarr v3 stores that Python anndata >= 0.13 writes by default. This requires Rarr 2.1.45 or later.
Check that the indices of sparse matrices fit their shape when reading H5AD files and Zarr stores, with an error that suggests the indices may not be 0-based.
Keep NA in double and integer matrices written to H5AD instead of replacing it with NaN, so that NA and NaN can still be told apart when reading the file back in R. Python anndata reads both as NaN.
Use zstd compression by default in write_zarr()
Error when writing a logical matrix containing NA to H5AD or Zarr, instead of writing a nullable-boolean that neither R nor Python anndata can read back. Convert it to numeric first.
Require rhdf5 2.57.13 or later, which fixes a spurious NA_character_ warning for numeric datasets containing NA, and Rarr 2.1.59 or later, which fixes reading and writing zstd-compressed Zarr arrays on R 4.6.2.
Fix create_zarr() so that Zarr stores can be created at relative paths and at paths containing regex metacharacters.
Use the format of an existing Zarr store when writing to it and truncate the store when mode = "w", so that a store can no longer end up with a mix of Zarr v2 and v3 nodes.
Write strings as VLen-UTF8 rather than as fixed-width, so that string arrays read back as variable length strings in Python anndata.
Remove the workaround for LZF compression of VLen strings in HDF5. This is fixed in later versions of rhdf5.
Fix HDF5AnnData writing logical matrices as flat 1D datasets instead of preserving their shape.
Fix writing data.frames in obsm/varm so that the stored index is the obs_names/var_names of the parent object instead of R's automatic row numbers
Fix writing non-ASCII strings to H5AD files by using UTF-8 for string datasets
Fix the error and warning messages when reading or writing an element fails. The original error is now shown instead of a cli parsing error.
Fix writing integer matrices containing NA to Zarr.
Write length 1 data.frame columns and indices as arrays instead of scalars.
Fix writing empty arrays to Zarr v3.
Fix writing a length 1 NA_character_ to Zarr and H5AD, so that it stays missing when the file is read back in R or in Python anndata.
Fix as_AnnData() failing with "`rownames(X)` is not as expected" when the assay of a SingleCellExperiment mapped to X has different dimnames than the object.
Fix as_AnnData() dropping the loadings of a Seurat reduction when their row names already match the feature names of the object.
Fix as_Seurat() failing with "No feature overlap between existing object and new layer data" when var_names contain underscores. The underscores are now replaced with dashes in the feature names of the Seurat object, with a warning.
Don't add the vlen-utf8 filter twice to Zarr v2 string arrays, which newer versions of Rarr add themselves.
Fix read_h5ad() and read_zarr() losing a whole element, e.g. all of uns, when one of its items can't be read, such as an item without encoding metadata. That item is now skipped with a warning naming it.
Update CITATION to include the anndataR publication: Deconinck L, Zappia L, Cannoodt R, Morgan M, Virshup I, Sang-aram C, Bredikhin D, Seurinck R, Saeys Y, scverse core (2026). "anndataR improves interoperability between R and Python in single-cell transcriptomics" Bioinformatics, 42, btag288. doi:10.1093/bioinformatics/btag288 https://doi.org/10.1093/bioinformatics/btag288.
Minor updates and simplifications to function documentation.
Add Bioconductor R-universe checks
Add Zarr functionality to benchmarking
Check release branches against the appropriate Bioconductor release.
Run BiocCheck on RELEASE_* branches as well as on devel.
Add a strict mode for Python tests with ANNDATAR_TEST_REQUIRE_PYTHON=true
Add initial Zarr support for reading and writing .zarr stores
Allow manually setting chunk size for HDF5 writes
Add auto-chunking for HDF5 writes to improve performance
Optimise sparse matrix reading performance by avoiding
Matrix::sparseMatrix and constructing objects manually
Handle unnamed SingleCellExperiment assays in as_AnnData()
by automatically assigning names with a warning
Improve warnings when items fail to convert between objects and add new warnings and checks
Updates to vignettes
Fix broken links
Update author details
Add a benchmarking system to monitor function performance
Improvements to roundtrip tests
Improvements to HDF5 tests
Improvements to GitHub Actions CI
anndataR brings the AnnData object to R. It enables native reading
and writing of H5AD files and conversion to/from
SingleCellExperiment and Seurat objects.
An R6 class to work with AnnData objects in R (either
in-memory or on-disk)
Natively read/write H5AD files without needing a Python environment
Convert to/from SingleCellExperiment objects
Convert to/from Seurat objects