AnnData Repo Skill
Use this repo skill when a task involves anndata, AnnData, annotated data matrices, .h5ad, .zarr, backed mode, lazy reads, anndata.concat, AnnCollection, anndata.acc, or AnnData extension namespaces. AnnData is a Python package for annotated data matrices with aligned observations, variables, multidimensional annotations, pairwise arrays, layers, unstructured metadata, and native HDF5/Zarr storage.
First Checks
- Install AnnData with
pip install anndataorconda install -c conda-forge anndatawhen the project does not already provide it. - For lazy reads or remote Zarr workflows, install the package extra that provides
xarray,dask,requests, andaiohttp:pip install "anndata[lazy]". - Prefer public imports such as
import anndata as adandfrom anndata import AnnData; avoid leading-underscore internals unless the task is explicitly repository maintenance. - Confirm importability before deeper work:
python - <<'PY'
import anndata as ad
from anndata import AnnData
print(ad.__name__, AnnData)
PY