Skip to content

read_zarr failed in rust: incompatible fill value 0 for data type string #15

@zqfang

Description

@zqfang

Hi Kai,

Thank you so much for the amazing implementation of anndata in rust. It helps a lot with my research.

I need your help with reading the Zarr file.

I've been testing zarr format input, however, it complains about the error message below. I can't figure out what the error means. I hope you can help me out about this.

called `Result::unwrap()` on an `Err` value: incompatible fill value 0 for data type string

the code I used was

        let path = "/Users/fangzq/Data/NK/ZZM_panNK_test5.zarr";
        let pbuf = Zarr::open::<PathBuf>(path.to_string());
        let adata = AnnData::<Zarr>::open(pbuf.unwrap()).unwrap();

I used scanpy to save h5ad file to zarr. h5ad works great in rust, but zarr is not.

Please see the zarr file I used.

ZZM_panNK_test5.zarr.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions