Combine cells from four public COVID-19 blood studies into one CyteArc composite, analyze them together with and without Harmony correction for study, and reopen the saved results. A composite is a writable datastore that reads its counts from the source datasets and saves its own metadata and analyses, so the counts are never copied into it.
The studies profiled the peripheral blood of COVID-19 patients and healthy donors: Wilk et al. (2020), Lee et al. (2020), and the Arunachalam et al. (2020) and Schulte-Schrepping et al. (2020) datasets that Jin et al. (2021) republished. The composite combines all 233,870 of their COVID-19 and healthy-donor cells, without subsampling, on the 19,405 genes that every study measured. Without correction the cells group by study, and 7 of the 26 clusters draw at least 90% of their cells from one study. After Harmony, 1 of 21 clusters does, and the markers of most corrected clusters name a blood cell type, including plasmablasts, immature neutrophils and hematopoietic progenitors. Three corrected clusters still separate the healthy-donor cells that one study sequenced with an older 10x chemistry, because a correction for study leaves a difference inside one study in place.
Open the source datasets¶
Each study is a dataset of the October 2026 CyteBase release (2610): a public CZ CELLxGENE Discover dataset converted to a CyteArc store, which opens by its Hugging Face URI. CyteBase datasets explains these URIs and how to search the catalog for other datasets. Reading the public bucket needs network access but no token. Datasets combined into one composite must come from one species and share gene IDs.
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from IPython.display import display
import cytearc
from cytearc.composite import create_composite
# Size source reads, composite creation and the pipeline to the machine.
memory_budget = "6G"
workers = 4
# Keep routine pipeline progress out of the notebook output.
cytearc.configure_output(level="WARNING", progress=False)
# Locate the October 2026 CyteBase release in its public bucket.
release = "hf://buckets/Nygen/cytebase-2610"Started: 2026-11-24T13:28:55.874015Z | Wall time: 0.913 s
# Name each study; the names become the values of the composite's dataset column.
dataset_ids = {
"blood_wilk": "wilk_2020_single_cell_atlas_peripheral_sars_cov_2_infection_456e8b9b",
"blood_lee": "lee_2020_immunophenotyping_covid_19_development_severe_covid_19_de2c780c",
"blood_arunachalam": "jin_2021_individual_single_cell_rna_seq_pbmc_data_arunachalam_et_al_59b69042",
"blood_schulte_schrepping": "jin_2021_individual_single_cell_rna_seq_data_schulte_schrepping_et_al_5e717147",
}
# Open each source read-only and anonymously.
sources = {
name: cytearc.DataStore(
f"{release}/datasets/{dataset_id}/data.zarr",
zarr_mode="r",
storage_options={"token": False},
mem_budget=memory_budget,
nthreads=workers,
)
for name, dataset_id in dataset_ids.items()
}Started: 2026-11-24T13:28:56.788246Z | Wall time: 25.800 s
Select the cells to combine¶
Keep every cell whose disease label is COVID-19 or normal, CELLxGENE’s label for healthy donors, and that CELLxGENE marks as the primary copy of the cell (is_primary_data), so that no cell enters twice. rows holds the positions of the selected cells in each source; a source left out of rows contributes all of its stored cells, inactive ones included.
# Select the primary COVID-19 and normal cells of each study by their source metadata,
# and count the cells left out by their disease label.
rows = {}
left_out = {}
for name, source in sources.items():
primary = source.cells.fetch_all("is_primary_data")
disease = source.cells.fetch_all("disease")
selected = np.flatnonzero(primary & np.isin(disease, ["COVID-19", "normal"]))
if selected.size == 0:
raise ValueError(f"No primary COVID-19 or normal cells selected for {name!r}")
rows[name] = selected
counts = pd.Series(np.delete(disease, selected)).value_counts()
left_out[name] = (
", ".join(f"{label} ({count:,})" for label, count in counts.items()) or "none"
)
# Compare each study's stored cells with the cells selected from it and those left out.
display(
pd.DataFrame(
{
"source_cells": {name: source.cells.N for name, source in sources.items()},
"selected_cells": {name: len(selected) for name, selected in rows.items()},
"left_out": left_out,
}
)
)| source_cells | selected_cells | left_out | |
|---|---|---|---|
| blood_wilk | 44721 | 44721 | none |
| blood_lee | 59572 | 49053 | influenza (10,519) |
| blood_arunachalam | 49139 | 49139 | none |
| blood_schulte_schrepping | 90957 | 90957 | none |
Started: 2026-11-24T13:29:22.591012Z | Wall time: 4.010 s
The selection keeps every cell of three studies and 49,053 of the 59,572 cells of Lee et al., whose other 10,519 cells come from influenza patients.
Create the composite¶
create_composite with features="intersection" keeps the genes that all four sources measured, while features="union" keeps every gene and fills a source’s missing genes with zeros. Creation reads the selected counts once, to compute each cell’s totals over the kept genes for QC, and copies the cell and feature metadata. Choose a new local path, or a URL in your own bucket with its storage_options. If the path already exists, reopen it as the last section shows.
# Write the composite to a new local store.
joint_path = Path("joint_cytebase.zarr")
# Combine the selected cells on the genes that all four studies measured.
joint = create_composite(
sources,
at=joint_path,
assay="RNA",
features="intersection",
rows=rows,
mem_budget=memory_budget,
nthreads=workers,
)
print(f"{joint.cells.N:,} cells and {joint.RNA.feats.N:,} shared genes")233,870 cells and 19,405 shared genes
Started: 2026-11-24T13:29:26.603096Z | Wall time: 109.078 s
Check the study design¶
The composite keeps each source’s metadata columns under an orig_ prefix, such as orig_disease and orig_donor_id. Harmony removes the differences between the batches it is given, so if a study held only one condition, correcting for study would remove the difference between conditions too. Before correcting for study, check that each study holds both conditions. Count donors within each study, because the same donor ID in two studies does not name the same person.
# Read each cell's study, condition, donor and sequencing technology,
# the columns that both runs freeze.
snapshot_columns = ["dataset", "orig_disease", "orig_donor_id", "orig_assay"]
design = joint.cells.to_pandas_dataframe(snapshot_columns, key=None)
# Count cells and donors in each study and condition, with the sequencing technology.
display(
design.groupby(["dataset", "orig_disease"], observed=True).agg(
cells=("orig_donor_id", "size"),
donors=("orig_donor_id", "nunique"),
assay=("orig_assay", lambda assays: ", ".join(sorted(set(assays)))),
)
)
# Count donors whose cells carry both conditions within one study.
donor_conditions = design.groupby(["dataset", "orig_donor_id"], observed=True)[
"orig_disease"
].nunique()
print(
f"Within-study donors represented in both conditions: {(donor_conditions > 1).sum()}"
)| cells | donors | assay | ||
|---|---|---|---|---|
| dataset | orig_disease | |||
| blood_arunachalam | COVID-19 | 23185 | 7 | 10x 3' v3 |
| normal | 25954 | 5 | 10x 3' v3 | |
| blood_lee | COVID-19 | 31463 | 8 | 10x 3' v3 |
| normal | 17590 | 4 | 10x 3' v3 | |
| blood_schulte_schrepping | COVID-19 | 45170 | 18 | 10x 3' v3 |
| normal | 45787 | 21 | 10x 3' v2, 10x 3' v3 | |
| blood_wilk | COVID-19 | 28094 | 7 | Seq-Well |
| normal | 16627 | 6 | Seq-Well |
Within-study donors represented in both conditions: 0
Started: 2026-11-24T13:31:15.681933Z | Wall time: 0.162 s
Every study contributes both COVID-19 and healthy donors, 4 to 21 per condition, so no study coincides with a condition. No donor contributes cells to both conditions, so any comparison of the conditions compares different donors. The studies differ in technology: Wilk et al. used Seq-Well and the other three used 10x Genomics 3’ chemistry, version 3, except that Schulte-Schrepping et al.'s healthy donors include cells sequenced with version 2, so every version 2 cell comes from a healthy donor.
Analyze the composite without correction¶
ds.pipeline.rna runs CyteArc’s RNA recipe on the composite: QC filtering, cell-cycle scores, highly variable genes, normalization, PCA, a neighbor graph, UMAP, Leiden clusters, doublet scores and markers. It saves the results as a pipeline run, a record of each stage’s settings and outputs that can be reopened by its label. Leiden runs at several resolutions, and the run keeps the partition with the best silhouette score.
This run removes cells whose log total counts or log detected genes lie more than 5 scaled median absolute deviations (MADs) from their study’s median, or whose mitochondrial or ribosomal percentage lies more than 5 scaled MADs above it; the scaling makes a MAD match the standard deviation of normally distributed values. Gene selection leaves out mitochondrial, ribosomal, HLA and histone genes, and the sex-specific genes XIST and nine Y-chromosome genes. A run’s cell view, run.cells, reads only what the run computed or froze, so snapshot_columns freezes the study, condition, donor and assay columns into it for the comparisons below.
The cell-cycle stage scores CyteArc’s bundled human marker lists. Two of the 43 S-phase markers and one of the 54 G2M markers are not among the shared genes, so each phase is scored with the markers that remain. The run report records each warning with the stage that logged it, so the warnings stay with the saved run.
# Exclude mitochondrial, ribosomal, HLA and histone genes, XIST and nine Y-chromosome genes
# from feature selection.
hvg_blacklist = "|".join(
[
r"^MT-",
r"^RP[SL]\d+[AXY]?\d*$|^RPLP[0-2]$|^RPSA$|^MRP[SL]\d+[A-C]?$",
r"^HLA-",
r"^HIST[1-4]H|^H1-[1-6]$|^H1F[1-6]$|^H2AC\d+$|^H2BC\d+$"
r"|^H3C\d+$|^H4C\d+$|^H2AW$|^H3-4$|^H4-16$",
r"^XIST$|^DDX3Y$|^USP9Y$|^EIF1AY$|^KDM5D$|^SRY$|^ZFY$"
r"|^UTY$|^TMSB4Y$|^NLGN4Y$",
]
)
# Share the filtering and gene selection settings between the two runs.
filtering = {"method": "mad", "sample_column": "dataset", "n_mads": 5}
hvg = {"blacklist": hvg_blacklist}
# Analyze the composite without batch correction, as the baseline for comparison.
baseline = joint.pipeline.rna(
assay="RNA",
label="joint_baseline",
filtering=filtering,
hvg=hvg,
species="homo_sapiens",
snapshot_columns=snapshot_columns,
)WARNING: 2 of 43 s_genes were not found in the assay feature names
WARNING: 1 of 54 g2m_genes were not found in the assay feature names
Started: 2026-11-24T13:31:15.844727Z | Wall time: 676.914 s
# Count the cells that QC retained in each study and condition; I in a run's cell view
# marks the cells that the run analyzed.
retention = design[["dataset", "orig_disease"]].copy()
retention["retained"] = baseline.cells.fetch_all("I")
display(
retention.groupby(["dataset", "orig_disease"], observed=True)["retained"]
.agg(included="size", retained="sum", retained_fraction="mean")
.round(3)
)
# Print the warnings that the run recorded, with the stage that logged each.
for warning in baseline.report()["summary"]["warnings"]:
print(f"{warning['stage']}: {warning['message']}")| included | retained | retained_fraction | ||
|---|---|---|---|---|
| dataset | orig_disease | |||
| blood_arunachalam | COVID-19 | 23185 | 23184 | 1.000 |
| normal | 25954 | 25953 | 1.000 | |
| blood_lee | COVID-19 | 31463 | 30592 | 0.972 |
| normal | 17590 | 17526 | 0.996 | |
| blood_schulte_schrepping | COVID-19 | 45170 | 44003 | 0.974 |
| normal | 45787 | 45250 | 0.988 | |
| blood_wilk | COVID-19 | 28094 | 27687 | 0.986 |
| normal | 16627 | 16509 | 0.993 |
cell_cycle: 2 of 43 s_genes were not found in the assay feature names
cell_cycle: 1 of 54 g2m_genes were not found in the assay feature names
Started: 2026-11-24T13:42:32.760924Z | Wall time: 0.127 s
QC keeps at least 97.2% of the cells of every study and condition, so filtering barely shifts the balance between conditions; the COVID-19 cells of Lee et al. and Schulte-Schrepping et al. lose the most, with 97.2% and 97.4% kept. The UMAPs color the retained cells by study and by cluster.
# Color the uncorrected embedding by study and by cluster.
joint.plots.embedding(run=baseline, color_by=["dataset", "clusters"], n_columns=2)
Started: 2026-11-24T13:42:32.889310Z | Wall time: 1.613 s
Without correction, Wilk et al.'s Seq-Well cells (red) form islands of their own and Schulte-Schrepping et al.'s cells (green) form several more, while the 10x cells of Lee et al. and Arunachalam et al. (orange and blue) overlap with each other and with the rest of Schulte-Schrepping et al.'s cells.
Correct study effects with Harmony¶
Harmony Korsunsky et al., 2019 adjusts the PCA coordinates so that similar cells from different studies come together, and the run rebuilds the graph, UMAP and clusters from the adjusted coordinates; the counts, and any comparison of expression made from them, keep the differences between studies. The Harmony batch correction tutorial explains how Harmony works. The second run adds harmony={"batch_columns": ["dataset"]} and changes nothing else. Indexing a run by one of its outputs, such as baseline["pca"], returns a reference to the saved result, so the assertions show that the second run reused the first run’s cells and PCA instead of computing them again.
# Save a second run that corrects the PCA coordinates for study, with the same settings otherwise.
corrected = joint.pipeline.rna(
assay="RNA",
label="joint_harmony",
filtering=filtering,
hvg=hvg,
harmony={"batch_columns": ["dataset"]},
species="homo_sapiens",
snapshot_columns=snapshot_columns,
)
# Check that both runs analyze the same cells from the same PCA.
assert baseline["analysis_cell_selection"] == corrected["analysis_cell_selection"]
assert baseline["pca"] == corrected["pca"]
# Read Harmony's fit from the run report.
stages = {stage["stage"]: stage["summary"] for stage in corrected.report()["stages"]}
print(
f"Harmony converged: {stages['harmony']['converged']}, "
f"after {stages['harmony']['rounds']} rounds"
)
# Color the corrected embedding as the uncorrected one.
joint.plots.embedding(run=corrected, color_by=["dataset", "clusters"], n_columns=2)WARNING: 2 of 43 s_genes were not found in the assay feature names
WARNING: 1 of 54 g2m_genes were not found in the assay feature names
Harmony converged: True, after 14 rounds

