ggml_ot.data.load_cellxgene#
- ggml_ot.data.load_cellxgene(dataset_id, url='https://datasets.cellxgene.cziscience.com', path=None, load=True)[source]#
Download and cache an AnnData object from CELLxGENE.
- Parameters:
- dataset_id str
CELLxGENE dataset identifier — typically the UUID of the dataset version (the
.h5adsuffix is added automatically if missing). You can find it as the filename of the download link on the dataset’s CELLxGENE page (e.g.b8b5be07-...-f9ced877a068).- url str, optional
Base URL of the CELLxGENE dataset repository.
- path str or pathlib.Path, optional
Cache directory override. When
None(default),ggml_ot.settings.datadiris used; if that is also unset, the loader falls back toPath("data/")relative to the current working directory and prints a one-time hint.- load bool, optional
Whether to read and return the AnnData object (default
True). Set toFalseto download-only.
- Returns:
anndata.AnnData, optional Returned only when
load=True.