h5ad is a Typer-powered command-line tool for exploring huge .h5ad (AnnData) files without loading them fully into memory. It streams data directly from disk so you can inspect structure, metadata, and matrices on demand.
info– Reportsn_obs × n_vardimensions and highlights top-level groups with their child keys.table– Exports obs or var metadata tables to CSV in memory-efficient chunks.- Colored Rich output for clearer, more informative summaries.
Install dependencies with uv sync, then invoke any subcommand via uv run h5ad ...:
uv sync
uv run h5ad --helpInspect overall structure and axis sizes:
uv run h5ad info data.h5adExport full obs metadata to CSV:
uv run h5ad table data.h5ad --axis obs --out obs_metadata.csvExport selected obs columns to stdout:
uv run h5ad table data.h5ad --axis obs --cols cell_type,donorExport var metadata with custom chunk size:
uv run h5ad table data.h5ad --axis var --chunk-rows 5000 --out var_metadata.csvEach command streams from disk, so even multi-GB .h5ad files remain responsive.