Dataset Viewer
Auto-converted to Parquet Duplicate
shape
list
cell_type_counts
dict
disease_labels
list
benchmark
dict
meta
dict
[ 100000, 61497 ]
{ "A2 amacrine cell": 20, "B cell": 669, "B-1a B cell": 4, "B-1b B cell": 5, "B-2 B cell": 9, "BEST4+ colonocyte": 21, "BEST4+ enterocyte": 6, "Bergmann glial cell": 161, "CD14-low, CD16-positive monocyte": 16, "CD14-positive monocyte": 344, "CD14-positive, CD16-low monocyte": 36, "CD14-positive, CD16-positive monocyte": 87, "CD141-positive myeloid dendritic cell": 21, "CD16-negative, CD56-bright natural killer cell, human": 46, "CD16-positive, CD56-dim natural killer cell, human": 285, "CD1c-positive myeloid dendritic cell": 63, "CD34-positive, CD56-positive, CD117-positive common innate lymphoid precursor, human": 2, "CD38-negative naive B cell": 199, "CD4-negative, CD8-negative, alpha-beta intraepithelial T cell": 3, "CD4-positive helper T cell": 301, "CD4-positive, CD25-positive, alpha-beta regulatory T cell": 2, "CD4-positive, alpha-beta T cell": 576, "CD4-positive, alpha-beta cytotoxic T cell": 75, "CD4-positive, alpha-beta memory T cell": 386, "CD4-positive, alpha-beta thymocyte": 23, "CD56-positive, CD161-positive immature natural killer cell, human": 20, "CD8-alpha-beta-positive, alpha-beta intraepithelial T cell": 19, "CD8-positive, alpha-beta T cell": 830, "CD8-positive, alpha-beta cytotoxic T cell": 275, "CD8-positive, alpha-beta memory T cell": 428, "CD8-positive, alpha-beta thymocyte": 6, "Cajal-Retzius cell": 3, "GABAergic amacrine cell": 121, "GABAergic interneuron": 72, "GABAergic neuron": 1589, "IgA plasma cell": 724, "IgA plasmablast": 43, "IgG memory B cell": 24, "IgG plasma cell": 323, "IgG plasmablast": 53, "IgG-negative class switched memory B cell": 69, "Kupffer cell": 147, "L5 extratelencephalic projecting glutamatergic cortical neuron": 112, "Langerhans cell": 10, "M cell of gut": 5, "Merkel cell": 3, "Mueller cell": 760, "OFF retinal ganglion cell": 23, "OFF-bipolar cell": 354, "ON retinal ganglion cell": 10, "ON-bipolar cell": 435, "Purkinje cell": 235, "S cone cell": 1, "Schwann cell": 153, "Schwann cell precursor": 44, "T cell": 1734, "T follicular helper cell": 157, "T follicular regulatory cell": 18, "T-helper 1 cell": 48, "T-helper 17 cell": 53, "TAC3-positive striatal interneuron": 13, "Tc1 cell": 39, "VIP GABAergic cortical interneuron": 11, "abnormal cell": 177, "acinar cell": 8, "acinar cell of salivary gland": 1074, "activated CD4-positive, alpha-beta T cell": 83, "activated CD4-positive, alpha-beta T cell, human": 24, "activated CD8-positive, alpha-beta T cell": 157, "adipocyte": 44, "adipocyte of omentum tissue": 1170, "adult skeletal muscle myoblast": 1, "adventitial cell": 188, "afferent neuron": 28, "alpha-beta T cell": 296, "alveolar macrophage": 1, "amacrine cell": 133, "anterior lens cell": 100, "astrocyte": 1808, "basal cell": 181, "basal cell of epidermis": 28, "basal cell of epithelium of bronchus": 14, "basal cell of prostate epithelium": 1401, "basal cell of urothelium": 157, "basal-myoepithelial cell of mammary gland": 74, "basophil": 1, "basophil mast progenitor cell": 15, "blood cell": 24, "blood vessel endothelial cell": 982, "blood vessel smooth muscle cell": 48, "brain vascular cell": 1, "bronchial goblet cell": 2, "bronchial smooth muscle cell": 4, "bronchus fibroblast of lung": 13, "capillary endothelial cell": 735, "cardiac endothelial cell": 89, "cardiac muscle cell": 18, "cardiac muscle myoblast": 36, "cardiac neuron": 132, "caudal ganglionic eminence derived cortical interneuron": 174, "cell": 8, "cell of skeletal muscle": 29, "central memory CD4-positive, alpha-beta T cell": 518, "central memory CD8-positive, alpha-beta T cell": 73, "central nervous system macrophage": 491, "centrilobular region hepatocyte": 56, "centroblast": 68, "centrocyte": 25, "cerebellar granule cell": 68, "cerebral cortex endothelial cell": 90, "chandelier pvalb GABAergic cortical interneuron": 206, "cholangiocyte": 21, "choroid plexus epithelial cell": 262, "choroid plexus macrophage": 6, "ciliated cell": 224, "ciliated epithelial cell": 52, "class switched memory B cell": 155, "classical monocyte": 1562, "club cell": 90, "club-like cell of the urethral epithelium": 72, "colon endothelial cell": 33, "colon goblet cell": 39, "colon macrophage": 2, "colonocyte": 133, "columnar/cuboidal epithelial cell": 2, "committed oligodendrocyte precursor": 12, "common dendritic progenitor": 10, "common lymphoid progenitor": 6, "common myeloid progenitor": 18, "cone retinal bipolar cell": 182, "conventional dendritic cell": 173, "cortical thymic epithelial cell": 319, "corticomedullary thymic epithelial cell": 118, "cycling T cell": 4, "cycling macrophage": 4, "cycling pulmonary alveolar type 2 cell": 32, "cytotoxic T cell": 105, "dendritic cell": 383, "dendritic cell, human": 5, "deuterosomal cell": 1, "direct pathway medium spiny neuron": 96, "dopaminergic neuron": 361, "double negative thymocyte": 19, "double-positive, alpha-beta thymocyte": 5, "early colonocyte": 24, "early lymphoid progenitor": 2, "early promyelocyte": 94, "effector CD4-positive, alpha-beta T cell": 180, "effector CD8-positive, alpha-beta T cell": 162, "effector T cell": 9, "effector memory CD4-positive, alpha-beta T cell": 206, "effector memory CD8-positive, alpha-beta T cell": 628, "effector memory CD8-positive, alpha-beta T cell, terminally differentiated": 37, "embryonic blood vessel endothelial progenitor cell": 18, "endothelial cell": 1941, "endothelial cell of arteriole": 53, "endothelial cell of artery": 288, "endothelial cell of coronary artery": 38, "endothelial cell of hepatic sinusoid": 54, "endothelial cell of lymphatic vessel": 350, "endothelial cell of pericentral hepatic sinusoid": 163, "endothelial cell of periportal hepatic sinusoid": 52, "endothelial cell of uterus": 49, "endothelial cell of vascular tree": 45, "endothelial cell of venule": 436, "endothelial tip cell": 7, "enteric neuron": 66, "enteric smooth muscle cell": 34, "enterocyte": 626, "enterocyte of epithelium proper of ileum": 15, "enteroendocrine cell": 15, "enteroendocrine cell of colon": 2, "enteroglial cell": 173, "eosinophil": 2, "ependymal cell": 144, "epicardial adipocyte": 60, "epithelial cell": 335, "epithelial cell of early distal convoluted tubule": 54, "epithelial cell of glomerular capsule": 2, "epithelial cell of lower respiratory tract": 7, "epithelial cell of lung": 210, "epithelial cell of nephron": 31, "epithelial cell of prostate": 50, "epithelial cell of proximal tubule": 1185, "epithelial cell of proximal tubule segment 3": 42, "epithelial cell of thymus": 3, "epithelial cell of urethra": 122, "erythroblast": 244, "erythrocyte": 499, "erythroid lineage cell": 31, "erythroid progenitor cell": 172, "exhausted T cell": 8, "eye photoreceptor cell": 22, "fallopian tube secretory epithelial cell": 6, "fast muscle cell": 30, "fenestrated endothelial cell": 30, "fetal pre-type II pulmonary alveolar epithelial cell": 39, "fibroblast": 4539, "fibroblast of breast": 143, "fibroblast of cardiac tissue": 61, "fibroblast of connective tissue of glandular part of prostate": 23, "fibroblast of connective tissue of nonglandular part of prostate": 62, "fibroblast of connective tissue of prostate": 88, "fibroblast of lung": 122, "fibroblast of the aortic adventitia": 64, "fibrocyte": 12, "follicular B cell": 40, "follicular dendritic cell": 1, "forebrain neuroblast": 88, "forebrain radial glial cell": 10, "fraction A pre-pro B cell": 7, "gamma-delta T cell": 348, "germ cell": 11, "germinal center B cell": 294, "glandular secretory epithelial cell": 65, "glial cell": 232, "glioblast": 105, "glioblast (sensu Vertebrata)": 6, "glomerular capillary endothelial cell": 16, "glomerular endothelial cell": 42, "glutamatergic neuron": 3367, "glycinergic amacrine cell": 85, "glycinergic neuron": 37, "goblet cell": 65, "granulocyte": 38, "granulocyte monocyte progenitor cell": 4, "granulosa cell": 83, "group 2 innate lymphoid cell": 3, "group 3 innate lymphoid cell": 10, "gut absorptive cell": 35, "gut endothelial cell": 70, "hair follicular keratinocyte": 116, "hematopoietic cell": 1, "hematopoietic multipotent progenitor cell": 82, "hematopoietic precursor cell": 19, "hematopoietic stem cell": 14, "hepatic pit cell": 38, "hepatic stellate cell": 51, "hepatocyte": 343, "ileal goblet cell": 4, "immature B cell": 45, "immature NK T cell": 48, "immature Schwann cell": 1, "immature T cell": 1, "immature innate lymphoid cell": 112, "immature microglial cell": 4, "immature neutrophil": 4, "indirect pathway medium spiny neuron": 85, "inflammatory macrophage": 57, "inhibitory interneuron": 390, "inhibitory motor neuron": 16, "innate lymphoid cell": 125, "intercalated cell of salivary gland": 9, "intermediate cell of urothelium": 246, "intermediate monocyte": 22, "interneuron": 93, "interstitial cell": 9, "interstitial cell of Cajal": 6, "intestinal crypt stem cell": 42, "intestinal crypt stem cell of colon": 4, "intestinal crypt stem cell of large intestine": 25, "intestinal crypt stem cell of small intestine": 7, "intestinal tuft cell": 4, "intestine goblet cell": 31, "intrahepatic cholangiocyte": 7, "ionocyte": 20, "keratinocyte": 418, "kidney capillary endothelial cell": 13, "kidney cell": 88, "kidney collecting duct alpha-intercalated cell": 29, "kidney collecting duct cell": 1, "kidney connecting tubule epithelial cell": 87, "kidney connecting tubule principal cell": 13, "kidney distal convoluted tubule epithelial cell": 106, "kidney epithelial cell": 92, "kidney interstitial alternatively activated macrophage": 1, "kidney interstitial cell": 37, "kidney interstitial fibroblast": 5, "kidney loop of Henle ascending limb epithelial cell": 142, "kidney loop of Henle epithelial cell": 2, "kidney loop of Henle thick ascending limb epithelial cell": 209, "kidney loop of Henle thin ascending limb epithelial cell": 7, "kidney loop of Henle thin descending limb epithelial cell": 8, "kidney proximal convoluted tubule epithelial cell": 305, "kidney resident macrophage": 2, "large pre-B-II cell": 8, "late pro-B cell": 6, "late promyelocyte": 32, "lens epithelial cell": 79, "lens fiber cell": 16, "leukocyte": 119, "liver dendritic cell": 23, "luminal cell of prostate epithelium": 232, "luminal endometrial multiciliated epithelial cell": 11, "luminal epithelial cell of mammary gland": 5, "lung goblet cell": 4, "lung multiciliated epithelial cell": 84, "lung perichondrial fibroblast": 8, "lung pericyte": 45, "lung resident memory CD4-positive, alpha-beta T cell": 34, "lung resident memory CD8-positive, alpha-beta T cell": 44, "lung secretory cell": 75, "lymphocyte": 761, "lymphocyte of B lineage": 14, "lymphoid lineage restricted progenitor cell": 67, "macroglial cell": 100, "macrophage": 2216, "macula densa epithelial cell": 4, "male germ cell": 9, "malignant cell": 1625, "mast cell": 247, "mature B cell": 288, "mature NK T cell": 777, "mature astrocyte": 422, "mature microglial cell": 337, "mature neutrophil": 24, "medullary thymic epithelial cell": 143, "medullary thymic epithelial cell type 1": 71, "medullary thymic epithelial cell type 2": 10, "medullary thymic epithelial cell type 3": 17, "megakaryocyte": 13, "megakaryocyte progenitor cell": 14, "megakaryocyte-erythroid progenitor cell": 12, "melanocyte": 23, "memory B cell": 785, "memory T cell": 98, "meningeal macrophage": 11, "mesangial cell": 9, "mesenchymal cell": 83, "mesenchymal stem cell": 117, "mesenchymal stem cell of adipose tissue": 811, "mesonephric nephron tubule epithelial cell": 49, "mesothelial cell": 495, "metamyelocyte": 4, "microglial cell": 1164, "midzonal region hepatocyte": 17, "monocyte": 1036, "mononuclear phagocyte": 223, "motor neuron": 43, "mucosa-associated lymphoid tissue macrophage": 67, "mucosal invariant T cell": 61, "mucus secreting cell": 5, "multiciliated epithelial cell": 16, "multiciliated epithelial cell of the bronchus": 1, "mural cell": 282, "muscle cell": 165, "myelinating Schwann cell": 9, "myelocyte": 75, "myeloid cell": 1379, "myeloid dendritic cell": 94, "myeloid leukocyte": 42, "myeloid lineage restricted progenitor cell": 4, "myo-medullary thymic epithelial cell": 26, "myoblast": 32, "myoepithelial cell": 29, "myofibroblast cell": 317, "naive B cell": 807, "naive T cell": 86, "naive thymus-derived CD4-positive, alpha-beta T cell": 744, "naive thymus-derived CD8-positive, alpha-beta T cell": 176, "nasal mucosa goblet cell": 49, "natural T-regulatory cell": 50, "natural killer cell": 1803, "neoplastic cell": 18, "neural cell": 74, "neural crest cell": 19, "neural progenitor cell": 477, "neuro-medullary thymic epithelial cell": 32, "neuroblast (sensu Nematoda and Protostomia)": 26, "neuroblast (sensu Vertebrata)": 83, "neuroendocrine cell": 12, "neuroendocrine cell of epithelium of lobar bronchus": 19, "neuron": 8037, "neuron associated cell": 3, "neuronal receptor cell": 1, "neuronal-restricted precursor": 14, "neuroplacodal cell": 23, "neutrophil": 122, "non-classical monocyte": 379, "non-myelinating Schwann cell": 7, "odontoblast": 66, "oligodendrocyte": 4890, "oligodendrocyte precursor cell": 1044, "oocyte": 14, "oogonial cell": 75, "oral mucosa squamous cell": 103, "osteoclast": 2, "pancreatic A cell": 16, "pancreatic D cell": 179, "pancreatic acinar cell": 4, "pancreatic ductal cell": 8, "pancreatic endocrine cell": 1, "paneth cell": 61, "paneth cell of colon": 11, "parietal epithelial cell": 22, "pericyte": 942, "perineurial cell": 5, "peripheral nervous system neuron": 1, "periportal region hepatocyte": 79, "peritubular capillary endothelial cell": 24, "perivascular cell": 38, "perivascular macrophage": 3, "pinealocyte": 12, "plasma cell": 1263, "plasmablast": 313, "plasmacytoid dendritic cell": 113, "plasmacytoid dendritic cell, human": 6, "platelet": 342, "pluripotent stem cell": 10, "podocyte": 104, "pre-B-I cell": 6, "precursor B cell": 61, "precursor cell": 7, "primary cultured cell": 1, "primitive red blood cell": 47, "primordial germ cell": 55, "pro-B cell": 20, "progenitor cell": 258, "promonocyte": 19, "promyelocyte": 3, "prostate gland microvascular endothelial cell": 48, "prostate stromal cell": 12, "pulmonary alveolar epithelial cell": 45, "pulmonary alveolar type 1 cell": 21, "pulmonary alveolar type 2 cell": 279, "pulmonary artery endothelial cell": 34, "pulmonary ionocyte": 2, "pulmonary neuroendocrine cell": 34, "pvalb GABAergic cortical interneuron": 59, "radial glial cell": 80, "regular atrial cardiac myocyte": 572, "regulatory T cell": 147, "renal alpha-intercalated cell": 45, "renal beta-intercalated cell": 19, "renal intercalated cell": 49, "renal principal cell": 67, "respiratory basal cell": 14, "respiratory tract epithelial cell": 116, "respiratory tract suprabasal cell": 2, "reticulocyte": 280, "retina horizontal cell": 120, "retinal astrocyte": 8, "retinal bipolar neuron": 47, "retinal blood vessel endothelial cell": 15, "retinal cone cell": 118, "retinal ganglion cell": 412, "retinal pigment epithelial cell": 81, "retinal rod cell": 784, "rod bipolar cell": 141, "salivary gland glandular cell": 159, "sebocyte": 8, "secondary lens fiber": 19, "secretory cell": 246, "sensory neuron of dorsal root ganglion": 44, "seromucus secreting cell": 82, "serotonergic neuron": 8, "serous secreting cell": 99, "skeletal muscle fiber": 26, "skeletal muscle myoblast": 13, "skeletal muscle satellite cell": 10, "skeletal muscle satellite stem cell": 299, "skin fibroblast": 159, "slow muscle cell": 25, "small pre-B-II cell": 13, "smooth muscle cell": 421, "smooth muscle cell of large intestine": 9, "smooth muscle cell of prostate": 86, "smooth muscle cell of small intestine": 7, "smooth muscle cell of the pulmonary artery": 24, "smooth muscle myoblast": 3, "squamous epithelial cell": 76, "sst GABAergic cortical interneuron": 63, "starburst amacrine cell": 5, "stem cell": 25, "stem cell of epidermis": 19, "striated cell of salivary gland": 14, "stromal cell": 363, "stromal cell of endometrium": 1, "stromal cell of ovary": 446, "subcutaneous adipocyte": 932, "supporting cell of vestibular epithelium": 6, "tendon cell": 7, "thalamic excitatory neuron": 4, "theca cell": 63, "thymic fibroblast type 1": 185, "thymic fibroblast type 2": 97, "thymocyte": 47, "tip cell": 10, "tonsil germinal center B cell": 344, "tracheal goblet cell": 15, "transit amplifying cell": 45, "transit amplifying cell of colon": 305, "transit amplifying cell of small intestine": 19, "transitional stage B cell": 101, "tuft cell of colon": 5, "type A enteroendocrine cell": 21, "type B pancreatic cell": 9, "type D enteroendocrine cell": 1, "type I NK T cell": 2, "type II NK T cell": 1, "umbrella cell of urothelium": 36, "unknown": 504, "unswitched memory B cell": 198, "urothelial cell": 2, "vasa recta ascending limb cell": 21, "vasa recta descending limb cell": 18, "vascular associated smooth muscle cell": 185, "vascular leptomeningeal cell": 196, "vascular lymphangioblast": 1, "vein endothelial cell": 540 }
[ "Alzheimer disease", "B-cell acute lymphoblastic leukemia", "Barrett esophagus", "COVID-19", "Crohn disease", "Down syndrome", "HIV infectious disease", "HIV infectious disease || leishmaniasis", "HIV infectious disease || visceral leishmaniasis", "Lewy body dementia", "Parkinson disease", "Wilms tumor", "acute myeloid leukemia", "acute promyelocytic leukemia", "adenocarcinoma", "age related macular degeneration 7", "anencephaly", "arrhythmogenic right ventricular cardiomyopathy", "atrial fibrillation || mitral valve insufficiency", "basal cell carcinoma", "basal laminar drusen", "benign prostatic hyperplasia", "breast cancer", "breast carcinoma", "cataract", "chromophobe renal cell carcinoma", "clear cell renal carcinoma", "colon adenocarcinoma", "colon sessile serrated adenoma/polyp", "colorectal cancer", "common variable immunodeficiency", "cytomegalovirus infection", "dementia", "dilated cardiomyopathy", "enamel caries", "gastric intestinal metaplasia", "gastritis", "glioblastoma", "hyperplastic polyp", "hypertrophic cardiomyopathy", "influenza", "invasive ductal breast carcinoma", "invasive lobular breast carcinoma", "leukoencephalopathy, diffuse hereditary, with spheroids 1", "long COVID-19", "luminal A breast carcinoma", "luminal B breast carcinoma", "macular degeneration", "malignant ovarian serous tumor", "multiple sclerosis", "myocardial infarction", "myocarditis", "neuroblastoma", "neuroendocrine carcinoma", "non-compaction cardiomyopathy", "normal", "obstructive nephropathy", "oral cavity squamous cell carcinoma", "pilocytic astrocytoma", "plasma cell myeloma", "prediabetes syndrome", "prostatic acinar adenocarcinoma", "pulmonary emphysema", "pulpitis", "respiratory failure", "rheumatoid arthritis", "temporal lobe epilepsy", "triple-negative breast carcinoma", "tubular adenoma", "tubulovillous adenoma", "type 2 diabetes mellitus", "ulcerative colitis" ]
{ "open_seconds": 0.0011517200618982315, "read_chunk_seconds": 0.006099492311477661, "chunk_shape": [ 1000, 1000 ], "chunk_origin": [ 84212, 38534 ], "shape": [ 100000, 61497 ] }
{ "census_version": "2025-11-08T00:00:00", "created_at": "2026-02-03T06:49:50.898169+00:00", "max_cells": 100000, "n_hvg": 0, "obs_value_filter": "tissue_general == 'lung' and is_primary_data == True", "organism": "Homo sapiens", "schema_version": "1.0", "seed": 0, "source": "cellxgene-census", "x_chunks": [ 1000, 1000 ], "x_compression": { "clevel": 3, "cname": "zstd", "codec": "blosc", "shuffle": "bitshuffle" }, "shape": [ 100000, 61497 ], "obs_arrays": [ "_index", "assay", "cell_type", "disease", "sex", "tissue" ], "var_arrays": [ "_index", "feature_id", "feature_length", "feature_name", "feature_type", "n_measured_obs", "nnz", "soma_joinid" ] }

