Archive 4 checkpoints (1-4)
Browse files- paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scsemi/tools/check_units.py +215 -0
- paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/sec07_rank_sweep_slide_text.json +37 -0
- paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/sec09_extra_slide_text.json +114 -0
- paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/slides_spec.json +875 -0
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/plans/paired_finetune_intradataset_20260927/scsemi/tools/check_units.py
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python
|
| 2 |
+
"""Dry run of scSemiProfiler queue files (CPU only; never imports torch; writes nothing under work/ or generated/).
|
| 3 |
+
|
| 4 |
+
For every cv / budget line of the given queue files, in queue order:
|
| 5 |
+
1. runs the real input builder in --check-only mode (tools/prepare_draw_inputs.py: split, LoRA RUN.json and
|
| 6 |
+
CAL_BUDGET checks for budget lines, modeled genes, every representative's cells, depth, condition NPZ);
|
| 7 |
+
2. checks the representatives / targets against the LoRA run of the same fold: cv lines against
|
| 8 |
+
runs/<ds>/fold<k>/real_lora/RUN.json (train + inner-val rows; test rows), budget lines against lora_n<n>
|
| 9 |
+
(the builder already refuses a mismatch) and, for reuse_cv lines, that the representatives are a subset of the
|
| 10 |
+
same fold's cv line, that line comes earlier in the queue, and no target is a cv representative;
|
| 11 |
+
3. replicates upstream initsetup's bulk PCA (normalize_total 1e4, log1p, sc.tl.pca) and the nearest-representative
|
| 12 |
+
assignment, then estimates GPU time from the measured few-pair receipts (pretrain 0.0488 s per representative
|
| 13 |
+
cell; target 8.0 s + 0.0188 s per cell of its representative; README "Time") and disk (sample_sc ~0.78 x
|
| 14 |
+
(8 n^2 + 12 n G) bytes per representative, geneset_scores 23.4 KB per cell, pretrain checkpoints 2 x 17.7 MB,
|
| 15 |
+
per-target model 21.3 MB, rep_sc.h5ad 3.3 KB per cell);
|
| 16 |
+
4. records whether the work dir / output already exist (the queue skips validated outputs and resumes partial ones).
|
| 17 |
+
usage: CUDA_VISIBLE_DEVICES='' check_units.py --out validation/check_units_<queue>.json QUEUE [QUEUE ...]
|
| 18 |
+
[--runs-extra DIR (<ds>/fold<k>/<run>/RUN.json copied from another host)]
|
| 19 |
+
"""
|
| 20 |
+
from __future__ import annotations
|
| 21 |
+
|
| 22 |
+
import argparse
|
| 23 |
+
import json
|
| 24 |
+
import os
|
| 25 |
+
import sys
|
| 26 |
+
import tempfile
|
| 27 |
+
import time
|
| 28 |
+
from datetime import datetime, timezone
|
| 29 |
+
from pathlib import Path
|
| 30 |
+
|
| 31 |
+
if os.environ.get("CUDA_VISIBLE_DEVICES") != "":
|
| 32 |
+
raise SystemExit("run with CUDA_VISIBLE_DEVICES=''")
|
| 33 |
+
|
| 34 |
+
import numpy as np
|
| 35 |
+
|
| 36 |
+
HERE = Path(__file__).resolve().parents[1]
|
| 37 |
+
TASK = HERE.parent
|
| 38 |
+
sys.path.insert(0, str(HERE / "tools"))
|
| 39 |
+
sys.path.insert(0, str(TASK / "tools"))
|
| 40 |
+
import prepare_draw_inputs as PDI # noqa: E402
|
| 41 |
+
import prepare_dataset as PD # noqa: E402
|
| 42 |
+
|
| 43 |
+
PRETRAIN_S_PER_CELL = 0.0488 # 232 representative pretrains (stage 1 + 2), 25 few-pair draws, both hosts
|
| 44 |
+
TARGET_S0, TARGET_S_PER_CELL = 8.0, 0.0188 # 1,830 targets: s = 8.0 + 0.0188 x cells of the assigned representative
|
| 45 |
+
PREP_S_PER_CELL = 0.0015 # CPU prepare (scprocess + cell graph) incl. lean hvset, few-pair prepared.json
|
| 46 |
+
CKPT_MB, SEMI_MB, REPSC_KB, GS_KB = 17.7, 21.3, 3.3, 23.4
|
| 47 |
+
N_SETS = 2922
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
def sample_sc_bytes(n: int, g: int) -> float:
|
| 51 |
+
return 0.78 * (8.0 * n * n + 12.0 * n * g)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def parse(queue: Path):
|
| 55 |
+
for raw in queue.read_text().splitlines():
|
| 56 |
+
line = raw.strip()
|
| 57 |
+
if not line or line.startswith("#"):
|
| 58 |
+
continue
|
| 59 |
+
f = line.split("|")
|
| 60 |
+
if f[0] == "offload": # offload|DATASET|cv: file moves only, nothing to dry-run
|
| 61 |
+
continue
|
| 62 |
+
mode, ds, j = f[0], f[1], int(f[2])
|
| 63 |
+
opts = [x for x in (f[3].split(",") if len(f) > 3 else []) if x]
|
| 64 |
+
n = int(f[4]) if mode == "budget" else None
|
| 65 |
+
yield {"line": line, "mode": mode, "ds": ds, "fold": j, "opts": opts, "n": n}
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def assignment(ds: str, reps: list[str], targets: list[str], pidx: list[int], cache: dict) -> dict:
|
| 69 |
+
"""Upstream initsetup PCA + update_membership on this split's bulk rows (replica of the wrapper's prepare)."""
|
| 70 |
+
import anndata
|
| 71 |
+
import scanpy as sc
|
| 72 |
+
if ds not in cache:
|
| 73 |
+
cache.clear()
|
| 74 |
+
d = PD.load(TASK / "data" / ds)
|
| 75 |
+
z = np.load(TASK / "data" / ds / "cells_panel6k.npz", allow_pickle=False)
|
| 76 |
+
panel = z["panel_gene_ids"].astype(str)
|
| 77 |
+
gpos = {g: i for i, g in enumerate(d["gene_ids"])}
|
| 78 |
+
cache[ds] = (d, np.asarray([gpos[g] for g in panel], dtype=np.int64))
|
| 79 |
+
d, pcanon = cache[ds]
|
| 80 |
+
pos = {s: i for i, s in enumerate(d["sample_ids"])}
|
| 81 |
+
rows = np.sort(np.asarray([pos[s] for s in reps + targets], dtype=np.int64))
|
| 82 |
+
B = d["bulk"][rows][:, pcanon[np.asarray(pidx, dtype=np.int64)]].astype(np.float64)
|
| 83 |
+
a = anndata.AnnData(B)
|
| 84 |
+
sc.pp.normalize_total(a, target_sum=1e4)
|
| 85 |
+
sc.pp.log1p(a)
|
| 86 |
+
n_comps = 100 if a.X.shape[0] > 100 else a.X.shape[0] - 1
|
| 87 |
+
sc.tl.pca(a, n_comps=n_comps)
|
| 88 |
+
pca = np.asarray(a.obsm["X_pca"], dtype=np.float64)
|
| 89 |
+
sids = d["sample_ids"][rows].tolist()
|
| 90 |
+
ridx = [sids.index(r) for r in reps]
|
| 91 |
+
out = {}
|
| 92 |
+
for t in targets:
|
| 93 |
+
i = sids.index(t)
|
| 94 |
+
dist = [float(((pca[j] - pca[i]) ** 2).sum() ** 0.5) for j in ridx]
|
| 95 |
+
out[t] = reps[int(np.argmin(dist))]
|
| 96 |
+
return out
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
def main(argv=None) -> int:
|
| 100 |
+
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
|
| 101 |
+
ap.add_argument("queues", nargs="+", type=Path)
|
| 102 |
+
ap.add_argument("--out", type=Path, required=True)
|
| 103 |
+
ap.add_argument("--runs-extra", type=Path, default=None)
|
| 104 |
+
a = ap.parse_args(argv)
|
| 105 |
+
units, seen_cv, cache, fails = [], {}, {}, []
|
| 106 |
+
tmpd = Path(tempfile.mkdtemp(prefix="check_units_"))
|
| 107 |
+
for q in a.queues:
|
| 108 |
+
for u in parse(q):
|
| 109 |
+
t0 = time.monotonic()
|
| 110 |
+
ds, k, mode, n = u["ds"], u["fold"], u["mode"], u["n"]
|
| 111 |
+
u["queue"] = str(q)
|
| 112 |
+
if mode == "cv":
|
| 113 |
+
work = HERE / "work" / ds / "cv" / f"fold{k}"
|
| 114 |
+
out = TASK / "generated" / ds / f"fold{k}" / "scsemi__raw.npz"
|
| 115 |
+
args = ["--dataset", ds, "--mode", "cv", "--fold", str(k)]
|
| 116 |
+
elif mode == "budget":
|
| 117 |
+
work = HERE / "work" / ds / "budget" / f"fold{k}" / f"n{n}"
|
| 118 |
+
out = TASK / "generated" / ds / f"fold{k}" / f"scsemi_n{n}__raw.npz"
|
| 119 |
+
args = ["--dataset", ds, "--mode", "budget", "--fold", str(k), "--n", str(n)]
|
| 120 |
+
else:
|
| 121 |
+
fails.append(f"{u['line']}: mode {mode} not checked here")
|
| 122 |
+
continue
|
| 123 |
+
summ_p = tmpd / f"{ds}_{mode}{k}_{n}.json"
|
| 124 |
+
try:
|
| 125 |
+
PDI.main(args + ["--work", str(work), "--check-only", "--check-out", str(summ_p)])
|
| 126 |
+
except SystemExit as e:
|
| 127 |
+
if e.code not in (0, None):
|
| 128 |
+
fails.append(f"{u['line']}: builder refused: {e.code}")
|
| 129 |
+
u["builder_ok"] = False
|
| 130 |
+
units.append(u)
|
| 131 |
+
continue
|
| 132 |
+
s = json.loads(summ_p.read_text())
|
| 133 |
+
u.update({"builder_ok": True, "work": str(work), "out": str(out), "n_reps": len(s["reps"]),
|
| 134 |
+
"n_targets": len(s["targets"]), "n_rep_cells": s["n_rep_cells"], "modeled_genes": s["modeled_genes"],
|
| 135 |
+
"equals_scorer_genes": s["equals_scorer_genes"], "depth": s["depth"],
|
| 136 |
+
"work_state": ("prepared" if (work / "prepared.json").exists() else
|
| 137 |
+
"inputs" if (work / "inputs/inputs_manifest.json").exists() else
|
| 138 |
+
"exists" if work.exists() else "absent"),
|
| 139 |
+
"output_exists": out.exists(), "output_validated": (out.with_suffix(".validation.json")).exists()})
|
| 140 |
+
if not s["equals_scorer_genes"]:
|
| 141 |
+
fails.append(f"{u['line']}: modeled genes differ from the scorer's scoring genes")
|
| 142 |
+
# LoRA donor lists
|
| 143 |
+
if mode == "cv":
|
| 144 |
+
rj = TASK / "runs" / ds / f"fold{k}" / "real_lora" / "RUN.json"
|
| 145 |
+
if not rj.exists() and a.runs_extra is not None:
|
| 146 |
+
rj = a.runs_extra / ds / f"fold{k}" / "real_lora" / "RUN.json"
|
| 147 |
+
if rj.exists():
|
| 148 |
+
run = json.loads(rj.read_text())
|
| 149 |
+
fit = sorted(list(run["train_rows"]) + list(run["inner_val_rows"]))
|
| 150 |
+
u["lora_run"] = str(rj)
|
| 151 |
+
u["reps_equal_lora_all_fit_rows"] = sorted(s["reps"]) == fit
|
| 152 |
+
u["targets_equal_lora_test_rows"] = sorted(s["targets"]) == sorted(run["test_rows_never_loaded_for_training"])
|
| 153 |
+
u["lora_rows"] = {"train": len(run["train_rows"]), "inner_val": len(run["inner_val_rows"])}
|
| 154 |
+
if not (u["reps_equal_lora_all_fit_rows"] and u["targets_equal_lora_test_rows"]):
|
| 155 |
+
fails.append(f"{u['line']}: representatives / targets differ from {rj}")
|
| 156 |
+
else:
|
| 157 |
+
u["lora_run"] = None
|
| 158 |
+
fails.append(f"{u['line']}: no real_lora RUN.json to check against")
|
| 159 |
+
seen_cv[(ds, k)] = s
|
| 160 |
+
else:
|
| 161 |
+
u["budget"] = {key: s["budget"][key] for key in ("lora_run", "n_train_rows", "n_inner_val_rows")}
|
| 162 |
+
u["reps_equal_lora_fit_rows"] = True # the builder refuses otherwise (and checks CAL_BUDGET.json)
|
| 163 |
+
cvs = seen_cv.get((ds, k))
|
| 164 |
+
if "reuse_cv" in u["opts"]:
|
| 165 |
+
if cvs is None:
|
| 166 |
+
fails.append(f"{u['line']}: reuse_cv but the cv line of {ds} fold {k} is not earlier in the queue")
|
| 167 |
+
else:
|
| 168 |
+
u["reps_subset_of_cv_reps"] = set(s["reps"]) <= set(cvs["reps"])
|
| 169 |
+
u["targets_disjoint_from_cv_reps"] = not (set(s["targets"]) & set(cvs["reps"]))
|
| 170 |
+
if not (u["reps_subset_of_cv_reps"] and u["targets_disjoint_from_cv_reps"]):
|
| 171 |
+
fails.append(f"{u['line']}: representatives not within / targets inside the cv representatives")
|
| 172 |
+
# assignment, cost, disk
|
| 173 |
+
asg = assignment(ds, s["reps"], s["targets"], s.get("modeled_panel_index") or [], cache) \
|
| 174 |
+
if s.get("modeled_panel_index") else None
|
| 175 |
+
cells = s["rep_cells"]
|
| 176 |
+
G = s["modeled_genes"]
|
| 177 |
+
reuse = "reuse_cv" in u["opts"]
|
| 178 |
+
pre_s = 0.0 if reuse else PRETRAIN_S_PER_CELL * s["n_rep_cells"]
|
| 179 |
+
if asg is not None:
|
| 180 |
+
inf_s = sum(TARGET_S0 + TARGET_S_PER_CELL * cells[asg[t]] for t in s["targets"])
|
| 181 |
+
u["targets_per_rep_max"] = max(list(asg.values()).count(r) for r in set(asg.values()))
|
| 182 |
+
else:
|
| 183 |
+
inf_s = len(s["targets"]) * (TARGET_S0 + TARGET_S_PER_CELL * np.mean(list(cells.values())))
|
| 184 |
+
u["gpu_hours"] = {"pretrain": round(pre_s / 3600, 2), "infer": round(inf_s / 3600, 2),
|
| 185 |
+
"total": round((pre_s + inf_s) / 3600, 2)}
|
| 186 |
+
u["cpu_prepare_hours"] = round(PREP_S_PER_CELL * s["n_rep_cells"] / 3600, 2)
|
| 187 |
+
u["disk_gb"] = {"transient_sample_sc": round(sum(sample_sc_bytes(c, G) for c in cells.values()) / 1e9, 1),
|
| 188 |
+
"transient_geneset_scores": round(GS_KB * 1e3 * s["n_rep_cells"] / 1e9, 1),
|
| 189 |
+
"persistent_inputs": round(REPSC_KB * 1e3 * s["n_rep_cells"] / 1e9, 1),
|
| 190 |
+
"persistent_pretrain_ckpts": 0.0 if reuse else round(2 * CKPT_MB * len(cells) / 1e3, 1),
|
| 191 |
+
"persistent_target_models": round(SEMI_MB * len(s["targets"]) / 1e3, 1)}
|
| 192 |
+
u["largest_rep_cells"] = max(cells.values())
|
| 193 |
+
u["check_seconds"] = round(time.monotonic() - t0, 1)
|
| 194 |
+
units.append(u)
|
| 195 |
+
print(json.dumps({k_: u.get(k_) for k_ in ("line", "n_reps", "n_targets", "n_rep_cells", "gpu_hours",
|
| 196 |
+
"reps_equal_lora_all_fit_rows", "reps_subset_of_cv_reps")}),
|
| 197 |
+
flush=True)
|
| 198 |
+
tot = {"units": len(units), "gpu_hours": round(sum(u.get("gpu_hours", {}).get("total", 0) for u in units), 1),
|
| 199 |
+
"pretrain_hours": round(sum(u.get("gpu_hours", {}).get("pretrain", 0) for u in units), 1),
|
| 200 |
+
"infer_hours": round(sum(u.get("gpu_hours", {}).get("infer", 0) for u in units), 1),
|
| 201 |
+
"cpu_prepare_hours": round(sum(u.get("cpu_prepare_hours", 0) for u in units), 1)}
|
| 202 |
+
res = {"written_utc": datetime.now(timezone.utc).isoformat(), "host": os.uname().nodename,
|
| 203 |
+
"queues": [str(q) for q in a.queues], "all_ok": not fails, "failures": fails, "totals": tot,
|
| 204 |
+
"cost_model": {"pretrain_s_per_cell": PRETRAIN_S_PER_CELL, "target_s": [TARGET_S0, TARGET_S_PER_CELL],
|
| 205 |
+
"prep_s_per_cell": PREP_S_PER_CELL, "ckpt_mb": CKPT_MB, "semi_mb": SEMI_MB,
|
| 206 |
+
"rep_sc_kb_per_cell": REPSC_KB, "geneset_scores_kb_per_cell": GS_KB},
|
| 207 |
+
"units": units}
|
| 208 |
+
a.out.parent.mkdir(parents=True, exist_ok=True)
|
| 209 |
+
a.out.write_text(json.dumps(res, indent=1) + "\n")
|
| 210 |
+
print(json.dumps({"out": str(a.out), "all_ok": not fails, "failures": fails[:10], **tot}))
|
| 211 |
+
return 0 if not fails else 1
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
if __name__ == "__main__":
|
| 215 |
+
sys.exit(main())
|
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/sec07_rank_sweep_slide_text.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"section": "07-rank",
|
| 3 |
+
"slides": [
|
| 4 |
+
{
|
| 5 |
+
"title": "LoRA rank: r = 4, 16, 64",
|
| 6 |
+
"layout": "full",
|
| 7 |
+
"figures": [
|
| 8 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/sec07_rank_sweep.png"
|
| 9 |
+
],
|
| 10 |
+
"keywords": [
|
| 11 |
+
"ImMicro r64, all pairs: coverage 0.78 → 0.82",
|
| 12 |
+
"ImMicro r4, all pairs: L1 0.162 → 0.186",
|
| 13 |
+
"Kept r16; r64 precision 0.92 → 0.90"
|
| 14 |
+
],
|
| 15 |
+
"footnote": "LoRA fine-tune of the final model (f01 6k·1x·E16) with rank r and alpha = r, same recipe as the deck's r = 16 runs (early stop on 7–8 inner-val pairs, 20k step cap); n = training pairs, nested subsets; donor-level 5-fold CV, each pair scored once by its fold model (pooled call). Trainable parameters r4 324,056, r16 1,296,224, r64 5,184,896. ImMicro n = 5: r4: L1 0.162, P/C 0.937 / 0.789 (L1 vs r16 -0.009, Wilcoxon p 0.00088, 107 donors); r16: L1 0.171, P/C 0.946 / 0.839; r64: L1 0.177, P/C 0.946 / 0.847 (L1 vs r16 +0.005, Wilcoxon p 0.0076, 107 donors) | ImMicro n = 20: r4: L1 0.171, P/C 0.925 / 0.715 (L1 vs r16 -0.001, Wilcoxon p 0.32, 107 donors); r16: L1 0.172, P/C 0.920 / 0.755; r64: L1 0.172, P/C 0.905 / 0.794 (L1 vs r16 -0.001, Wilcoxon p 0.66, 107 donors) | ImMicro n = all: r4: L1 0.186, P/C 0.933 / 0.712 (L1 vs r16 +0.024, Wilcoxon p 9.8e-09, 107 donors); r16: L1 0.162, P/C 0.924 / 0.784; r64: L1 0.161, P/C 0.904 / 0.816 (L1 vs r16 -0.001, Wilcoxon p 0.89, 107 donors) | Sepsis n = 5: r4: L1 0.426, P/C 0.907 / 0.742, logFC r 0.27, DEG 2 (L1 vs r16 -0.002, Wilcoxon p 0.97, 82 donors); r16: L1 0.428, P/C 0.911 / 0.767, logFC r 0.29, DEG 5; r64: L1 0.429, P/C 0.906 / 0.766, logFC r 0.31, DEG 1 (L1 vs r16 +0.001, Wilcoxon p 0.66, 82 donors) | Sepsis n = 20: r4: L1 0.378, P/C 0.929 / 0.769, logFC r 0.31, DEG 14 (L1 vs r16 -0.003, Wilcoxon p 0.58, 82 donors); r16: L1 0.380, P/C 0.927 / 0.807, logFC r 0.37, DEG 18; r64: L1 0.376, P/C 0.911 / 0.808, logFC r 0.43, DEG 18 (L1 vs r16 -0.004, Wilcoxon p 0.046, 82 donors) | Sepsis n = all: r4: L1 0.363, P/C 0.923 / 0.789, logFC r 0.48, DEG 18 (L1 vs r16 +0.002, Wilcoxon p 0.77, 82 donors); r16: L1 0.362, P/C 0.926 / 0.829, logFC r 0.53, DEG 23; r64: L1 0.367, P/C 0.907 / 0.824, logFC r 0.55, DEG 26 (L1 vs r16 +0.005, Wilcoxon p 0.66, 82 donors). r64 vs r16 brings small gains in coverage and disease signal but slightly lower precision and no composition change; r4 is worse with many pairs; at n = 5 the ranks are mixed. r = 16 is kept. Scores: scores/<cohort>/lora_rank_20261001/pooled (r4, r64) and scores/<cohort>/pooled{,_deg} (r16); table: scores/<cohort>/rankcal_20261001.md.",
|
| 16 |
+
"footnote_short": "Sepsis, all pairs: r64 logFC r 0.53 → 0.55, DEG 23 → 26; r4 0.48, DEG 18. Pooled 5-fold scores.",
|
| 17 |
+
"numbers": [
|
| 18 |
+
{
|
| 19 |
+
"value": "ImMicro all pairs coverage r16 0.784 -> r64 0.816; precision 0.924 -> 0.904; L1 r16 0.162, r4 0.186 (Wilcoxon p 9.8e-09)",
|
| 20 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/immicro/pooled/summary.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/immicro/lora_rank_20261001/pooled/summary.json, per_donor.csv"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"value": "Sepsis all pairs logFC r r16 0.527, r64 0.553, r4 0.476; DEG 23 / 26 / 18",
|
| 24 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json, contrast.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/lora_rank_20261001/pooled/summary.json, contrast.csv"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"value": "trainable parameters: r4 324056, r16 1296224, r64 5184896",
|
| 28 |
+
"source": "runs/<cohort>/fold<k>/<arm>/RUN.json (trainable.n_trainable)"
|
| 29 |
+
}
|
| 30 |
+
]
|
| 31 |
+
}
|
| 32 |
+
],
|
| 33 |
+
"scripts": [
|
| 34 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/sec07_rank_sweep.py"
|
| 35 |
+
],
|
| 36 |
+
"generated_from": "tools/sec07_rank_sweep.py (rerun to refresh; do not edit by hand)"
|
| 37 |
+
}
|
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/sec09_extra_slide_text.json
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"section": "09-extra",
|
| 3 |
+
"slides": [
|
| 4 |
+
{
|
| 5 |
+
"title": "5 donors: realism beyond precision/coverage",
|
| 6 |
+
"layout": "full",
|
| 7 |
+
"figures": [
|
| 8 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/sec09_extra_fewpair.png"
|
| 9 |
+
],
|
| 10 |
+
"keywords": [
|
| 11 |
+
"Classifier AUC: LoRA-5 best in 25/25 draws",
|
| 12 |
+
"E_N: LoRA-5 below scSemi-5 in 25/25 draws",
|
| 13 |
+
"Still separable: LoRA-5 AUC 0.89–0.95"
|
| 14 |
+
],
|
| 15 |
+
"footnote": "Same 5-donor draws as the previous slides; every metric on exactly the scored cells (scores_extra/, tools/extra_metrics.py). Real side for AUC and MMD² = held-out real cells of the same samples (R2), projected like the generated cells; real vs real = R2 vs R3 (AUC 0.49–0.50). Classifier AUC: 5-fold CV ROC AUC of a kNN classifier (k = 5) separating real from generated cells, 0.5 = indistinguishable; bars start at 0.5. MMD²: unbiased, Gaussian kernel, bandwidth = median distance among real cells. E_N: scSemiProfiler's normalized error (Wang et al. 2024, eq. 17–18), their code's squared L2 on all cells, per-arm PCA-100; real vs real = within-sample half split (0.07–0.38); every generated arm is above 1. LoRA-5 best of the 4 arms in 25/25 draws on kNN AUC, 25/25 on RF AUC, 25/25 on 1-NN accuracy, 23/25 on MMD², 22/25 on E_N. LoRA-5 better than scSemi-5, zero-shot and zero-shot + calibration on both AUCs, 1-NN accuracy and coverage at k = 3, 5, 10 in every draw. E_N scSemi-5 vs LoRA-5 (cohort means): ImMicro 3.65 vs 1.55; Sepsis 3.83 vs 1.46; Imperial 2.04 vs 1.28; Giroux 3.79 vs 1.99; Ji 4.27 vs 2.60; LoRA-5 lower in 25/25 draws. Draws where LoRA-5 is worse (cohort means in brackets): vs zero-shot + calibration: Sepsis precision k5 1/5 (0.778 vs 0.752), precision k10 2/5 (0.906 vs 0.899); Imperial MMD² (σ = m) 1/5 (0.0156 vs 0.0218), MMD² (σ sum) 1/5 (0.0443 vs 0.0673), E_N (all cells) 3/5 (1.28 vs 1.22), precision k3 2/5 (0.610 vs 0.598), precision k5 2/5 (0.726 vs 0.719), precision k10 2/5 (0.853 vs 0.845); Giroux MMD² (σ = m) 1/5 (0.0178 vs 0.0257), MMD² (σ sum) 1/5 (0.0584 vs 0.0838), precision k5 1/5 (0.995 vs 0.981), precision k10 1/5 (1.000 vs 0.996). LoRA-5 AUC per draw 0.88–0.97 (kNN), RF cohort means 0.90–0.96: a classifier still tells generated from real cells. Scores: scores_extra/<cohort>/fewshot_n5/draw<j>/.",
|
| 16 |
+
"footnote_short": "E_N: scSemiProfiler's own error metric. Misses only vs calibration, e.g. Imperial E_N 1.28 vs 1.22.",
|
| 17 |
+
"numbers": [
|
| 18 |
+
{
|
| 19 |
+
"value": "LoRA-5 best of 4 arms (draws): kNN AUC 25/25, RF AUC 25/25, 1-NN 25/25, MMD² 23/25, E_N 22/25",
|
| 20 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"value": "E_N LoRA-5 < scSemi-5 in 25/25 draws; cohort means scSemi-5 vs LoRA-5: ImMicro 3.65 vs 1.55; Sepsis 3.83 vs 1.46; Imperial 2.04 vs 1.28; Giroux 3.79 vs 1.99; Ji 4.27 vs 2.60",
|
| 24 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/en.csv (cellset all, distance sq)"
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"value": "LoRA-5 kNN AUC cohort means: ImMicro 0.943, Sepsis 0.936, Imperial 0.918, Giroux 0.893, Ji 0.955; per draw 0.878–0.975",
|
| 28 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"value": "real vs real: kNN AUC ImMicro 0.502, Sepsis 0.501, Imperial 0.498, Giroux 0.495, Ji 0.491; E_N ImMicro 0.382, Sepsis 0.100, Imperial 0.260, Giroux 0.145, Ji 0.073",
|
| 32 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"value": "LoRA-5 worse than a comparator (draws): vs zero-shot + calibration: Sepsis precision k5 1/5 (0.778 vs 0.752), precision k10 2/5 (0.906 vs 0.899); Imperial MMD² (σ = m) 1/5 (0.0156 vs 0.0218), MMD² (σ sum) 1/5 (0.0443 vs 0.0673), E_N (all cells) 3/5 (1.28 vs 1.22), precision k3 2/5 (0.610 vs 0.598), precision k5 2/5 (0.726 vs 0.719), precision k10 2/5 (0.853 vs 0.845); Giroux MMD² (σ = m) 1/5 (0.0178 vs 0.0257), MMD² (σ sum) 1/5 (0.0584 vs 0.0838), precision k5 1/5 (0.995 vs 0.981), precision k10 1/5 (1.000 vs 0.996)",
|
| 36 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"value": "cross-check: 720 cohort × arm × metric values equal scores_extra/{fewshot,pooled}_headline.csv",
|
| 40 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/fewshot_headline.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/pooled_headline.csv"
|
| 41 |
+
}
|
| 42 |
+
]
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"title": "5-fold: realism beyond precision/coverage",
|
| 46 |
+
"layout": "full",
|
| 47 |
+
"figures": [
|
| 48 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/sec09_extra_fivefold.png"
|
| 49 |
+
],
|
| 50 |
+
"keywords": [
|
| 51 |
+
"Every metric: LoRA first in 5/5 cohorts",
|
| 52 |
+
"Ji whole blood: E_N 1.9 vs 7.1–10.1",
|
| 53 |
+
"Still separable: LoRA AUC 0.87–0.94"
|
| 54 |
+
],
|
| 55 |
+
"footnote": "Donor-level 5-fold CV; each pair scored once by the fold model that never trained on its donor (one pooled call per cohort, all cross-fitted pairs). Arms as on the 5-fold slide. Metric definitions as on the 5-donor realism slide. LoRA first among the 4 arms in all 5 cohorts on 12/12 headline metrics (kNN and RF AUC, 1-NN accuracy, MMD² at σ = m and summed, E_N all cells, precision and coverage at k = 3, 5, 10). LoRA kNN AUC ImMicro 0.941, Sepsis 0.886, Imperial 0.866, Giroux 0.881, Ji 0.908; real vs real ImMicro 0.505, Sepsis 0.506, Imperial 0.496, Giroux 0.501, Ji 0.494. E_N LoRA vs other arms: ImMicro 1.56 vs 1.77–4.83; Sepsis 1.20 vs 1.40–5.29; Imperial 1.13 vs 1.19–4.05; Giroux 1.70 vs 2.24–4.48; Ji 1.95 vs 7.08–10.13. scSemiProfiler 5-fold CV not available yet (no extra-metric unit with set scsemi__raw). Scores: scores_extra/<cohort>/pooled/.",
|
| 56 |
+
"footnote_short": "Donor-level 5-fold CV, one pooled call per cohort. E_N: scSemiProfiler's own error metric.",
|
| 57 |
+
"numbers": [
|
| 58 |
+
{
|
| 59 |
+
"value": "LoRA first among 4 arms in all 5 cohorts on 12/12 metrics",
|
| 60 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"value": "Ji E_N: LoRA 1.948; Zero-shot, real bulk 10.125, Zero-shot + calibration 7.076, sc-only fine-tune (+ calibration) 7.215",
|
| 64 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"value": "LoRA kNN AUC (pooled): ImMicro 0.941, Sepsis 0.886, Imperial 0.866, Giroux 0.881, Ji 0.908",
|
| 68 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"value": "scSemiProfiler, all training pairs: not available",
|
| 72 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/sec09_extra_scsemi_status.csv"
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"title": "5 donors: precision/coverage at k = 3, 5, 10",
|
| 78 |
+
"layout": "full",
|
| 79 |
+
"figures": [
|
| 80 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/figures/sec09_extra_ksens.png"
|
| 81 |
+
],
|
| 82 |
+
"keywords": [
|
| 83 |
+
"Smaller k lowers every set, real included",
|
| 84 |
+
"Coverage: LoRA-5 first at all k, 25/25",
|
| 85 |
+
"Precision: LoRA-5 first in 20–23/25 draws"
|
| 86 |
+
],
|
| 87 |
+
"footnote": "Precision and coverage recomputed with k = 3, 5, 10 nearest-neighbour balls in the scorer's PCA-50 (k = 10 reproduces the main-slide values exactly). Means over the 5 draws per cohort; error bars = SD; grey = real vs real (R1 vs R2, same samples). Both metrics fall with smaller k for every set including the real control (real coverage at k = 3: 0.92–0.99), so compare arms with the real row, not with 1. Expected coverage of a perfect generator (Naeem et al. 2020, eq. 9) at k = 3/5/10: 0.88/0.97/1.00 in every cohort. LoRA-5 first on coverage at every k in 25/25 draws; on precision in 23/21/20 of 25 draws (k = 3/5/10); not first: Sepsis 0/1/2, Imperial 2/2/2, Giroux 0/1/1 draws at k = 3/5/10, beaten by zero-shot + calibration. 5-fold pooled design (not drawn): coverage ranking of the 4 arms across k unchanged; LoRA first at every k in 5/5 cohorts. Scores: scores_extra/<cohort>/fewshot_n5/draw<j>/metrics.csv.",
|
| 88 |
+
"footnote_short": "5 donors, 5 draws per cohort; error bars = SD over draws. k = 10 is the value on the main slides.",
|
| 89 |
+
"numbers": [
|
| 90 |
+
{
|
| 91 |
+
"value": "LoRA-5 first on coverage at k = 3, 5 and 10: 25/25 draws",
|
| 92 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"value": "LoRA-5 first on precision (draws) at k = 3/5/10: 23/21/20 of 25",
|
| 96 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"value": "real vs real coverage at k = 3: ImMicro 0.932, Sepsis 0.925, Imperial 0.919, Giroux 0.993, Ji 0.980",
|
| 100 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"value": "every set falls with smaller k (cohort means): True",
|
| 104 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 105 |
+
}
|
| 106 |
+
]
|
| 107 |
+
}
|
| 108 |
+
],
|
| 109 |
+
"scripts": [
|
| 110 |
+
"/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/tools/sec09_extra_metrics.py"
|
| 111 |
+
],
|
| 112 |
+
"generated_from": "tools/sec09_extra_metrics.py (rerun to refresh; do not edit by hand)",
|
| 113 |
+
"scsemi_cv_cohorts": []
|
| 114 |
+
}
|
paper-releases/pbisc-diffusion/updates/20261002T002920Z-deck-extra-metrics-scsemi-prep/diffusion/dataset/server_1/model8/presentations/2026-09-30--paper-summary--r00/data/slides_spec.json
ADDED
|
@@ -0,0 +1,875 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"deck": {
|
| 3 |
+
"output_pptx": "PBISC-Diffusion_paper_summary_20260930.pptx",
|
| 4 |
+
"paths": "figure paths are relative to the deck folder",
|
| 5 |
+
"note": "footnote = on-slide text (max 2 lines, may be a shortened copy); footnote_full = section author's full text, put in speaker notes when it differs. Generated slide text: section 9 main slides from data/sec09_slide_text.json (sec09_index), other generated slides from the file named in text_source (data/sec09_extra_slide_text.json, data/sec07_rank_sweep_slide_text.json); refresh with tools/sync_sec09_text.py after rerunning the scripts that write them."
|
| 6 |
+
},
|
| 7 |
+
"slides": [
|
| 8 |
+
{
|
| 9 |
+
"kind": "title",
|
| 10 |
+
"title": "PBISC-Diffusion: bulk-to-single-cell generation",
|
| 11 |
+
"subtitle": "Paper summary · 2026-09-30"
|
| 12 |
+
},
|
| 13 |
+
{
|
| 14 |
+
"kind": "agenda",
|
| 15 |
+
"title": "Outline",
|
| 16 |
+
"items": [
|
| 17 |
+
"Model overview: diffusion from bulk to cells",
|
| 18 |
+
"Backbone: SDD, scDiffusion, bulk conditioning",
|
| 19 |
+
"Architecture ablation: width, context, gene panel",
|
| 20 |
+
"SLE benchmark vs scSemiProfiler",
|
| 21 |
+
"Real bulk ≠ pseudobulk: why zero-shot fails",
|
| 22 |
+
"Fine-tuning on paired bulk–sc data",
|
| 23 |
+
"LoRA: compute and ablations (K diversification)",
|
| 24 |
+
"How many bulk–sc pairs are needed",
|
| 25 |
+
"Paired-cohort validation vs scSemiProfiler",
|
| 26 |
+
"Next: cohorts with a paired subset (planned)"
|
| 27 |
+
]
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"kind": "content",
|
| 31 |
+
"section": "1",
|
| 32 |
+
"section_label": "1 Model overview",
|
| 33 |
+
"title": "PBISC-Diffusion: bulk in, cells out",
|
| 34 |
+
"layout": "full",
|
| 35 |
+
"figures": [
|
| 36 |
+
"figures/sec01_slide_a.png"
|
| 37 |
+
],
|
| 38 |
+
"keywords": [
|
| 39 |
+
"Train pair: K-cell pseudobulk → each member cell"
|
| 40 |
+
],
|
| 41 |
+
"footnote": "Fig. 1b redraw. Final model corpus: 33.1M train cells; K = 1–4,000 cells per pseudobulk.",
|
| 42 |
+
"footnote_full": "Top: deck redraw of manuscript Fig. 1b (larger labels; cells differ by x_T and the Bernoulli support draw, Methods 'Support read-out'). Bottom: corpus of final run f01_6k_1x_seed20260627 (index fingerprint matches). Cells per dataset = base + overlay rows (Model 7 e2_full_source/e2_full_index manifests); 33.1M cells in the donor-level 80/10/10 train split. Registered K grid = 8,192 recipes/epoch. Plus 3,658 top-up recipes over 16 epochs (196-283 per epoch, K 1-4,000), so every train cell is a target once (ALLCELL_DATA_CONTRACT.json coverage_after_topup).",
|
| 43 |
+
"sources": "tools/sec01_overview.py; data/sec01_model_numbers.csv, data/sec01_corpus_datasets.csv, data/sec01_recipe_k.csv"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"kind": "content",
|
| 47 |
+
"section": "1",
|
| 48 |
+
"section_label": "1 Model overview",
|
| 49 |
+
"title": "Denoiser: joint value + support diffusion",
|
| 50 |
+
"layout": "diagram",
|
| 51 |
+
"figures": [
|
| 52 |
+
"figures/sec01_fig1a_denoiser.png"
|
| 53 |
+
],
|
| 54 |
+
"keywords": [
|
| 55 |
+
"6,000 genes · 54.2M params · Bernoulli support draw"
|
| 56 |
+
],
|
| 57 |
+
"footnote": "Fig. 1a redraw. Final model f01 6k 1x, epoch 16, EMA; 50 DDIM steps.",
|
| 58 |
+
"footnote_full": "Deck redraw of manuscript Fig. 1a (larger labels, legend dropped). Purple dashed = soft self-conditioning feedback; gold dashed = context to all blocks. Final model f01_6k_1x_seed20260627, checkpoint_epoch_016, EMA; 7 blocks 1024-1024-512-256-512-1024-1024 (effective_config.json, RUN_STATUS.json). Sampling: 50 DDIM steps, η = 0, drawn support read-out, keep gene if u < σ(logit) (methods.tex l.58, l.99). 16 epochs = 16 disjoint 8,192-recipe slots = one pass over the 131,072-recipe pool (manuscript: part 16).",
|
| 59 |
+
"sources": "tools/sec01_overview.py; data/sec01_model_numbers.csv, data/sec01_fig1_label_pt.csv"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"kind": "content",
|
| 63 |
+
"section": "2",
|
| 64 |
+
"section_label": "2 Backbone",
|
| 65 |
+
"title": "Backbone: SDD → PBISC-Diffusion",
|
| 66 |
+
"layout": "diagram",
|
| 67 |
+
"figures": [
|
| 68 |
+
"figures/sec02_backbone_compare.png"
|
| 69 |
+
],
|
| 70 |
+
"keywords": [
|
| 71 |
+
"Kept from SDD: value + bit, skip-MLP",
|
| 72 |
+
"Changed: bulk condition, masked loss, Bernoulli read-out"
|
| 73 |
+
],
|
| 74 |
+
"footnote": "SDD: Ostheimer et al., arXiv 2502.02448. scDiffusion: Luo et al., Bioinformatics 2024.",
|
| 75 |
+
"sources": "tools/sec02_backbone.py; data/sec02_backbone_compare.csv, data/sec02_slide_text.csv, data/refs/",
|
| 76 |
+
"footnote_full": "Luo et al., Bioinformatics 2024; Ostheimer et al., arXiv 2502.02448 (code 1d5423c). PBISC: final model f01 6k 1x, part 16. σ = sigmoid; Bernoulli is the final read-out; the logit > 0 cut is also reported."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"kind": "content",
|
| 80 |
+
"section": "2",
|
| 81 |
+
"section_label": "2 Backbone",
|
| 82 |
+
"title": "Bulk conditioning",
|
| 83 |
+
"layout": "diagram",
|
| 84 |
+
"figures": [
|
| 85 |
+
"figures/sec02_bulk_conditioning.png"
|
| 86 |
+
],
|
| 87 |
+
"keywords": [
|
| 88 |
+
"Same bulk condition for every generated cell",
|
| 89 |
+
"Final: no cell types, proportions, sum constraint",
|
| 90 |
+
"18,006 → 512 context into every block"
|
| 91 |
+
],
|
| 92 |
+
"footnote": "Final model f01 6k 1x. Bar heights schematic.",
|
| 93 |
+
"sources": "tools/sec02_backbone.py; data/sec02_bulk_conditioning.csv, data/sec02_slide_text.csv",
|
| 94 |
+
"footnote_full": "Final model f01 6k 1x, part 16. Bar heights schematic."
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"kind": "content",
|
| 98 |
+
"section": "3",
|
| 99 |
+
"section_label": "3 Architecture ablation",
|
| 100 |
+
"title": "Width & context ablation: loss saturation",
|
| 101 |
+
"layout": "full",
|
| 102 |
+
"figures": [
|
| 103 |
+
"figures/sec03_width_loss.png"
|
| 104 |
+
],
|
| 105 |
+
"keywords": [
|
| 106 |
+
"Trunk x4: val loss −31% (0.197 → 0.136)",
|
| 107 |
+
"ctx x4, prop hint: loss = 1x",
|
| 108 |
+
"1x flat E8; trunk x4 still falling"
|
| 109 |
+
],
|
| 110 |
+
"footnote": "Old 6k panel (1% floor); one validation set. 16x: memory-floor stop after part 2.",
|
| 111 |
+
"say": "All arms share the 6k panel (1% floor), corpus, seed and schedule; validation = 192 recipes x 64 cells. ctx x4, both x4 and 16x were read from server_2 snapshots.",
|
| 112 |
+
"sources": "tools/sec03_width_loss.py; data/sec03_width_loss.csv, data/sec03_width_saturation.csv, data/sec03_width_loss_headline.csv"
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"kind": "content",
|
| 116 |
+
"section": "3",
|
| 117 |
+
"section_label": "3 Architecture ablation",
|
| 118 |
+
"title": "Width & context ablation: benchmark",
|
| 119 |
+
"layout": "full",
|
| 120 |
+
"figures": [
|
| 121 |
+
"figures/sec03_width_bench.png"
|
| 122 |
+
],
|
| 123 |
+
"keywords": [
|
| 124 |
+
"trunk x4: loss −31%, no DEG gain",
|
| 125 |
+
"Prop hint: oracle = predicted, L1 worse",
|
| 126 |
+
"1x kept: ties ctx x4, 54M vs 102M"
|
| 127 |
+
],
|
| 128 |
+
"footnote": "SLE, 42 donors, 2,980 genes; old 6k panel. ctx x4: better L1 (0.161 vs 0.197).",
|
| 129 |
+
"say": "Bars = mean of parts 14-16 with the cut p > 0.5; diamonds = Bernoulli read-out (4 width arms only). Prop hint = 9 L1 cell-type proportions; older panel, not the final model.",
|
| 130 |
+
"sources": "tools/sec03_width_bench.py; data/sec03_width_bench.csv, data/sec03_width_bench_summary.csv, data/sec03_width_bench_headline.csv"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"kind": "content",
|
| 134 |
+
"section": "3",
|
| 135 |
+
"section_label": "3 Architecture ablation",
|
| 136 |
+
"title": "Gene context: 2k / 3k / 6k / 15k",
|
| 137 |
+
"layout": "full",
|
| 138 |
+
"figures": [
|
| 139 |
+
"figures/sec03_panel.png"
|
| 140 |
+
],
|
| 141 |
+
"keywords": [
|
| 142 |
+
"6k ≈ 3k: 3k r, DEG inside 6k seed range",
|
| 143 |
+
"2k best L1; 15k worst r, L1",
|
| 144 |
+
"6k kept: first panel with CLEC9A (cDC1)"
|
| 145 |
+
],
|
| 146 |
+
"footnote": "SLE, 42 donors, 1,006 genes in every panel. 6k: 5 seeds; base seed best of 5 on r and DEG.",
|
| 147 |
+
"say": "Runs f01_{2k,3k,6k,p15k}_1x, part 16, Bernoulli, EMA, DDIM 50. Different gene axis from the previous slide, so the two slides cannot be compared. Loss curves are divided by each panel's own part-16 value.",
|
| 148 |
+
"sources": "tools/sec03_panel.py; data/sec03_panel_bench.csv, data/sec03_panel_seeds.csv, data/sec03_panel_loss.csv, data/sec03_panel_headline.csv"
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"kind": "content",
|
| 152 |
+
"section": "4",
|
| 153 |
+
"section_label": "4 SLE benchmark",
|
| 154 |
+
"title": "SLE benchmark: PBISC vs scSemiProfiler",
|
| 155 |
+
"layout": "full",
|
| 156 |
+
"figures": [
|
| 157 |
+
"figures/sec04_sle_benchmark.png"
|
| 158 |
+
],
|
| 159 |
+
"keywords": [
|
| 160 |
+
"42 held-out donors, sc-pseudobulk input",
|
| 161 |
+
"Beats scSemiProfiler on all three metrics",
|
| 162 |
+
"Copying bulk logFC scores higher (backup)"
|
| 163 |
+
],
|
| 164 |
+
"footnote": "GSE135779, 42 held-out donors (30 SLE / 12 HC). PBISC: 5 seeds, mean ± SD; scSemiProfiler: 1 run.",
|
| 165 |
+
"sources": "tools/sec04_sle_benchmark.py; data/sec04_sle_benchmark.csv, data/sec04_sle_numbers.csv",
|
| 166 |
+
"footnote_full": "GSE135779, 42 held-out donors (30 SLE / 12 HC). PBISC f01 6k E16, 5 seeds (mean ± SD); baselines 1 draw. scSemiProfiler also gets real sc of 14 in-cohort donors (1,500 cells each). Dashed: input bulk logFC copied to every type (backup)."
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"kind": "content",
|
| 170 |
+
"section": "4",
|
| 171 |
+
"section_label": "4 SLE benchmark",
|
| 172 |
+
"title": "SLE benchmark: per cell type",
|
| 173 |
+
"layout": "full",
|
| 174 |
+
"figures": [
|
| 175 |
+
"figures/sec04_sle_per_celltype.png"
|
| 176 |
+
],
|
| 177 |
+
"keywords": [
|
| 178 |
+
"Beats scSemiProfiler in T, B, Mono, NK",
|
| 179 |
+
"Loses in Other; DC r ties, fewer DEGs",
|
| 180 |
+
"DC: ~15 generated cells per donor"
|
| 181 |
+
],
|
| 182 |
+
"footnote": "Same 42 donors, 1,006 genes. PBISC: 5 seeds, mean ± SD; scSemiProfiler: 1 run. Other: top-50 of 12.",
|
| 183 |
+
"say": "PBISC's DC top list in the base seed has only 13 genes, because few DC cells are generated.",
|
| 184 |
+
"sources": "tools/sec04_sle_benchmark.py; data/sec04_sle_per_celltype.csv, data/sec04_sle_numbers.csv",
|
| 185 |
+
"footnote_full": "Same 42 donors, 1,006 genes. PBISC 5 seeds (mean ± SD), baselines 1 draw. Tick %: share of 251,179 real cells. Other top-50 is out of 12 truth genes. Bulk copy: r 0.68, top-50 113 (backup)."
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"kind": "content",
|
| 189 |
+
"section": "5",
|
| 190 |
+
"section_label": "5 Real bulk vs pseudobulk",
|
| 191 |
+
"title": "Real bulk ≠ pseudobulk (model input)",
|
| 192 |
+
"layout": "figure_keywords",
|
| 193 |
+
"figures": [
|
| 194 |
+
"figures/sec05_condition_space.png"
|
| 195 |
+
],
|
| 196 |
+
"keywords": [
|
| 197 |
+
"Real bulk: 2.46 D from own pseudobulk",
|
| 198 |
+
"95% of squared offset is one shift",
|
| 199 |
+
"Shift removed (diagnostic): own donor 7.5% → 75.7%"
|
| 200 |
+
],
|
| 201 |
+
"footnote": "ImMicro, 107 healthy donors. Model input space (log1p CPM). D = median donor-to-donor distance.",
|
| 202 |
+
"say": "The two pseudobulk clusters on PC1 are sc pools DB1-3 vs DB4-7, so the pairing lines cross mainly because of sc batch. Shift removal subtracts the mean offset of the other 106 donors; a bulk-only deployment would not have them.",
|
| 203 |
+
"sources": "tools/sec05_condition_space.py; data/sec05_condition_space_numbers.csv, data/sec05_condition_space_coords.csv",
|
| 204 |
+
"footnote_full": "ImMicro, 107 healthy donors. Model inputs (log1p CPM, 5,508 genes), not learned ctx. D = median donor-to-donor distance; PCA-30 values are lower bounds (full space 3.19 D, 0.91 shared). Shift removal is a diagnostic that uses paired pseudobulks. Pseudobulk PC1 is sc pool batch (pool R² 0.96 on PC1)."
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"kind": "content",
|
| 208 |
+
"section": "5",
|
| 209 |
+
"section_label": "5 Real bulk vs pseudobulk",
|
| 210 |
+
"title": "Consequence: cells off-manifold",
|
| 211 |
+
"layout": "two_figures",
|
| 212 |
+
"figures": [
|
| 213 |
+
"figures/sec05_cells_umap.png",
|
| 214 |
+
"figures/sec05_cells_metrics.png"
|
| 215 |
+
],
|
| 216 |
+
"keywords": [
|
| 217 |
+
"Monocytes: raw 30.6% vs real 16.7%",
|
| 218 |
+
"Same noise: 19% of T cells become monocytes",
|
| 219 |
+
"Precision: raw 0.36 vs pseudobulk 0.92"
|
| 220 |
+
],
|
| 221 |
+
"footnote": "ImMicro, 107 donors; same starting noise for every input. Coverage: raw 0.08, sc pseudobulk 0.51.",
|
| 222 |
+
"footnote_full": "ImMicro, 107 donors. Final model f01 6k 1× E16 (DDIM 50, EMA); each cell starts from the same noise under every input. Precision/coverage from one scoring call. Composition L1: raw 0.455, pseudobulk 0.166, cohort-mean null 0.161. The UMAP is fitted on real cells and overstates overlap.",
|
| 223 |
+
"sources": "tools/sec05_cells_offmanifold.py; data/sec05_cells_metrics.csv, data/sec05_cells_umap_coords.csv"
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"kind": "content",
|
| 227 |
+
"section": "5",
|
| 228 |
+
"section_label": "5 Real bulk vs pseudobulk",
|
| 229 |
+
"title": "Consequence: disease direction flips",
|
| 230 |
+
"layout": "figure_keywords",
|
| 231 |
+
"figures": [
|
| 232 |
+
"figures/sec05_behcet_direction.png"
|
| 233 |
+
],
|
| 234 |
+
"keywords": [
|
| 235 |
+
"CD16 gap: raw −3.97 vs observed +4.94",
|
| 236 |
+
"C1Q flip vanishes at common depth",
|
| 237 |
+
"sc pseudobulk: right sign in 5/5 seeds"
|
| 238 |
+
],
|
| 239 |
+
"footnote": "Behçet. Bulk GSE198533 (9 BD / 10 HC); sc GSE198616 (4 / 4, different people) gives observed and pseudobulk.",
|
| 240 |
+
"say": "Raw bulk gives the wrong sign for CD16 and C1Q in 5/5 seeds. At one common monocyte depth the C1Q gap is −0.08 ± 0.09 pp (1/5 seeds positive), so the C1Q flip is a depth effect; the CD16 flip stays at −3.59. sc pseudobulk of the 8 sc donors gives the observed sign in 5/5 seeds (CD16 +5.48, C1Q +1.82). Observed p is descriptive (4 vs 4). No paired data in this cohort, so no fine-tune here.",
|
| 241 |
+
"sources": "tools/sec05_behcet_direction.py; data/sec05_behcet_direction.csv",
|
| 242 |
+
"footnote_full": "Behçet, final model. Bulk GSE198533 (BD 9, HC 10), 5,000 cells per sample; observed = sc GSE198616 (BD 4, HC 4, different people; descriptive p). At common depth, raw CD16 is −3.59 (seed 0) and raw C1Q is −0.08 ± 0.09 pp."
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"kind": "content",
|
| 246 |
+
"section": "6",
|
| 247 |
+
"section_label": "6 Paired fine-tuning",
|
| 248 |
+
"title": "Fine-tuning with paired bulk + sc",
|
| 249 |
+
"layout": "diagram",
|
| 250 |
+
"figures": [
|
| 251 |
+
"figures/sec06_ft_method.png"
|
| 252 |
+
],
|
| 253 |
+
"keywords": [
|
| 254 |
+
"LoRA 2–14 min vs pretraining 15.9 h"
|
| 255 |
+
],
|
| 256 |
+
"footnote": "Base: final model f01 6k 1x E16. Times from 40 LoRA runs on this host.",
|
| 257 |
+
"sources": "tools/sec06_finetune_method.py; data/sec06_ft_method.csv",
|
| 258 |
+
"footnote_full": "Receipts: immicro/fold0/real_lora and ye2026_sepsis/fewshot_n5/draw0/lora RUN.json. Base: f01_6k_1x E16. Times: 40 local LoRA runs."
|
| 259 |
+
},
|
| 260 |
+
{
|
| 261 |
+
"kind": "content",
|
| 262 |
+
"section": "7",
|
| 263 |
+
"section_label": "7 LoRA ablations",
|
| 264 |
+
"title": "Full vs LoRA vs cond.-encoder-only",
|
| 265 |
+
"layout": "full",
|
| 266 |
+
"figures": [
|
| 267 |
+
"figures/sec07_ft_modes.png"
|
| 268 |
+
],
|
| 269 |
+
"keywords": [
|
| 270 |
+
"LoRA ≈ full FT, 42× fewer params",
|
| 271 |
+
"Cond.-encoder-only ≈ ZS + cal. on ImMicro",
|
| 272 |
+
"LoRA beats both on coverage"
|
| 273 |
+
],
|
| 274 |
+
"footnote": "Fold 0, cond.-enc. vs ZS + cal.: coverage 0.73 vs 0.73 / 0.74 vs 0.63, L1 p 0.06 / 0.93 (ImMicro / sepsis).",
|
| 275 |
+
"sources": "tools/sec07_ft_modes.py; data/sec07_ft_modes_accuracy.csv, data/sec07_ft_modes_compute.csv, data/sec07_ft_modes_wilcoxon.csv",
|
| 276 |
+
"footnote_full": "Base f01_6k_1x E16. ImMicro / sepsis; paired Wilcoxon on donor values, uncorrected. Full vs LoRA L1 p 0.25 / 0.71 (pooled); 42× fewer trainable params (1.3 M). Zero-shot + calibration: α_g = mean CPM(pseudobulk_g) / mean CPM(bulk_g) over the fold's 85–86 / 65–66 paired training donors (train + inner-val); bulk CPM × α, renormalised. The sc-only FT never saw real bulk, so it is fed calibrated bulk. Raw → calibrated zero-shot (pooled): L1 0.45 → 0.20 / 0.51 → 0.40, coverage 0.19 → 0.53 / 0.07 → 0.43, sepsis logFC r −0.01 → 0.12. LoRA vs ZS + cal. (pooled): coverage 0.78 vs 0.53 / 0.83 vs 0.43 (p 7e-19 / 4e-15); L1 0.16 vs 0.20 (p 2e-7) / 0.36 vs 0.40 (p 0.19); logFC r 0.53 vs 0.12. Fold 0, cond.-enc. vs ZS + cal.: L1 0.20 vs 0.17 (p 0.06) / 0.38 vs 0.39 (p 0.93), coverage 0.73 vs 0.73 (p 0.68) / 0.74 vs 0.63 (p 7e-4). Fold 0, LoRA: coverage 0.91 / 0.86; vs cond.-enc. p 4e-5 / 1e-3, vs ZS + cal. p 6e-5 / 3e-4; L1 vs cond.-enc. p 3e-5 / 0.52, vs ZS + cal. p 0.29 / 0.96. sc-only FT (+ cal.), pooled: coverage 0.62 / 0.73, logFC r 0.30. Open = fold-0 pilot; compare same marker only. Per-step time: runs early-stop differently."
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"kind": "content",
|
| 280 |
+
"section": "7",
|
| 281 |
+
"section_label": "7 LoRA ablations",
|
| 282 |
+
"title": "K diversification: no gain",
|
| 283 |
+
"layout": "figure_keywords",
|
| 284 |
+
"figures": [
|
| 285 |
+
"figures/sec07_k_aug.png"
|
| 286 |
+
],
|
| 287 |
+
"keywords": [
|
| 288 |
+
"No gain; keep single K 1000",
|
| 289 |
+
"Multi-K slightly worse on ImMicro (p 0.04)",
|
| 290 |
+
"Inner-val loss Δ ≤ 1.2e-4"
|
| 291 |
+
],
|
| 292 |
+
"footnote": "LoRA r16, 5-fold pooled. p = paired Wilcoxon on donor L1, uncorrected.",
|
| 293 |
+
"sources": "tools/sec07_k_aug.py; data/sec07_k_aug.csv, data/sec07_k_aug_wilcoxon.csv, data/sec07_k_aug_inner_val_delta.csv",
|
| 294 |
+
"footnote_full": "LoRA r16 on f01_6k_1x E16, 5-fold pooled. p: paired Wilcoxon, donor L1 vs plain LoRA, uncorrected. Recipes arm: K 1000 real bulk + ½-batch pretraining pseudobulk, no multi-K."
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"kind": "content",
|
| 298 |
+
"section": "8",
|
| 299 |
+
"section_label": "8 Pairs needed",
|
| 300 |
+
"title": "Pairs needed: composition, coverage, training steps",
|
| 301 |
+
"layout": "full",
|
| 302 |
+
"figures": [
|
| 303 |
+
"figures/sec08_pairs_realism.png"
|
| 304 |
+
],
|
| 305 |
+
"keywords": [
|
| 306 |
+
"Calibration lifts coverage to 0.53 / 0.43",
|
| 307 |
+
"More pairs do not help calibration",
|
| 308 |
+
"LoRA, 5+7 pairs: coverage 0.84 / 0.77"
|
| 309 |
+
],
|
| 310 |
+
"footnote": "ImMicro / sepsis, 5-fold CV (107 / 82 donors). N+7 = N training + 7 early-stop pairs; squares: same pairs.",
|
| 311 |
+
"footnote_full": "0 = no LoRA training: zero-shot on real bulk (pale) and zero-shot + calibration (dark blue). Calibration α_g = mean CPM(pseudobulk_g) / mean CPM(bulk_g) over all paired training donors of the fold (train + inner-val: 85–86 / 65–66, the same donors LoRA 'all' trains and early-stops on); bulk CPM × α, renormalised. ImMicro L1 axis is broken (zero-shot 0.455). Raw → calibrated: coverage 0.19 → 0.53 / 0.07 → 0.43, L1 0.455 → 0.199 / 0.511 → 0.401. L1 at 5+7 pairs vs raw zero-shot: 0.171 vs 0.455 (ImMicro, p 7e-18), 0.428 vs 0.511 (sepsis, p 0.04). LoRA vs ZS + cal.: coverage higher at every n in both cohorts (p ≤ 4e-15); L1 lower on ImMicro (all pairs 0.162 vs 0.199, p 2e-7) but not on sepsis (0.362 vs 0.401, p 0.19; 5+7 pairs 0.428). With α from the same 5 pairs (few-pair call, its own donors; LoRA fixed 3k steps, no inner-val): coverage 0.54 vs LoRA 0.79 (ImMicro), 0.43 vs 0.69 (sepsis). 20k step cap reached by ImMicro folds 1/5 (10), 4/5 (20), 5/5 (40, all); last 2k steps <0.4% of total loss drop. Squares: zero-shot + calibration with alpha fitted on exactly the pairs each LoRA run saw (N training + its inner-val pairs). Coverage stays 0.52-0.53 (ImMicro) and 0.43-0.44 (sepsis) from 5+7 pairs to all; composition L1 0.19-0.20 / 0.40-0.41. LoRA vs calibration at equal pairs, donor L1: ImMicro better at every n (p <= 0.03); sepsis 5+7 not different (0.428 vs 0.412, p 0.68), lower from 10+7 but not significant (p 0.08-0.32).",
|
| 312 |
+
"say": "Keywords say +7; 2 of 5 sepsis folds use 8 inner-val pairs.",
|
| 313 |
+
"sources": "tools/sec08_pairs_needed.py; data/sec08_pairs_realism.csv, data/sec08_selected_steps.csv, data/sec08_slide_numbers.csv"
|
| 314 |
+
},
|
| 315 |
+
{
|
| 316 |
+
"kind": "content",
|
| 317 |
+
"section": "8",
|
| 318 |
+
"section_label": "8 Pairs needed",
|
| 319 |
+
"title": "Pairs needed: donor and disease signal",
|
| 320 |
+
"layout": "figure_keywords",
|
| 321 |
+
"figures": [
|
| 322 |
+
"figures/sec08_pairs_signal.png"
|
| 323 |
+
],
|
| 324 |
+
"keywords": [
|
| 325 |
+
"Calibration alone: logFC r ≤ 0.12",
|
| 326 |
+
"LoRA r above broadcast from 10+7 pairs",
|
| 327 |
+
"LoRA DEG passes calibration at 20+7"
|
| 328 |
+
],
|
| 329 |
+
"footnote": "Sepsis: 61 case vs 21 control. logFC r = mean over T / B / Mono / NK. Raw zero-shot: logFC r −0.01, DEG 9.",
|
| 330 |
+
"footnote_full": "Zero-shot on real bulk: logFC r −0.01, DEG 9, NK r 0.49; zero-shot + calibration (α from all 85–86 / 65–66 fold pairs): 0.12, 11, 0.50; LoRA with all pairs: 0.53, 23, 0.70. LoRA passes ZS + cal. from 5+7 pairs on logFC r (0.29), from 20+7 on DEG (18) and from 20+7 on NK r (0.56). ≤10 pairs: NK r (0.20/0.40) and DEG (5/8) below both zero-shot points. ImMicro fraction r: T at or above raw zero-shot from 20 pairs, at or above ZS + cal. (0.67) from 40; Mono only with all. DEG gain is Mono/DC; T overlap 3 (zero-shot), 5 (ZS + cal.) → 0–1 from 20 pairs; NK 0 at every LoRA n (broadcast T 3, NK 2). Squares: calibration with alpha from the same pairs as each LoRA run. Sepsis logFC r 0.08 / 0.10 / 0.10 / 0.12 (5 / 10 / 20 / 40 + 7 pairs) vs LoRA 0.29 / 0.42 / 0.37 / 0.48; partial r about 0 vs 0.25-0.40; top-50 DEG 12 / 10 / 7 / 7 vs 5 / 8 / 18 / 22. ImMicro NK r 0.50-0.53 at every n vs LoRA 0.20 / 0.40 / 0.56 / 0.70.",
|
| 331 |
+
"sources": "tools/sec08_pairs_needed.py; data/sec08_pairs_signal.csv, data/sec08_slide_numbers.csv"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"kind": "content",
|
| 335 |
+
"section": "9",
|
| 336 |
+
"section_label": "9 Paired validation",
|
| 337 |
+
"sec09_index": 0,
|
| 338 |
+
"title": "Five paired cohorts",
|
| 339 |
+
"layout": "full",
|
| 340 |
+
"figures": [
|
| 341 |
+
"figures/sec09_cohorts.png"
|
| 342 |
+
],
|
| 343 |
+
"keywords": [
|
| 344 |
+
"403 paired samples, 275 donors",
|
| 345 |
+
"Only identity-pass pairs; donor-level splits",
|
| 346 |
+
"Ji bulk: whole blood, not PBMC"
|
| 347 |
+
],
|
| 348 |
+
"footnote": "Usable pair = passed identity check and ≥ 200 cells: 403 of 430 pairs; donor-level splits.",
|
| 349 |
+
"footnote_full": "Usable pair = passed the pairing identity check and >= 200 cells (fold >= 0 in data/<cohort>/folds.csv); dropped 15 identity-fail, 11 borderline and 1 low-cell pairs of 430. ImMicro: no identity flag, all used. Imperial, Giroux, Ji: several pairs per donor. Case vs control = samples in scores/<cohort>/pooled/summary.json. Giroux 'moderate' = GEO 'severe' (paper term); its moderate vs mild subjects are 4F/0M vs 0F/5M (scored), so its disease metrics exclude sex-linked genes. Labels: data/<cohort>/QC_REPORT.md; ImMicro: GEO GSE314922/GSE314416.",
|
| 350 |
+
"sources": "tools/sec09_paired_validation.py; data/sec09_cohorts.csv, data/sec09_quoted_numbers.csv, data/sec09_slide_text.json",
|
| 351 |
+
"numbers": [
|
| 352 |
+
{
|
| 353 |
+
"value": "403 paired samples (sum of usable rows)",
|
| 354 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/fewshot_n5/DRAWS.json (n_usable_rows)"
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"value": "275 donors (sum of usable donors)",
|
| 358 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/fewshot_n5/DRAWS.json (n_usable_donors)"
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"value": "dropped 15 identity-fail, 11 borderline, 1 < 200 cells, of 430",
|
| 362 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/features.npz (identity_pass, identity_check); samples.csv (n_cells); /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/tools/prepare_dataset.py (MIN_CELLS)"
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"value": "ImMicro 107 pairs / 107 donors",
|
| 366 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/immicro/fewshot_n5/DRAWS.json"
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"value": "Sepsis 82 pairs / 82 donors; sepsis 61 vs control 21",
|
| 370 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/ye2026_sepsis/fewshot_n5/DRAWS.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled/summary.json"
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"value": "Imperial 157 pairs / 57 donors; COVID+ 113 vs COVID− 34 (+10 recovery, neither)",
|
| 374 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/imperial_eskd/fewshot_n5/DRAWS.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/imperial_eskd/pooled/summary.json"
|
| 375 |
+
},
|
| 376 |
+
{
|
| 377 |
+
"value": "Giroux 24 pairs / 9 donors; moderate 11 vs mild 13",
|
| 378 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022/fewshot_n5/DRAWS.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/giroux2022/pooled/summary.json"
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"value": "Ji 33 pairs / 20 donors; ChILI 18 vs ICI control 15",
|
| 382 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/ji2025_chili/fewshot_n5/DRAWS.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ji2025_chili/pooled/summary.json"
|
| 383 |
+
}
|
| 384 |
+
]
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"kind": "content",
|
| 388 |
+
"section": "9",
|
| 389 |
+
"section_label": "9 Paired validation",
|
| 390 |
+
"sec09_index": 1,
|
| 391 |
+
"title": "5 donors: LoRA vs scSemiProfiler — cells",
|
| 392 |
+
"layout": "full",
|
| 393 |
+
"figures": [
|
| 394 |
+
"figures/sec09_fewpair_cells.png"
|
| 395 |
+
],
|
| 396 |
+
"keywords": [
|
| 397 |
+
"LoRA-5 > scSemi-5: coverage, precision 5/5",
|
| 398 |
+
"Beats zero-shot + calibration: coverage 5/5",
|
| 399 |
+
"Lower L1 than calibration: ImMicro only"
|
| 400 |
+
],
|
| 401 |
+
"footnote": "5 draws per cohort; test = all other usable pairs. Calibration α from the same 5 donors. scANVI labels.",
|
| 402 |
+
"footnote_full": "Base f01 6k·1x·E16 (EMA, DDIM 50) + LoRA r=16, 3,000 steps. LoRA-5 / scSemi-5 = LoRA / scSemiProfiler trained on the same 5 donors (5–15 pairs); test = all other usable pairs. Zero-shot = base model without fine-tuning, fed each test pair's real bulk as measured; zero-shot + calibration = the same model fed that bulk after gene-wise calibration, alpha fitted on the same 5 training donors' pairs (both in the same call as LoRA-5). scSemi-5 scored in a separate call, same test set and reference (sha-checked); 25/25 draws. Verdict = better in >= 80% of shared draws. LoRA-5 lower L1 than scSemi-5 in 4/5 (Giroux split 3/5). LoRA-5 > zero-shot + calibration: coverage 5/5, precision 3/5, depth-matched 5/5 and 3/5 cohorts; > zero-shot (real bulk): coverage 5/5, precision 5/5, depth-matched 5/5 and 4/5. Depth-matched P/C vs scSemi-5: same ranking, coverage LoRA-5 0.83–0.97 vs scSemi-5 0.15–0.28. Composition L1, LoRA-5 minus zero-shot + calibration, per-donor Wilcoxon (gain = p < 0.05): ImMicro -0.03 (p 2e-10), Sepsis +0.02 (p 0.79), Imperial +0.02 (p 0.38), Giroux -0.06 (p 0.38), Ji -0.01 (p 0.70); minus zero-shot (real bulk): ImMicro -0.27 (p 2e-18), Sepsis -0.04 (p 0.15), Imperial -0.35 (p 2e-08), Giroux -0.11 (p 0.04), Ji -0.23 (p 0.02). scANVI labels; P/C = PCA-50, k=10 balls. Scores: scores/<cohort>/fewshot_n5/.",
|
| 403 |
+
"sources": "tools/sec09_paired_validation.py; data/sec09_fewpair_cells.csv, data/sec09_scsemi_status.csv, data/sec09_slide_text.json",
|
| 404 |
+
"numbers": [
|
| 405 |
+
{
|
| 406 |
+
"value": "LoRA-5 vs scSemi-5 coverage (shared-draw means; LoRA-better draws/n; verdict): ImMicro 0.792 vs 0.036 (5/5, lora); Sepsis 0.694 vs 0.080 (5/5, lora); Imperial 0.737 vs 0.059 (5/5, lora); Giroux 0.961 vs 0.607 (5/5, lora); Ji 0.707 vs 0.145 (5/5, lora) -> LoRA verdicts 5/5",
|
| 407 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"value": "LoRA-5 vs scSemi-5 precision (shared-draw means; LoRA-better draws/n; verdict): ImMicro 0.952 vs 0.518 (5/5, lora); Sepsis 0.906 vs 0.728 (5/5, lora); Imperial 0.853 vs 0.330 (5/5, lora); Giroux 1.000 vs 0.992 (5/5, lora); Ji 0.978 vs 0.840 (5/5, lora) -> LoRA verdicts 5/5",
|
| 411 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 412 |
+
},
|
| 413 |
+
{
|
| 414 |
+
"value": "LoRA-5 vs scSemi-5 comp_l1 (shared-draw means; LoRA-better draws/n; verdict): ImMicro 0.176 vs 0.233 (5/5, lora); Sepsis 0.466 vs 0.612 (5/5, lora); Imperial 0.503 vs 0.602 (5/5, lora); Giroux 0.256 vs 0.270 (3/5, split); Ji 0.513 vs 0.592 (4/5, lora) -> LoRA verdicts 4/5",
|
| 415 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"value": "LoRA-5 vs scSemi-5 coverage_dm (shared-draw means; LoRA-better draws/n; verdict): ImMicro 0.966 vs 0.284 (5/5, lora); Sepsis 0.834 vs 0.158 (5/5, lora); Imperial 0.863 vs 0.152 (5/5, lora); Giroux 0.974 vs 0.238 (5/5, lora); Ji 0.908 vs 0.150 (5/5, lora) -> LoRA verdicts 5/5",
|
| 419 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 420 |
+
},
|
| 421 |
+
{
|
| 422 |
+
"value": "LoRA-5 vs scSemi-5 precision_dm (shared-draw means; LoRA-better draws/n; verdict): ImMicro 0.975 vs 0.829 (5/5, lora); Sepsis 0.914 vs 0.504 (5/5, lora); Imperial 0.881 vs 0.429 (5/5, lora); Giroux 0.995 vs 0.426 (5/5, lora); Ji 0.974 vs 0.564 (5/5, lora) -> LoRA verdicts 5/5",
|
| 423 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"value": "LoRA-5 vs zero-shot + calibration coverage (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.792 vs 0.535 (5/5, lora); Sepsis 0.694 vs 0.428 (5/5, lora); Imperial 0.737 vs 0.634 (5/5, lora); Giroux 0.961 vs 0.944 (5/5, lora); Ji 0.707 vs 0.114 (5/5, lora) -> LoRA verdicts 5/5",
|
| 427 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_cal)"
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"value": "LoRA-5 vs zero-shot + calibration precision (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.952 vs 0.904 (5/5, lora); Sepsis 0.906 vs 0.899 (3/5, split); Imperial 0.853 vs 0.845 (3/5, split); Giroux 1.000 vs 0.996 (4/5, lora); Ji 0.978 vs 0.782 (5/5, lora) -> LoRA verdicts 3/5",
|
| 431 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_cal)"
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"value": "LoRA-5 vs zero-shot + calibration comp_l1 (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.176 vs 0.203 (5/5, lora); Sepsis 0.466 vs 0.446 (2/5, split); Imperial 0.503 vs 0.506 (2/5, split); Giroux 0.256 vs 0.288 (2/5, split); Ji 0.513 vs 0.514 (3/5, split) -> LoRA verdicts 1/5",
|
| 435 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_cal)"
|
| 436 |
+
},
|
| 437 |
+
{
|
| 438 |
+
"value": "LoRA-5 vs zero-shot + calibration coverage_dm (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.966 vs 0.780 (5/5, lora); Sepsis 0.834 vs 0.658 (5/5, lora); Imperial 0.863 vs 0.681 (5/5, lora); Giroux 0.974 vs 0.937 (5/5, lora); Ji 0.908 vs 0.357 (5/5, lora) -> LoRA verdicts 5/5",
|
| 439 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_cal)"
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"value": "LoRA-5 vs zero-shot + calibration precision_dm (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.975 vs 0.940 (5/5, lora); Sepsis 0.914 vs 0.909 (3/5, split); Imperial 0.881 vs 0.868 (3/5, split); Giroux 0.995 vs 0.989 (5/5, lora); Ji 0.974 vs 0.658 (5/5, lora) -> LoRA verdicts 3/5",
|
| 443 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_cal)"
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"value": "LoRA-5 vs zero-shot (real bulk) coverage (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.792 vs 0.190 (5/5, lora); Sepsis 0.694 vs 0.076 (5/5, lora); Imperial 0.737 vs 0.114 (5/5, lora); Giroux 0.961 vs 0.472 (5/5, lora); Ji 0.707 vs 0.066 (5/5, lora) -> LoRA verdicts 5/5",
|
| 447 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_raw)"
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"value": "LoRA-5 vs zero-shot (real bulk) precision (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.952 vs 0.677 (5/5, lora); Sepsis 0.906 vs 0.625 (5/5, lora); Imperial 0.853 vs 0.500 (5/5, lora); Giroux 1.000 vs 0.980 (5/5, lora); Ji 0.978 vs 0.799 (5/5, lora) -> LoRA verdicts 5/5",
|
| 451 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_raw)"
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"value": "LoRA-5 vs zero-shot (real bulk) comp_l1 (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.176 vs 0.445 (5/5, lora); Sepsis 0.466 vs 0.510 (5/5, lora); Imperial 0.503 vs 0.806 (5/5, lora); Giroux 0.256 vs 0.351 (5/5, lora); Ji 0.513 vs 0.721 (5/5, lora) -> LoRA verdicts 5/5",
|
| 455 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_raw)"
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"value": "LoRA-5 vs zero-shot (real bulk) coverage_dm (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.966 vs 0.213 (5/5, lora); Sepsis 0.834 vs 0.073 (5/5, lora); Imperial 0.863 vs 0.151 (5/5, lora); Giroux 0.974 vs 0.549 (5/5, lora); Ji 0.908 vs 0.199 (5/5, lora) -> LoRA verdicts 5/5",
|
| 459 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_raw)"
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"value": "LoRA-5 vs zero-shot (real bulk) precision_dm (same-draw means; LoRA-better draws/n; verdict): ImMicro 0.975 vs 0.671 (5/5, lora); Sepsis 0.914 vs 0.595 (5/5, lora); Imperial 0.881 vs 0.561 (5/5, lora); Giroux 0.995 vs 0.996 (2/5, split); Ji 0.974 vs 0.480 (5/5, lora) -> LoRA verdicts 4/5",
|
| 463 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (arms lora5, zs_raw)"
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"value": "coverage cohort means over all draws: LoRA-5 ImMicro 0.792, Sepsis 0.694, Imperial 0.737, Giroux 0.961, Ji 0.707; scSemi-5 ImMicro 0.036, Sepsis 0.080, Imperial 0.059, Giroux 0.607, Ji 0.145; zero-shot + calibration ImMicro 0.535, Sepsis 0.428, Imperial 0.634, Giroux 0.944, Ji 0.114; zero-shot ImMicro 0.190, Sepsis 0.076, Imperial 0.114, Giroux 0.472, Ji 0.066",
|
| 467 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json and draw<j>_scsemi5/summary.json"
|
| 468 |
+
},
|
| 469 |
+
{
|
| 470 |
+
"value": "LoRA-5 minus zero-shot + calibration composition L1, per-donor Wilcoxon (draw-averaged): ImMicro -0.027, n=107, p=2.2e-10; Sepsis +0.018, n=82, p=0.79; Imperial +0.016, n=57, p=0.38; Giroux -0.065, n=8, p=0.38; Ji -0.012, n=20, p=0.7 -> gain in 1/5",
|
| 471 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/per_donor.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/folds.csv"
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"value": "LoRA-5 minus zero-shot (real bulk) composition L1, per-donor Wilcoxon (draw-averaged): ImMicro -0.270, n=107, p=2.2e-18; Sepsis -0.044, n=82, p=0.15; Imperial -0.348, n=57, p=1.6e-08; Giroux -0.107, n=8, p=0.039; Ji -0.232, n=20, p=0.017 -> gain in 4/5",
|
| 475 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/per_donor.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/folds.csv"
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"value": "scSemiProfiler draws used / LoRA draws: ImMicro 5/5, Sepsis 5/5, Imperial 5/5, Giroux 5/5, Ji 5/5",
|
| 479 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/sec09_scsemi_status.csv"
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"value": "training pairs per draw: ImMicro 5, Sepsis 5, Imperial 12–15, Giroux 12–14, Ji 7–9; test pairs: ImMicro 102, Sepsis 77, Imperial 142–145, Giroux 10–12, Ji 24–26",
|
| 483 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/fewshot_n5/DRAWS.json (n_train_rows, n_test_rows)"
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"value": "LoRA r = 16; 3000 fixed steps; base runs/f01_6k_1x_seed20260627/checkpoint_epoch_016.pt; sampling: test donors only, 1,500 cells each, seed 20260927, DDIM 50, EMA, Bernoulli read-out",
|
| 487 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/runs/immicro/fewshot_n5/draw0/lora/RUN.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/README.md"
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"value": "P/C definition: precision/coverage/density (PCA-50 + k = 10 balls fitted on the scored donors' observed R1 cells); PCA components in every summary.json = 50",
|
| 491 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/tools/score_ft.py"
|
| 492 |
+
}
|
| 493 |
+
]
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"kind": "content",
|
| 497 |
+
"section": "9",
|
| 498 |
+
"section_label": "9 Paired validation",
|
| 499 |
+
"sec09_index": 2,
|
| 500 |
+
"title": "5 donors: LoRA vs scSemiProfiler — disease signal",
|
| 501 |
+
"layout": "figure_keywords",
|
| 502 |
+
"figures": [
|
| 503 |
+
"figures/sec09_fewpair_disease.png"
|
| 504 |
+
],
|
| 505 |
+
"keywords": [
|
| 506 |
+
"LoRA-5 > scSemi-5: DEG 2/4, logFC r 2/4",
|
| 507 |
+
"logFC r: LoRA-5 > calibrated zero-shot 4/4",
|
| 508 |
+
"Giroux: broadcast r beats all arms"
|
| 509 |
+
],
|
| 510 |
+
"footnote": "Giroux: sex-linked genes excluded (severity confounded with sex: 4F/0M vs 0F/5M). Top-50 DEG over 5 types.",
|
| 511 |
+
"footnote_full": "Same draws and verdict rule as the previous slide; DEG tie = half the draws equal or mean gap < 1 gene. logFC r = mean over T/B/Mono/NK of case-vs-control log2FC r (generated vs observed); top-50 DEG = Welch+BH overlap summed over 5 types (max 250; Giroux 1–63, Ji 75–250 per draw). Giroux test = 2 vs 2 subjects per draw. LoRA-5-better draws (verdict): vs scSemi-5 logFC r Sepsis split 3/5, Imperial lora 5/5, Giroux scSemi-5 0/5, Ji lora 5/5; DEG Sepsis lora 5/5, Imperial lora 5/5, Giroux tie 1/5, Ji tie 1/5. Vs zero-shot + calibration: logFC r Sepsis lora 4/5, Imperial lora 5/5, Giroux lora 4/5, Ji lora 5/5; DEG Sepsis lora 4/5, Imperial lora 5/5, Giroux tie 1/5, Ji tie 1/5. Vs zero-shot (real bulk): logFC r Sepsis lora 5/5, Imperial lora 5/5, Giroux split 3/5, Ji lora 5/5; DEG Sepsis lora 4/5, Imperial lora 5/5, Giroux tie 1/5, Ji tie 1/5. Broadcast = the input real bulk's own logFC. Giroux: moderate vs mild subjects are 4F/0M vs 0F/5M (scored; all paired subjects 4F/1M vs 0F/5M; sex from bulk chrY expression = sc = GEO), so its disease metrics (logFC r, partial r, top-50 DEG, broadcast) exclude 196 sex-linked genes (43 chrY non-PAR + 153 X-inactivation escape / variable-escape genes of Tukiainen et al. 2017; PAR genes kept), 65 of them scoring genes; same labels and cells as before (scores_nosex/giroux2022/). Scores: scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/.",
|
| 512 |
+
"sources": "tools/sec09_paired_validation.py; data/sec09_fewpair_disease.csv, data/sec09_slide_text.json",
|
| 513 |
+
"numbers": [
|
| 514 |
+
{
|
| 515 |
+
"value": "Giroux sex by contrast arm (subjects, F/M): scored moderate 4F/0M vs mild 0F/5M; all paired 4F/1M vs 0F/5M",
|
| 516 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022/features.npz (sex_bulk_expr = sex_sc_expr = sex_geo); /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022/folds.csv"
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"value": "Giroux sex-linked genes excluded from the disease metrics: 196 listed (43 chrY non-PAR + 153 X escape), 65 of 5563 scoring genes",
|
| 520 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/sex_linked_genes/sex_linked_genes_exclude.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/sex_linked_genes/BUILD.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json (gene_exclusion)"
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"value": "Top-50 DEG LoRA-5 vs scSemi-5 (shared-draw means; LoRA-better / tied draws; verdict): Sepsis 16.4 vs 5.2 (5/5, 0 tied, lora); Imperial 113.6 vs 46.8 (5/5, 0 tied, lora); Giroux 0.2 vs 0.0 (1/5, 4 tied, tie); Ji 0.2 vs 0.0 (1/5, 4 tied, tie)",
|
| 524 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 525 |
+
},
|
| 526 |
+
{
|
| 527 |
+
"value": "Top-50 DEG LoRA-5 vs zero-shot + calibration (shared-draw means; LoRA-better / tied draws; verdict): Sepsis 16.4 vs 9.4 (4/5, 0 tied, lora); Imperial 113.6 vs 103.8 (5/5, 0 tied, lora); Giroux 0.2 vs 0.0 (1/5, 4 tied, tie); Ji 0.2 vs 0.0 (1/5, 4 tied, tie)",
|
| 528 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"value": "Top-50 DEG LoRA-5 vs zero-shot (real bulk) (shared-draw means; LoRA-better / tied draws; verdict): Sepsis 16.4 vs 10.0 (4/5, 0 tied, lora); Imperial 113.6 vs 105.6 (5/5, 0 tied, lora); Giroux 0.2 vs 0.0 (1/5, 4 tied, tie); Ji 0.2 vs 0.0 (1/5, 4 tied, tie)",
|
| 532 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"value": "logFC r LoRA-5 vs scSemi-5 (shared-draw means; LoRA-better draws; verdict): Sepsis 0.350 vs 0.402 (3/5, split); Imperial 0.749 vs 0.562 (5/5, lora); Giroux 0.297 vs 0.397 (0/5, other); Ji 0.333 vs 0.153 (5/5, lora)",
|
| 536 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 537 |
+
},
|
| 538 |
+
{
|
| 539 |
+
"value": "logFC r LoRA-5 vs zero-shot + calibration (shared-draw means; LoRA-better draws; verdict): Sepsis 0.350 vs 0.096 (4/5, lora); Imperial 0.749 vs 0.676 (5/5, lora); Giroux 0.297 vs 0.228 (4/5, lora); Ji 0.333 vs 0.140 (5/5, lora)",
|
| 540 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 541 |
+
},
|
| 542 |
+
{
|
| 543 |
+
"value": "logFC r LoRA-5 vs zero-shot (real bulk) (shared-draw means; LoRA-better draws; verdict): Sepsis 0.350 vs -0.024 (5/5, lora); Imperial 0.749 vs 0.638 (5/5, lora); Giroux 0.297 vs 0.255 (3/5, split); Ji 0.333 vs 0.087 (5/5, lora)",
|
| 544 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>{,_scsemi5}/summary.json and contrast.csv (Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/)"
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"value": "Sepsis broadcast logFC r 0.320 vs best arm 0.402; broadcast DEG 20.0 vs best arm 16.4 (means over all draws; arms: zero-shot, zero-shot + calibration, scSemi-5, LoRA-5)",
|
| 548 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/fewshot_n5/draw<j>{,_scsemi5}/summary.json"
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"value": "Imperial broadcast logFC r 0.656 vs best arm 0.749; broadcast DEG 74.8 vs best arm 113.6 (means over all draws; arms: zero-shot, zero-shot + calibration, scSemi-5, LoRA-5)",
|
| 552 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/imperial_eskd/fewshot_n5/draw<j>{,_scsemi5}/summary.json"
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"value": "Giroux broadcast logFC r 0.492 vs best arm 0.397; broadcast DEG 0.0 vs best arm 0.2 (means over all draws; arms: zero-shot, zero-shot + calibration, scSemi-5, LoRA-5)",
|
| 556 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/fewshot_n5/draw<j>{,_scsemi5}/summary.json"
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"value": "Ji broadcast logFC r 0.234 vs best arm 0.333; broadcast DEG 1.0 vs best arm 0.2 (means over all draws; arms: zero-shot, zero-shot + calibration, scSemi-5, LoRA-5)",
|
| 560 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ji2025_chili/fewshot_n5/draw<j>{,_scsemi5}/summary.json"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"value": "DEG maximum per draw: Sepsis 250, Imperial 250, Giroux 1–63, Ji 75–250",
|
| 564 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/fewshot_n5/draw<j>/summary.json (deg_top50_max; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex)"
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"value": "Giroux test subjects per draw: 2 vs 2 (moderate vs mild); test pairs 10–12",
|
| 568 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022/fewshot_n5/DRAWS.json (train_donors); /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/giroux2022/folds.csv (group)"
|
| 569 |
+
}
|
| 570 |
+
]
|
| 571 |
+
},
|
| 572 |
+
{
|
| 573 |
+
"kind": "content",
|
| 574 |
+
"section": "9",
|
| 575 |
+
"section_label": "9 Paired validation",
|
| 576 |
+
"text_source": {
|
| 577 |
+
"file": "data/sec09_extra_slide_text.json",
|
| 578 |
+
"index": 0
|
| 579 |
+
},
|
| 580 |
+
"title": "5 donors: realism beyond precision/coverage",
|
| 581 |
+
"layout": "full",
|
| 582 |
+
"figures": [
|
| 583 |
+
"figures/sec09_extra_fewpair.png"
|
| 584 |
+
],
|
| 585 |
+
"keywords": [
|
| 586 |
+
"Classifier AUC: LoRA-5 best in 25/25 draws",
|
| 587 |
+
"E_N: LoRA-5 below scSemi-5 in 25/25 draws",
|
| 588 |
+
"Still separable: LoRA-5 AUC 0.89–0.95"
|
| 589 |
+
],
|
| 590 |
+
"footnote": "E_N: scSemiProfiler's own error metric. Misses only vs calibration, e.g. Imperial E_N 1.28 vs 1.22.",
|
| 591 |
+
"footnote_full": "Same 5-donor draws as the previous slides; every metric on exactly the scored cells (scores_extra/, tools/extra_metrics.py). Real side for AUC and MMD² = held-out real cells of the same samples (R2), projected like the generated cells; real vs real = R2 vs R3 (AUC 0.49–0.50). Classifier AUC: 5-fold CV ROC AUC of a kNN classifier (k = 5) separating real from generated cells, 0.5 = indistinguishable; bars start at 0.5. MMD²: unbiased, Gaussian kernel, bandwidth = median distance among real cells. E_N: scSemiProfiler's normalized error (Wang et al. 2024, eq. 17–18), their code's squared L2 on all cells, per-arm PCA-100; real vs real = within-sample half split (0.07–0.38); every generated arm is above 1. LoRA-5 best of the 4 arms in 25/25 draws on kNN AUC, 25/25 on RF AUC, 25/25 on 1-NN accuracy, 23/25 on MMD², 22/25 on E_N. LoRA-5 better than scSemi-5, zero-shot and zero-shot + calibration on both AUCs, 1-NN accuracy and coverage at k = 3, 5, 10 in every draw. E_N scSemi-5 vs LoRA-5 (cohort means): ImMicro 3.65 vs 1.55; Sepsis 3.83 vs 1.46; Imperial 2.04 vs 1.28; Giroux 3.79 vs 1.99; Ji 4.27 vs 2.60; LoRA-5 lower in 25/25 draws. Draws where LoRA-5 is worse (cohort means in brackets): vs zero-shot + calibration: Sepsis precision k5 1/5 (0.778 vs 0.752), precision k10 2/5 (0.906 vs 0.899); Imperial MMD² (σ = m) 1/5 (0.0156 vs 0.0218), MMD² (σ sum) 1/5 (0.0443 vs 0.0673), E_N (all cells) 3/5 (1.28 vs 1.22), precision k3 2/5 (0.610 vs 0.598), precision k5 2/5 (0.726 vs 0.719), precision k10 2/5 (0.853 vs 0.845); Giroux MMD² (σ = m) 1/5 (0.0178 vs 0.0257), MMD² (σ sum) 1/5 (0.0584 vs 0.0838), precision k5 1/5 (0.995 vs 0.981), precision k10 1/5 (1.000 vs 0.996). LoRA-5 AUC per draw 0.88–0.97 (kNN), RF cohort means 0.90–0.96: a classifier still tells generated from real cells. Scores: scores_extra/<cohort>/fewshot_n5/draw<j>/.",
|
| 592 |
+
"sources": "tools/sec09_extra_metrics.py; data/sec09_extra_fewpair.csv, data/sec09_extra_quoted_numbers.csv; plans/paired_finetune_intradataset_20260927/scores_extra/ (README.md, TABLES.md)",
|
| 593 |
+
"numbers": [
|
| 594 |
+
{
|
| 595 |
+
"value": "LoRA-5 best of 4 arms (draws): kNN AUC 25/25, RF AUC 25/25, 1-NN 25/25, MMD² 23/25, E_N 22/25",
|
| 596 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"value": "E_N LoRA-5 < scSemi-5 in 25/25 draws; cohort means scSemi-5 vs LoRA-5: ImMicro 3.65 vs 1.55; Sepsis 3.83 vs 1.46; Imperial 2.04 vs 1.28; Giroux 3.79 vs 1.99; Ji 4.27 vs 2.60",
|
| 600 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/en.csv (cellset all, distance sq)"
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"value": "LoRA-5 kNN AUC cohort means: ImMicro 0.943, Sepsis 0.936, Imperial 0.918, Giroux 0.893, Ji 0.955; per draw 0.878–0.975",
|
| 604 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"value": "real vs real: kNN AUC ImMicro 0.502, Sepsis 0.501, Imperial 0.498, Giroux 0.495, Ji 0.491; E_N ImMicro 0.382, Sepsis 0.100, Imperial 0.260, Giroux 0.145, Ji 0.073",
|
| 608 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"value": "LoRA-5 worse than a comparator (draws): vs zero-shot + calibration: Sepsis precision k5 1/5 (0.778 vs 0.752), precision k10 2/5 (0.906 vs 0.899); Imperial MMD² (σ = m) 1/5 (0.0156 vs 0.0218), MMD² (σ sum) 1/5 (0.0443 vs 0.0673), E_N (all cells) 3/5 (1.28 vs 1.22), precision k3 2/5 (0.610 vs 0.598), precision k5 2/5 (0.726 vs 0.719), precision k10 2/5 (0.853 vs 0.845); Giroux MMD² (σ = m) 1/5 (0.0178 vs 0.0257), MMD² (σ sum) 1/5 (0.0584 vs 0.0838), precision k5 1/5 (0.995 vs 0.981), precision k10 1/5 (1.000 vs 0.996)",
|
| 612 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"value": "cross-check: 720 cohort × arm × metric values equal scores_extra/{fewshot,pooled}_headline.csv",
|
| 616 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/fewshot_headline.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/pooled_headline.csv"
|
| 617 |
+
}
|
| 618 |
+
]
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"kind": "content",
|
| 622 |
+
"section": "9",
|
| 623 |
+
"section_label": "9 Paired validation",
|
| 624 |
+
"sec09_index": 3,
|
| 625 |
+
"title": "All pairs, 5-fold",
|
| 626 |
+
"layout": "full",
|
| 627 |
+
"figures": [
|
| 628 |
+
"figures/sec09_fivefold.png"
|
| 629 |
+
],
|
| 630 |
+
"keywords": [
|
| 631 |
+
"LoRA tops coverage 5/5, logFC r 4/4",
|
| 632 |
+
"Ji whole blood: LoRA 0.86, others 0.06–0.11",
|
| 633 |
+
"Giroux: broadcast r 0.58 > LoRA 0.46"
|
| 634 |
+
],
|
| 635 |
+
"footnote": "Donor-level 5-fold CV. Giroux: sex-linked genes excluded (severity confounded with sex: 4F/0M vs 0F/5M).",
|
| 636 |
+
"footnote_full": "Donor-level 5-fold CV; each pair scored once, by the fold model that never trained on its donor (one pooled call per cohort). LoRA r=16 on all training donors' real bulk, early stop on inner-val donors. Zero-shot = base model without fine-tuning, fed the test pair's real bulk as measured; zero-shot + calibration = the same model fed gene-wise calibrated bulk (alpha fitted on the fold's training donors); sc-only fine-tune (+ calibration) = full fine-tune on training donors' sc pseudobulk, fed calibrated bulk. Base f01 6k·1x·E16. LoRA best of 4 arms: coverage 5/5, logFC r 4/4, top-50 DEG 4/4. Broadcast = raw real bulk. Sepsis DEG from pooled_deg. Giroux: moderate vs mild subjects are 4F/0M vs 0F/5M (scored; all paired subjects 4F/1M vs 0F/5M; sex from bulk chrY expression = sc = GEO), so its disease metrics (logFC r, partial r, top-50 DEG, broadcast) exclude 196 sex-linked genes (43 chrY non-PAR + 153 X-inactivation escape / variable-escape genes of Tukiainen et al. 2017; PAR genes kept), 65 of them scoring genes; same labels and cells as before (scores_nosex/giroux2022/). Scores: scores/<cohort>/pooled/summary.json.",
|
| 637 |
+
"sources": "tools/sec09_paired_validation.py; data/sec09_fivefold.csv, data/sec09_slide_text.json",
|
| 638 |
+
"numbers": [
|
| 639 |
+
{
|
| 640 |
+
"value": "LoRA best of 4 arms: coverage 5/5, logFC r 4/4, top-50 DEG 4/4",
|
| 641 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (Sepsis DEG: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json)"
|
| 642 |
+
},
|
| 643 |
+
{
|
| 644 |
+
"value": "Ji coverage: zero-shot 0.055, zero-shot + calibration 0.106, sc-only (+ calibration) 0.113, LoRA 0.857",
|
| 645 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ji2025_chili/pooled/summary.json"
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"value": "Giroux logFC r: broadcast 0.575 vs LoRA 0.461; DEG broadcast 5 vs LoRA 5",
|
| 649 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json"
|
| 650 |
+
},
|
| 651 |
+
{
|
| 652 |
+
"value": "LoRA logFC r vs broadcast: Sepsis 0.527 vs 0.316, Imperial 0.819 vs 0.661, Giroux 0.461 vs 0.575, Ji 0.479 vs 0.240",
|
| 653 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (Sepsis DEG: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json)"
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"value": "coverage LoRA / zero-shot + calibration / zero-shot / sc-only (+ calibration): ImMicro 0.784 / 0.527 / 0.192 / 0.623, Sepsis 0.829 / 0.431 / 0.067 / 0.726, Imperial 0.850 / 0.639 / 0.112 / 0.555, Giroux 0.928 / 0.906 / 0.281 / 0.908, Ji 0.857 / 0.106 / 0.055 / 0.113",
|
| 657 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (Sepsis DEG: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json)"
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"value": "logFC r LoRA / zero-shot + calibration / zero-shot / sc-only (+ calibration): Sepsis 0.527 / 0.123 / -0.012 / 0.296, Imperial 0.819 / 0.679 / 0.644 / 0.808, Giroux 0.461 / 0.269 / 0.334 / 0.344, Ji 0.479 / 0.142 / 0.084 / 0.245",
|
| 661 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (Sepsis DEG: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json)"
|
| 662 |
+
},
|
| 663 |
+
{
|
| 664 |
+
"value": "top-50 DEG LoRA / zero-shot + calibration / zero-shot / sc-only (+ calibration): Sepsis 23 / 11 / 9 / 15, Imperial 143 / 111 / 106 / 129, Giroux 5 / 0 / 1 / 0, Ji 15 / 0 / 0 / 0",
|
| 665 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (Sepsis DEG: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json; Giroux: /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_nosex/giroux2022/pooled/summary.json)"
|
| 666 |
+
},
|
| 667 |
+
{
|
| 668 |
+
"value": "Pooled n (pairs / donors): ImMicro 107/107, Sepsis 82/82, Imperial 157/57, Giroux 24/9, Ji 33/20",
|
| 669 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/<cohort>/pooled/summary.json (n_donors); /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/data/<cohort>/fewshot_n5/DRAWS.json"
|
| 670 |
+
},
|
| 671 |
+
{
|
| 672 |
+
"value": "early stopping: About 10 % of each fold's training donors are inner-validation, used only for early stopping",
|
| 673 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/README.md"
|
| 674 |
+
}
|
| 675 |
+
]
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"kind": "content",
|
| 679 |
+
"section": "10",
|
| 680 |
+
"section_label": "10 Paired-subset cohorts",
|
| 681 |
+
"title": "Next: cohorts with a paired subset (planned)",
|
| 682 |
+
"layout": "figure_keywords",
|
| 683 |
+
"figures": [
|
| 684 |
+
"figures/sec10_paired_subset_cohorts.png"
|
| 685 |
+
],
|
| 686 |
+
"keywords": [
|
| 687 |
+
"Train LoRA on pairs, generate bulk-only",
|
| 688 |
+
"Sepsis controls: 21 paired + 54 bulk-only",
|
| 689 |
+
"ChILI pre-ICI: 11 bulk, 4 unpaired sc"
|
| 690 |
+
],
|
| 691 |
+
"footnote": "Counts from pairing manifests. Model: f01 6k 1x E16 + LoRA r16.",
|
| 692 |
+
"say": "Planned: no LoRA cells exist yet for any bulk-only sample. Ji bulk is PAXgene whole blood. Only 7 of the Arunachalam pairs are strict same-visit pairs. Asan is omitted because it has no donor map.",
|
| 693 |
+
"sources": "tools/sec10_paired_subset_cohorts.py; data/sec10_cohort_counts.csv, data/sec10_bulk_only_groups.csv, data/sec10_quoted_numbers.csv",
|
| 694 |
+
"footnote_full": "Counts from pairing manifests. QC = identity check (Imperial also >=200 cells); sex-flag = bulk sex differs from metadata or is ambiguous. Not shown: Asan (no donor map), Giroux (24 pairs, 17 bulk-only; broadcast beats LoRA). Model: f01 6k 1x E16 + LoRA r16."
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"kind": "divider",
|
| 698 |
+
"title": "Backup"
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"kind": "content",
|
| 702 |
+
"section": "4",
|
| 703 |
+
"section_label": "Backup · 4 SLE benchmark",
|
| 704 |
+
"backup": true,
|
| 705 |
+
"title": "Bulk broadcast baseline",
|
| 706 |
+
"layout": "full",
|
| 707 |
+
"figures": [
|
| 708 |
+
"figures/sec04_sle_broadcast.png"
|
| 709 |
+
],
|
| 710 |
+
"keywords": [
|
| 711 |
+
"Bulk logFC copied: r 0.68 vs 0.37",
|
| 712 |
+
"Type-specific part: partial r 0.21",
|
| 713 |
+
"scSemiProfiler: r 0.32, partial r 0.17"
|
| 714 |
+
],
|
| 715 |
+
"footnote": "SLE, 42 donors, 1,006 genes. Partial r: both logFCs residualised on bulk logFC.",
|
| 716 |
+
"sources": "tools/sec04_sle_benchmark.py; data/sec04_sle_broadcast.csv, data/sec04_sle_numbers.csv",
|
| 717 |
+
"footnote_full": "SLE held-out, 42 donors, 1,006 genes; PBISC 5 seeds. Partial r: truth and method logFC residualised on bulk logFC. Broadcast has no residual, so it is not scored. Split-half and BayesPrism checks: sle_broadcast/RESULTS.md."
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"kind": "content",
|
| 721 |
+
"section": "5",
|
| 722 |
+
"section_label": "Backup · 5 Real bulk vs pseudobulk",
|
| 723 |
+
"backup": true,
|
| 724 |
+
"title": "Same shift in three paired cohorts",
|
| 725 |
+
"layout": "full",
|
| 726 |
+
"figures": [
|
| 727 |
+
"figures/sec05_shift_cohorts.png"
|
| 728 |
+
],
|
| 729 |
+
"keywords": [
|
| 730 |
+
"Shared shift in all 3 cohorts"
|
| 731 |
+
],
|
| 732 |
+
"footnote": "Model inputs only, no generation. PCA fitted per cohort on sc pseudobulks.",
|
| 733 |
+
"sources": "tools/sec05_shift_cohorts.py; data/sec05_shift_cohorts.csv",
|
| 734 |
+
"footnote_full": "Model inputs only, no generation. PCA is fitted on each cohort's sc pseudobulks (Arunachalam: 11 PCs, n = 12). D uses same-condition pairs only for Randolph and Arunachalam. Shift removal is a leave-one-out diagnostic."
|
| 735 |
+
},
|
| 736 |
+
{
|
| 737 |
+
"kind": "content",
|
| 738 |
+
"section": "6",
|
| 739 |
+
"section_label": "Backup · 6 Paired fine-tuning",
|
| 740 |
+
"backup": true,
|
| 741 |
+
"title": "Evaluation design",
|
| 742 |
+
"layout": "full",
|
| 743 |
+
"figures": [
|
| 744 |
+
"figures/sec06_eval_design.png"
|
| 745 |
+
],
|
| 746 |
+
"keywords": [
|
| 747 |
+
"Donor-level splits; test donors never trained",
|
| 748 |
+
"5-fold: other folds · few: 5 donors",
|
| 749 |
+
"Giroux few-pair trains 12–14 of 24 pairs"
|
| 750 |
+
],
|
| 751 |
+
"footnote": "Bars: Ye 2026 sepsis. QC-failed pairs excluded.",
|
| 752 |
+
"sources": "tools/sec06_finetune_method.py; data/sec06_eval_design.csv, data/sec06_eval_design_sepsis_roles.csv",
|
| 753 |
+
"footnote_full": "Counts: data/<cohort>/folds.csv and fewshot_n5/DRAWS.json; QC-failed pairs (fold −1) excluded. Bars: Ye 2026 sepsis."
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"kind": "content",
|
| 757 |
+
"section": "7",
|
| 758 |
+
"section_label": "Backup · 7 LoRA ablations",
|
| 759 |
+
"backup": true,
|
| 760 |
+
"text_source": {
|
| 761 |
+
"file": "data/sec07_rank_sweep_slide_text.json",
|
| 762 |
+
"index": 0
|
| 763 |
+
},
|
| 764 |
+
"title": "LoRA rank: r = 4, 16, 64",
|
| 765 |
+
"layout": "full",
|
| 766 |
+
"figures": [
|
| 767 |
+
"figures/sec07_rank_sweep.png"
|
| 768 |
+
],
|
| 769 |
+
"keywords": [
|
| 770 |
+
"ImMicro r64, all pairs: coverage 0.78 → 0.82",
|
| 771 |
+
"ImMicro r4, all pairs: L1 0.162 → 0.186",
|
| 772 |
+
"Kept r16; r64 precision 0.92 → 0.90"
|
| 773 |
+
],
|
| 774 |
+
"footnote": "Sepsis, all pairs: r64 logFC r 0.53 → 0.55, DEG 23 → 26; r4 0.48, DEG 18. Pooled 5-fold scores.",
|
| 775 |
+
"footnote_full": "LoRA fine-tune of the final model (f01 6k·1x·E16) with rank r and alpha = r, same recipe as the deck's r = 16 runs (early stop on 7–8 inner-val pairs, 20k step cap); n = training pairs, nested subsets; donor-level 5-fold CV, each pair scored once by its fold model (pooled call). Trainable parameters r4 324,056, r16 1,296,224, r64 5,184,896. ImMicro n = 5: r4: L1 0.162, P/C 0.937 / 0.789 (L1 vs r16 -0.009, Wilcoxon p 0.00088, 107 donors); r16: L1 0.171, P/C 0.946 / 0.839; r64: L1 0.177, P/C 0.946 / 0.847 (L1 vs r16 +0.005, Wilcoxon p 0.0076, 107 donors) | ImMicro n = 20: r4: L1 0.171, P/C 0.925 / 0.715 (L1 vs r16 -0.001, Wilcoxon p 0.32, 107 donors); r16: L1 0.172, P/C 0.920 / 0.755; r64: L1 0.172, P/C 0.905 / 0.794 (L1 vs r16 -0.001, Wilcoxon p 0.66, 107 donors) | ImMicro n = all: r4: L1 0.186, P/C 0.933 / 0.712 (L1 vs r16 +0.024, Wilcoxon p 9.8e-09, 107 donors); r16: L1 0.162, P/C 0.924 / 0.784; r64: L1 0.161, P/C 0.904 / 0.816 (L1 vs r16 -0.001, Wilcoxon p 0.89, 107 donors) | Sepsis n = 5: r4: L1 0.426, P/C 0.907 / 0.742, logFC r 0.27, DEG 2 (L1 vs r16 -0.002, Wilcoxon p 0.97, 82 donors); r16: L1 0.428, P/C 0.911 / 0.767, logFC r 0.29, DEG 5; r64: L1 0.429, P/C 0.906 / 0.766, logFC r 0.31, DEG 1 (L1 vs r16 +0.001, Wilcoxon p 0.66, 82 donors) | Sepsis n = 20: r4: L1 0.378, P/C 0.929 / 0.769, logFC r 0.31, DEG 14 (L1 vs r16 -0.003, Wilcoxon p 0.58, 82 donors); r16: L1 0.380, P/C 0.927 / 0.807, logFC r 0.37, DEG 18; r64: L1 0.376, P/C 0.911 / 0.808, logFC r 0.43, DEG 18 (L1 vs r16 -0.004, Wilcoxon p 0.046, 82 donors) | Sepsis n = all: r4: L1 0.363, P/C 0.923 / 0.789, logFC r 0.48, DEG 18 (L1 vs r16 +0.002, Wilcoxon p 0.77, 82 donors); r16: L1 0.362, P/C 0.926 / 0.829, logFC r 0.53, DEG 23; r64: L1 0.367, P/C 0.907 / 0.824, logFC r 0.55, DEG 26 (L1 vs r16 +0.005, Wilcoxon p 0.66, 82 donors). r64 vs r16 brings small gains in coverage and disease signal but slightly lower precision and no composition change; r4 is worse with many pairs; at n = 5 the ranks are mixed. r = 16 is kept. Scores: scores/<cohort>/lora_rank_20261001/pooled (r4, r64) and scores/<cohort>/pooled{,_deg} (r16); table: scores/<cohort>/rankcal_20261001.md.",
|
| 776 |
+
"sources": "tools/sec07_rank_sweep.py; data/sec07_rank_sweep.csv, data/sec07_rank_sweep_runs.csv; plans/paired_finetune_intradataset_20260927/scores/<cohort>/rankcal_20261001.md",
|
| 777 |
+
"numbers": [
|
| 778 |
+
{
|
| 779 |
+
"value": "ImMicro all pairs coverage r16 0.784 -> r64 0.816; precision 0.924 -> 0.904; L1 r16 0.162, r4 0.186 (Wilcoxon p 9.8e-09)",
|
| 780 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/immicro/pooled/summary.json; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/immicro/lora_rank_20261001/pooled/summary.json, per_donor.csv"
|
| 781 |
+
},
|
| 782 |
+
{
|
| 783 |
+
"value": "Sepsis all pairs logFC r r16 0.527, r64 0.553, r4 0.476; DEG 23 / 26 / 18",
|
| 784 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/pooled_deg/summary.json, contrast.csv; /home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores/ye2026_sepsis/lora_rank_20261001/pooled/summary.json, contrast.csv"
|
| 785 |
+
},
|
| 786 |
+
{
|
| 787 |
+
"value": "trainable parameters: r4 324056, r16 1296224, r64 5184896",
|
| 788 |
+
"source": "runs/<cohort>/fold<k>/<arm>/RUN.json (trainable.n_trainable)"
|
| 789 |
+
}
|
| 790 |
+
]
|
| 791 |
+
},
|
| 792 |
+
{
|
| 793 |
+
"kind": "content",
|
| 794 |
+
"section": "9",
|
| 795 |
+
"section_label": "Backup · 9 Paired validation",
|
| 796 |
+
"backup": true,
|
| 797 |
+
"text_source": {
|
| 798 |
+
"file": "data/sec09_extra_slide_text.json",
|
| 799 |
+
"index": 1
|
| 800 |
+
},
|
| 801 |
+
"title": "5-fold: realism beyond precision/coverage",
|
| 802 |
+
"layout": "full",
|
| 803 |
+
"figures": [
|
| 804 |
+
"figures/sec09_extra_fivefold.png"
|
| 805 |
+
],
|
| 806 |
+
"keywords": [
|
| 807 |
+
"Every metric: LoRA first in 5/5 cohorts",
|
| 808 |
+
"Ji whole blood: E_N 1.9 vs 7.1–10.1",
|
| 809 |
+
"Still separable: LoRA AUC 0.87–0.94"
|
| 810 |
+
],
|
| 811 |
+
"footnote": "Donor-level 5-fold CV, one pooled call per cohort. E_N: scSemiProfiler's own error metric.",
|
| 812 |
+
"footnote_full": "Donor-level 5-fold CV; each pair scored once by the fold model that never trained on its donor (one pooled call per cohort, all cross-fitted pairs). Arms as on the 5-fold slide. Metric definitions as on the 5-donor realism slide. LoRA first among the 4 arms in all 5 cohorts on 12/12 headline metrics (kNN and RF AUC, 1-NN accuracy, MMD² at σ = m and summed, E_N all cells, precision and coverage at k = 3, 5, 10). LoRA kNN AUC ImMicro 0.941, Sepsis 0.886, Imperial 0.866, Giroux 0.881, Ji 0.908; real vs real ImMicro 0.505, Sepsis 0.506, Imperial 0.496, Giroux 0.501, Ji 0.494. E_N LoRA vs other arms: ImMicro 1.56 vs 1.77–4.83; Sepsis 1.20 vs 1.40–5.29; Imperial 1.13 vs 1.19–4.05; Giroux 1.70 vs 2.24–4.48; Ji 1.95 vs 7.08–10.13. scSemiProfiler 5-fold CV not available yet (no extra-metric unit with set scsemi__raw). Scores: scores_extra/<cohort>/pooled/.",
|
| 813 |
+
"sources": "tools/sec09_extra_metrics.py; data/sec09_extra_fivefold.csv, data/sec09_extra_scsemi_status.csv; plans/paired_finetune_intradataset_20260927/scores_extra/",
|
| 814 |
+
"numbers": [
|
| 815 |
+
{
|
| 816 |
+
"value": "LoRA first among 4 arms in all 5 cohorts on 12/12 metrics",
|
| 817 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"value": "Ji E_N: LoRA 1.948; Zero-shot, real bulk 10.125, Zero-shot + calibration 7.076, sc-only fine-tune (+ calibration) 7.215",
|
| 821 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"value": "LoRA kNN AUC (pooled): ImMicro 0.941, Sepsis 0.886, Imperial 0.866, Giroux 0.881, Ji 0.908",
|
| 825 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/pooled/{metrics,en}.csv"
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"value": "scSemiProfiler, all training pairs: not available",
|
| 829 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/data/sec09_extra_scsemi_status.csv"
|
| 830 |
+
}
|
| 831 |
+
]
|
| 832 |
+
},
|
| 833 |
+
{
|
| 834 |
+
"kind": "content",
|
| 835 |
+
"section": "9",
|
| 836 |
+
"section_label": "Backup · 9 Paired validation",
|
| 837 |
+
"backup": true,
|
| 838 |
+
"text_source": {
|
| 839 |
+
"file": "data/sec09_extra_slide_text.json",
|
| 840 |
+
"index": 2
|
| 841 |
+
},
|
| 842 |
+
"title": "5 donors: precision/coverage at k = 3, 5, 10",
|
| 843 |
+
"layout": "full",
|
| 844 |
+
"figures": [
|
| 845 |
+
"figures/sec09_extra_ksens.png"
|
| 846 |
+
],
|
| 847 |
+
"keywords": [
|
| 848 |
+
"Smaller k lowers every set, real included",
|
| 849 |
+
"Coverage: LoRA-5 first at all k, 25/25",
|
| 850 |
+
"Precision: LoRA-5 first in 20–23/25 draws"
|
| 851 |
+
],
|
| 852 |
+
"footnote": "5 donors, 5 draws per cohort; error bars = SD over draws. k = 10 is the value on the main slides.",
|
| 853 |
+
"footnote_full": "Precision and coverage recomputed with k = 3, 5, 10 nearest-neighbour balls in the scorer's PCA-50 (k = 10 reproduces the main-slide values exactly). Means over the 5 draws per cohort; error bars = SD; grey = real vs real (R1 vs R2, same samples). Both metrics fall with smaller k for every set including the real control (real coverage at k = 3: 0.92–0.99), so compare arms with the real row, not with 1. Expected coverage of a perfect generator (Naeem et al. 2020, eq. 9) at k = 3/5/10: 0.88/0.97/1.00 in every cohort. LoRA-5 first on coverage at every k in 25/25 draws; on precision in 23/21/20 of 25 draws (k = 3/5/10); not first: Sepsis 0/1/2, Imperial 2/2/2, Giroux 0/1/1 draws at k = 3/5/10, beaten by zero-shot + calibration. 5-fold pooled design (not drawn): coverage ranking of the 4 arms across k unchanged; LoRA first at every k in 5/5 cohorts. Scores: scores_extra/<cohort>/fewshot_n5/draw<j>/metrics.csv.",
|
| 854 |
+
"sources": "tools/sec09_extra_metrics.py; data/sec09_extra_ksens.csv; plans/paired_finetune_intradataset_20260927/scores_extra/",
|
| 855 |
+
"numbers": [
|
| 856 |
+
{
|
| 857 |
+
"value": "LoRA-5 first on coverage at k = 3, 5 and 10: 25/25 draws",
|
| 858 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"value": "LoRA-5 first on precision (draws) at k = 3/5/10: 23/21/20 of 25",
|
| 862 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 863 |
+
},
|
| 864 |
+
{
|
| 865 |
+
"value": "real vs real coverage at k = 3: ImMicro 0.932, Sepsis 0.925, Imperial 0.919, Giroux 0.993, Ji 0.980",
|
| 866 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"value": "every set falls with smaller k (cohort means): True",
|
| 870 |
+
"source": "/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/plans/paired_finetune_intradataset_20260927/scores_extra/<cohort>/fewshot_n5/draw<j>/{metrics,en}.csv"
|
| 871 |
+
}
|
| 872 |
+
]
|
| 873 |
+
}
|
| 874 |
+
]
|
| 875 |
+
}
|