Release Notes - h5ad-cli v0.1.0
๐ Initial Release
h5ad-cli is a lightweight, streaming command-line tool for exploring large AnnData .h5ad files without loading them fully into memory. Built with Typer and Rich for a modern CLI experience.
โจ Features
Commands
h5ad infoโ Display high-level file structure includingn_obs ร n_vardimensions and top-level groups with their child keysh5ad tableโ Export obs or var metadata tables to CSV format with memory-efficient chunked streaming
Capabilities
- ๐ Memory-efficient streaming โ Process multi-GB
.h5adfiles without loading them into RAM - ๐จ Rich colorized output โ Clear, formatted console output using Rich library
- ๐ Progress tracking โ Real-time status updates during long-running exports
- ๐ง Flexible CSV export โ Select specific columns, customize chunk sizes, output to file or stdout
- ๐ท๏ธ Categorical support โ Properly decodes AnnData categorical columns with cached label lookups
- ๐ Type safety โ Built with Python 3.12+ type hints throughout
๐ฆ Installation
git clone https://github.com/cellgeni/h5ad-cli.git
cd h5ad-cli
uv sync๐ Quick Start
# View file structure
uv run h5ad info data.h5ad
# Export full obs metadata
uv run h5ad table data.h5ad --axis obs --out metadata.csv
# Export selected columns to stdout
uv run h5ad table data.h5ad --axis obs --cols cell_type,donor๐ Requirements
- Python โฅ 3.12
- h5py โฅ 3.15.1
- typer โฅ 0.20.0
๐ฎ Future Plans
- Matrix data inspection commands
- Subset extraction utilities
- Additional export formats
- Enhanced filtering options
Full Changelog: Initial release