Single-cell lung (CellxGene Census) — Zarr

This dataset was exported from the CellxGene Census as a chunked + compressed Zarr store intended for easy streaming access.

  • Source: CellxGene Census API
  • Organism: Homo sapiens
  • Filter: tissue_general == 'lung' and is_primary_data == True
  • Shape: 100,000 cells × 61,497 genes
  • Zarr path: lung.zarr

Compression

  • Uncompressed (dense float32): 22.91 GB
  • Compressed Zarr: ~307 MB (322 MB on Hub)
  • Compression ratio: ~76× (Blosc zstd on sparse single-cell data)

The high compression ratio is achieved through Blosc zstd compression optimized for sparse expression matrices typical in single-cell RNA-seq data.

Included labels

  • obs/cell_type
  • obs/disease
  • obs/tissue
  • obs/sex
  • obs/assay

Cell type distribution (top 25)

cell_type n_cells
neuron 8,037
oligodendrocyte 4,890
fibroblast 4,539
glutamatergic neuron 3,367
macrophage 2,216
endothelial cell 1,941
astrocyte 1,808
natural killer cell 1,803
T cell 1,734
malignant cell 1,625
GABAergic neuron 1,589
classical monocyte 1,562
basal cell of prostate epithelium 1,401
myeloid cell 1,379
plasma cell 1,263
epithelial cell of proximal tubule 1,185
adipocyte of omentum tissue 1,170
microglial cell 1,164
acinar cell of salivary gland 1,074
oligodendrocyte precursor cell 1,044
monocyte 1,036
blood vessel endothelial cell 982
pericyte 942
subcutaneous adipocyte 932
CD8-positive, alpha-beta T cell 830

