Comments (2)
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.
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)
- Concat API lacks semantic dimension identifier HOT 9
- adata.to_backed() as the opposite of adata.to_memory() HOT 7
- Dropping columns throws error `DataFrameView` has no attribute `_view_args` HOT 1
- Bug: Contradictory information on the appropriate shape of data HOT 2
- numpy regression in sparse indexing HOT 4
- Can't read or write h5ad files that contain booleans columns with nulls (None) HOT 9
- Sparse matrices written with 32bit indptr HOT 2
- SparseDataset inefficient loading of indptr HOT 3
- backed `zarr` datasets have no proper `copy` method
- Release 0.10.4 HOT 1
- Write error reporting got worse
- Switch to Ruff formatting
- Anndata pre-release job is broken on pertpy with numba nopython error HOT 2
- Warn when anndata.concat join=outer fails because of a mismatch of layers HOT 1
- `layers` cannot load sparse matrix HOT 1
- Check indexing arg types HOT 3
- Issue with rendering docs for h5py.Group in some cases HOT 1
- Checking array equality during merging doesn't work for >2d HOT 3
- Consider vendoring legacy_api_wrap HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anndata.