lamindb.dev.datasets.anndata_human_immune_cells#
- lamindb.dev.datasets.anndata_human_immune_cells()#
Cross-tissue immune cell analysis reveals tissue-specific features in humans.
From: https://cellxgene.cziscience.com/collections/62ef75e4-cbea-454e-a0ce-998ec40223d3 # noqa Dataset: Global
To reproduce the subsample: >>> adata = sc.read(‘Global.h5ad’) >>> adata.obs = adata.obs[[‘donor_id’, ‘tissue’, ‘cell_type’, ‘assay’, ‘tissue_ontology_term_id’, ‘cell_type_ontology_term_id’, ‘assay_ontology_term_id’]].copy() . # noqa >>> sc.pp.subsample(adata, fraction=0.005) >>> del adata.uns[“development_stage_ontology_term_id_colors”] >>> del adata.uns[“sex_ontology_term_id_colors”] >>> sc.write(‘human_immune.h5ad’, adata)
- Return type:
AnnData