Disease labels included

Total unique disease labels: 72

Alzheimer disease
B-cell acute lymphoblastic leukemia
Barrett esophagus
COVID-19
Crohn disease
Down syndrome
HIV infectious disease
HIV infectious disease || leishmaniasis
HIV infectious disease || visceral leishmaniasis
Lewy body dementia
Parkinson disease
Wilms tumor
acute myeloid leukemia
acute promyelocytic leukemia
adenocarcinoma
age related macular degeneration 7
anencephaly
arrhythmogenic right ventricular cardiomyopathy
atrial fibrillation || mitral valve insufficiency
basal cell carcinoma
basal laminar drusen
benign prostatic hyperplasia
breast cancer
breast carcinoma
cataract
chromophobe renal cell carcinoma
clear cell renal carcinoma
colon adenocarcinoma
colon sessile serrated adenoma/polyp
colorectal cancer
common variable immunodeficiency
cytomegalovirus infection
dementia
dilated cardiomyopathy
enamel caries
gastric intestinal metaplasia
gastritis
glioblastoma
hyperplastic polyp
hypertrophic cardiomyopathy
influenza
invasive ductal breast carcinoma
invasive lobular breast carcinoma
leukoencephalopathy, diffuse hereditary, with spheroids 1
long COVID-19
luminal A breast carcinoma
luminal B breast carcinoma
macular degeneration
malignant ovarian serous tumor
multiple sclerosis
myocardial infarction
myocarditis
neuroblastoma
neuroendocrine carcinoma
non-compaction cardiomyopathy
normal
obstructive nephropathy
oral cavity squamous cell carcinoma
pilocytic astrocytoma
plasma cell myeloma
prediabetes syndrome
prostatic acinar adenocarcinoma
pulmonary emphysema
pulpitis
respiratory failure
rheumatoid arthritis
temporal lobe epilepsy
triple-negative breast carcinoma
tubular adenoma
tubulovillous adenoma
type 2 diabetes mellitus
ulcerative colitis