Started: 2026-11-24T13:42:34.503080Z | Wall time: 395.296 s
Harmony converged after 14 rounds. The four studies overlap across most of the corrected layout, apart from regions on the left and an island at the top that remain mostly Schulte-Schrepping et al.'s cells (green).
Compare study mixing in the two runs¶
Two measures compare how well each run mixes the studies. At the level of clusters, a one-study cluster draws at least 90% of its cells from a single study. At the level of cells, same_study_neighbors is the fraction of a cell’s neighbors in the run’s graph that come from the cell’s own study, averaged over cells; ds.graph.load returns that graph as a sparse matrix. The run report also gives the Leiden resolution that each run chose.
# Score each run's study mixing: clusters that one study dominates, and graph neighbors from a cell's own study.
def study_mixing(analysis):
stages = {stage["stage"]: stage["summary"] for stage in analysis.report()["stages"]}
cells = analysis.cells.to_pandas_dataframe(["dataset", "clusters"])
study_fractions = pd.crosstab(cells["clusters"], cells["dataset"], normalize="index")
graph = joint.graph.load(analysis["connectivity_map"])
studies = cells["dataset"].to_numpy()
rows = np.repeat(np.arange(graph.shape[0]), np.diff(graph.indptr))
return {
"leiden_resolution": stages["cluster_selection"]["selected"],
"clusters": len(study_fractions),
"one_study_clusters": int((study_fractions.max(axis=1) >= 0.9).sum()),
"same_study_neighbors": (studies[rows] == studies[graph.indices]).mean(),
}
runs = {"uncorrected": baseline, "harmony": corrected}
display(
pd.DataFrame.from_dict(
{name: study_mixing(analysis) for name, analysis in runs.items()},
orient="index",
).round(3)
)
# Compare with the same-study fraction that randomly drawn neighbors would give.
study_shares = corrected.cells.to_pandas_dataframe(["dataset"])["dataset"].value_counts(
normalize=True
)
print(f"Same-study neighbors under random mixing: {(study_shares**2).sum():.3f}")| leiden_resolution | clusters | one_study_clusters | same_study_neighbors | |
|---|---|---|---|---|
| uncorrected | 0.5 | 26 | 7 | 0.797 |
| harmony | 0.5 | 21 | 1 | 0.614 |
Same-study neighbors under random mixing: 0.275
Started: 2026-11-24T13:49:09.800222Z | Wall time: 0.462 s
Both runs chose resolution 0.5, so the difference between 26 and 21 clusters comes from the corrected coordinates, not from the resolution. Without correction, 7 of the 26 clusters are one-study clusters, and on average 80% of a cell’s graph neighbors come from its own study. With Harmony, 1 of 21 clusters is a one-study cluster, and the same-study fraction falls to 61%, against 28% for neighbors drawn at random from the four studies. Harmony brings the studies into shared clusters, while a cell’s nearest neighbors still come mostly from its own study.
Each bar below shows one cluster’s cells by study, in the UMAP colors.
# Draw each cluster's study composition in both runs, in the embedding's study colors.
fig, axes = plt.subplots(2, 1, figsize=(8, 6.5), layout="constrained")
for ax, (name, analysis) in zip(axes, runs.items(), strict=True):
joint.plots.composition(
category_by="dataset",
grouping=analysis["clusters"],
target=ax,
show_legend=False,
show=False,
)
ax.set_title(f"{name.capitalize()} clusters")
ax.set_xlabel("cluster")
ax.set_ylabel("fraction of cells")
plt.setp(ax.get_xticklabels(), rotation=0, ha="center")
# Place one study legend above both panels, so the bars use the full width.
fig.legend(
*axes[0].get_legend_handles_labels(),
loc="outside upper center",
ncols=4,
frameon=False,
title="dataset",
)
plt.show()
Started: 2026-11-24T13:49:10.263230Z | Wall time: 0.382 s
Among the uncorrected clusters, three are almost entirely Schulte-Schrepping et al.'s cells, and four almost entirely Wilk et al.'s. Most corrected clusters draw on all four studies.
Name the corrected clusters from their markers¶
The table describes each corrected cluster: its size, its largest study and that study’s fraction of the cluster, the fractions of its cells from COVID-19 donors and sequenced with 10x 3’ v2 chemistry, and its five top-ranked markers.
# Keep the five top-ranked markers of each corrected cluster.
markers = joint.markers.load(marker=corrected["markers"])
top_markers = (
markers.groupby("group_id", sort=False)
.head(5)
.groupby("group_id", sort=False)["feature_name"]
.agg(", ".join)
)
# Describe each cluster by its size, its largest study, and its fractions of COVID-19 and 10x 3' v2 cells.
cells = corrected.cells.to_pandas_dataframe(
["dataset", "orig_disease", "orig_assay", "clusters"]
)
cells["covid19"] = cells["orig_disease"] == "COVID-19"
cells["v2"] = cells["orig_assay"] == "10x 3' v2"
summary = cells.groupby("clusters").agg(
cells=("dataset", "size"),
largest_study=("dataset", lambda studies: studies.value_counts().index[0]),
largest_study_fraction=(
"dataset",
lambda studies: studies.value_counts(normalize=True).iloc[0],
),
covid19_fraction=("covid19", "mean"),
v2_fraction=("v2", "mean"),
)
summary["top_markers"] = top_markers.reindex(summary.index.astype(str)).to_numpy()
with pd.option_context("display.max_colwidth", None):
display(summary.round(2))
print(
f"All analyzed cells: COVID-19 fraction {cells['covid19'].mean():.2f}, "
f"v2 fraction {cells['v2'].mean():.2f}"
)| cells | largest_study | largest_study_fraction | covid19_fraction | v2_fraction | top_markers | |
|---|---|---|---|---|---|---|
| clusters | ||||||
| 1 | 38602 | blood_schulte_schrepping | 0.43 | 0.58 | 0.00 | MAL, TSHZ2, TRABD2A, PASK, LEF1 |
| 2 | 32472 | blood_schulte_schrepping | 0.38 | 0.60 | 0.00 | CYP27A1, LINC00937, HOMER3, CYP1B1, TMEM176A |
| 3 | 26923 | blood_schulte_schrepping | 0.30 | 0.60 | 0.00 | TRGC2, GZMK, CD8A, CD8B, LINC01871 |
| 4 | 26720 | blood_lee | 0.28 | 0.46 | 0.00 | SH2D1B, KLRF1, NCAM1, CD160, PRSS23 |
| 5 | 17229 | blood_lee | 0.35 | 0.60 | 0.00 | LINC02397, FCRL1, PAX5, EBF1, TNFRSF13C |
| 6 | 15425 | blood_schulte_schrepping | 0.79 | 0.13 | 0.79 | LGALS2, CSTA, GABARAP, FCN1, TYROBP |
| 7 | 13639 | blood_schulte_schrepping | 0.91 | 0.04 | 0.91 | POLR2J3, KLRB1, ZNF90, BEST1, CD7 |
| 8 | 10129 | blood_wilk | 0.36 | 0.94 | 0.00 | SIGLEC1, OTOF, TCN2, SERPING1, CD163 |
| 9 | 10123 | blood_arunachalam | 0.32 | 0.29 | 0.19 | LYPD2, VMO1, CDKN1C, NEURL1, CKB |
| 10 | 9899 | blood_arunachalam | 0.45 | 0.85 | 0.00 | TMEM40, GP9, CLDN5, CMTM5, ESAM |
| 11 | 5399 | blood_wilk | 0.53 | 0.90 | 0.06 | IGF1, TNFRSF17, GLDC, CAV1, SYNE3-AS1 |
| 12 | 4497 | blood_schulte_schrepping | 0.50 | 0.97 | 0.00 | TSHZ2, ANK3, MAL, LEF1, INPP4B |
| 13 | 4048 | blood_arunachalam | 0.67 | 0.36 | 0.00 | ENHO, CD1E, PKIB, CLEC10A, CD1C |
| 14 | 2960 | blood_arunachalam | 0.72 | 0.44 | 0.09 | CLEC4C, LRRC26, SHD, LILRA4, PROC |
| 15 | 2468 | blood_schulte_schrepping | 0.40 | 0.86 | 0.00 | PKMYT1, MND1, CDC45, TROAP, SPC25 |
| 16 | 2363 | blood_schulte_schrepping | 0.80 | 0.98 | 0.00 | ALPL, CMTM2, CXCR1, KCNJ15, MME |
| 17 | 2361 | blood_schulte_schrepping | 0.89 | 0.07 | 0.89 | VPREB3, LINC00926, MS4A1, IGHD, FCRLA |
| 18 | 1889 | blood_wilk | 0.46 | 0.90 | 0.02 | ALAS2, AHSP, SLC4A1, CA1, HBM |
| 19 | 1540 | blood_schulte_schrepping | 0.85 | 1.00 | 0.00 | MMP8, CEACAM8, LTF, BPI, TCN1 |
| 20 | 1021 | blood_wilk | 0.66 | 0.83 | 0.14 | IGKV1-39, IGKV1D-39, IGKV1-9, IGKV1-12, IGHG2 |
| 21 | 997 | blood_arunachalam | 0.58 | 0.66 | 0.00 | CD34, CRHBP, CYTL1, NPR3, SPINK2 |
All analyzed cells: COVID-19 fraction 0.54, v2 fraction 0.13
Started: 2026-11-24T13:49:10.646259Z | Wall time: 0.397 s
The markers identify the main blood cell types:
T and NK cells: naive CD4 T cells (MAL, TSHZ2, TRABD2A), CD8 T cells (GZMK, CD8A, CD8B) and NK cells (SH2D1B, KLRF1, NCAM1).
B lineage: B cells (FCRL1, PAX5) and plasmablasts (TNFRSF17).
Myeloid cells: CD14 monocytes (CYP27A1, CYP1B1), CD16 monocytes (LYPD2, VMO1, CDKN1C), conventional dendritic cells (CD1C, CLEC10A), plasmacytoid dendritic cells (CLEC4C, LILRA4), neutrophils (ALPL, MME) and immature neutrophils (MMP8, LTF, CEACAM8).
Other cells: platelets (GP9, CMTM5), erythroid cells (ALAS2, HBM), cycling cells (CDC45, PKMYT1) and hematopoietic progenitors (CD34, CRHBP).
One cluster, 1,021 cells of which 66% come from Wilk et al., ranks only immunoglobulin genes among its top markers, such as IGKV1-39 and IGHG2.
One study supplies 79% to 91% of the cells of five corrected clusters, and at most 72% of every other cluster. Three of the five consist mostly of the healthy-donor cells that Schulte-Schrepping et al. sequenced with 10x 3’ v2 chemistry: monocytes, naive B cells and a cluster whose top markers mix POLR2J3, ZNF90 and BEST1 with the T and NK cell genes KLRB1 and CD7. Each is 79% to 91% v2 cells, against 13% of all analyzed cells, and at most 13% COVID-19 cells. Adding orig_assay to batch_columns would make the v2 cells a batch of their own, but that batch holds only healthy donors, so the correction would partly remove the difference between conditions along with the difference between chemistries. The other two are the neutrophils and immature neutrophils, which are 80% and 85% Schulte-Schrepping et al.'s cells and 98% and more than 99% COVID-19 cells.
COVID-19 donors gave 54% of the analyzed cells but 86% to 98% of the cells in the plasmablast, cycling and erythroid clusters and in the neutrophil cluster. They also gave 94% of a cluster of monocytes that express the interferon-stimulated genes SIGLEC1 and OTOF, and 97% of a second cluster of CD4 T cells. These fractions pool cells across donors, so a few donors can dominate a cluster; the donor-level comparisons tutorial tests a difference between conditions across donors.
Reopen the composite later¶
The composite saves both runs and reads its counts from the CyteBase sources, which must stay available and unchanged. Reopen it with the DataStore constructor, passing source_storage_options for anonymous access to the public sources, and open a run by its label.
# Pass anonymous access for the public CyteBase sources each time the composite opens.
source_storage_options = {name: {"token": False} for name in dataset_ids}
# Reopen the composite with the ordinary DataStore constructor.
reopened = cytearc.DataStore(
str(joint_path),
mem_budget=memory_budget,
nthreads=workers,
source_storage_options=source_storage_options,
)
# Open the saved Harmony run by its label and check that it holds the same clusters.
reopened_run = reopened.pipeline.open(label=corrected.label)
assert reopened_run["clusters"] == corrected["clusters"]
print(f"Reopened {reopened_run.label}: {reopened_run.status}")Reopened joint_harmony: completed
Started: 2026-11-24T13:49:11.044612Z | Wall time: 6.894 s
The reopened composite holds the completed Harmony run with the same clusters.
The Harmony batch correction tutorial corrects the sequencing batches of one study and scores batch mixing and cell-type separation with LISI metrics, and the dataset merging tutorial merges datastores into a new store that holds their counts.
- Wilk, A. J., Rustagi, A., Zhao, N. Q., Roque, J., Martínez-Colón, G. J., McKechnie, J. L., Ivison, G. T., Ranganath, T., Vergara, R., Hollis, T., Simpson, L. J., Grant, P., Subramanian, A., Rogers, A. J., & Blish, C. A. (2020). A single-cell atlas of the peripheral immune response in patients with severe COVID-19. Nature Medicine, 26(7), 1070–1076. 10.1038/s41591-020-0944-y
- Lee, J. S., Park, S., Jeong, H. W., Ahn, J. Y., Choi, S. J., Lee, H., Choi, B., Nam, S. K., Sa, M., Kwon, J.-S., Jeong, S. J., Lee, H. K., Park, S. H., Park, S.-H., Choi, J. Y., Kim, S.-H., Jung, I., & Shin, E.-C. (2020). Immunophenotyping of COVID-19 and influenza highlights the role of type I interferons in development of severe COVID-19. Science Immunology, 5(49). 10.1126/sciimmunol.abd1554
- Arunachalam, P. S., Wimmers, F., Mok, C. K. P., Perera, R. A. P. M., Scott, M., Hagan, T., Sigal, N., Feng, Y., Bristow, L., Tak-Yin Tsang, O., Wagh, D., Coller, J., Pellegrini, K. L., Kazmin, D., Alaaeddine, G., Leung, W. S., Chan, J. M. C., Chik, T. S. H., Choi, C. Y. C., … Pulendran, B. (2020). Systems biological assessment of immunity to mild versus severe COVID-19 infection in humans. Science, 369(6508), 1210–1220. 10.1126/science.abc6261
- Schulte-Schrepping, J., Reusch, N., Paclik, D., Baßler, K., Schlickeiser, S., Zhang, B., Krämer, B., Krammer, T., Brumhard, S., Bonaguro, L., De Domenico, E., Wendisch, D., Grasshoff, M., Kapellos, T. S., Beckstette, M., Pecht, T., Saglam, A., Dietrich, O., Mei, H. E., … Ziebuhr, J. (2020). Severe COVID-19 Is Marked by a Dysregulated Myeloid Cell Compartment. Cell, 182(6), 1419-1440.e23. 10.1016/j.cell.2020.08.001
- Jin, K., Bardes, E. E., Mitelpunkt, A., Wang, J. Y., Bhatnagar, S., Sengupta, S., Krummel, D. P., Rothenberg, M. E., & Aronow, B. J. (2021). An interactive single cell web portal identifies gene and cell networks in COVID-19 host responses. iScience, 24(10), 103115. 10.1016/j.isci.2021.103115
- Korsunsky, I., Millard, N., Fan, J., Slowikowski, K., Zhang, F., Wei, K., Baglaenko, Y., Brenner, M., Loh, P., & Raychaudhuri, S. (2019). Fast, sensitive and accurate integration of single-cell data with Harmony. Nature Methods, 16(12), 1289–1296. 10.1038/s41592-019-0619-0