Giter VIP home page Giter VIP logo

Comments (2)

ivirshup avatar ivirshup commented on July 18, 2024

Thanks for the request! There are two things here:

h5ad files which are then gzip compressed

This is a weird file which we won't support. hdf5 supports internal compression with gzip, where each of in the internal chunks are compressed. This is what you get from AnnData.write_h5ad(..., compression="gzip"). We support this, and I concat_on_disk should already work with this type of file.

We, and h5py, don't support working with an entire hdf5 blob that has been compressed. E.g. the result of gzip file.h5ad.

  • Writing a compressed file

While this is the default for zarr, this doesn't currently work with hdf5 and cannot be customized with the zarr backend. I think we could support this by passing though a dataset_kwargs argument as is done with write_elem.

Would you be up for a PR implementing this?

from anndata.

VladimirShitov avatar VladimirShitov commented on July 18, 2024

Thank you for the answer!

Hmm, interesting AnnData.write_h5ad(..., compression="gzip") is exactly what I did, but it caused an error. Maybe the problem was caused by me adding the ".gz" suffix to the files.

I can take a look at the possibility of opening PR next month.

from anndata.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.