Arc Virtual Cell Atlas (scBaseCount, Tahoe-100M h5ad, Virtual Cell Challenge): sample notebook
A worked notebook for Arc Virtual Cell Atlas (scBaseCount, Tahoe-100M h5ad, Virtual Cell Challenge), with 9 code cells and the output each one printed. On Scigantic it opens in a hosted JupyterLab with the dataset already mounted, so nothing is downloaded first.
- Provider
- Arc Institute
- License
- CC0-1.0
- Stored at
- Google Cloud Storage, gs://arc-institute-virtual-cell-atlas
- Access
- Free and public. No account with the data provider is needed.
The notebook
Arc Virtual Cell Atlas
The Arc Institute's public bucket, gs://arc-institute-virtual-cell-atlas, holds three single-cell datasets: scBaseCount, Tahoe-100M and the Virtual Cell Challenge data. It is mounted read-only in this notebook, so a file is read when the code opens it and nothing is downloaded first. The data is released under CC0 1.0. Documentation: arc-virtual-cell-atlas on GitHub.
The h5ad files here are large (a Tahoe-100M plate is 13 to 37 GB), so this notebook reads metadata tables and file headers, and shows how to read a slice of a matrix without loading the whole file.
import os, warnings
# The bucket is a read-only network mount, which does not support file locks.
# HDF5 (and so h5py and anndata) tries to lock files it opens unless told not to.
os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
import h5py
import numpy as np
import pandas as pd
import scipy.sparse as sp
import anndata as ad
import matplotlib.pyplot as plt
warnings.filterwarnings("ignore")
plt.rcParams.update({"figure.dpi": 90, "axes.spines.top": False, "axes.spines.right": False})
ROOT = os.environ.get("SCIGANTIC_MOUNT_PATH", "/mnt/gcs-archive/data")
def gb(path):
return os.path.getsize(path) / 1e9
for name in sorted(os.listdir(ROOT)):
releases = sorted(d for d in os.listdir(os.path.join(ROOT, name)) if not d.startswith("."))
print(f"{name + '/':26} {', '.join(releases)}")
Output:
gcloud/ tmp scbasecount/ 2025-02-25, 2026-01-12, README.md tahoe100M/ 2025-02-25, README.md virtual-cell-challenge/ 2025
1. scBaseCount
scBaseCount is single-cell RNA-seq data from public experiments in the Sequence Read Archive (SRA) and ENA, found and re-processed by an agent workflow at Arc (SRAgent and scRecounter) and counted with STARsolo. A few datasets that were never deposited in the SRA come from CZI CELLxGENE collections and carry an NRX accession. Files are grouped by release, then by STARsolo feature type (Gene, GeneFull, GeneFull_Ex50pAS, GeneFull_ExonOverIntron, Velocyto), then by organism, with one h5ad per SRA experiment (an SRX or ERX accession). Each organism folder in metadata/ has two parquet tables: sample_metadata.parquet with one row per experiment, and obs_metadata.parquet with one row per cell.
The cell below uses the 2026-01-12 release and the GeneFull_Ex50pAS counts, and reads the human sample table.
SCB = os.path.join(ROOT, "scbasecount", "2026-01-12")
FEATURE = "GeneFull_Ex50pAS"
organisms = sorted(os.listdir(os.path.join(SCB, "metadata", FEATURE)))
print(f"{len(organisms)} organisms in this release, for example: {', '.join(organisms[:6])}")
human = pd.read_parquet(os.path.join(SCB, "metadata", FEATURE, "Homo_sapiens", "sample_metadata.parquet"))
print(f"Homo sapiens: {len(human):,} experiments, {human.obs_count.sum():,} cells")
print()
print(human.cell_prep.value_counts().to_string())
print()
print(human.tech_10x.value_counts().to_string())
Output:
27 organisms in this release, for example: Arabidopsis_thaliana, Bos_taurus, Caenorhabditis_elegans, Callithrix_jacchus, Chlorocebus_aethiops, Danio_rerio Homo sapiens: 35,263 experiments, 302,278,851 cells cell_prep single_cell 32748 single_nucleus 2462 unsure 52 not_applicable 1 tech_10x 3_prime_gex 24957 5_prime_gex 7146 other 893 feature_barcoding 788 multiome 651 ...
The sample table also carries tissue, disease, perturbation and cell_line. SRAgent extracted these from each experiment's SRA or ENA record (disease at the study level, from the study abstract), and wrote unsure where the record did not say. Counting them shows how much of the table is labeled:
for col in ["tissue", "disease", "perturbation"]:
unsure = human[col].isin(["unsure", "not specified", "none reported", "not applicable"]).mean()
print(f"{col:13} {human[col].nunique():6,} distinct values; {unsure:5.1%} of experiments unsure or unspecified")
print()
print("most common tissues:")
print(human.tissue.value_counts().head(8).to_string())
Output:
tissue 7,245 distinct values; 11.6% of experiments unsure or unspecified disease 6,229 distinct values; 27.8% of experiments unsure or unspecified perturbation 10,929 distinct values; 25.2% of experiments unsure or unspecified most common tissues: tissue unsure 4052 blood 1630 CML 1342 K562 cell line 923 lung 668 bone marrow 655 acute T cell leukemia 487 Peripheral Blood Mononuclear Cells (PBMC) 462
One experiment
Each row's file_path points at its h5ad. The experiment below (SRX20275636) is labeled as peripheral blood mononuclear cells from a control donor. Its h5ad is small enough to read whole. The matrix in X holds counts of uniquely mapped reads; two other layers hold counts that also assign multi-mapping reads.
row = human.set_index("srx_accession").loc["SRX20275636"]
print(row[["obs_count", "tissue", "disease", "tech_10x", "cell_prep"]].to_string())
path = os.path.join(SCB, "h5ad", FEATURE, "Homo_sapiens", "SRX20275636.h5ad")
print(f"\n{os.path.basename(path)}: {os.path.getsize(path) / 1e6:.0f} MB")
adata = ad.read_h5ad(path)
print(adata)
counts = np.asarray(adata.X.sum(axis=1)).ravel()
genes = np.asarray((adata.X > 0).sum(axis=1)).ravel()
print(f"\nper cell: median {np.median(counts):,.0f} counts, median {np.median(genes):,.0f} genes detected")
totals = np.asarray(adata.X.sum(axis=0)).ravel()
top = pd.Series(totals, index=adata.var["gene_symbols"].astype(str).values).nlargest(10)
print("\ngenes with the most counts in this sample:")
print((top / totals.sum()).map("{:.1%}".format).to_string())
Output:
obs_count 4352
tissue PBMC (Peripheral Blood Mononuclear Cells)
disease Control
tech_10x 3_prime_gex
cell_prep single_cell
SRX20275636.h5ad: 86 MB
AnnData object with n_obs × n_vars = 4352 × 36601
obs: 'gene_count_Unique', 'umi_count_Unique', 'gene_count_UniqueAndMult-EM', 'umi_count_UniqueAndMult-EM', 'gene_count_UniqueAndMult-Uniform', 'umi_count_UniqueAndMult-Uniform', 'SRX_accession', 'cell_type', 'cell_ontology_term_id'
var: 'gene_symbols'
layers: 'UniqueAndMult-EM', 'UniqueAndMult-Uniform'
per cell: median 5,828 counts, median 2,241 genes detected
genes with the most counts in this sample:
...
2. Tahoe-100M
Tahoe-100M is a drug perturbation screen from Tahoe Therapeutics: cancer cell lines treated with small molecules and profiled by single-cell RNA-seq. Arc's copy has one h5ad per plate in h5ad/, a per-sample table in metadata/sample_metadata.parquet and a per-cell table in metadata/obs_metadata.parquet.
The plate files are too large to open casually. An h5ad is an HDF5 file, so its matrix shape can be read from the file header in a fraction of a second:
TAHOE = os.path.join(ROOT, "tahoe100M", "2025-02-25")
plates = []
for f in sorted(os.listdir(os.path.join(TAHOE, "h5ad"))):
p = os.path.join(TAHOE, "h5ad", f)
with h5py.File(p, "r") as h:
n_cells, n_genes = h["X"].attrs["shape"]
plates.append({"plate": f.split("_")[0], "cells": int(n_cells), "genes": int(n_genes), "GB": round(gb(p), 1)})
plates = pd.DataFrame(plates)
plates["n"] = plates.plate.str.extract(r"(\d+)").astype(int)
plates = plates.sort_values("n").drop(columns="n").reset_index(drop=True)
print(plates.to_string(index=False))
print(f"\n{len(plates)} plates, {plates.cells.sum():,} cells, {plates.GB.sum():,.0f} GB")
samples = pd.read_parquet(os.path.join(TAHOE, "metadata", "sample_metadata.parquet"))
drugs = samples.drug.str.strip()
controls = [d for d in drugs.unique() if d == "DMSO_TF"]
print(f"sample_metadata: {len(samples):,} samples, {drugs.nunique()} distinct values in the drug column, including the control {', '.join(controls)}")
Output:
plate cells genes GB plate1 5481420 62710 19.1 plate2 8064658 62710 29.0 plate3 4705402 62710 13.2 plate4 7004356 62710 23.3 plate5 6419498 62710 19.8 plate6 7545393 62710 28.9 plate7 5692117 62710 16.5 plate8 8880979 62710 30.4 plate9 5866669 62710 18.8 plate10 8044908 62710 26.5 plate11 7435869 62710 23.2 plate12 10487057 62710 37.5 plate13 8501658 62710 28.1 plate14 6518806 62710 22.4 ...
fig, ax = plt.subplots(figsize=(8, 3))
ax.bar(plates.plate, plates.cells / 1e6, color="#1d4ed8")
ax.set_ylabel("cells (millions)")
ax.set_title("Tahoe-100M: cells per plate file", fontsize=10)
ax.tick_params(axis="x", labelrotation=45, labelsize=8)
plt.tight_layout(); plt.show()
Reading a slice of a plate
The matrix in each plate file is stored row by row (CSR): X/indptr says where each cell's values start in X/indices and X/data. Reading the first 1,000 cells therefore reads 1,001 numbers from indptr and then one contiguous run of indices and data, not the whole file.
import time
p = os.path.join(TAHOE, "h5ad", "plate3_filt_Vevo_Tahoe100M_WServicesFrom_ParseGigalab.h5ad")
t0 = time.time()
with h5py.File(p, "r") as h:
n_genes = int(h["X"].attrs["shape"][1])
ptr = h["X/indptr"][:1001]
idx = h["X/indices"][ptr[0]:ptr[-1]]
val = h["X/data"][ptr[0]:ptr[-1]]
gene_names = h["var/_index"][:].astype(str) if "_index" in h["var"] else None
X = sp.csr_matrix((val, idx, ptr - ptr[0]), shape=(1000, n_genes))
print(f"read 1,000 of {plates.set_index('plate').loc['plate3', 'cells']:,} cells from a {gb(p):.1f} GB file in {time.time() - t0:.1f} s")
print(f"values read: {X.nnz:,} ({X.nnz * (idx.itemsize + val.itemsize) / 1e6:.1f} MB)")
print(f"per cell: median {np.median(np.asarray(X.sum(axis=1)).ravel()):,.0f} counts, median {np.median(np.diff(X.indptr)):,.0f} genes detected")
Output:
read 1,000 of 4,705,402 cells from a 13.2 GB file in 1.0 s values read: 1,116,478 (13.4 MB) per cell: median 1,222 counts, median 924 genes detected
The per-cell table metadata/obs_metadata.parquet (2.3 GB) holds the drug, dose and cell line for every cell. Its columns are described in metadata/obs_metadata_descriptions.tsv:
desc = pd.read_csv(os.path.join(TAHOE, "metadata", "obs_metadata_descriptions.tsv"), sep="\t")
with pd.option_context("display.max_colwidth", None, "display.width", 200):
print(desc.to_string(index=False))
Output:
Column description
plate plate number
BARCODE_SUB_LIB_ID cell identifier
sample unique treatment identifier, distinguishes replicated treatments
gene_count number of genes with at least one count
tsc_count number of transcripts, aka UMI count
mread_count number of reads per cell
drugname_drugconc drug name, concentration and concentration unit
drug drug name, as used in the drugname_drugconc field
cell_line cell line Cellosaurus identifier
sublibrary sublibrary id (related to library prep and sequencing)
BARCODE barcode id
pcnt_mito percentage mitochondrial reads
S_score inferred S phase score
...
3. Virtual Cell Challenge 2025
Arc generated this dataset for the 2025 Virtual Cell Challenge: single-cell responses to perturbations of single target genes in a human embryonic stem cell line (H1 hESC). Each cell's target_gene and guide_id are in the h5ad. The bucket holds the training, validation and test h5ad files, a table of cells per target gene for each split, and the list of measured genes.
VCC = os.path.join(ROOT, "virtual-cell-challenge", "2025")
for split, name in [("train", "Training"), ("validation", "Validation"), ("test", "Test")]:
counts = pd.read_csv(os.path.join(VCC, split, f"pert_counts_{name}.csv"))
h5 = f"adata_{name}.h5ad"
p = os.path.join(VCC, split, h5)
with h5py.File(p, "r") as h:
n_cells, n_genes = h["X"].attrs["shape"]
print(f"{split:10} {len(counts):4} target genes h5ad: {int(n_cells):,} cells x {int(n_genes):,} genes, {gb(p):.1f} GB")
genes = pd.read_csv(os.path.join(VCC, "gene_names.csv"), header=None)[0]
print(f"\ngene_names.csv: {len(genes):,} genes")
Output:
train 150 target genes h5ad: 221,273 cells x 18,080 genes, 15.5 GB validation 50 target genes h5ad: 98,927 cells x 18,080 genes, 6.9 GB test 100 target genes h5ad: 170,846 cells x 18,080 genes, 12.0 GB gene_names.csv: 18,080 genes
Going further
- scBaseCount: filter sample_metadata.parquet by tissue, disease or technology, then open the h5ad files in file_path. The per-cell obs_metadata.parquet for an organism (6 GB for human) has every cell's metadata without opening any h5ad.
- Tahoe-100M: read a plate in slices of cells as above. To select cells by drug or cell line, filter obs_metadata.parquet first, then read the matching rows.
- Virtual Cell Challenge: the training h5ad is in the same CSR layout, so the slice pattern above works for it too.
Source: Arc Institute, Virtual Cell Atlas. Tahoe-100M: Zhang et al., bioRxiv 2025.
Run it
Open this notebook to run it, see the dataset page for the full description, or browse the full catalog.