Data layout

  • Expression matrix: X (dense 2D array)
    • chunks: (1000, 1000)
    • dtype: float32
    • compression: Blosc zstd
  • Metadata:
    • obs/_index, obs/<col> (or obs/<col>_codes + obs/<col>_categories for categoricals)
    • var/_index, var/<col> (or var/<col>_codes + var/<col>_categories for categoricals)

Loading (zarr → AnnData)

import zarr
import numpy as np
import pandas as pd
from anndata import AnnData

root = zarr.open_group("lung.zarr", mode="r")
X = root["X"]  # zarr Array (lazy / on-demand)

obs = pd.DataFrame(index=root["obs/_index"][:].astype(str))
for col in ["cell_type", "disease", "tissue", "sex", "assay"]:
    codes_key = "obs/" + col + "_codes"
    cats_key = "obs/" + col + "_categories"
    if codes_key in root and cats_key in root:
        obs[col] = pd.Categorical.from_codes(root[codes_key][:], root[cats_key][:].astype(str))
    elif "obs/" + col in root:
        obs[col] = root["obs/" + col][:].astype(str)

var = pd.DataFrame(index=root["var/_index"][:].astype(str))
for col in ["feature_name", "feature_id", "gene_symbol"]:
    key = "var/" + col
    if key in root:
        var[col] = root[key][:].astype(str)

# Convert to in-memory AnnData (loads full matrix):
adata = AnnData(X=np.asarray(X), obs=obs, var=var)

Scanpy workflow example

import scanpy as sc

sc.pp.normalize_total(adata, target_sum=1e4)
sc.pp.log1p(adata)
sc.pp.highly_variable_genes(adata, n_top_genes=2000, flavor="seurat_v3")
adata = adata[:, adata.var["highly_variable"]].copy()

sc.pp.scale(adata, max_value=10)
sc.tl.pca(adata, svd_solver="arpack")
sc.pp.neighbors(adata, n_neighbors=15, n_pcs=50)
sc.tl.umap(adata)
sc.tl.leiden(adata, resolution=0.5)

Streaming benchmark (single 1000×1000 chunk)

Measured locally while building this dataset:

  • open Zarr group: 0.0021 s
  • read one X[chunk] (1000×1000): 0.0864 s
{
  "open_seconds": 0.0021242350339889526,
  "read_chunk_seconds": 0.08641284704208374,
  "chunk_shape": [
    1000,
    1000
  ],
  "chunk_origin": [
    84212,
    38534
  ],
  "shape": [
    100000,
    61497
  ]
}

Build metadata

{
  "census_version": "2025-11-08",
  "created_at": "2026-02-03T06:49:50.898169+00:00",
  "max_cells": 100000,
  "n_hvg": 0,
  "obs_value_filter": "tissue_general == 'lung' and is_primary_data == True",
  "organism": "Homo sapiens",
  "schema_version": "1.0",
  "seed": 0,
  "source": "cellxgene-census",
  "x_chunks": [
    1000,
    1000
  ],
  "x_compression": {
    "clevel": 3,
    "cname": "zstd",
    "codec": "blosc",
    "shuffle": "bitshuffle"
  },
  "shape": [
    100000,
    61497
  ],
  "obs_arrays": [
    "_index",
    "assay",
    "cell_type",
    "disease",
    "sex",
    "tissue"
  ],
  "var_arrays": [
    "_index",
    "feature_id",
    "feature_length",
    "feature_name",
    "feature_type",
    "n_measured_obs",
    "nnz",
    "soma_joinid"
  ]
}

Upload to HuggingFace Hub

This repo is intended for: KokosDev/single-cell-lung-zarr.

If you have a HuggingFace token locally, upload with:

python3.11 -m pip install huggingface_hub
HF_TOKEN=*** python3.11 build_lung_zarr.py --upload --repo-id "KokosDev/single-cell-lung-zarr"
Downloads last month
14

Collection including KokosDev/single-cell-lung-zarr