Skip to content

Implement Zarr backend #91

Closed

Description

@LouiseDck
No description provided.

Activity

  1. moved this to 📋 Backlog in Ghent Hackathon 2023on Sep 15, 2023
  2. ivirshup commented on Sep 18, 2023

    @ivirshup
    Member

    I think this will be blocked on R zarr libraries. AFAICT there isn't enough support in either pizzarr or rarr, as neither has string support last I checked.

  3. keller-mark commented on Sep 19, 2023

    @keller-mark
    Contributor

    I implemented the VLen-UTF8 support yesterday zarr-developers/pizzarr#55 - Example with a remote anndata-zarr store here https://keller-mark.github.io/pizzarr/articles/remote-anndata.html - feel free to report any issues if you end up trying it out

  4. added this to the milestone on Sep 20, 2023
  5. keller-mark commented on May 8, 2024

    @keller-mark
    Contributor

    I have a preliminary implementation working on this branch (compare). Some of the functions emit warnings at the moment but most of the reading/writing tests are passing, as well as tests that compare values between h5ad and zarr

  6. Artur-man commented on Oct 31, 2024

    @Artur-man
    Contributor

    Gave it a quick try, looks promising ... here

    library(pizzarr)
    library(Seurat)
    
    adata <- AnnData(
      X = t(GetAssayData(object = pbmc_small, layer = "counts")),
      obs = [email protected],
      obs_names = colnames(pbmc_small),
      var_names = rownames(pbmc_small)
    )
    write_zarr(adata, store = "data/example.zarr", compression = "none")
    
    > adata
    [1] "layers" "obs"    "obsm"   "obsp"   "uns"    "var"    "varm"   "varp"   "X"  
    

    Still has some problems reading though.

    data <- read_zarr(path = "data/example.zarr/", to = "ZarrAnnData")
    data$X
    
    > data$X
    80 x 230 sparse Matrix of class "dgCMatrix"
                                                                                                                                                       
    [1,] . 1 . . . 1 . .  3 . . 1 . . . . . . . . . . 1 . . . 
    > data
    Error in if (!is.na(path)) { : argument is of length zero
    
  7. Artur-man commented on Nov 4, 2024

    @Artur-man
    Contributor

    Are maintainers still interested in pushing ZarrAnnData to main ? We have a version where we test data types being properly wrote/read from/to zarr stores: keller-mark#5. (tests and functions updated to current version of anndataR)

    This could be nice since some of us will be gathering to start building the R-native SpatialData package where Tables are still written using anndata and with reticulate/basilisk. https://github.com/HelenaLC/SpatialData/blob/45b166ac441933ff46432cd5f6a8368d041fffa7/R/read.R#L77-L92

  8. lazappi commented on Nov 5, 2024

    @lazappi
    Collaborator

    @rcannood can comment better on where things are currently at but I think in principal this is something we want. At the hackathon where we started {anndataR} we had discussed R {SpatialData} depending on it for AnnData related stuff and I think it's better for everyone to avoid duplicating work if possible.

  9. rcannood commented on Nov 5, 2024

    @rcannood
    Member

    @keller-mark @Artur-man thanks for pinging me ! I'll take a look tonight 😊

  10. added
    zarr
    new feature
    on Nov 20, 2025
  11. modified the milestones: , 1.2.0 on Nov 20, 2025
  12. changed the title [-]Implement zarr backend[/-] [+]Implement Zarr backend[/+] on Nov 20, 2025
  13. moved this from 📋 Backlog to ✅ Done in Ghent Hackathon 2023on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featurezarr

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions