13 unstable releases (4 breaking)

new 0.6.1 Dec 9, 2024
0.5.0 Aug 10, 2024
0.4.2 May 28, 2024
0.3.2 Mar 13, 2024
0.2.0 Dec 8, 2022

#467 in Parser implementations

Download history 52/week @ 2024-08-18 126/week @ 2024-08-25 120/week @ 2024-09-01 125/week @ 2024-09-08 97/week @ 2024-09-15 187/week @ 2024-09-22 100/week @ 2024-09-29 118/week @ 2024-10-06 107/week @ 2024-10-13 120/week @ 2024-10-20 146/week @ 2024-10-27 128/week @ 2024-11-03 131/week @ 2024-11-10 54/week @ 2024-11-17 73/week @ 2024-11-24 163/week @ 2024-12-01

424 downloads per month
Used in 5 crates

MIT license

410KB
11K SLoC

anndata-rs: A Rust/Python package for reading data in the h5ad format

Motivation

The goal of this library is to complement the anndata package by providing an out-of-core AnnData implementation.

Unlike the backed mode in the anndata package, anndata-rs's AnnData object is fully backed and always stays in sync with the data stored in the hard drive.

Here are the key features of this implementation:

  • AnnData is fully backed by the underlying hdf5 file. Any operations on the AnnData object will be reflected on the hdf5 file.
  • All elements are lazily loaded. No matter how large is the file, opening it consume almost zero memory. Matrix data can be accessed and processed by chunks, which keeps the memory usage to the minimum.
  • In-memory cache can be turned on to speed up the repetitive access of elements.
  • An AnnDataSet object to lazily concatenate multiple AnnData objects.

Limitations:

  • Only a subset of the h5ad specifications are implemented. For example, the .layer and .raw is not supported. To request a missing feature, please open a new issue.
  • No views. Subsetting the AnnData will modify the data inplace or make a copy.

Installation

We do not provide installation instructions here. Right now this package is bundled with the SnapATAC2 package. Please install SnapATAC2 to get these features.

Tutorials

Click here to read tutorials.

Dependencies

~30–41MB
~705K SLoC