bone_marrow#

API pages include interactive (HTML) plots that would possibly not render correctly on a mobile device.

bone_marrow(cache_directory: str | Path | PathLike = _GLOBAL_CACHE, *, use_cache: bool = True, bring: bool = True) → AnnData#

Download and load the preprocessed human bone marrow dataset.

Parameters:
  • cache_directory (str | Path | PathLike) – Directory where the .h5ad file is cached.

  • use_cache (bool, default True) – If True, load from the cached file when present. If False, remove any existing cached file and re-download.

  • bring (bool, default True) – If True and cache_directory is not the default global cache, copy the file from the global cache when it already exists there. Set to False to disable this behavior.

Returns:

AnnData – The preprocessed bone marrow dataset.

Raises:

IncompleteDownloadError – If the downloaded file size does not match the expected size.

Notes

About 17,000 bone marrow mononuclear cells from two samples (s1d1, s1d3) of healthy donors, measured with 10x Multiome (gene expression only). They come from the NeurIPS 2021 benchmarking dataset (Luecken et al., 2021) and are the cells of the scanpy “Preprocessing and clustering” tutorial. The cell_type_lvl1 labels follow that tutorial’s coarse annotation of the leiden_res_0.02 clusters: Lymphocytes, Monocytes, B Cells and Erythroid.