grassp.ds.load_dataset

Contents

grassp.ds.load_dataset#

load_dataset(name, enrichment='enriched', **kwargs)[source]#

Download a curated dataset from the grassp data portal by name.

Datasets are hosted at https://public.czbiohub.org/proteinxlocation: the processed/enriched objects live under datasets/ and the pre-enrichment raw objects (raw fractionation profiles, with replicates preserved where available) under datasets_raw/.

Parameters:
name str

Dataset identifier, without the _raw suffix or .h5ad extension, e.g. "Haas_2025_HumanizedLiver_Chow".

enrichment Literal['enriched', 'raw'] (default: 'enriched')

"enriched" (default) downloads the processed object from datasets/; "raw" downloads the raw object from datasets_raw/.

**kwargs

Forwarded to scanpy.read().

Return type:

AnnData

Returns:

AnnData The requested dataset.

Examples

>>> import grassp as gr
>>> adata = gr.ds.load_dataset("Haas_2025_HumanizedLiver_Chow")               # enriched
>>> raw = gr.ds.load_dataset("Haas_2025_HumanizedLiver_Chow", enrichment="raw")  # replicates