junidude14 commited on
Commit
c5680db
·
verified ·
1 Parent(s): 1f8aa06

Archive 4 checkpoints (1-4)

Browse files
paper-releases/pbisc-diffusion/updates/20261010T153319Z-manuscript-rewrite-from-deck/diffusion/dataset/server_1/manuscript/archive/pre_rewrite_20261010/GIT_HEAD.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ fe5b8d98458cfc3ce6e0a48fbb63a32f1cfda686
paper-releases/pbisc-diffusion/updates/20261010T153319Z-manuscript-rewrite-from-deck/diffusion/dataset/server_1/manuscript/editorial/rewrite_20261010.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Manuscript rewrite of 2026-10-10 (from the paper-summary deck)
2
+
3
+ **Request (user, 2026-10-10):** rewrite the paper from scratch on the basis of the current deck, with Figure 6 marked
4
+ "to be continued".
5
+
6
+ **Source of truth:** the paper-summary deck
7
+ `immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/`, as rebuilt on 2026-10-10
8
+ (76 slides).
9
+ - Slide text, notes and full footnotes were the primary source.
10
+ - The deck's `data/*.csv` tables were used to check numbers. Their rows carry source paths.
11
+ - The figure split follows `data/figure_plan.json`.
12
+ - The previous manuscript (a different story, older checkpoints) was not used as a content source. Only method facts were
13
+ reused, after re-checking them against the code and run records.
14
+
15
+ **Previous version:** `archive/pre_rewrite_20261010/` holds sections/, main.tex, supplementary.tex, tables/,
16
+ references.bib, both PDFs, and the git HEAD and status at the time of the rewrite. This includes the uncommitted
17
+ 2026-10-06 Figure 1 redesign edits. `archive/` is git-ignored, so this copy is local and in the paper archive delta.
18
+
19
+ ## Structure
20
+
21
+ | Part | Files | Content |
22
+ |---|---|---|
23
+ | Main text | `sections/abstract.tex`, `introduction.tex`, `results_fig1..6.tex`, `discussion.tex` | About 5,500 words. Abstract 200 words. |
24
+ | Methods | `sections/methods_model.tex`, `methods_paired.tex`, `methods_eval.tex` | Very descriptive, per the Nature-style guide. |
25
+ | Figures | `sections/fig1..6.tex`, `figures/deck_20261010/` | Deck vector panels placed as-is. |
26
+ | Supplementary | `supplementary.tex`; `sections/supp_notes.tex`, `supp_methods_model.tex`, `supp_methods_eval.tex`, `supp_table_cohorts.tex`, `supp_tables.tex`, `supp_figures.tex` | 5 Notes, Methods, 4 Tables, 17 Figures. |
27
+ | Shared | `macros.tex`, `references.bib` | Figure macros, `\todo{}` and 55 cited references (every entry is cited). |
28
+
29
+ Figures are typeset after the references, each starting on a new page, with the legend after the panels. A figure may
30
+ run over more than one page because the deck panels are slide-sized. Provenance and sha256 of every copied panel are in
31
+ `figures/deck_20261010/PROVENANCE.json`. The 180 mm journal layouts are still to be drawn.
32
+
33
+ Figure 6 ("Discovery from public bulk-only data") is a placeholder. The text states only what was generated: LoRA-5 cells
34
+ for 122 sepsis and 164 COVID-19 haemodialysis bulk-only samples, at K = 1,000 and K = 4,000. No findings are reported.
35
+
36
+ ## Title
37
+
38
+ Chosen: "Five paired donors and minutes of fine-tuning turn blood bulk RNA-seq into single cells" (14 words). Other
39
+ candidates: "Single blood cells generated from bulk RNA-seq carry disease signal beyond the bulk" and "A few paired samples
40
+ and minutes of fine-tuning turn blood bulk RNA-seq into single cells".
41
+
42
+ ## Rules applied (user decisions, 2026-10-06 to 10-08)
43
+
44
+ - The main comparison is LoRA-5 vs scSemiProfiler-5, with the same five donors and five draws per cohort. 5-fold CV is
45
+ reported separately and is never the head-to-head.
46
+ - No bulk-broadcast baseline anywhere.
47
+ - The deck figure `sec04_metrics_overview` (Fig. 2d) still listed it as a comparator.
48
+ - It was redrawn on 2026-10-10 (`tools/sec04_metrics_overview.py`; old files in the deck's
49
+ `_archive/2026-10-10_metrics_overview_broadcast/`) and the deck was rebuilt.
50
+ - Partial r, the cell-type signal beyond the bulk, is emphasised. So is the 5-fold disease logFC r of 0.82 (Imperial).
51
+ - Time counts per-cohort GPU work only: no PBISC pretraining and no queue waits.
52
+ - No PBISC-VAE, no refcal, no TPM input variants in the main text. Gene-wise calibration is a comparator.
53
+ - "Paired-sc level" wording is avoided, while the paper keeps the claim that PBISC is the best of the tested methods.
54
+ - BayesPrism and CIBERSORTx are always called cell-type deconvolution.
55
+ - Modified-baseline runs appear in the Supplementary only (Note 4, Fig. 17). The from-scratch pilot is in the
56
+ Supplementary (Note 3, Fig. 16) and is framed positively in the Discussion.
57
+ - Style: thesis first, bold lead-in keywords, short body, `[TODO]` for unfinished work, British spelling, no Korean.
58
+
59
+ ## Process
60
+
61
+ 1. Nine drafting agents wrote Results Figs 1–5, Methods (3 parts) and the Supplementary from a written brief. The
62
+ coordinator wrote the Fig. 6 placeholder.
63
+ 2. Test compile with tectonic.
64
+ 3. Eleven adversarial checkers (one per file group) traced every number and claim to the deck text, the deck data, the
65
+ plan READMEs and the code. Fixers applied the confirmed corrections (about 265).
66
+ 4. A separate agent wrote the abstract, introduction and discussion, which were then checked and fixed the same way.
67
+ The references were built and checked against Crossref and the reference PDFs.
68
+ 5. The coordinator made the cross-file fixes and wrote the Fig. 6 text.
69
+ 6. The main text was tightened from 6,364 to 5,543 words. An old-vs-new check restored 39 losses (definitions,
70
+ qualifiers, citations).
71
+ 7. A whole-paper review covered consistency, cross-references, rules and a referee read (three reviewers, 43 issues),
72
+ followed by per-file fixes, a few coordinator fixes and a final compile. Both documents compile with no undefined
73
+ reference, no overfull box and no bibliography warning (main 48 pages, Supplementary 46 pages).
74
+
75
+ ## Conflicts between the deck and its sources, resolved in the text
76
+
77
+ - **SLE cohort (GSE135779).** The 42 scored donors are children and adults (25 cSLE, 5 aSLE, 8 cHD, 4 aHD), not a
78
+ childhood-only cohort. It also chose the width and gene panel, so the text calls it a development cohort.
79
+ - **Corpus shares.** 88.5% healthy and 23.6% in vitro are shares of cells, not of donors.
80
+ - **Top-up recipes.** They make every training cell a target at least once, not exactly once.
81
+ - **Rare states (Fig. 5).** The analysis unit is the scored sample (several per donor in Imperial, Giroux and Ji).
82
+ "Donor ranking" therefore means Spearman over test samples. The deck axis label is kept.
83
+ - **Bulk-only cells at K = 1,000.** The five draws shared one sampling seed, so they are not independent. Only the
84
+ K = 4,000 set has a separate seed for each draw.
85
+ - **scSemiProfiler vs copying its representative.** It was never *significantly* better than the copy (Imperial 0.602 vs
86
+ 0.608, P = 0.91), not "never better".
87
+ - **CIBERSORTx top-50 DEG.** 6 of 17 scored draws. Three draws had no imputed contrast genes and are unscored.
88
+ - **Composition wins vs scSemiProfiler-5.** 4 of 5 cohorts by the draw verdict; 5 of 5 by cohort means. The text names
89
+ the criterion each time.
90
+ - **Behçet.** The bulk and single-cell donors are mostly different people. Three patients were matched afterwards by
91
+ expression; they are used only by the LoRA-3 to-do.
92
+ - **Width-arm parameter counts.** Taken from the run records (102,106,848 and 312,649,440), not from the old manuscript.
93
+
94
+ ## Open items (`\todo{}` in the text)
95
+
96
+ - **Fig. 5d.** The LoRA-3 Behçet arm.
97
+ - **Fig. 5e.** Rare states in cohorts absent from the corpus (Kawasaki MS1, SLE ISG-high T).
98
+ - **Fig. 6.** The whole figure and its findings.
99
+ - **Release links.** Model, LoRA weights, code, generated cells, Source Data and a Zenodo DOI.
100
+ - **Corpus datasets.** The list of the 22 corpus datasets with accessions; some CELLxGENE entries lack a collection ID.
101
+ - **Author items.** Authors, funding, contributions, competing interests and ethics.
102
+ - **Fig. 1 panels b and d.** These reuse manuscript images that print their own panel letters.
103
+
104
+ ## Deck changes made during the rewrite
105
+
106
+ - `tools/sec04_metrics_overview.py` (Fig. 2d): the bulk-broadcast comparator was removed from the metrics table.
107
+ - `tools/sec07_rank_sweep.py` (Supplementary Fig. 12a): the key "(used in the deck)" now reads "(used throughout)".
108
+ - The deck was rebuilt after each change (76 slides). Old files are in the deck's `_archive/2026-10-10_*` folders.
109
+
110
+ ## Data oddity found during the rewrite (not used in any claim)
111
+
112
+ scSemiProfiler's pooled coverage in the equal-pair-budget runs at n = 40 equals its 5-fold value to the last digit, in
113
+ both ImMicro (617 of 16,050 real cells) and sepsis (1,181 of 12,300). Yet per-donor coverage differs for most donors, and
114
+ composition L1 differs.
115
+ - Sources: `plans/paired_finetune_intradataset_20260927/scores/<cohort>/scsemi_budget_20261002/pooled/` and
116
+ `.../scsemi_cv_20261002/pooled/`.
117
+ - The claims (scSemiProfiler coverage 0.04 and 0.10 at every n) do not depend on it, but the scoring path is worth a
118
+ check.
paper-releases/pbisc-diffusion/updates/20261010T153319Z-manuscript-rewrite-from-deck/diffusion/dataset/server_1/manuscript/editorial/rewrite_20261010_brief.md ADDED
@@ -0,0 +1,271 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ > Writing brief given to the drafting and checking agents of the 2026-10-10 rewrite (see rewrite_20261010.md).
2
+ > The `/tmp/claude-1000/.../scratchpad/paper/` paths were a temporary staging area and no longer exist; the
3
+ > staged files are now `main.tex`, `supplementary.tex`, `macros.tex`, `references.bib` and `sections/`.
4
+
5
+ # BRIEF — rewrite of the PBISC-Diffusion manuscript from the current deck (2026-10-10)
6
+
7
+ You are one of several agents rewriting the PBISC-Diffusion paper **from scratch**. The single source of truth for
8
+ content is the **current paper-summary deck (76 slides, last built 2026-10-08)**. The old manuscript is NOT a content
9
+ source (its story, checkpoints and numbers are superseded); you may reuse only verified *method facts* from it where
10
+ noted below, after checking them against the current sources.
11
+
12
+ Venue and audience: **Nature Communications Article**, read by immunologists and computational biologists. They care
13
+ about results, not ML novelty: what the cells are good for, how few paired samples are needed, how fast it is, and
14
+ how it compares with the methods they know.
15
+
16
+ ## 0. Paths
17
+
18
+ | What | Path |
19
+ |---|---|
20
+ | Deck text, every slide incl. speaker notes and full footnotes (PRIMARY SOURCE) | `/tmp/claude-1000/-home-sj-server-1/cd3948fe-c9dc-46c9-874d-211078d8ba7a/scratchpad/paper/deck_text.txt` |
21
+ | Deck folder | `/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/presentations/2026-09-30--paper-summary--r00/` (`DECK/` below) |
22
+ | Deck data behind every slide (CSV/JSON; most rows carry a `source` path) | `DECK/data/` |
23
+ | Deck figure scripts | `DECK/tools/` |
24
+ | Deck figures (vector PDF per slide figure) | `DECK/figures/<name>.pdf` |
25
+ | Figure plan (single source of the figure split) | `DECK/data/figure_plan.json` |
26
+ | Deck README (change log, decisions) | `DECK/README.md` |
27
+ | Model 8 project root (`M8/` below) | `/home/sj_server_1/PBISC/immun-pbmc-fm/model_8_sparse_data_diffusion/` |
28
+ | Paired fine-tuning plan (cohorts, splits, LoRA, scoring) | `M8/plans/paired_finetune_intradataset_20260927/` (README.md, data/<cohort>/QC_REPORT.md, tools/) |
29
+ | Deconvolution comparison | `M8/plans/bayesprism_paired_20261006/` |
30
+ | Rare states (Fig. 5) | `M8/plans/rare_states_paired_20261008/`, `M8/plans/rare_states_screen_20261004/` |
31
+ | Bulk-only generation (Fig. 6, placeholder only) | `M8/plans/bulkonly_lora5_20261006/`, `M8/plans/bulkonly_lora5_k4000_20261006/` |
32
+ | Final model run | `M8/runs/f01_6k_1x_seed20260627/` (effective_config.json, RUN_STATUS.json, ALLCELL_DATA_CONTRACT.json) |
33
+ | Model source code | `M8/src/pbisc_sdd/` |
34
+ | Old manuscript (method facts only) | `/home/sj_server_1/PBISC/paper-release-20260928/manuscript/` (`sections/methods.tex`, `sections/supplementary_methods.tex`, `source_data/corpus/`) |
35
+ | Reference PDFs and index (citation metadata, DOIs) | `/home/sj_server_1/PBISC/paper-release-20260928/reference-papers/INDEX.md` |
36
+ | Staging folder for ALL outputs | `/tmp/claude-1000/-home-sj-server-1/cd3948fe-c9dc-46c9-874d-211078d8ba7a/scratchpad/paper/draft/` |
37
+
38
+ Do not modify anything outside the staging folder. CPU only; never start GPU work. Never print credential files.
39
+
40
+ ## 1. Rules from the user (mandatory)
41
+
42
+ 1. **Main comparison = 5 paired donors.** LoRA-5 (LoRA fine-tuned on the pairs of 5 donors) vs **scSemiProfiler-5**
43
+ (scSemiProfiler given the same 5 donors' single cells as representatives). 5 draws per cohort; test = every other
44
+ usable sample, from its real bulk. This is the head-to-head claim.
45
+ 2. **5-fold CV is reported separately**, as an additional result, never mixed into the main 5-pair claim and never
46
+ called the head-to-head comparison.
47
+ 3. **No bulk-broadcast baseline** (bulk logFC copied to every cell type). Do not mention it anywhere, not even as a
48
+ control. Partial r stays (it uses the bulk only as a covariate).
49
+ 4. **Emphasise partial r** = "cell-type signal beyond the bulk": logFC r after both logFCs are residualised on the input
50
+ bulk's logFC. Present it as what single cells add over bulk.
51
+ 5. **Emphasise that LoRA reaches disease logFC r = 0.82** (Imperial, 5-fold). This is remarkable. Do not compare it with
52
+ the split-half ceiling as if it were a shortfall; do not mention the ceiling in a way that diminishes it.
53
+ 6. **Time:** count only per-cohort GPU time (scSemiProfiler: pretraining of each representative + one model per test
54
+ sample; LoRA: fine-tune + sampling). **Never add PBISC pretraining (15.9 h)** to LoRA's time and never mention GPU
55
+ queue waits. Neither method's provided assets are counted. Time is a main result: scSemiProfiler takes days, LoRA
56
+ minutes.
57
+ 7. **Wording:** do not claim "recovers paired single cells" / "paired-sc level". Do claim that PBISC-Diffusion with LoRA is
58
+ the best of the tested methods, with numbers.
59
+ 8. **No PBISC-VAE** anywhere. **No "refcal"/reference calibration/AIFI anchoring.** No TPM input variants in the main
60
+ text. "Gene-wise calibration" (alpha_g = mean pseudobulk CPM / mean bulk CPM over the paired training donors) IS a
61
+ comparator: show zero-shot (real bulk as measured) and zero-shot + calibration.
62
+ 9. Do not frame pretraining as an unfair advantage or a "fairness caveat". Pretraining is part of the method.
63
+ 10. A run that modifies a baseline's official behaviour (scSemiProfiler without its output threshold) is a
64
+ Supplementary-only sensitivity check, labelled "modified, not the official output". Main text uses official output.
65
+ 11. BayesPrism and CIBERSORTx are **cell-type deconvolution** (fractions and per-type expression, not single cells);
66
+ say so every time they appear.
67
+ 12. From-scratch (no pretraining) results are **Supplementary**, framed positively in the Discussion as a route to
68
+ other tissues (pilot: sepsis fold 0 only; folds 1–4 pending). Keep the pretraining advantages explicit (5-pair
69
+ donor composition r 0.70 vs 0.17; cycling T/NK closer 8 of 8; minutes vs ~1 h per cohort).
70
+ 13. **Figure 6 is "to be continued".** Only a placeholder subsection and a placeholder figure. State what exists (LoRA-5
71
+ cells generated for the bulk-only samples: sepsis 122, COVID-19 haemodialysis 164, at K = 1,000 and K = 4,000) and
72
+ mark the analysis `\todo{...}`. Report NO findings and do not mention earlier screens.
73
+ 14. Honest caveats belong in the text, briefly, where a reviewer would look: Giroux (5-donor test sets of 2 vs 2
74
+ subjects; scSemiProfiler ahead there), sepsis equal-budget logFC r where scSemiProfiler is higher, generated vs real
75
+ still separable by a classifier (AUC ~0.9), most rare states generated below their observed fraction, zero-shot
76
+ closer on some rare-state fractions. State them as facts with numbers, without hedging the main claims.
77
+
78
+ ## 2. Style (user's standing rules for this manuscript)
79
+
80
+ - **Thesis first.** Every paragraph opens with its claim; evidence follows. Results subsection titles are claims.
81
+ - **Bold lead-in keywords**: `\textbf{Five pairs are enough.} ...` style, at most one per paragraph.
82
+ - **Short body.** Off-thread experiments get one sentence and a pointer to the Supplementary.
83
+ - **Plain English.** Short sentences with verbs, common words. No symbol strings ("→", "≈", "·") in prose; no lists of
84
+ fragments. Define every technical term at first use in each part (e.g. "coverage, the share of real cells with a
85
+ generated neighbour").
86
+ - Every number comes with what it is, which data and the comparator: "coverage 0.79 vs 0.04 for scSemiProfiler-5
87
+ (ImMicro, 5 draws)". Use counts of wins as "in 13 of 20 draws".
88
+ - `\todo{...}` for anything not done yet (macro defined in main.tex; renders red). Never invent a result.
89
+ - **No Korean anywhere.** British spelling (normalised, modelling, colour, haemodialysis). Use "pseudobulk", "single-cell"
90
+ (adj.), "scRNA-seq", "logFC", "top-50 DEG", "5-fold cross-validation (CV)".
91
+ - Nature Communications limits (targets): title ≤ 15 words; abstract ≤ 200 words, no references; main text
92
+ (Intro + Results + Discussion) about 5,000 words; legends ≤ 350 words each; Discussion without subheadings.
93
+
94
+ ## 3. Terms (use exactly)
95
+
96
+ - **\method{}** = PBISC-Diffusion (macro). The pretrained model = "the pretrained model" / "\method{}".
97
+ - **zero-shot** = pretrained model fed the real bulk as measured. **zero-shot + calibration** = fed the bulk after
98
+ gene-wise calibration fitted on the same training pairs.
99
+ - **LoRA-5** = LoRA (rank 16) fine-tuned on all pairs of 5 donors, fixed 3,000 steps; **scSemiProfiler-5**.
100
+ - **5-fold CV**: donor-level; every sample generated by the fold model that never trained on it; one pooled scoring
101
+ call per method; scSemiProfiler's representatives = exactly LoRA's training (+ inner-validation) pairs.
102
+ - **pairs-needed curves** ("learning curve"): inside the 5-fold design, n = 5, 10, 20, 40 or all training pairs per fold,
103
+ early-stopped on 7–8 inner-validation pairs. These "5 pairs" are NOT the 5-donor draws; say which one you mean.
104
+ - Cell metrics: **precision** (share of generated cells inside the k-NN ball of a real cell; Kynkäänniemi 2019),
105
+ **coverage** (share of real cells with a generated cell inside their k-NN ball; Naeem 2020), k = 10, PCA-50 fitted on
106
+ real cells; **composition L1** over six scANVI cell types (lower is better); **classifier AUC** (kNN classifier
107
+ two-sample test, 0.5 = indistinguishable); **MMD²**; **E_N** (scSemiProfiler's own normalised error, Wang 2024).
108
+ - Disease metrics: **logFC r** (Pearson r of case-vs-control logFC per cell type, generated vs observed, mean over T,
109
+ B, monocyte, NK); **partial r**; **top-50 DEG** overlap (Welch + BH, summed over types); **CAT** (correspondence at
110
+ the top, Irizarry 2005).
111
+ - Cohorts: ImMicro (107 healthy donors; Babdor 2026); Ye 2026 sepsis ("sepsis"); Imperial COVID-19 haemodialysis
112
+ ("Imperial"; bulk Gisby 2022, CITE-seq Stephenson 2025); Giroux 2022 COVID-19 outpatients ("Giroux"); Ji 2025
113
+ checkpoint-inhibitor liver injury ("Ji", whole-blood bulk); childhood SLE GSE135779 (Nehar-Belaid 2020); Behçet
114
+ disease (bulk GSE198533, sc GSE198616; Zheng 2022).
115
+
116
+ ## 4. Manuscript structure, owners and word targets
117
+
118
+ Main text (`main.tex` inputs, in order): title; abstract; Introduction (650 words); Results = six subsections
119
+ (Fig.1 550, Fig.2 800, Fig.3 600, Fig.4 950, Fig.5 550, Fig.6 placeholder ~120); Discussion (750); Methods (very
120
+ descriptive; ~4,500 words over three files, overflow to Supplementary Methods); declarations; references; then the
121
+ figures with legends (each figure starts on a new page).
122
+
123
+ Results subsections map to deck slides (the deck text has "===== SLIDE n" markers):
124
+
125
+ | Results / Figure | Deck slides (main panels) | Details slides usable as Supplementary |
126
+ |---|---|---|
127
+ | Fig. 1 Design and performance | 6, 7, 8, 9, 10, 11, 12 | 13, 14 |
128
+ | Fig. 2 Fine-tuning with LoRA (healthy ImMicro only; NO disease metrics) | 17–27 | — |
129
+ | Fig. 3 vs scSemiProfiler on healthy donors + time | 30–34 | 62, 63 |
130
+ | Fig. 4 Disease signal, paired cohorts | 37–43 | 44, 45, 46 |
131
+ | Fig. 5 Rare cell states | 49–52 (+ planned 5e) | 72 |
132
+ | Fig. 6 Bulk-only discovery | placeholder | — |
133
+ | Supplementary | 58–72, 74 | |
134
+ | Discussion | 76 (+ caveats) | |
135
+
136
+ ## 5. Figures: panel → deck PDF (copied later to `figures/deck_20261010/<name>.pdf`)
137
+
138
+ Main figures (write `\includegraphics` paths exactly as `figures/deck_20261010/<name>.pdf`):
139
+
140
+ - **Fig. 1** a `sec02_backbone_compare`; b `fig01_architecture_nature` (manuscript figure, Nature-style overview);
141
+ c `sec02_bulk_conditioning`; d `fig01_corpus_nature` (manuscript figure); e `sec03_width_loss` + `sec03_width_bench`;
142
+ f `sec03_panel`.
143
+ - **Fig. 2** a `sec05_condition_space` + `sec05_shift_cohorts`; b `sec05_cells_umap` + `sec05_cells_metrics`;
144
+ c `sec06_ft_method` + `sec06_eval_design`; d `sec04_metrics_overview`; e `fig2_healthy_cells`;
145
+ f `fig2_healthy_realism`; g `fig2_healthy_modes`; h `fig2_healthy_pairs`; i `fig2_healthy_rank`.
146
+ - **Fig. 3** a `fig3_healthy_fewpair`; b `fig3_healthy_pairs`; c `fig3_healthy_copy`; d `fig3_time_days` +
147
+ `sec09_time_to_apply`.
148
+ - **Fig. 4** a `sec09_cohorts`; b `fig4_disease_fewpair`; c `fig4_disease_fivefold`; d `sec09_cat_curves`;
149
+ e `secS_deconv_disease`; f `sec04_sle_benchmark` + `sec04_sle_per_celltype`.
150
+ - **Fig. 5** a `fig5_rare_fraction`; b `fig5_rare_donors`; c `fig5_rare_fivefold`; d `sec05_behcet_direction`
151
+ (status Adapt: the LoRA-3 Behçet result is to be added → `\todo`); e planned panel (Kawasaki MS1, SLE ISG-high T;
152
+ status Build → `\todo`, no image).
153
+ - **Fig. 6** placeholder box only (macro `\tbcpanel{...}`), no deck image.
154
+
155
+ Supplementary Figures (fixed numbering; refer to them as "Supplementary Fig.~N" in plain text):
156
+
157
+ | # | Content | Deck PDF(s) | Deck slide |
158
+ |---|---|---|---|
159
+ | 1 | Pretraining corpus, detailed | manuscript `figS_corpus` | 9 |
160
+ | 2 | Model details: training pairs and denoiser | `sec01_slide_a`, `sec01_fig1a_denoiser` | 13, 14 |
161
+ | 3 | 5 donors, all five cohorts: cell metrics | `sec09_fewpair_cells` | 58 |
162
+ | 4 | 5 donors: realism beyond precision/coverage | `sec09_extra_fewpair` | 59 |
163
+ | 5 | 5 donors: precision/coverage at k = 3, 5, 10 | `sec09_extra_ksens` | 60 |
164
+ | 6 | 5-fold CV: realism metrics, all cohorts | `sec09_extra_fivefold` | 61 |
165
+ | 7 | Same training pairs (5-fold): LoRA vs scSemiProfiler | `sec09_same_pairs` | 62 |
166
+ | 8 | scSemiProfiler copies its representative, all cohorts | `sec09_scsemi_representative` | 63 |
167
+ | 9 | Full fine-tuning vs LoRA vs condition-encoder-only | `sec07_ft_modes` | 64 |
168
+ | 10 | Pairs needed: composition, coverage, training steps | `sec08_pairs_realism` | 65 |
169
+ | 11 | Pairs needed: donor and disease signal | `sec08_pairs_signal` | 45 |
170
+ | 12 | LoRA rank and K diversification | `sec07_rank_sweep`, `sec07_k_aug` | 66, 67 |
171
+ | 13 | Sepsis: fine-tuning variants | `fig4_disease_variants` | 44 |
172
+ | 14 | Cell-type deconvolution: composition | `secS_deconv_composition` | 46 |
173
+ | 15 | Pairs from other cohorts do not transfer | `sec08_cross_cohort`, `sec08_cross_cohort_steps` | 68, 69 |
174
+ | 16 | Training without pretraining (same cohort, other cohorts, rare states) | `sec07_no_pretraining`, `sec08_cross_scratch`, `secS_scratch_rare_states` | 70, 71, 72 |
175
+ | 17 | scSemiProfiler without its output threshold (modified, sensitivity only) | `secA_scsemi_readout` | 74 |
176
+
177
+ Supplementary Notes (fixed numbering): 1 Pretraining corpus; 2 One LoRA per cohort: pairs from other cohorts;
178
+ 3 Training without pretraining; 4 scSemiProfiler read-out sensitivity; 5 scSemiProfiler representative choice.
179
+ Supplementary Tables: 1 Paired cohorts and contrasts; 2 Per-cohort values of the 5-donor comparison; 3 Per-cohort
180
+ values of the 5-fold comparison; 4 GPU time per cohort. (Tables may be built by the supplementary agent from DECK/data.)
181
+
182
+ LaTeX macros available (defined in main.tex / supplementary.tex; do not redefine):
183
+ ```
184
+ \method{} PBISC-Diffusion
185
+ \todo{text} red [TODO: text]
186
+ \mainfigure{label}{Title sentence} starts a new page, numbers the figure, prints "Figure N | Title"
187
+ \figpanel{a}{figures/deck_20261010/name.pdf} one panel image, full width (max 0.31\textheight)
188
+ \figpanelh{a}{file}{0.25} same with an explicit max height as a fraction of \textheight
189
+ \figpanelpair{a}{fileA}{fileB}{0.48}{0.48} two images side by side at the given widths (fraction of \textwidth)
190
+ \tbcpanel{text} framed "To be continued" box with text
191
+ \figlegend{...} the legend paragraph (bold title sentence first, then **a**, ... panel descriptions)
192
+ \suppfigure{label}{Title} like \mainfigure for Supplementary Fig. N
193
+ ```
194
+ Example of one main figure block (the figure file holds only this):
195
+ ```
196
+ \mainfigure{fig:fig3}{LoRA cells are closer to real cells than scSemiProfiler's, in minutes instead of days}
197
+ \figpanel{a}{figures/deck_20261010/fig3_healthy_fewpair.pdf}
198
+ ...
199
+ \figlegend{\textbf{LoRA-5 against scSemiProfiler-5 on healthy donors.} \textbf{a}, ... \textbf{b}, ...}
200
+ ```
201
+ Refer to panels in text as `Fig.~\ref{fig:fig3}a` (labels: `fig:fig1` ... `fig:fig6`). Citations: `\cite{key}` placed
202
+ before the period with no space (`... bulk\cite{wang2024scsemiprofiler}.`).
203
+
204
+ ## 6. Citation keys (use these; if you need another, use a key `firstauthorYEARword` and list it in your return value
205
+ with the full reference so the references agent can build it)
206
+
207
+ Existing in references.bib: `ostheimer2025sparse` (SDD backbone), `luo2024scdiffusion`, `ho2020ddpm`, `song2021ddim`,
208
+ `wang2024scsemiprofiler`, `newman2019cibersortx`, `chu2022bayesprism`, `avilacobos2020benchmarking`, `lopez2018scvi`,
209
+ `cui2024scgpt`, `theodoris2023geneformer`, `nehar2020mapping` (GSE135779 childhood SLE), `benjamini1995fdr`,
210
+ `robinson2010edger`, `mcinnes2018umap`, `babdor2026immicro` (ImMicro), `randolph2021genetic`, `zheng2022c1qbehcet`.
211
+ New (to be added): `hu2022lora`, `kynkaanniemi2019improved`, `naeem2020reliable`, `lopezpaz2017revisiting`,
212
+ `gretton2012kernel`, `irizarry2005multiple`, `webber2010similarity`, `squair2021confronting`, `vinastorne2026systema`,
213
+ `roohani2024gears`, `li2026systematic`, `khayatkhoei2023emergent`, `law2014voom`, `xu2021scanvi`, `gong2025multiomic`
214
+ (AIFI immune health atlas), `ye2026sepsis`, `gisby2022multiomics`, `stephenson2025temporal`, `giroux2022differential`,
215
+ `ji2025chili`, `reyes2020immune` (MS1), `tukiainen2017landscape` (X escape genes), `arunachalam2020systems`,
216
+ `liu2021timeresolved`, `wang2021kawasaki`, `nichol2021improved` (cosine schedule), `chen2023analog` (self-conditioning),
217
+ `loshchilov2019decoupled` (AdamW).
218
+
219
+ ## 7. Numbers discipline
220
+
221
+ - Take every number from the deck text (slide keywords, notes, full footnotes) or from `DECK/data/*.csv`. If two sources
222
+ disagree, use the CSV and report the conflict in your return value.
223
+ - Round as the deck does (r to 2 decimals; L1 to 2–3 decimals; coverage to 2 decimals). Keep the n and the unit.
224
+ - Never compute new statistics unless you state exactly how and from which file (and the verifier can redo it).
225
+
226
+ ## 7b. Resolved decisions after the first drafts (2026-10-10; these OVERRIDE anything above)
227
+
228
+ 1. **SLE cohort GSE135779 is children AND adults**: the 42 scored donors are 25 childhood SLE, 5 adult SLE, 8 childhood
229
+ and 4 adult controls (30 SLE, 12 controls). Never write "childhood SLE" or "paediatric" for it. Write "an SLE cohort
230
+ of children and adults (GSE135779)". It is not in the pretraining corpus, but SLE itself is (Perez 2022 adult SLE;
231
+ GSE163121 SLE B cells), so say "cohort absent from the corpus", never "disease absent from the corpus".
232
+ 2. **The SLE cohort was used to choose the design** (width, gene panel; Fig. 1e,f), so it is a development cohort, not
233
+ an untouched test set. Fig. 4f text and the Discussion say so once. The final model was fixed before any paired
234
+ cohort was used.
235
+ 3. **Corpus shares are shares of cells**: 88.5% of cells from healthy donors, 23.6% of cells cultured in vitro.
236
+ 4. **Top-up recipes make every training cell a target at least once** (not "exactly once").
237
+ 5. **Rare states (Fig. 5)**: the unit in the analysis code is the scored *sample* (Imperial, Giroux and Ji have several
238
+ samples per donor). Inclusion = at least 30 observed state cells (native depth) in at least 3 samples; ranking =
239
+ Spearman over test samples. Use "samples" in text and legends. Plasmablast definition: cite `mathew2020deep`
240
+ (not arunachalam2020systems).
241
+ 6. **Bulk-only K = 1,000 draws shared one sampling seed** (cell slot noise shared across draws); only the K = 4,000
242
+ set has per-draw seeds. Never call the K = 1,000 draws "independent".
243
+ 7. **Width-arm parameter counts**: use the run records (102,106,848 and 312,649,440), not the old manuscript values.
244
+ 8. **Annotator**: final model and paired cohorts use the frozen scANVI annotator `aifi_scanvi_f01common_v1` (1,005
245
+ genes; L2 accuracy 0.869, macro-F1 0.850; six-type gate 0.992 / 0.981); the width/proportion-hint ablations used the
246
+ 2,980-gene annotator (0.889 / 0.870). Do not quote 0.880 / 0.860 (an annotator not used here).
247
+ 9. **Metric definitions differ between benchmarks**: paired cohorts: logFC r = mean over T, B, monocyte, NK (mean CP10K);
248
+ top-50 DEG = Welch + BH (FDR < 0.05) overlap summed over T, B, monocyte, NK, DC (max 250); CAT = mean over T, B,
249
+ monocyte, NK. SLE benchmark: logFC r and partial r averaged over six types (incl. DC and Other) on log(1+CPM); top-50
250
+ summed over six types. Say which one applies.
251
+ 10. **Batches in LoRA training are pair-balanced** (a sample pair drawn uniformly, then a cell), not donor-balanced.
252
+ 11. **Inner validation**: 7 pairs (ImMicro), 7–8 (sepsis), ~10% of donors elsewhere (Imperial 5 patients, Giroux 1–2
253
+ subjects, Ji 2 patients).
254
+ 12. **Identity checks** are sex-gene and expression-match checks; there is no genotype check.
255
+ 13. **Behçet**: no designed pairs; the bulk (9 BD, 10 HC) and single-cell donors (4 BD, 4 HC) are mostly different people
256
+ (three BD donors were matched afterwards by expression; used only by the LoRA-3 to-do). Panel 5d uses a looser C1Q
257
+ rule (any C1Q gene) than Fig. 5a–c (at least 2 of 3).
258
+ 14. **scSemiProfiler vs copying its representative**: "never significantly better than the copy" (Imperial 0.602 vs
259
+ 0.608, P = 0.91), significantly worse in three of five cohorts.
260
+ 15. **CIBERSORTx top-50 DEG**: 6 of 17 scored draws (3 draws had no imputed contrast genes and are unscored).
261
+ 16. **Composition wins of LoRA-5 vs scSemiProfiler-5 across cohorts**: 4 of 5 cohorts by the deck's draw verdict
262
+ (>= 80% of draws; Giroux 3 of 5 draws); 5 of 5 by cohort means. Always name the criterion.
263
+ 17. **Deck figure for Fig. 2d was redrawn** without the bulk-broadcast comparator (logFC r row now reads "zero-shot;
264
+ partial r (vs bulk)"). Remove any LaTeX comment or to-do about that redraw.
265
+ 18. **Rare-state averaging**: a draw in which a method generated no cell of a state is skipped in the mean log2 ratio;
266
+ a state never generated in any draw counts as that method's miss. State this in Methods.
267
+
268
+ ## 8. Return value
269
+
270
+ Return a short JSON-like summary: files written (absolute paths), word count per file, every `\todo` you left, every
271
+ citation key used, any new keys requested (with full reference), and any conflicts or doubts about numbers.
paper-releases/pbisc-diffusion/updates/20261010T153319Z-manuscript-rewrite-from-deck/diffusion/dataset/server_1/manuscript/figures/deck_20261010/secS_scratch_rare_states.pdf ADDED
Binary file (31.3 kB). View file