ethan1115 commited on
Commit
e2409ff
ยท
verified ยท
1 Parent(s): 9f5e507

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes. ย  See raw diff
Files changed (50) hide show
  1. .gitattributes +13 -0
  2. CLAUDE.md +191 -0
  3. Report/GRN_CCFM_group_meeting.md +416 -0
  4. Report/GRN_CCFM_group_meeting.pptx +3 -0
  5. Report/Nano/.claude/settings.local.json +7 -0
  6. Report/Nano/Nanomotor_Presentation.pptx +3 -0
  7. Report/Nano/glucose-fueled-gated-nanomotors-enhancing-in-vivo-anticancer-efficacy-via-deep-drug-penetration-into-tumors.pdf +3 -0
  8. Report/PPT/GRN_CCFM_presentation.pdf +3 -0
  9. Report/PPT/GRN_CCFM_presentation.pptx +3 -0
  10. Report/PPT/create_ppt.js +854 -0
  11. Report/PPT/fixed-01.jpg +3 -0
  12. Report/PPT/fixed14-14.jpg +3 -0
  13. Report/PPT/fixed6-06.jpg +3 -0
  14. Report/PPT/fixed8-08.jpg +3 -0
  15. Report/PPT/slide-01.jpg +3 -0
  16. Report/PPT/slide-02.jpg +3 -0
  17. Report/PPT/slide-03.jpg +3 -0
  18. Report/PPT/slide-04.jpg +3 -0
  19. Report/PPT/slide-05.jpg +3 -0
  20. Report/PPT/slide-06.jpg +3 -0
  21. Report/PPT/slide-07.jpg +3 -0
  22. Report/PPT/slide-08.jpg +3 -0
  23. Report/PPT/slide-09.jpg +3 -0
  24. Report/PPT/slide-10.jpg +3 -0
  25. Report/PPT/slide-11.jpg +3 -0
  26. Report/PPT/slide-12.jpg +3 -0
  27. Report/PPT/slide-13.jpg +3 -0
  28. Report/PPT/slide-14.jpg +3 -0
  29. Report/PPT/่ฎฒ่งฃ็จฟ.md +183 -0
  30. Report/PPT2/GRN_CCFM_presentation.pdf +3 -0
  31. Report/PPT2/GRN_CCFM_presentation.pptx +3 -0
  32. Report/PPT2/generate.js +781 -0
  33. Report/PPT2/slide-01.jpg +3 -0
  34. Report/PPT2/slide-02.jpg +3 -0
  35. Report/PPT2/slide-03.jpg +3 -0
  36. Report/PPT2/slide-04.jpg +3 -0
  37. Report/PPT2/slide-05.jpg +3 -0
  38. Report/PPT2/slide-06.jpg +3 -0
  39. Report/PPT2/slide-07.jpg +3 -0
  40. Report/PPT2/slide-08.jpg +3 -0
  41. Report/PPT2/slide-09.jpg +3 -0
  42. Report/PPT2/slide-10.jpg +3 -0
  43. Report/PPT2/slide-11.jpg +3 -0
  44. Report/PPT2/slide-12.jpg +3 -0
  45. Report/PPT2/slide-13.jpg +3 -0
  46. Report/PPT2/slide-14.jpg +3 -0
  47. Report/build_pptx.js +703 -0
  48. Report/week10/GRN_Progress_Report.pdf +3 -0
  49. Report/week10/GRN_Progress_Report.pptx +3 -0
  50. Report/week10/gen_pptx.js +874 -0
.gitattributes CHANGED
@@ -136,3 +136,16 @@ GRN/result/scalar/scalar_bs48/eval_only/pred.h5ad filter=lfs diff=lfs merge=lfs
136
  GRN/result/scalar/scalar_bs48/eval_only/real.h5ad filter=lfs diff=lfs merge=lfs -text
137
  GRN/result/topk30_emb/grn-norman-f1-topk30-negTrue-d512-lr5e-05-lw1.0-lp0.4-ema0.9999-ln-wu2000-rk4-cached_sparse-sparse_tk30_L11/iteration_0/pred.h5ad filter=lfs diff=lfs merge=lfs -text
138
  GRN/result/topk30_emb/grn-norman-f1-topk30-negTrue-d512-lr5e-05-lw1.0-lp0.4-ema0.9999-ln-wu2000-rk4-cached_sparse-sparse_tk30_L11/iteration_0/real.h5ad filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  GRN/result/scalar/scalar_bs48/eval_only/real.h5ad filter=lfs diff=lfs merge=lfs -text
137
  GRN/result/topk30_emb/grn-norman-f1-topk30-negTrue-d512-lr5e-05-lw1.0-lp0.4-ema0.9999-ln-wu2000-rk4-cached_sparse-sparse_tk30_L11/iteration_0/pred.h5ad filter=lfs diff=lfs merge=lfs -text
138
  GRN/result/topk30_emb/grn-norman-f1-topk30-negTrue-d512-lr5e-05-lw1.0-lp0.4-ema0.9999-ln-wu2000-rk4-cached_sparse-sparse_tk30_L11/iteration_0/real.h5ad filter=lfs diff=lfs merge=lfs -text
139
+ Report/GRN_CCFM_group_meeting.pptx filter=lfs diff=lfs merge=lfs -text
140
+ Report/Nano/Nanomotor_Presentation.pptx filter=lfs diff=lfs merge=lfs -text
141
+ Report/Nano/glucose-fueled-gated-nanomotors-enhancing-in-vivo-anticancer-efficacy-via-deep-drug-penetration-into-tumors.pdf filter=lfs diff=lfs merge=lfs -text
142
+ Report/PPT/GRN_CCFM_presentation.pdf filter=lfs diff=lfs merge=lfs -text
143
+ Report/PPT/GRN_CCFM_presentation.pptx filter=lfs diff=lfs merge=lfs -text
144
+ Report/PPT2/GRN_CCFM_presentation.pdf filter=lfs diff=lfs merge=lfs -text
145
+ Report/PPT2/GRN_CCFM_presentation.pptx filter=lfs diff=lfs merge=lfs -text
146
+ Report/week10/GRN_Progress_Report.pdf filter=lfs diff=lfs merge=lfs -text
147
+ Report/week10/GRN_Progress_Report.pptx filter=lfs diff=lfs merge=lfs -text
148
+ data/Causal[[:space:]]Schrรถdinger[[:space:]]Bridges.pdf filter=lfs diff=lfs merge=lfs -text
149
+ data/bridge.pdf filter=lfs diff=lfs merge=lfs -text
150
+ local_bin/soffice filter=lfs diff=lfs merge=lfs -text
151
+ poster/poster/scprompt_poster.pptx filter=lfs diff=lfs merge=lfs -text
CLAUDE.md ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CLAUDE.md
2
+
3
+ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+ ## Repository Overview
6
+
7
+ Multi-project AI research repository for single-cell biology and video understanding. All project code lives under `transfer/code/`, data under `transfer/data/`, and the shared Python 3.13 venv in `stack_env/`.
8
+
9
+ ### Primary Projects
10
+
11
+ 1. **Stack** (`transfer/code/stack/`) โ€” Large-scale encoder-decoder foundation model for single-cell biology (in-context learning on 150M cells). Package: `arc-stack`.
12
+ 2. **cell-eval** (`transfer/code/cell-eval/`) โ€” Evaluation metrics suite for single-cell perturbation prediction models. Package: `cell-eval`.
13
+ 3. **FOCUS** (`transfer/code/FOCUS/`) โ€” Training-free keyframe selection for long video understanding using multi-armed bandits (ICLR 2026).
14
+
15
+ ### Secondary Projects
16
+
17
+ 4. **scGPT** (`transfer/code/scGPT/`) โ€” Foundation model for single-cell multi-omics. Uses Poetry.
18
+ 5. **scDFM** (`transfer/code/scDFM/`) โ€” Distributional flow matching for single-cell perturbation prediction (ICLR 2026). Uses Conda.
19
+ 6. **ori_scDFM** (`transfer/code/ori_scDFM/`) โ€” Original upstream scDFM (cloned from AI4Science-WestlakeU/scDFM). Uses dedicated venv `ori_scDFM_env/` (Python 3.11).
20
+ 8. **LatentForcing** (`transfer/code/LatentForcing/`) โ€” Image generation with reordered diffusion trajectories (arXiv 2602.11401).
21
+ 9. **CCFM** (`transfer/code/CCFM/`) โ€” Cascaded Conditioned Flow Matching: hybrid of scDFM + LatentForcing + scGPT for guided perturbation prediction. In development.
22
+ 10. **adaptive_prompt_selection** (`transfer/code/adaptive_prompt_selection/`) โ€” Bandit-based prompt selection for Stack in-context learning.
23
+ 11. **prompt_selection** (`transfer/code/prompt_selection/`) โ€” Evaluation framework and baselines for prompt selection experiments.
24
+
25
+ ## HPC Computing Rules (GENKAI Supercomputer)
26
+
27
+ - **NEVER run ML/DL/LLM model inference or training on the login node.** Always submit to compute nodes via `pjsub`.
28
+ - Login node (genkai0002) is only for: editing code, lightweight file operations, `pip install`, job submission, checking results.
29
+ - Lightweight evaluation scripts (e.g., cell-eval metrics, statistical analysis) are acceptable on the login node.
30
+
31
+ ### Job Submission (PJM)
32
+
33
+ ```bash
34
+ pjsub script.sh # Batch job
35
+ pjsub --interact -L rscgrp=b-inter -L gpu=1 -L elapse=1:00:00 # Interactive GPU (1 GPU, 1h)
36
+ pjstat # Check status
37
+ pjdel <jobid> # Cancel job
38
+ ```
39
+
40
+ See `transfer/gpu_batch.sh` and `transfer/gpu_interactive.sh` for job script templates.
41
+
42
+ ## Environment & Installation
43
+
44
+ Most projects share `stack_env/` (Python 3.13). Always activate before work:
45
+
46
+ ```bash
47
+ source /home/hp250092/ku50001222/qian/aivc/lfj/stack_env/bin/activate
48
+ ```
49
+
50
+ **ori_scDFM** uses its own dedicated venv `ori_scDFM_env/` (Python 3.11):
51
+
52
+ ```bash
53
+ source /home/hp250092/ku50001222/qian/aivc/lfj/ori_scDFM_env/bin/activate
54
+ ```
55
+
56
+ ### Installing Projects
57
+
58
+ ```bash
59
+ cd transfer/code/stack && pip install -e . # Entry points: stack-train, stack-finetune, stack-embedding, stack-generation
60
+ cd transfer/code/cell-eval && pip install -e . # Entry point: cell-eval (subcommands: prep, run, baseline, score)
61
+ cd transfer/code/FOCUS && pip install -r requirements.txt
62
+ cd transfer/code/scGPT && poetry install
63
+ cd transfer/code/LatentForcing && pip install -r requirements.txt
64
+ # scDFM uses its own conda env: conda env create -f transfer/code/scDFM/environment.yml
65
+ # ori_scDFM uses ori_scDFM_env/ (already installed from environment.yml pip deps)
66
+ # CCFM bootstraps from scDFM: cd transfer/code/CCFM && python _bootstrap_scdfm.py
67
+ ```
68
+
69
+ Note: `uv` is available for fast dependency management (used by cell-eval CI).
70
+
71
+ ## Common Commands
72
+
73
+ ### Stack
74
+
75
+ ```bash
76
+ stack-train --config configs/training/bc_large.yaml
77
+ stack-finetune --config configs/finetuning/ft_parsecg.yaml
78
+ stack-embedding --checkpoint <ckpt> --adata <h5ad> --genelist <pkl> --output <out.h5ad>
79
+ stack-generation --checkpoint <ckpt> --base-adata <h5ad> --test-adata <h5ad> --genelist <pkl> --output-dir <dir>
80
+ ```
81
+
82
+ ### cell-eval
83
+
84
+ ```bash
85
+ cell-eval run -ap pred.h5ad -ar real.h5ad --num-threads 64 --profile full
86
+ cell-eval score --user-input agg_results.csv --base-input base_agg_results.csv
87
+ ```
88
+
89
+ ### FOCUS
90
+
91
+ ```bash
92
+ cd transfer/code/FOCUS
93
+ python select_keyframe.py --dataset_name longvideobench --dataset_path <path> --output_dir <dir> --num_keyframes 64
94
+ ```
95
+
96
+ ### scDFM
97
+
98
+ ```bash
99
+ # Uses its own conda env
100
+ cd transfer/code/scDFM
101
+ python src/script/run.py --data norman --batch_size 48 --model_type origin --d_model 128
102
+ ```
103
+
104
+ ### LatentForcing
105
+
106
+ ```bash
107
+ cd transfer/code/LatentForcing
108
+ torchrun --nproc_per_node=8 main_jit.py # Multi-GPU training
109
+ ```
110
+
111
+ ### Testing & Linting
112
+
113
+ ```bash
114
+ # Stack (from transfer/code/stack/)
115
+ pytest tests/
116
+ pytest tests/test_model_core.py -k "test_name" # Single test
117
+
118
+ # cell-eval (from transfer/code/cell-eval/)
119
+ pytest tests/
120
+ ruff check . # Linting (rules: E, F, ERA; max-line-length=120)
121
+ ruff format --check . # Format check (used in CI)
122
+ ```
123
+
124
+ ## Architecture
125
+
126
+ ### Stack (`transfer/code/stack/src/stack/`)
127
+
128
+ Core model uses **Tabular Attention** โ€” alternating cell-wise and gene-wise attention on cell-by-gene matrix chunks:
129
+
130
+ - `models/core/base.py` โ€” `StateICLModelBase`: gene reduction -> positional embedding -> N x `TabularAttentionLayer` -> output MLP. Losses: reconstruction + Sliced Wasserstein distance.
131
+ - `models/core/` โ€” `StateICLModel` (alias: `scShiftAttentionModel`) wraps the base with masking and loss computation.
132
+ - `models/finetune/` โ€” `ICL_FinetunedModel` with frozen-teacher distillation via `LightningFinetunedModel`.
133
+ - `modules/attention.py` โ€” `MultiHeadAttention`, `TabularAttentionLayer` (cell-attn + gene-attn per layer).
134
+ - `modules/regularizers.py` โ€” `SlicedWassersteinDistance`.
135
+ - `training/` โ€” `LightningGeneModel` (PyTorch Lightning wrapper), `DataModule`, scheduler utils.
136
+ - `finetune/` โ€” `LightningFinetunedModel` (student-teacher EMA), finetuning `DataModule`.
137
+ - `data/` โ€” Dataset configs, HVG computation, H5 data management, sparse matrix loading.
138
+ - `cli/` โ€” Entry points: `launch_training`, `launch_finetuning`, `embedding`, `generation`.
139
+ - Config: YAML files in `configs/training/` and `configs/finetuning/`. CLI args override config values.
140
+
141
+ ### cell-eval (`transfer/code/cell-eval/src/cell_eval/`)
142
+
143
+ Uses the **registry pattern** for metrics:
144
+
145
+ - `_evaluator.py` โ€” `MetricsEvaluator`: takes predicted/real AnnData, runs DE (via `pdex`), computes metrics.
146
+ - `metrics/_registry.py` โ€” `MetricRegistry` with `register()` / `compute()`. Metrics are AnnData-based or DE-based.
147
+ - `metrics/_impl.py`, `_de.py`, `_anndata.py` โ€” Metric implementations.
148
+ - `_pipeline/` โ€” `MetricPipeline` with named profiles (e.g., `full`).
149
+ - `_score.py` โ€” Baseline-normalized scoring.
150
+ - `_cli/` โ€” Subcommands: `prep`, `run`, `baseline`, `score`.
151
+ - `_types/` โ€” Typed containers: `PerturbationAnndataPair`, `DEComparison`.
152
+
153
+ ### FOCUS (`transfer/code/FOCUS/`)
154
+
155
+ Two-file architecture:
156
+ - `focus.py` โ€” `FOCUS` class: pure CPE bandit algorithm (no I/O). Coarse exploration -> fine exploitation using Bernstein confidence bounds.
157
+ - `select_keyframe.py` โ€” Data pipeline: video loading (decord), BLIP similarity scoring (LAVIS), result output.
158
+
159
+ ### scDFM (`transfer/code/scDFM/src/`)
160
+
161
+ Flow matching for perturbation prediction: `flow_matching/` (algorithm), `models/` (networks), `tokenizer/` (cell/gene tokens), `loss/` (custom losses), `data_process/` (loading).
162
+
163
+ ### LatentForcing (`transfer/code/LatentForcing/`)
164
+
165
+ Diffusion with reordered trajectories. Model variants: `model_jit.py`, `model_cot.py`, `model_repa.py`. Training engine: `engine_jit.py`. Entry: `main_jit.py`.
166
+
167
+ ### CCFM (`transfer/code/CCFM/`)
168
+
169
+ Cascaded flow matching combining scDFM + LatentForcing denoiser + scGPT embeddings. Entry: `scripts/run_cascaded.py`. Config: `config/config_cascaded.py`. Imports scDFM modules via `_scdfm_imports.py` bridge.
170
+
171
+ ### adaptive_prompt_selection (`transfer/code/adaptive_prompt_selection/`)
172
+
173
+ Bandit-based selection of in-context examples for Stack. `adaptive_prompt.py` (orchestrator), `cell_bandit.py` (bandit algorithm). Run via `run_experiment.py`.
174
+
175
+ ## Dataset Details
176
+
177
+ Main dataset (`transfer/data/stack_train/20260203_Parse_10M_PBMC_cytokines.h5ad`): 9.7M cells x 40K genes, 12 donors, 91 cytokines, 18 cell types. Key obs columns: `donor`, `cytokine`, `treatment`, `cell_type`, `sample`. Stack dataset config format: `"human:parse_bio:sample:cell_type:false"`.
178
+
179
+ All single-cell projects use **AnnData** (`.h5ad`) as the standard data format.
180
+
181
+ ## CI/CD
182
+
183
+ - **cell-eval**: GitHub Actions CI (`uv sync`, `ruff format --check`, `pytest -v`, CLI smoke test) on push/PR. Python 3.12.
184
+ - **Stack**: GitHub Actions publishes to PyPI on release (trusted publishing via setuptools build).
185
+ - **scGPT**: Claude Code integration workflow for PR review.
186
+
187
+ ## GPU Job Notes
188
+
189
+ - Stack batch jobs set `PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:256` to avoid CUDA OOM fragmentation.
190
+ - Job templates: `transfer/gpu_batch.sh` (batch, 1 GPU, 3h), `transfer/gpu_interactive.sh` (interactive, configurable hours/GPUs).
191
+ - Login node and compute nodes share the same filesystem path: `/home/hp250092/ku50001222/qian/aivc/lfj/`.
Report/GRN_CCFM_group_meeting.md ADDED
@@ -0,0 +1,416 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GRN-Guided Cascaded Flow Matching for Single-Cell Perturbation Prediction
2
+
3
+ ## ็ป„ไผšๆฑ‡ๆŠฅ
4
+
5
+ ---
6
+
7
+ ## 1. Task๏ผšๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹
8
+
9
+ ### ่™šๆ‹Ÿ็ป†่ƒž๏ผˆVirtual Cell๏ผ‰
10
+
11
+ **่™šๆ‹Ÿ็ป†่ƒž**ๆ˜ฏๅฝ“ๅ‰่ฎก็ฎ—็”Ÿ็‰ฉๅญฆ็š„ๆ ธๅฟƒๆ„ฟๆ™ฏ๏ผšๆž„ๅปบไธ€ไธช่ƒฝๅœจ่ฎก็ฎ—ๆœบไธญๆจกๆ‹Ÿ็œŸๅฎž็ป†่ƒž่กŒไธบ็š„AIๆจกๅž‹โ€”โ€”็ป™ๅฎšไปปๆ„่พ“ๅ…ฅๆกไปถ๏ผˆๅŸบๅ› ๅž‹ใ€็Žฏๅขƒใ€ๆ‰ฐๅŠจ๏ผ‰๏ผŒ้ข„ๆต‹็ป†่ƒž็š„ๅˆ†ๅญ็Šถๆ€ๅ˜ๅŒ–ใ€‚ๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹ๆ˜ฏๅฎž็Žฐ่™šๆ‹Ÿ็ป†่ƒžๆœ€ๅ…ณ้”ฎ็š„ๅญไปปๅŠกไน‹ไธ€ใ€‚
12
+
13
+ ### ไป€ไนˆๆ˜ฏๆ‰ฐๅŠจ๏ผŸ
14
+
15
+ ๆ‰ฐๅŠจ๏ผˆPerturbation๏ผ‰ๆ˜ฏๆŒ‡ไบบไธบๆ”นๅ˜็ป†่ƒž็š„ๆŸไบ›ๆกไปถ๏ผŒ่ง‚ๅฏŸ็ป†่ƒžๅฆ‚ไฝ•ๅ“ๅบ”ใ€‚ๅธธ่ง็š„ๆ‰ฐๅŠจ็ฑปๅž‹ๅŒ…ๆ‹ฌ๏ผš
16
+
17
+ - **่ฏ็‰ฉๆ‰ฐๅŠจ๏ผˆDrug perturbation๏ผ‰**๏ผšๆ–ฝๅŠ ๅฐๅˆ†ๅญๅŒ–ๅˆ็‰ฉๆˆ–่ฏ็‰ฉ๏ผŒ่ง‚ๅฏŸ็ป†่ƒž็š„่ฝฌๅฝ•็ป„ๅ˜ๅŒ–๏ผˆๅฆ‚ L1000/LINCS ๆ•ฐๆฎ๏ผ‰
18
+ - **็ป†่ƒžๅ› ๅญๆ‰ฐๅŠจ๏ผˆCytokine perturbation๏ผ‰**๏ผš็”จ็ป†่ƒžๅ› ๅญ๏ผˆๅฆ‚ IL-6ใ€TNF-ฮฑใ€IFN-ฮณ ็ญ‰๏ผ‰ๅˆบๆฟ€็ป†่ƒž๏ผŒ็ ”็ฉถๅ…็–ซไฟกๅท้€š่ทฏๅ“ๅบ”
19
+ - **ๅŸบๅ› ๆ‰ฐๅŠจ๏ผˆGenetic perturbation๏ผ‰**๏ผš็›ดๆŽฅๆ”นๅ˜ๅŸบๅ› ็š„ๅŠŸ่ƒฝ็Šถๆ€๏ผŒๅŒ…ๆ‹ฌ๏ผš
20
+ - **ๅŸบๅ› ๆ•ฒ้™ค๏ผˆKnock-out, KO๏ผ‰**๏ผš็”จ CRISPR-Cas9 ๅฎŒๅ…จๅˆ ้™ค็›ฎๆ ‡ๅŸบๅ› ็š„ๅŠŸ่ƒฝ
21
+ - **ๅŸบๅ› ่ฟ‡่กจ่พพ๏ผˆOverexpression, OE๏ผ‰**๏ผšไบบไธบๆ้ซ˜็›ฎๆ ‡ๅŸบๅ› ็š„่กจ่พพ้‡๏ผˆๅฆ‚ CRISPRa ๆฟ€ๆดป๏ผ‰
22
+ - **ๅŸบๅ› ๆ•ฒไฝŽ๏ผˆKnock-down, KD๏ผ‰**๏ผš็”จ RNAi/shRNA ้ƒจๅˆ†้™ไฝŽ็›ฎๆ ‡ๅŸบๅ› ็š„่กจ่พพ๏ผˆไธๅฎŒๅ…จๅˆ ้™ค๏ผ‰
23
+
24
+ ๆœฌๅทฅไฝœ่š็„ฆ**ๅŸบๅ› ๆ‰ฐๅŠจ**๏ผŒไฝฟ็”จ Perturb-seq ๆŠ€ๆœฏ๏ผšๅฏน็ป†่ƒžๆ–ฝๅŠ  CRISPR ๅŸบๅ› ๆ‰ฐๅŠจ๏ผŒ็„ถๅŽ็”จๅ•็ป†่ƒž RNA-seq ๆต‹้‡ๆฏไธช็ป†่ƒžๆ‰€ๆœ‰ๅŸบๅ› ็š„่กจ่พพๅ˜ๅŒ–ใ€‚
25
+
26
+ ### ไปปๅŠกๅฝขๅผๅŒ–
27
+
28
+ ```
29
+ ๅทฒ็Ÿฅ: x_ctrl โˆˆ R^G (control ็ป†่ƒž็š„ๅŸบๅ› ่กจ่พพ่ฐฑ, G โ‰ˆ 5000 ้ซ˜ๅ˜ๅŸบๅ› )
30
+ p โˆˆ {geneโ‚, geneโ‚‚} (่ขซๆ‰ฐๅŠจ็š„ๅŸบๅ› )
31
+
32
+ ้ข„ๆต‹: x_pert โˆˆ R^G (ๆ‰ฐๅŠจๅŽ็ป†่ƒž็š„ๅŸบๅ› ่กจ่พพ่ฐฑ)
33
+ ```
34
+
35
+ ### ไธบไป€ไนˆ้‡่ฆ๏ผŸ
36
+
37
+ - **่ฏ็‰ฉ็ญ›้€‰ๅŠ ้€Ÿ**๏ผšwet-lab ๅšไธ€ๆฌก Perturb-seq ๅฎž้ชŒๆˆๆœฌๆž้ซ˜๏ผˆ$$$๏ผ‰๏ผ›ๅฆ‚ๆžœ่ƒฝ่ฎก็ฎ—้ข„ๆต‹๏ผŒๅฏไปฅๅคงๅน…็ผฉๅฐๅ€™้€‰่Œƒๅ›ด
38
+ - **็ป„ๅˆๆ‰ฐๅŠจ็ˆ†็‚ธ**๏ผšN ไธชๅŸบๅ› ็š„ไธคไธค็ป„ๅˆ = N(N-1)/2 ็งๅฎž้ชŒ๏ผŒไธๅฏ่ƒฝ็ฉทไธพ๏ผŒๅฟ…้กป้ ้ข„ๆต‹
39
+ - **็†่งฃ็–พ็—…ๆœบๅˆถ**๏ผš้ข„ๆต‹ๅ“ชไบ›ๅŸบๅ› ่ขซๆ‰ฐๅŠจๅŽไผšไบง็”ŸๆŸ็ง็–พ็—…่กจๅž‹
40
+
41
+ ### ๆ•ฐๆฎ็‰น็‚น
42
+
43
+ - Norman et al. ๆ•ฐๆฎ้›†๏ผš~9K ็ป†่ƒž ร— 5000 HVG๏ผŒ105 ็งๅ•/ๅŒๅŸบๅ›  CRISPR ๆ‰ฐๅŠจ๏ผˆKO + OE๏ผ‰
44
+ - **็ป†่ƒž้…ๅฏนไธๅฏๅพ—**๏ผšๆˆ‘ไปฌๆ— ๆณ•ๅพ—ๅˆฐ (x_ctrl_i, x_pert_i) ็š„้€็ป†่ƒž้…ๅฏนโ€”โ€”ๆ‰ฐๅŠจๆ˜ฏ็ ดๅๆ€ง็š„๏ผŒไธ€ไธช็ป†่ƒžๅช่ƒฝๆต‹ไธ€ๆฌก
45
+ - ่ฏ„ไผฐ๏ผšDE ๅŸบๅ›  overlapใ€ๆ–นๅ‘ไธ€่‡ดๆ€งใ€MSEใ€Pearson ็›ธๅ…ณ็ญ‰
46
+
47
+ ---
48
+
49
+ ## 2. ็Žฐๆœ‰ๆ–นๆณ•็ปผ่ฟฐไธŽๆ‰นๅˆค
50
+
51
+ ### 2.1 ็ฎ€ๅ•ๅŸบ็บฟ
52
+
53
+ **Additive shift๏ผˆๅ‡ๅ€ผๅ็งป๏ผ‰**
54
+
55
+ ```
56
+ xฬ‚_pert = x_ctrl + mean(x_pert_train - x_ctrl_train)
57
+ ```
58
+
59
+ - ๅ‡่ฎพ๏ผšๆ‰ฐๅŠจๆ•ˆๅบ”ๅฏนๆ‰€ๆœ‰็ป†่ƒžๆ˜ฏ**ๅธธๆ•ฐๅนณ็งป**
60
+ - ้—ฎ้ข˜๏ผšๅฎŒๅ…จๅฟฝ็•ฅ็ป†่ƒžๅผ‚่ดจๆ€ง๏ผ›ๅŒไธ€ๆ‰ฐๅŠจๅฏนไธๅŒ็ป†่ƒž็ฑปๅž‹็š„ๆ•ˆๅบ”ๅฏ่ƒฝๆˆช็„ถไธๅŒ
61
+ - ไฝ†**ๅ‡บๅฅ‡ๅœฐ้šพไปฅ่ถ…่ถŠ**โ€”โ€”ๅพˆๅคšๅคๆ‚ๆจกๅž‹ๅœจ top DE ๅŸบๅ› ไธŠๅนถไธๆฏ”ๅฎƒๅฅฝ
62
+
63
+ ### 2.2 ๅŸบไบŽ้ข„่ฎญ็ปƒๅคงๆจกๅž‹็š„ๆ–นๆณ•
64
+
65
+ **scGPT** (Nature Methods 2024)
66
+
67
+ - ่‡ชๅ›žๅฝ’ transformer๏ผŒๅœจๅคง่ง„ๆจกๅ•็ป†่ƒžๆ•ฐๆฎไธŠ้ข„่ฎญ็ปƒ
68
+ - ๆ‰ฐๅŠจ้ข„ๆต‹ๆ–นๅผ๏ผšfine-tune๏ผŒๅฐ†ๆ‰ฐๅŠจๅŸบๅ›  token mask ๆމ๏ผŒ่ฎฉๆจกๅž‹"่กฅๅ…จ"
69
+ - **้—ฎ้ข˜**๏ผš
70
+ - ๆœฌ่ดจๆ˜ฏ**่‡ชๅ›žๅฝ’่กฅๅ…จ**๏ผŒไธๆ˜ฏไธบๆ‰ฐๅŠจ้ข„ๆต‹่ฎพ่ฎก็š„็›ฎๆ ‡ๅ‡ฝๆ•ฐ
71
+ - ็ผ–็ ็š„ๆ˜ฏ็ป†่ƒž็š„**็ปๅฏน็Šถๆ€**๏ผŒไธ็›ดๆŽฅๅปบๆจก็Šถๆ€ๅ˜ๅŒ–
72
+ - Fine-tuning ่ฟ‡ๆ‹Ÿๅˆ้ฃŽ้™ฉ้ซ˜๏ผˆ่ฎญ็ปƒๆ ทๆœฌๅฐ‘๏ผ‰
73
+
74
+ **Geneformer** (Nature 2024)
75
+
76
+ - ๅŸบไบŽ rank-value encoding ็š„ transformer ้ข„่ฎญ็ปƒ
77
+ - ็”จ in-silico perturbation๏ผš็›ดๆŽฅๅˆ ้™ค็›ฎๆ ‡ๅŸบๅ›  token๏ผŒ็œ‹ embedding ๅ˜ๅŒ–
78
+ - **้—ฎ้ข˜**๏ผš
79
+ - in-silico perturbation ๆ˜ฏ**ๅฏๅ‘ๅผ**็š„๏ผŒๆฒกๆœ‰ๅญฆไน ๆ‰ฐๅŠจ็š„ๅŠจๅŠ›ๅญฆ
80
+ - rank encoding ไธขๅคฑ่กจ่พพ้‡ไฟกๆฏ
81
+ - ไธ่ƒฝๅค„็†็ป„ๅˆๆ‰ฐๅŠจ
82
+
83
+ ### 2.3 ไธ“็”จๆ‰ฐๅŠจ้ข„ๆต‹ๆจกๅž‹
84
+
85
+ **CPA** (Molecular Systems Biology 2023)
86
+
87
+ - Compositional Perturbation Autoencoder๏ผšๅฐ†็ป†่ƒž็Šถๆ€ๅˆ†่งฃไธบ basal state + perturbation effect + covariate effect
88
+ - ็”จๅŠ ๆณ•ๅ‡่ฎพๅœจ latent space ็ป„ๅˆ
89
+ - **้—ฎ้ข˜**๏ผš
90
+ - **็บฟๆ€งๅฏๅŠ ๅ‡่ฎพ**่ฟ‡ๅผบ๏ผšๅŸบๅ› ่ฐƒๆŽงๆ˜ฏ้ž็บฟๆ€ง็š„
91
+ - Autoencoder ้‡ๅปบ่ดจ้‡้™ๅˆถไธŠ้™
92
+ - ไธๅปบๆจกๅŸบๅ› ้—ด็š„่ฐƒๆŽงๅ…ณ็ณป
93
+
94
+ **GEARS** (Nature Biotechnology 2023)
95
+
96
+ - ็”จ Gene Ontology (GO) ๅ›พไธŠ็š„ GNN ็ผ–็ ๅŸบๅ› ๅ…ณ็ณป
97
+ - Cross-attention ่žๅˆๆ‰ฐๅŠจไฟกๆฏๅ’Œ็ป†่ƒž็Šถๆ€
98
+ - **้—ฎ้ข˜**๏ผš
99
+ - GO ๅ›พๆ˜ฏ**้™ๆ€ๅ…ˆ้ชŒ็Ÿฅ่ฏ†**๏ผŒไธ้š็ป†่ƒž็Šถๆ€ๅ˜ๅŒ–
100
+ - ๅ›พ็ป“ๆž„็š„้€‰ๆ‹ฉๅฏน็ป“ๆžœๅฝฑๅ“ๅพˆๅคง๏ผˆGO vs PPI vs GRN๏ผ‰
101
+ - ไป็„ถๆ˜ฏ็กฎๅฎšๆ€ง้ข„ๆต‹๏ผŒไธ่ƒฝ็ป™ๅ‡บๅˆ†ๅธƒ
102
+
103
+ **STATE** (ICLR 2025)
104
+
105
+ - Stacked Attention for Expression Transformation
106
+ - **้—ฎ้ข˜**๏ผš
107
+ - ็กฎๅฎšๆ€ง้ข„ๆต‹
108
+ - ไป็„ถๆฒกๆœ‰ไปŽ GRN ๅ˜ๅŒ–่ง’ๅบฆๅปบๆจก
109
+
110
+ **CellFlow** (preprint 2025)
111
+
112
+ - ไนŸๆ˜ฏ flow matching ๆก†ๆžถ
113
+ - ็”จ้ข„่ฎญ็ปƒ embedding ไฝœไธบๆกไปถ
114
+ - **้—ฎ้ข˜**๏ผš
115
+ - ้ข„่ฎญ็ปƒ embedding ไป็„ถ็ผ–็ ็ปๅฏน็Šถๆ€
116
+ - ๆฒกๆœ‰ๆ˜พๅผๅปบๆจกๆ‰ฐๅŠจๅฏน่ฐƒๆŽง็ฝ‘็ปœ็š„ๆ”นๅ˜
117
+
118
+ **scDFM** (ICLR 2026)
119
+
120
+ - ๅฐ† **Conditional Flow Matching** ๅผ•ๅ…ฅๆ‰ฐๅŠจ้ข„ๆต‹
121
+ - ๅญฆไน ไปŽๅ™ชๅฃฐๅˆฐ target ่กจ่พพ็š„้€Ÿๅบฆๅœบ๏ผŒๆกไปถไธบ control ่กจ่พพ + ๆ‰ฐๅŠจ ID
122
+ - DiffPerceiverBlock๏ผšๅทฎๅˆ†ๆณจๆ„ๅŠ› + cross-attention
123
+ - **ไผ˜็‚น**๏ฟฝ๏ฟฝ๏ฟฝ็”Ÿๆˆๅผๆจกๅž‹๏ผŒ่ƒฝ็ป™ๅ‡บๅˆ†ๅธƒ๏ผ›flow matching ่ฎญ็ปƒ็จณๅฎš
124
+ - **้—ฎ้ข˜**๏ผš
125
+ - **ไฟกๆฏๆฅๆบๅ•ไธ€**๏ผšๅชๆœ‰ control ็š„ๆ•ฐๅ€ผ่กจ่พพ + ๆ‰ฐๅŠจๅŸบๅ› ็š„ embedding
126
+ - **ไธ็†่งฃๅŸบๅ› ่ฐƒๆŽงๅ…ณ็ณป**๏ผšๆจกๅž‹้œ€่ฆไปŽๆ•ฐๆฎไธญ้šๅผๅญฆไน  GRN๏ผŒ่€Œ่ฎญ็ปƒๆ•ฐๆฎๆžๅฐ‘
127
+ - d_model=128๏ผŒ่กจ่พพ่ƒฝๅŠ›ๆœ‰้™
128
+
129
+ ### 2.4 ๅ…ฑๆ€ง้—ฎ้ข˜ๆ€ป็ป“
130
+
131
+ ```
132
+ ๆ‰€ๆœ‰็Žฐๆœ‰ๆ–นๆณ•็š„ๅ…ฑๅŒ็›ฒๅŒบ๏ผš
133
+
134
+ ๆ‰ฐๅŠจ โ†’ [้ป‘็ฎฑๆจกๅž‹] โ†’ ่กจ่พพๅ˜ๅŒ–
135
+
136
+ ๆฒกๆœ‰ไปปไฝ•ไธ€ไธชๆ–นๆณ•ๆ˜พๅผๅœฐๅปบๆจก๏ผš
137
+
138
+ ๆ‰ฐๅŠจ โ†’ ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๅ˜ๅŒ– โ†’ ่กจ่พพๅ˜ๅŒ–
139
+ โ†‘
140
+ ่ฟ™ไธ€ๆญฅ่ขซ่ทณ่ฟ‡ไบ†
141
+ ```
142
+
143
+ ---
144
+
145
+ ## 3. ๆˆ‘ไปฌ็š„ Motivation
146
+
147
+ ### 3.1 Motivation 1๏ผšๆตๅŒน้…่งฃๅ†ณ็ป†่ƒž้…ๅฏน้—ฎ้ข˜
148
+
149
+ ๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹็š„ๆ นๆœฌๅ›ฐ้šพ๏ผš**ๆฒกๆœ‰ paired data**ใ€‚
150
+
151
+ ๆˆ‘ไปฌๆ— ๆณ•ๅพ—ๅˆฐ (x_ctrl_i, x_pert_i) ่ฟ™ๆ ท็š„้…ๅฏนโ€”โ€”ไธ€ไธช็ป†่ƒžๆ‰ฐๅŠจๅŽๅฐฑๅ˜ไบ†๏ผŒไธ่ƒฝๅ›žๅˆฐๆ‰ฐๅŠจๅ‰็Šถๆ€ใ€‚
152
+
153
+ ไผ ็ปŸๆ–นๆณ•็š„ๅค„็†๏ผš็พคไฝ“ๅ‡ๅ€ผๅŒน้…๏ผˆไธขๅคฑๅผ‚่ดจๆ€ง๏ผ‰ๆˆ– autoencoder๏ผˆๅ—้™ไบŽ้‡ๅปบ่ดจ้‡๏ผ‰ใ€‚
154
+
155
+ **Flow Matching ็š„ไผ˜ๅŠฟ**๏ผšๅฎƒๅญฆไน ็š„ๆ˜ฏไปŽ source ๅˆ†ๅธƒๅˆฐ target ๅˆ†ๅธƒ็š„**ๆฆ‚็އไผ ่พ“ๆ˜ ๅฐ„**๏ผŒๅคฉ็„ถ้€‚ๅˆ unpaired ๆ•ฐๆฎ๏ผš
156
+
157
+ ```
158
+ p(x_ctrl) โ”€โ”€(ๅญฆไน  ODE ่ทฏๅพ„)โ”€โ”€โ†’ p(x_pert | perturbation)
159
+ ```
160
+
161
+ - ไธ้œ€่ฆ้€็ป†่ƒž้…ๅฏน๏ผŒๅช้œ€่ฆไธค็ป„็ป†่ƒž็š„**็พคไฝ“ๅˆ†ๅธƒ**
162
+ - ้€š่ฟ‡ Conditional Optimal Transport ๆž„้€ ่ฎญ็ปƒๅฏน๏ผŒๆฏ”้šๆœบ้…ๅฏนๆ•ˆ็އ้ซ˜
163
+ - ็”Ÿๆˆๅผ่พ“ๅ‡บ๏ผšๆฏไธช control ็ป†่ƒžๅฏไปฅ้‡‡ๆ ทๅคšไธช prediction๏ผŒ็ป™ๅ‡บ**ไธ็กฎๅฎšๆ€งไผฐ่ฎก**
164
+
165
+ ### 3.2 Motivation 2๏ผšไปŽ GRN ๅ˜ๅŒ–่ง’ๅบฆ็†่งฃๆ‰ฐๅŠจ
166
+
167
+ **ๅ…ณ้”ฎ็”Ÿ็‰ฉๅญฆไบ‹ๅฎž**๏ผšๅŸบๅ› ๆ‰ฐๅŠจไธๆ˜ฏ็ฎ€ๅ•ๅœฐๆ”นๅ˜ไธ€ไธชๅŸบๅ› ็š„ๅ€ผใ€‚
168
+
169
+ ```
170
+ CRISPR knock-out ๅŸบๅ›  A
171
+ โ†“
172
+ ๅŸบๅ›  A ็š„่กจ่พพ้™ไธบ 0
173
+ โ†“
174
+ A ็›ดๆŽฅ่ฐƒๆŽง็š„ๅŸบๅ›  B, C, D ่กจ่พพๆ”นๅ˜๏ผˆไธ€็บงๆ•ˆๅบ”๏ผ‰
175
+ โ†“
176
+ B ่ฐƒๆŽง็š„ E, F๏ผŒC ่ฐƒๆŽง็š„ G, H ... ไพๆฌกๆ”นๅ˜๏ผˆ็บง่”ๆ•ˆๅบ”๏ผ‰
177
+ โ†“
178
+ ๆœ€็ปˆๆ•ฐๅƒไธชๅŸบๅ› ็š„่กจ่พพ้ƒฝๅ‘็”Ÿๅ˜ๅŒ–
179
+ ```
180
+
181
+ ่ฟ™ไธช็บง่”ไผ ๆ’ญ็š„่ทฏๅพ„๏ผŒๅฐฑๆ˜ฏ **ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœ (GRN)**ใ€‚
182
+
183
+ **ๆ ธๅฟƒๆดžๅฏŸ**๏ผšๅฆ‚ๆžœๆˆ‘ไปฌ่ƒฝๅ…ˆ็†่งฃๆ‰ฐๅŠจๅฆ‚ไฝ•ๆ”นๅ˜ไบ† GRN๏ผŒๅ†ๅŸบไบŽๆ”นๅ˜ๅŽ็š„ GRN ้ข„ๆต‹่กจ่พพ๏ผŒ้ข„ๆต‹ไผšๆ›ดๅ‡†็กฎใ€‚
184
+
185
+ ```
186
+ ็Žฐๆœ‰ๆ–นๆณ•: ๆ‰ฐๅŠจ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ ่กจ่พพๅ˜ๅŒ–
187
+ (็ซฏๅˆฐ็ซฏ้ป‘็ฎฑ)
188
+
189
+ ๆˆ‘ไปฌ: ๆ‰ฐๅŠจ โ†’ GRN ๅ˜ๅŒ– (ฮ”_attn) โ†’ ่กจ่พพๅ˜ๅŒ–
190
+ โ†‘ ๆ˜พๅผๅปบๆจก โ†‘ ๆœ‰ๆฎๅฏไพ
191
+ ```
192
+
193
+ ### 3.3 Motivation 3๏ผšscGPT ็š„ Attention โ‰ˆ ๆ•ฐๆฎ้ฉฑๅŠจ็š„ GRN
194
+
195
+ ้ข„่ฎญ็ปƒ็š„ scGPT ๆจกๅž‹ๅœจๅคง่ง„ๆจกๅ•็ป†่ƒžๆ•ฐๆฎไธŠๅญฆๅˆฐไบ†ๅŸบๅ› ้—ด็š„่ฐƒๆŽงๅ…ณ็ณป๏ผŒ่ฟ™ไบ›ๅ…ณ็ณป่ขซ็ผ–็ ๅœจ transformer ็š„ **attention matrix** ไธญ๏ผš
196
+
197
+ ```
198
+ attn[i][j] ้ซ˜ โ†’ ๅŸบๅ›  j ็š„็Šถๆ€ๅฏนๅŸบๅ›  i ็š„่กจ่พพๆœ‰ๅผบๅฝฑๅ“
199
+ ```
200
+
201
+ ่ฟ™็ญ‰ไปทไบŽไธ€ไธช**ๆ•ฐๆฎ้ฉฑๅŠจ็š„ใ€ไธŠไธ‹ๆ–‡็›ธๅ…ณ็š„ GRN**โ€”โ€”ๅฎƒ้š็ป†่ƒž็Šถๆ€่€Œๅ˜ๅŒ–๏ผŒๆฏ”้™ๆ€ GO ๅ›พๆ›ด็ตๆดปใ€‚
202
+
203
+ ๆˆ‘ไปฌๅฏไปฅ็”จ**ๅŒไธ€ๆจกๅž‹**๏ผŒๅˆ†ๅˆซ่พ“ๅ…ฅ control ๅ’Œ perturbation ็š„่กจ่พพ๏ผŒๅพ—ๅˆฐไธคไธช attention matrix๏ผŒๅฎƒไปฌ็š„ๅทฎ็›ดๆŽฅๅๆ˜ **ๆ‰ฐๅŠจๅผ•่ตท็š„ GRN ๅ˜ๅŒ–**ใ€‚
204
+
205
+ ---
206
+
207
+ ## 4. ๆˆ‘ไปฌ็š„ๆ–นๆณ•
208
+
209
+ ### 4.1 ๆ€ปไฝ“ๆ€่ทฏ
210
+
211
+ ๅœจ scDFM ็š„ flow matching ๆก†ๆžถไธŠ๏ผŒๅผ•ๅ…ฅ **GRN-aware latent flow**๏ผš
212
+
213
+ ```
214
+ Cascaded Flow Matching:
215
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
216
+ โ”‚ GRN Latent Flow โ”‚ โ”‚ Expression Flow โ”‚
217
+ โ”‚ โ”‚ โ”‚ โ”‚
218
+ โ”‚ noise โ†’ GRN ๅ˜ๅŒ–็‰นๅพ โ”‚ โ”‚ noise โ†’ ๅŸบๅ› ่กจ่พพ โ”‚
219
+ โ”‚ (็†่งฃ่ฐƒๆŽง็ฝ‘็ปœๅฆ‚ไฝ•ๆ”นๅ˜) โ”‚ โ”‚ (ๅŸบไบŽ GRN ๅ˜ๅŒ–้ข„ๆต‹่กจ่พพ) โ”‚
220
+ โ”‚ โ”‚ โ”‚ โ”‚
221
+ โ”‚ ๆŽจ็†: ๅ…ˆๅฎŒๆˆ โ”‚ โ†’ โ”‚ ๆŽจ็†: ๅŽๅฎŒๆˆ โ”‚
222
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
223
+ Stage 1 Stage 2
224
+ ```
225
+
226
+ **็›ด่ง‰**๏ผšๆจกๅž‹ๅ…ˆ"ๆƒณๆธ…ๆฅš"ๆ‰ฐๅŠจๆ”นๅ˜ไบ†ๅ“ชไบ›ๅŸบๅ› ่ฐƒๆŽงๅ…ณ็ณป๏ผŒๅ†ๅŸบไบŽ่ฟ™ไบ›็†่งฃๅŽป้ข„ๆต‹่กจ่พพๅ˜ๅŒ–ใ€‚
227
+
228
+ ### 4.2 GRN ็‰นๅพ๏ผšAttention-Delta
229
+
230
+ ```
231
+ ฮ”_attn = Attention(perturbed cell) - Attention(control cell)
232
+
233
+ GRN features = ฮ”_attn @ gene_embeddings
234
+ ```
235
+
236
+ - `ฮ”_attn` ๆ•ๆ‰ๆ‰ฐๅŠจๅผ•่ตท็š„่ฐƒๆŽงๅ…ณ็ณปๅ˜ๅŒ–
237
+ - `@ gene_embeddings` ๅฐ†็จ€็–็š„่ฐƒๆŽงๅ˜ๅŒ–ไฟกๅท่šๅˆๅˆฐๆฏไธชๅŸบๅ› ็š„่ฟž็ปญ็‰นๅพ็ฉบ้—ด
238
+ - ่พ“ๅ‡บ๏ผšๆฏไธชๅŸบๅ› ไธ€ไธช 512 ็ปดๅ‘้‡๏ผŒ็ผ–็ "่ฟ™ไธชๅŸบๅ› ไธŠๆธธ็š„่ฐƒๆŽงๅ…ณ็ณปๅ‘็”Ÿไบ†ๆ€Žๆ ท็š„ๅ˜ๅŒ–"
239
+
240
+ ### 4.3 ๆจกๅž‹ๆžถๆž„
241
+
242
+ ```
243
+ ๆกไปถไฟกๆฏ (ๆŽจ็†ๆ—ถๅฏ็”จ) ่พ…ๅŠฉ็”Ÿๆˆ็›ฎๆ ‡ (ๆŽจ็†ๆ—ถไปŽๅ™ชๅฃฐ็”Ÿๆˆ)
244
+ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
245
+ โ”‚ control ่กจ่พพ x_ctrl โ”‚ โ”‚ GRN ๅ˜ๅŒ–็‰นๅพ z (512-d/gene) โ”‚
246
+ โ”‚ ๆ‰ฐๅŠจๅŸบๅ›  ID pert_id โ”‚ โ”‚ = ฮ”_attn @ gene_emb โ”‚
247
+ โ”‚ ๆ—ถ้—ดๆญฅ tโ‚, tโ‚‚ โ”‚ โ”‚ ๆฅ่‡ช frozen scGPT โ”‚
248
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
249
+ โ†“ โ†“
250
+ โ”Œโ”€โ”€โ”€ Expression Stream โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€ Latent Stream โ”€โ”€โ”€โ”
251
+ โ”‚ GeneEncoder + ValueEnc โ”‚ โ”‚ LatentEmbedder โ”‚
252
+ โ”‚ โ†’ expr_tokens (B,G,d) โ”‚ โ”‚ โ†’ lat_tokens(B,G,d)โ”‚
253
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
254
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ (+) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
255
+ โ†“
256
+ x = expr + latent (ๅŠ ๆณ•่žๅˆ)
257
+ โ†“
258
+ โ”Œโ”€โ”€โ”€ Conditioning โ”€โ”€โ”€โ”
259
+ โ”‚ c = tโ‚ + tโ‚‚ + pert โ”‚
260
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
261
+ โ†“
262
+ โ”Œโ”€โ”€โ”€ Shared Backbone โ”€โ”€โ”
263
+ โ”‚ DiffPerceiverBlock โ”‚ ร— 4 layers
264
+ โ”‚ (with GeneadaLN) โ”‚
265
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
266
+ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”
267
+ โ”Œโ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
268
+ โ”‚ExprHead โ”‚ โ”‚LatentHead โ”‚
269
+ โ”‚โ†’ v_expr โ”‚ โ”‚โ†’ v_latent โ”‚
270
+ โ”‚ (B,G) โ”‚ โ”‚(B,G,512) โ”‚
271
+ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
272
+ ```
273
+
274
+ ### 4.4 Cascaded ่ฎญ็ปƒ
275
+
276
+ ่ฎญ็ปƒๆ—ถไธๅŒๆ—ถไผ˜ๅŒ–ไธคไธช flow๏ผŒ่€Œๆ˜ฏ**ๆฆ‚็އๅˆ‡ๆข**๏ผš
277
+
278
+ ```
279
+ ้šๆœบ coin flip:
280
+ 40% โ†’ ่ฎญ็ปƒ Latent Flow: tโ‚‚ ้šๆœบ, tโ‚ = 0, ๅช็ฎ— loss_latent
281
+ 60% โ†’ ่ฎญ็ปƒ Expression Flow: tโ‚ ้šๆœบ, tโ‚‚ โ‰ˆ 1, ๅช็ฎ— loss_expr
282
+ ```
283
+
284
+ ### 4.5 Cascaded ๆŽจ็†๏ผˆๆ ธๅฟƒ๏ผ‰
285
+
286
+ ```
287
+ Stage 1: z_noise โ•โ•โ•(ODE)โ•โ•โ•> z_clean (GRN latent: 0โ†’1)
288
+ ๆญคๆ—ถ expression ้™ๆญข (tโ‚=0)
289
+
290
+ Stage 2: x_noise โ•โ•โ•(ODE)โ•โ•โ•> x_pred (Expression: 0โ†’1)
291
+ ๆญคๆ—ถ GRN latent ๅทฒๅฎŒๆˆ (tโ‚‚=1)
292
+ ```
293
+
294
+ **็”Ÿ็‰ฉๅญฆ็›ด่ง‰**๏ผšๅ…ˆ็†่งฃ่ฐƒๆŽง็ฝ‘็ปœๅฆ‚ไฝ•ๅ˜ๅŒ–๏ผŒๅ†ๅŸบไบŽๅ˜ๅŒ–ๅŽ็š„่ฐƒๆŽง็ฝ‘็ปœ้ข„ๆต‹่กจ่พพใ€‚
295
+
296
+ ### 4.6 ๆžถๆž„ๅ›พ็ป˜ๅˆถ Prompt (Nano Banana)
297
+
298
+ > **Prompt for architecture diagram:**
299
+ >
300
+ > Create a clean, professional scientific figure illustrating the "GRN-Guided Cascaded Flow Matching" architecture for single-cell perturbation prediction. Use a horizontal layout, left-to-right flow, with a soft blue-white color scheme.
301
+ >
302
+ > **Left panel โ€” "GRN Feature Extraction" (frozen, no gradient):**
303
+ > Show a frozen scGPT transformer icon (with a snowflake symbol). Two inputs feed into it: "control expression x_ctrl" (blue arrow) and "perturbed expression x_pert" (red arrow). Each produces an attention matrix (shown as a small heatmap grid). Between the two heatmaps, show a minus sign, producing "ฮ”_attn" (a difference heatmap). Then show ฮ”_attn multiplied by "Gene Embeddings" (a matrix icon), producing "GRN change features z" as a (G ร— 512) colored matrix strip. Label this output with dimension annotations (B, G, 512). Add a dashed box around the entire left panel labeled "Frozen scGPT โ€” GRN Change Extraction".
304
+ >
305
+ > **Center panel โ€” "Cascaded Flow Model" (trainable):**
306
+ > Show two parallel input streams at the top:
307
+ > (1) "Expression Stream": x_t (noised target expression) + x_ctrl (control) โ†’ two small encoder blocks โ†’ fusion โ†’ "expr_tokens"
308
+ > (2) "Latent Stream": z_t (noised GRN features) โ†’ LatentEmbedder โ†’ "latent_tokens"
309
+ > Show these two streams merging with a "+" symbol into combined tokens.
310
+ > Below, show a conditioning vector "c = t_expr + t_latent + pert_emb" feeding into a vertical stack of 4 shared backbone blocks (labeled "DiffPerceiverBlock ร— 4").
311
+ > At the bottom, the backbone splits into two decoder heads: "Expression Head โ†’ v_expr (B, G)" on the left, and "Latent Head โ†’ v_latent (B, G, 512)" on the right.
312
+ >
313
+ > **Right panel โ€” "Cascaded Inference":**
314
+ > Show a two-stage timeline diagram:
315
+ > Stage 1 (top): "GRN Latent Flow" โ€” an ODE trajectory from z_noise (random dots) to z_clean (structured pattern), with t_latent going from 0 to 1. Label: "First: understand how GRN changes".
316
+ > Stage 2 (bottom): "Expression Flow" โ€” an ODE trajectory from x_noise to x_pred (a gene expression barplot), with t_expr going from 0 to 1. Label: "Then: predict expression changes". Show a downward arrow from Stage 1 to Stage 2 indicating "z_clean conditions Stage 2".
317
+ >
318
+ > **Bottom banner:** A biological intuition strip showing: "Perturbation โ†’ GRN rewiring (ฮ” attention) โ†’ Gene expression change", with small icons (a gene network graph changing, then expression bars changing).
319
+ >
320
+ > Style: Nature/Cell journal style, vector graphics, minimal clutter, no 3D effects, consistent font sizes, use color coding (blue for expression path, orange/gold for latent/GRN path, gray for frozen components).
321
+
322
+ ---
323
+
324
+ ## 5. ๅฝ“ๅ‰้—ฎ้ข˜ไธŽ่งฃๅ†ณๆ–นๅ‘
325
+
326
+ ### 5.1 ้—ฎ้ข˜๏ผšGRN ไฟกๅทๆๅ–ๅ›ฐ้šพโ€”โ€”ๅ™ชๅฃฐๆทนๆฒก็œŸไฟกๅท
327
+
328
+ scGPT ็š„ attention matrix ๆ˜ฏไธ€ไธช (G ร— G) ็š„**็จ ๅฏ†็Ÿฉ้˜ต**โ€”โ€”ๆฏๅฏนๅŸบๅ› ไน‹้—ด้ƒฝๆœ‰้ž้›ถ attention ๅ€ผใ€‚
329
+
330
+ ไฝ†็œŸๅฎž็š„ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๆ˜ฏ**ๆžๅบฆ็จ€็–็š„**๏ผšไธ€ไธชๅŸบๅ› ้€šๅธธๅช็›ดๆŽฅ่ฐƒๆŽงๅ‡ ๅไธชไธ‹ๆธธๅŸบๅ› ๏ผŒ่€Œไธๆ˜ฏๅ‡ ๅƒไธชใ€‚
331
+
332
+ ```
333
+ Attention matrix: 5000 ร— 5000 = 25,000,000 ไธช้ž้›ถๅ€ผ
334
+ ็œŸๅฎž GRN: ๆฏไธชๅŸบๅ› ๅนณๅ‡ ~20-50 ไธช่ฐƒๆŽง้ถๆ ‡
335
+
336
+ โ†’ 99%+ ็š„ attention ๅ€ผๆ˜ฏๅ™ชๅฃฐ๏ผŒไธๆ˜ฏ็œŸๆญฃ็š„่ฐƒๆŽงๅ…ณ็ณป
337
+ ```
338
+
339
+ ่ฟ™ๆ„ๅ‘ณ็€ `ฮ”_attn @ gene_emb` ้‡Œ็ปๅคง้ƒจๅˆ†ไฟกๅทๆ˜ฏๅ™ชๅฃฐ็š„ๅ˜ๅŒ–๏ผŒ็œŸๆญฃ็š„ GRN ๅ˜ๅŒ–ไฟกๅท่ขซๆทนๆฒกใ€‚
340
+
341
+ **ๅฝ“ๅ‰่ง‚ๅฏŸไฝ่ฏ**๏ผšlatent loss โ‰ˆ 1.12๏ผŒ่ฟœ้ซ˜ไบŽ expression loss โ‰ˆ 0.019๏ผŒ่ฏดๆ˜Žๆจกๅž‹้šพไปฅ้ข„ๆต‹ latent ้€Ÿๅบฆๅœบโ€”โ€”ๅ› ไธบ็›ฎๆ ‡ๆœฌ่บซๅฐฑๅ……ๆปกๅ™ชๅฃฐใ€‚
342
+
343
+ **่งฃๅ†ณๆ–นๅ‘โ€”โ€”็จ€็–ๅŒ– top-K**๏ผš
344
+
345
+ ```
346
+ ๅŽŸๅง‹: ฮ”_attn (G ร— G) ๅ…จ้ƒจ 25M ๅ€ผ โ†’ ๅ™ชๅฃฐๅคš๏ผŒไฟกๅทๅผฑ
347
+ โ†“ ็จ€็–ๅŒ–
348
+ Top-K: ๆฏไธชๅŸบๅ› ๅชไฟ็•™ |ฮ”| ๆœ€ๅคง็š„ K=30 ไธช โ†’ ่ฟ‡ๆปค 99.4% ๅ™ชๅฃฐ
349
+ โ†“
350
+ features = sparse_ฮ”_topk @ gene_emb
351
+ ```
352
+
353
+ ๅทฒๅฎž็Žฐๅนถๅœจๅฎž้ชŒไธญ๏ผˆ`sparse_topk_emb` ๆจกๅผ๏ผ‰ใ€‚
354
+
355
+ ### 5.2 ้—ฎ้ข˜๏ผš512 ็ปด latent ้ข„ๆต‹้šพๅบฆ่ฟ‡ๅคง
356
+
357
+ ๆฏไธชๅŸบๅ› ็š„ GRN ็‰นๅพๆ˜ฏ 512 ็ปดๅ‘้‡๏ผŒๆ•ดไธช latent target ๆ˜ฏ (G, 512) = 250 ไธ‡็ปด็š„้€Ÿๅบฆๅœบโ€”โ€”ๆจกๅž‹้œ€่ฆๅœจๆฏไธชๆ—ถ้—ดๆญฅ้ข„ๆต‹่ฟ™ไนˆๅคง็š„ๅ‘้‡ใ€‚
358
+
359
+ **ๆถˆ่žๅฎž้ชŒ่ฏๅฎž**๏ผšๅฐ† latent ็ปดๅบฆไปŽ 512 ้™ๅˆฐ 1๏ผŒlatent loss ไปŽ ~1.1 ้™ๅˆฐ ~0.5-0.7โ€”โ€”็ปดๅบฆๆ˜ฏ้šพๅบฆ็š„้‡่ฆๆฅๆบใ€‚
360
+
361
+ **่งฃๅ†ณๆ–นๅ‘โ€”โ€”PCA ้™็ปด**๏ผš
362
+
363
+ ```
364
+ 512-d gene_emb โ†’ PCA ๆŠ•ๅฝฑๅˆฐ 64 ็ปด
365
+ features = sparse_ฮ”_topk @ pca_basis โ†’ (B, G, 64)
366
+ ```
367
+
368
+ ็”จ PCA ๆ‰พๅˆฐ attention delta ไฟกๅท็š„ไธป่ฆๅ˜ๅŒ–ๆ–นๅ‘๏ผŒๅฐ† 512 ็ปดๅŽ‹็ผฉๅˆฐ 64 ็ปด๏ผŒๅŽปๆމๅ†—ไฝ™็ปดๅบฆใ€‚scgpt_dim=64๏ผŒbottleneck_dim=64ใ€‚
369
+
370
+ ๅทฒๅฎž็Žฐๅนถๅœจๅฎž้ชŒไธญ๏ผˆ`sparse_pca` ๆจกๅผ๏ผ‰ใ€‚
371
+
372
+ ---
373
+
374
+ ## 6. ๆ€ป็ป“ไธŽๅฑ•ๆœ›
375
+
376
+ ### 6.1 ๆ ธๅฟƒ่ดก็Œฎ
377
+
378
+ ๆˆ‘ไปฌ็š„ๅทฅไฝœ**ไธๆ˜ฏๅœจๆจกๅž‹ๆžถๆž„ไธŠๅšๆ”น่ฟ›**๏ผŒ่€Œๆ˜ฏ**ไปŽ็”Ÿ็‰ฉๅญฆๆœบๅˆถๅ‡บๅ‘**้‡ๆ–ฐๅปบๆจกๆ‰ฐๅŠจ้ข„ๆต‹ไปปๅŠก๏ผš
379
+
380
+ ```
381
+ ็Žฐๆœ‰ๆ–นๆณ•: perturbation โ†’ [model] โ†’ expression change
382
+ โ†‘
383
+ ็บฏๆ•ฐๆฎ้ฉฑๅŠจ้ป‘็ฎฑ
384
+
385
+ ๆˆ‘ไปฌ: perturbation โ†’ GRN rewiring โ†’ expression change
386
+ โ†‘
387
+ ๆ˜พๅผๅปบๆจก็”Ÿ็‰ฉๅญฆๆœบๅˆถ
388
+ ```
389
+
390
+ ็”จ Cascaded Flow Matching ็š„ไธค้˜ถๆฎต็ป“ๆž„ๆฅๅฎž็Žฐ"ๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพๅ˜ๅŒ–"ใ€‚
391
+
392
+ ### 6.2 ๅŽ็ปญๅ…ณ้”ฎๅฎž้ชŒ๏ผš้ชŒ่ฏๅ› ๆžœๅ‡่ฎพ
393
+
394
+ ็›ฎๅ‰็š„ cascaded ๆŽจ็†ๆ˜ฏ**ๅ›บๅฎš้กบๅบ**็š„๏ผšๅ…ˆ latent๏ผˆGRN๏ผ‰๏ผŒๅŽ expressionใ€‚
395
+
396
+ ่ฟ™ๆ˜ฏๅฆ็œŸ็š„้‡่ฆ๏ผŸๆˆ‘ไปฌ่ฎกๅˆ’ๅšไธ€ไธชๅ…ณ้”ฎๅฎž้ชŒๆฅ้ชŒ่ฏ๏ผš
397
+
398
+ **ๅฎž้ชŒ่ฎพ่ฎก**๏ผš่ฎญ็ปƒๆ—ถ tโ‚ ๅ’Œ tโ‚‚ ๅฎŒๅ…จ้šๆœบ้‡‡ๆ ท๏ผˆไธๅ† cascade๏ผ‰๏ผŒๆจกๅž‹ๆ”ฏๆŒ**ไปปๆ„้กบๅบๆŽจ็†**ใ€‚็„ถๅŽๅฏนๆฏ”๏ผš
399
+
400
+ | ๆŽจ็†ๆ–นๅผ | ๅซไน‰ | ้ข„ๆœŸ |
401
+ |---------|------|------|
402
+ | ๅ…ˆ GRN latent โ†’ ๅŽ expression | ๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพ | **ๆœ€ไผ˜** |
403
+ | ๅ…ˆ expression โ†’ ๅŽ GRN latent | ๅ…ˆ้ข„ๆต‹่กจ่พพ๏ผŒๅ†็†่งฃ่ฐƒๆŽง | ๆฌกไผ˜ |
404
+ | ๅŒๆ—ถ random | ๆ— ๆ˜พๅผ้กบๅบ | ๆœ€ๅทฎ |
405
+
406
+ ๅฆ‚ๆžœ"ๅ…ˆ GRN ๅŽ expression"ๆ˜พ่‘—ไผ˜ไบŽๅ…ถไป–้กบๅบ๏ผŒๅฐฑ้ชŒ่ฏไบ†๏ผš
407
+
408
+ > **็†่งฃๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœ็š„ๅ˜ๅŒ–๏ผŒๆ˜ฏ้ข„ๆต‹ๆ‰ฐๅŠจ่กจ่พพๅ˜ๅŒ–็š„ๅ‰ๆๆกไปถ๏ผŒ่€Œไธๆ˜ฏๅ‰ฏไบง็‰ฉใ€‚**
409
+
410
+ ่ฟ™ๅฐฑๆ˜ฏๆˆ‘ไปฌ่ฟ™ไธชๅทฅไฝœ่ฆๅ›ž็ญ”็š„ๆ ธๅฟƒ็ง‘ๅญฆ้—ฎ้ข˜ใ€‚
411
+
412
+ ---
413
+
414
+ ### ไธ€ๅฅ่ฏๆ€ป็ป“
415
+
416
+ > ๆˆ‘ไปฌ็”จ scGPT ็š„ attention delta ๆ˜พๅผๆๅ–ๆ‰ฐๅŠจๅผ•่ตท็š„ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๅ˜ๅŒ–๏ผŒ้€š่ฟ‡ cascaded flow matching ๅผบๅˆถๆจกๅž‹"ๅ…ˆ็†่งฃ GRN ๅฆ‚ไฝ•ๆ”นๅ˜๏ผŒๅ†้ข„ๆต‹่กจ่พพๅฆ‚ไฝ•ๅ˜ๅŒ–"๏ผŒไปŽ่€Œๅฐ†็”Ÿ็‰ฉๅญฆๅ…ˆ้ชŒโ€”โ€”ๆ‰ฐๅŠจ้€š่ฟ‡ GRN ็บง่”ไผ ๆ’ญโ€”โ€”่žๅ…ฅ็”Ÿๆˆๅผๆจกๅž‹็š„ๆŽจ็†่ฟ‡็จ‹ใ€‚
Report/GRN_CCFM_group_meeting.pptx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96c5298cbc5a080fcd9619a795f851bc908988d0af0b4de7130ad0aa2f71c80c
3
+ size 304227
Report/Nano/.claude/settings.local.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm list:*)"
5
+ ]
6
+ }
7
+ }
Report/Nano/Nanomotor_Presentation.pptx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0076d5bf4be0040027beb2b575e8ce2a137387a4cd75200b46df65ad8be79b86
3
+ size 260965
Report/Nano/glucose-fueled-gated-nanomotors-enhancing-in-vivo-anticancer-efficacy-via-deep-drug-penetration-into-tumors.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5dd6f6dd36fb853ba8f62accf2c08e1d1a3dbb9f6c69d01919c262e3c06f563f
3
+ size 5089152
Report/PPT/GRN_CCFM_presentation.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:853c91d2b5685cc60ae9b2ae249a66b6ce789bfece3fe7d6bc4df1cf3fd6fc62
3
+ size 469947
Report/PPT/GRN_CCFM_presentation.pptx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fbbf29a0bf16d5a014e4f58bc7ce9f6609af8fd608b43bdd4b939633ed407cba
3
+ size 317866
Report/PPT/create_ppt.js ADDED
@@ -0,0 +1,854 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const pptxgen = require("pptxgenjs");
2
+
3
+ const pres = new pptxgen();
4
+ pres.layout = "LAYOUT_16x9";
5
+ pres.author = "Qian";
6
+ pres.title = "GRN-Guided Cascaded Flow Matching for Single-Cell Perturbation Prediction";
7
+
8
+ // === COLOR PALETTE: Deep Teal + Amber (biology meets computation) ===
9
+ const C = {
10
+ dark: "0F172A",
11
+ light: "F8FAFC",
12
+ teal: "0891B2",
13
+ tealDk: "164E63",
14
+ tealLt: "ECFEFF",
15
+ white: "FFFFFF",
16
+ text: "1E293B",
17
+ textS: "475569",
18
+ textM: "94A3B8",
19
+ red: "EF4444",
20
+ green: "10B981",
21
+ amber: "F59E0B",
22
+ purple: "8B5CF6",
23
+ blue: "3B82F6",
24
+ border: "E2E8F0",
25
+ };
26
+
27
+ const shadow = () => ({ type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.1 });
28
+
29
+ // Slide number helper (bottom-right)
30
+ let slideNum = 0;
31
+ function addSlideNum(sl, dark) {
32
+ slideNum++;
33
+ sl.addText(String(slideNum), {
34
+ x: 9.2, y: 5.15, w: 0.5, h: 0.3,
35
+ fontSize: 10, fontFace: "Calibri", color: dark ? C.textM : C.textS, align: "right", margin: 0,
36
+ });
37
+ }
38
+
39
+ function card(sl, x, y, w, h, opts = {}) {
40
+ sl.addShape(pres.shapes.RECTANGLE, {
41
+ x, y, w, h, fill: { color: opts.fill || C.white }, shadow: shadow(),
42
+ });
43
+ if (opts.accent) {
44
+ sl.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.06, h, fill: { color: opts.accent } });
45
+ }
46
+ }
47
+
48
+ function titleBar(sl, title) {
49
+ sl.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: C.tealDk } });
50
+ sl.addText(title, {
51
+ x: 0.6, y: 0.15, w: 8.8, h: 0.6,
52
+ fontSize: 24, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
53
+ });
54
+ }
55
+
56
+ // ============================
57
+ // SLIDE 1: TITLE
58
+ // ============================
59
+ let s = pres.addSlide();
60
+ s.background = { color: C.dark };
61
+ // Left teal block as visual motif
62
+ s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.15, h: 5.625, fill: { color: C.teal } });
63
+
64
+ s.addText("GRN-Guided Cascaded\nFlow Matching", {
65
+ x: 0.8, y: 1.1, w: 8.4, h: 1.8,
66
+ fontSize: 42, fontFace: "Georgia", color: C.white, bold: true, lineSpacingMultiple: 1.15,
67
+ });
68
+ s.addText("for Single-Cell Perturbation Prediction", {
69
+ x: 0.8, y: 2.95, w: 8.4, h: 0.5,
70
+ fontSize: 20, fontFace: "Calibri", color: "22D3EE",
71
+ });
72
+ s.addText("็ป„ไผšๆฑ‡ๆŠฅ", {
73
+ x: 0.8, y: 4.2, w: 3, h: 0.4,
74
+ fontSize: 14, fontFace: "Calibri", color: C.textM,
75
+ });
76
+ addSlideNum(s, true);
77
+
78
+ // ============================
79
+ // SLIDE 2: TASK
80
+ // ============================
81
+ s = pres.addSlide();
82
+ s.background = { color: C.light };
83
+ titleBar(s, "Task๏ผšๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹");
84
+
85
+ // Virtual Cell card
86
+ card(s, 0.5, 1.15, 4.3, 2.1, { accent: C.teal });
87
+ s.addText("่™šๆ‹Ÿ็ป†่ƒž (Virtual Cell)", {
88
+ x: 0.75, y: 1.25, w: 3.8, h: 0.4,
89
+ fontSize: 16, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
90
+ });
91
+ s.addText("ๆž„ๅปบ่ƒฝๆจกๆ‹Ÿ็œŸๅฎž็ป†่ƒž่กŒไธบ็š„ AI ๆจกๅž‹๏ผš็ป™ๅฎšไปปๆ„่พ“ๅ…ฅๆกไปถ๏ผˆๅŸบๅ› ๅž‹ใ€็Žฏๅขƒใ€ๆ‰ฐๅŠจ๏ผ‰๏ผŒ้ข„ๆต‹็ป†่ƒž็š„ๅˆ†ๅญ็Šถๆ€ๅ˜ๅŒ–ใ€‚ๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹ๆ˜ฏๅฎž็Žฐ่™šๆ‹Ÿ็ป†่ƒžๆœ€ๅ…ณ้”ฎ็š„ๅญไปปๅŠกใ€‚", {
92
+ x: 0.75, y: 1.7, w: 3.85, h: 1.4,
93
+ fontSize: 12.5, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.35,
94
+ });
95
+
96
+ // Perturbation types card
97
+ card(s, 5.2, 1.15, 4.3, 2.1, { accent: C.amber });
98
+ s.addText("ๆ‰ฐๅŠจ็ฑปๅž‹", {
99
+ x: 5.45, y: 1.25, w: 3.8, h: 0.4,
100
+ fontSize: 16, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
101
+ });
102
+ s.addText([
103
+ { text: "่ฏ็‰ฉๆ‰ฐๅŠจ", options: { bold: true, breakLine: true, fontSize: 12 } },
104
+ { text: " ๅฐๅˆ†ๅญๅŒ–ๅˆ็‰ฉ โ†’ ่ฝฌๅฝ•็ป„ๅ˜ๅŒ–", options: { breakLine: true, fontSize: 11, color: C.textS } },
105
+ { text: "็ป†่ƒžๅ› ๅญๆ‰ฐๅŠจ", options: { bold: true, breakLine: true, fontSize: 12 } },
106
+ { text: " IL-6, TNF-ฮฑ ็ญ‰ โ†’ ไฟกๅท้€š่ทฏๅ“ๅบ”", options: { breakLine: true, fontSize: 11, color: C.textS } },
107
+ { text: "ๅŸบๅ› ๆ‰ฐๅŠจ๏ผˆๆœฌๅทฅไฝœ่š็„ฆ๏ผ‰", options: { bold: true, breakLine: true, fontSize: 12, color: C.teal } },
108
+ { text: " CRISPR KO / OE / KD โ†’ ๅ…จๅŸบๅ› ็ป„ๅ˜ๅŒ–", options: { fontSize: 11, color: C.textS } },
109
+ ], { x: 5.45, y: 1.7, w: 3.85, h: 1.5, margin: 0, lineSpacingMultiple: 1.2 });
110
+
111
+ // Task formalization
112
+ card(s, 0.5, 3.5, 9.0, 1.6, { accent: C.purple });
113
+ s.addText("ไปปๅŠกๅฝขๅผๅŒ–", {
114
+ x: 0.75, y: 3.6, w: 2, h: 0.35,
115
+ fontSize: 14, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
116
+ });
117
+ s.addText([
118
+ { text: "ๅทฒ็Ÿฅ: ", options: { bold: true, fontSize: 13 } },
119
+ { text: "x_ctrl (control ๅŸบๅ› ่กจ่พพ, G ~ 5000 HVG) + p (ๆ‰ฐๅŠจๅŸบๅ› )", options: { fontSize: 13, breakLine: true } },
120
+ { text: "้ข„ๆต‹: ", options: { bold: true, fontSize: 13 } },
121
+ { text: "x_pert (ๆ‰ฐๅŠจๅŽๅŸบๅ› ่กจ่พพ่ฐฑ)", options: { fontSize: 13 } },
122
+ ], { x: 0.75, y: 4.0, w: 8.5, h: 0.9, fontFace: "Consolas", color: C.text, margin: 0, lineSpacingMultiple: 1.5 });
123
+ addSlideNum(s);
124
+
125
+ // ============================
126
+ // SLIDE 3: WHY IMPORTANT + DATA
127
+ // ============================
128
+ s = pres.addSlide();
129
+ s.background = { color: C.light };
130
+ titleBar(s, "ไธบไป€ไนˆ้‡่ฆ & ๆ•ฐๆฎ็‰น็‚น");
131
+
132
+ // Three importance cards
133
+ const imp = [
134
+ { icon: "$$$", title: "่ฏ็‰ฉ็ญ›้€‰ๅŠ ้€Ÿ", desc: "Perturb-seq ๆˆๆœฌๆž้ซ˜\n่ฎก็ฎ—้ข„ๆต‹ๅคงๅน…็ผฉๅฐๅ€™้€‰่Œƒๅ›ด", c: C.teal },
135
+ { icon: "N\u00B2", title: "็ป„ๅˆๆ‰ฐๅŠจ็ˆ†็‚ธ", desc: "N ๅŸบๅ› ไธคไธค็ป„ๅˆ = N(N-1)/2\nไธๅฏ่ƒฝ็ฉทไธพ๏ผŒๅฟ…้กป้ ้ข„ๆต‹", c: C.amber },
136
+ { icon: "\u2697", title: "็†่งฃ็–พ็—…ๆœบๅˆถ", desc: "้ข„ๆต‹ๅ“ชไบ›ๅŸบๅ› ๆ‰ฐๅŠจ\nไบง็”Ÿ็‰นๅฎš็–พ็—…่กจๅž‹", c: C.purple },
137
+ ];
138
+ imp.forEach((it, i) => {
139
+ const x = 0.5 + i * 3.1;
140
+ card(s, x, 1.15, 2.8, 2.0, { accent: it.c });
141
+ s.addText(it.icon, {
142
+ x: x + 0.2, y: 1.25, w: 2.4, h: 0.55,
143
+ fontSize: 28, fontFace: "Georgia", color: it.c, bold: true, margin: 0,
144
+ });
145
+ s.addText(it.title, {
146
+ x: x + 0.2, y: 1.8, w: 2.4, h: 0.3,
147
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
148
+ });
149
+ s.addText(it.desc, {
150
+ x: x + 0.2, y: 2.15, w: 2.4, h: 0.85,
151
+ fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, lineSpacingMultiple: 1.3,
152
+ });
153
+ });
154
+
155
+ // Data card
156
+ card(s, 0.5, 3.5, 9.0, 1.65, { accent: C.tealDk });
157
+ s.addText("Norman ๆ•ฐๆฎ้›†", {
158
+ x: 0.75, y: 3.6, w: 3, h: 0.35,
159
+ fontSize: 16, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
160
+ });
161
+ const stats = [
162
+ { val: "~9K", label: "็ป†่ƒžๆ•ฐ" },
163
+ { val: "5000", label: "้ซ˜ๅ˜ๅŸบๅ› " },
164
+ { val: "105", label: "ๆ‰ฐๅŠจๆกไปถ" },
165
+ { val: "KO+OE", label: "ๆ‰ฐๅŠจ็ฑปๅž‹" },
166
+ ];
167
+ stats.forEach((st, i) => {
168
+ const x = 0.75 + i * 2.15;
169
+ s.addText(st.val, {
170
+ x, y: 4.05, w: 1.9, h: 0.5,
171
+ fontSize: 26, fontFace: "Georgia", color: C.teal, bold: true, margin: 0,
172
+ });
173
+ s.addText(st.label, {
174
+ x, y: 4.5, w: 1.9, h: 0.25,
175
+ fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0,
176
+ });
177
+ });
178
+ s.addText("ๅ…ณ้”ฎๆŒ‘ๆˆ˜๏ผš็ป†่ƒž้…ๅฏนไธๅฏๅพ— โ€” ๆ‰ฐๅŠจๆ˜ฏ็ ดๅๆ€ง็š„๏ผŒไธ€ไธช็ป†่ƒžๅช่ƒฝๆต‹ไธ€ๆฌก", {
179
+ x: 0.75, y: 4.85, w: 8.5, h: 0.2,
180
+ fontSize: 11, fontFace: "Calibri", color: C.red, italic: true, margin: 0,
181
+ });
182
+
183
+ // ============================
184
+ addSlideNum(s);
185
+ // SLIDE 4: EXISTING METHODS (1)
186
+ // ============================
187
+ s = pres.addSlide();
188
+ s.background = { color: C.light };
189
+ titleBar(s, "็Žฐๆœ‰ๆ–นๆณ•๏ผš็ฎ€ๅ•ๅŸบ็บฟไธŽ้ข„่ฎญ็ปƒๅคงๆจกๅž‹");
190
+
191
+ // Additive Shift
192
+ card(s, 0.5, 1.15, 4.3, 1.85, { accent: C.textM });
193
+ s.addText("Additive Shift๏ผˆๅ‡ๅ€ผๅ็งป๏ผ‰", {
194
+ x: 0.75, y: 1.25, w: 3.8, h: 0.3,
195
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
196
+ });
197
+ s.addText("x\u0302_pert = x_ctrl + mean(x_pert - x_ctrl)", {
198
+ x: 0.75, y: 1.6, w: 3.8, h: 0.25,
199
+ fontSize: 11, fontFace: "Consolas", color: C.tealDk, margin: 0,
200
+ });
201
+ s.addText([
202
+ { text: "ๅ‡่ฎพๆ‰ฐๅŠจๆ•ˆๅบ”ๅฏนๆ‰€ๆœ‰็ป†่ƒžๆ˜ฏๅธธๆ•ฐๅนณ็งป", options: { breakLine: true } },
203
+ { text: "ๅฟฝ็•ฅ็ป†่ƒžๅผ‚่ดจๆ€ง", options: { breakLine: true } },
204
+ { text: "ไฝ†ๅ‡บๅฅ‡ๅœฐ้šพไปฅ่ถ…่ถŠ", options: { color: C.red, bold: true } },
205
+ ], { x: 0.75, y: 1.95, w: 3.8, h: 0.85, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
206
+
207
+ // scGPT
208
+ card(s, 5.2, 1.15, 4.3, 1.85, { accent: C.blue });
209
+ s.addText("scGPT (Nature Methods 2024)", {
210
+ x: 5.45, y: 1.25, w: 3.8, h: 0.3,
211
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
212
+ });
213
+ s.addText([
214
+ { text: "่‡ชๅ›žๅฝ’ Transformer ๅคง่ง„ๆจก้ข„่ฎญ็ปƒ", options: { breakLine: true } },
215
+ { text: "ๆ‰ฐๅŠจๅŸบๅ›  mask โ†’ ๆจกๅž‹่กฅๅ…จ", options: { breakLine: true } },
216
+ { text: "ๆœฌ่ดจๆ˜ฏ่‡ชๅ›žๅฝ’่กฅๅ…จ๏ผŒ้žๆ‰ฐๅŠจ้ข„ๆต‹็›ฎๆ ‡", options: { breakLine: true, color: C.red } },
217
+ { text: "็ผ–็ ็ปๅฏน็Šถๆ€๏ผŒไธๅปบๆจก็Šถๆ€ๅ˜ๅŒ–", options: { color: C.red } },
218
+ ], { x: 5.45, y: 1.7, w: 3.8, h: 1.1, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
219
+
220
+ // Geneformer
221
+ card(s, 0.5, 3.25, 4.3, 1.85, { accent: C.green });
222
+ s.addText("Geneformer (Nature 2024)", {
223
+ x: 0.75, y: 3.35, w: 3.8, h: 0.3,
224
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
225
+ });
226
+ s.addText([
227
+ { text: "Rank-value encoding + Transformer", options: { breakLine: true } },
228
+ { text: "In-silico perturbation: ๅˆ ้™คๅŸบๅ›  token", options: { breakLine: true } },
229
+ { text: "ๅฏๅ‘ๅผๆ–นๆณ•๏ผŒๆฒกๅญฆไน ๆ‰ฐๅŠจๅŠจๅŠ›ๅญฆ", options: { breakLine: true, color: C.red } },
230
+ { text: "Rank encoding ไธขๅคฑ่กจ่พพ้‡ไฟกๆฏ", options: { color: C.red } },
231
+ ], { x: 0.75, y: 3.7, w: 3.8, h: 1.1, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
232
+
233
+ // CPA
234
+ card(s, 5.2, 3.25, 4.3, 1.85, { accent: C.amber });
235
+ s.addText("CPA (Mol Sys Bio 2023)", {
236
+ x: 5.45, y: 3.35, w: 3.8, h: 0.3,
237
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
238
+ });
239
+ s.addText([
240
+ { text: "Basal + perturbation + covariate ๅฏๅŠ ๅˆ†่งฃ", options: { breakLine: true } },
241
+ { text: "Latent space ็บฟๆ€ง็ป„ๅˆ", options: { breakLine: true } },
242
+ { text: "็บฟๆ€งๅฏๅŠ ๅ‡่ฎพ่ฟ‡ๅผบ", options: { breakLine: true, color: C.red } },
243
+ { text: "ไธๅปบๆจกๅŸบๅ› ้—ด่ฐƒๆŽงๅ…ณ็ณป", options: { color: C.red } },
244
+ ], { x: 5.45, y: 3.7, w: 3.8, h: 1.1, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
245
+
246
+ // ============================
247
+ addSlideNum(s);
248
+ // SLIDE 5: EXISTING METHODS (2)
249
+ // ============================
250
+ s = pres.addSlide();
251
+ s.background = { color: C.light };
252
+ titleBar(s, "็Žฐๆœ‰ๆ–นๆณ•๏ผšไธ“็”จๆ‰ฐๅŠจ้ข„ๆต‹ๆจกๅž‹");
253
+
254
+ // GEARS
255
+ card(s, 0.5, 1.15, 4.3, 1.7, { accent: C.purple });
256
+ s.addText("GEARS (Nat Biotech 2023)", {
257
+ x: 0.75, y: 1.25, w: 3.8, h: 0.3,
258
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
259
+ });
260
+ s.addText([
261
+ { text: "GO ๅ›พ + GNN ็ผ–็ ๅŸบๅ› ๅ…ณ็ณป", options: { breakLine: true } },
262
+ { text: "GO ๆ˜ฏ้™ๆ€ๅ…ˆ้ชŒ๏ผŒไธ้š็ป†่ƒž็Šถๆ€ๅ˜", options: { breakLine: true, color: C.red } },
263
+ { text: "็กฎๅฎšๆ€ง้ข„ๆต‹๏ผŒไธ่ƒฝ็ป™ๅ‡บๅˆ†ๅธƒ", options: { color: C.red } },
264
+ ], { x: 0.75, y: 1.65, w: 3.8, h: 0.95, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
265
+
266
+ // STATE
267
+ card(s, 5.2, 1.15, 4.3, 1.7, { accent: C.teal });
268
+ s.addText("STATE (ICLR 2025)", {
269
+ x: 5.45, y: 1.25, w: 3.8, h: 0.3,
270
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
271
+ });
272
+ s.addText([
273
+ { text: "Stacked Attention for Expression Transform", options: { breakLine: true } },
274
+ { text: "็กฎๅฎšๆ€ง้ข„ๆต‹", options: { breakLine: true, color: C.red } },
275
+ { text: "ๆฒกๆœ‰ไปŽ GRN ๅ˜ๅŒ–่ง’ๅบฆๅปบๆจก", options: { color: C.red } },
276
+ ], { x: 5.45, y: 1.65, w: 3.8, h: 0.95, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
277
+
278
+ // CellFlow
279
+ card(s, 0.5, 3.1, 4.3, 1.7, { accent: C.blue });
280
+ s.addText("CellFlow (preprint 2025)", {
281
+ x: 0.75, y: 3.2, w: 3.8, h: 0.3,
282
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
283
+ });
284
+ s.addText([
285
+ { text: "Flow matching + ้ข„่ฎญ็ปƒ embedding ๆกไปถ", options: { breakLine: true } },
286
+ { text: "้ข„่ฎญ็ปƒ embedding ็ผ–็ ็ปๅฏน็Šถๆ€", options: { breakLine: true, color: C.red } },
287
+ { text: "ๆฒกๆœ‰ๆ˜พๅผๅปบๆจก่ฐƒๆŽง็ฝ‘็ปœๆ”นๅ˜", options: { color: C.red } },
288
+ ], { x: 0.75, y: 3.6, w: 3.8, h: 0.95, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
289
+
290
+ // scDFM
291
+ card(s, 5.2, 3.1, 4.3, 1.7, { accent: C.teal });
292
+ s.addText("scDFM (ICLR 2026)", {
293
+ x: 5.45, y: 3.2, w: 3.8, h: 0.3,
294
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
295
+ });
296
+ s.addText([
297
+ { text: "Conditional FM + DiffPerceiverBlock", options: { breakLine: true } },
298
+ { text: "็”Ÿๆˆๅผๆจกๅž‹๏ผŒ่ฎญ็ปƒ็จณๅฎš", options: { breakLine: true, color: C.green } },
299
+ { text: "ไฟกๆฏๆฅๆบๅ•ไธ€๏ผŒไธ็†่งฃ GRN", options: { breakLine: true, color: C.red } },
300
+ { text: "d_model=128๏ผŒ่กจ่พพ่ƒฝๅŠ›ๆœ‰้™", options: { color: C.red } },
301
+ ], { x: 5.45, y: 3.6, w: 3.8, h: 1.0, fontSize: 11, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
302
+
303
+ // ============================
304
+ addSlideNum(s);
305
+ // SLIDE 6: BLIND SPOT (section divider)
306
+ // ============================
307
+ s = pres.addSlide();
308
+ s.background = { color: C.tealDk };
309
+
310
+ s.addText("ๆ‰€ๆœ‰็Žฐๆœ‰ๆ–นๆณ•็š„ๅ…ฑๅŒ็›ฒๅŒบ", {
311
+ x: 0.8, y: 0.6, w: 8.4, h: 0.7,
312
+ fontSize: 30, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
313
+ });
314
+
315
+ // Current: black box
316
+ card(s, 0.8, 1.6, 8.4, 1.4, { fill: "1B4A5A" });
317
+ s.addText("็Žฐๆœ‰ๆ–นๆณ•", {
318
+ x: 1.0, y: 1.65, w: 2, h: 0.3,
319
+ fontSize: 12, fontFace: "Calibri", color: "CBD5E1", margin: 0,
320
+ });
321
+ s.addText([
322
+ { text: "ๆ‰ฐๅŠจ", options: { bold: true, fontSize: 20 } },
323
+ { text: " \u2192 ", options: { fontSize: 20, color: C.textM } },
324
+ { text: "[ \u9ED1\u7BB1\u6A21\u578B ]", options: { bold: true, fontSize: 20, color: C.red } },
325
+ { text: " \u2192 ", options: { fontSize: 20, color: C.textM } },
326
+ { text: "่กจ่พพๅ˜ๅŒ–", options: { bold: true, fontSize: 20 } },
327
+ ], { x: 1.0, y: 2.05, w: 8.0, h: 0.7, fontFace: "Calibri", color: C.white, align: "center", margin: 0 });
328
+
329
+ // Ours: explicit GRN
330
+ card(s, 0.8, 3.3, 8.4, 1.6, { fill: "0C3547" });
331
+ s.addText("ๆˆ‘ไปฌ็š„ๆ–นๆณ•", {
332
+ x: 1.0, y: 3.35, w: 2, h: 0.3,
333
+ fontSize: 12, fontFace: "Calibri", color: "22D3EE", margin: 0,
334
+ });
335
+ s.addText([
336
+ { text: "ๆ‰ฐๅŠจ", options: { bold: true, fontSize: 20 } },
337
+ { text: " \u2192 ", options: { fontSize: 20, color: C.textM } },
338
+ { text: "GRN ๅ˜ๅŒ–", options: { bold: true, fontSize: 20, color: C.teal } },
339
+ { text: " \u2192 ", options: { fontSize: 20, color: C.textM } },
340
+ { text: "่กจ่พพๅ˜ๅŒ–", options: { bold: true, fontSize: 20 } },
341
+ ], { x: 1.0, y: 3.75, w: 8.0, h: 0.7, fontFace: "Calibri", color: C.white, align: "center", margin: 0 });
342
+ s.addText("\u2191 ๆ˜พๅผๅปบๆจก็”Ÿ็‰ฉๅญฆๆœบๅˆถ", {
343
+ x: 3.0, y: 4.4, w: 4, h: 0.3,
344
+ fontSize: 14, fontFace: "Calibri", color: "22D3EE", align: "center", margin: 0,
345
+ });
346
+
347
+ // ============================
348
+ addSlideNum(s, true);
349
+ // SLIDE 7: MOTIVATION 1 - FLOW MATCHING
350
+ // ============================
351
+ s = pres.addSlide();
352
+ s.background = { color: C.light };
353
+ titleBar(s, "Motivation 1๏ผšFlow Matching ่งฃๅ†ณ้…ๅฏน้—ฎ้ข˜");
354
+
355
+ // Problem
356
+ card(s, 0.5, 1.15, 4.3, 2.0, { accent: C.red });
357
+ s.addText("ๆ ธๅฟƒๅ›ฐ้šพ๏ผšๆ—  Paired Data", {
358
+ x: 0.75, y: 1.25, w: 3.8, h: 0.3,
359
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
360
+ });
361
+ s.addText([
362
+ { text: "ไธ€ไธช็ป†่ƒžๆ‰ฐๅŠจๅŽๅฐฑๅ˜ไบ†๏ผŒๆ— ๆณ•ๅ›žๅˆฐๆ‰ฐๅŠจๅ‰", options: { breakLine: true } },
363
+ { text: "ๆ— ๆณ•ๅพ—ๅˆฐ (x_ctrl_i, x_pert_i) ้€็ป†่ƒž้…ๅฏน", options: { breakLine: true } },
364
+ { text: "ไผ ็ปŸๆ–นๆณ•๏ผš็พคไฝ“ๅ‡ๅ€ผๅŒน้…๏ผˆไธขๅคฑๅผ‚่ดจๆ€ง๏ผ‰", options: { breakLine: true } },
365
+ { text: "ๆˆ– Autoencoder๏ผˆๅ—้™ไบŽ้‡ๅปบ่ดจ้‡๏ผ‰", options: {} },
366
+ ], { x: 0.75, y: 1.65, w: 3.8, h: 1.3, fontSize: 12, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
367
+
368
+ // Solution
369
+ card(s, 5.2, 1.15, 4.3, 2.0, { accent: C.green });
370
+ s.addText("Flow Matching ็š„ไผ˜ๅŠฟ", {
371
+ x: 5.45, y: 1.25, w: 3.8, h: 0.3,
372
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
373
+ });
374
+ s.addText([
375
+ { text: "ๅญฆไน ๅˆ†ๅธƒ้—ด็š„ๆฆ‚็އไผ ่พ“ๆ˜ ๅฐ„", options: { breakLine: true } },
376
+ { text: "ไธ้œ€้€็ป†่ƒž้…ๅฏน๏ผŒๅช้œ€็พคไฝ“ๅˆ†ๅธƒ", options: { breakLine: true } },
377
+ { text: "Conditional OT ๆž„้€ ้ซ˜ๆ•ˆ่ฎญ็ปƒๅฏน", options: { breakLine: true } },
378
+ { text: "็”Ÿๆˆๅผ่พ“ๅ‡บ \u2192 ไธ็กฎๅฎšๆ€งไผฐ่ฎก", options: {} },
379
+ ], { x: 5.45, y: 1.65, w: 3.8, h: 1.3, fontSize: 12, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
380
+
381
+ // Flow diagram
382
+ card(s, 0.5, 3.5, 9.0, 1.6);
383
+ s.addText("p(x_ctrl)", {
384
+ x: 0.8, y: 3.8, w: 2.2, h: 0.6,
385
+ fontSize: 18, fontFace: "Consolas", color: C.tealDk, bold: true, align: "center", margin: 0,
386
+ });
387
+ s.addShape(pres.shapes.RECTANGLE, {
388
+ x: 3.2, y: 4.0, w: 3.6, h: 0.28, fill: { color: C.teal, transparency: 30 },
389
+ });
390
+ s.addText("\u2500\u2500 \u5B66\u4E60 ODE \u8DEF\u5F84 \u2500\u2500\u25B6", {
391
+ x: 3.2, y: 3.95, w: 3.6, h: 0.35,
392
+ fontSize: 13, fontFace: "Calibri", color: C.white, align: "center", margin: 0,
393
+ });
394
+ s.addText("p(x_pert | pert)", {
395
+ x: 7.0, y: 3.8, w: 2.5, h: 0.6,
396
+ fontSize: 18, fontFace: "Consolas", color: C.tealDk, bold: true, align: "center", margin: 0,
397
+ });
398
+ s.addText("ๅคฉ็„ถ้€‚ๅˆ unpaired data \u2014 ๅช้œ€ไธค็ป„็ป†่ƒž็š„็พคไฝ“ๅˆ†ๅธƒๅณๅฏ่ฎญ็ปƒ", {
399
+ x: 0.8, y: 4.55, w: 8.4, h: 0.35,
400
+ fontSize: 12, fontFace: "Calibri", color: C.teal, italic: true, margin: 0, align: "center",
401
+ });
402
+
403
+ // ============================
404
+ addSlideNum(s);
405
+ // SLIDE 8: MOTIVATION 2&3 - GRN + ATTENTION
406
+ // ============================
407
+ s = pres.addSlide();
408
+ s.background = { color: C.light };
409
+ titleBar(s, "Motivation 2 & 3๏ผšGRN + scGPT Attention");
410
+
411
+ // Left: GRN cascade
412
+ card(s, 0.5, 1.15, 4.3, 4.0, { accent: C.amber });
413
+ s.addText("ๆ‰ฐๅŠจ้€š่ฟ‡ GRN ็บง่”ไผ ๆ’ญ", {
414
+ x: 0.75, y: 1.25, w: 3.8, h: 0.3,
415
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
416
+ });
417
+ s.addText([
418
+ { text: "CRISPR KO ๅŸบๅ›  A", options: { bold: true, breakLine: true, fontSize: 12, color: C.tealDk } },
419
+ { text: " \u2193", options: { breakLine: true, fontSize: 11, color: C.textM } },
420
+ { text: "A ็š„่กจ่พพ้™ไธบ 0", options: { breakLine: true, fontSize: 12 } },
421
+ { text: " \u2193", options: { breakLine: true, fontSize: 11, color: C.textM } },
422
+ { text: "ไธ€็บงๆ•ˆๅบ”๏ผšA \u2192 B, C, D ๆ”นๅ˜", options: { bold: true, breakLine: true, fontSize: 12 } },
423
+ { text: " \u2193", options: { breakLine: true, fontSize: 11, color: C.textM } },
424
+ { text: "็บง่”ๆ•ˆๅบ”๏ผšB\u2192E,F C\u2192G,H ...", options: { bold: true, breakLine: true, fontSize: 12 } },
425
+ { text: " \u2193", options: { breakLine: true, fontSize: 11, color: C.textM } },
426
+ { text: "ๆœ€็ปˆๆ•ฐๅƒไธชๅŸบๅ› ่กจ่พพๅ˜ๅŒ–", options: { bold: true, fontSize: 12, color: C.red } },
427
+ ], { x: 0.75, y: 1.7, w: 3.8, h: 2.8, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.15 });
428
+ s.addText("ๆ ธๅฟƒ๏ผšๅ…ˆ็†่งฃ GRN ๅ˜ๅŒ– \u2192 ๅ†้ข„ๆต‹่กจ่พพ", {
429
+ x: 0.75, y: 4.55, w: 3.8, h: 0.35,
430
+ fontSize: 12, fontFace: "Calibri", color: C.teal, bold: true, italic: true, margin: 0,
431
+ });
432
+
433
+ // Right: scGPT Attention
434
+ card(s, 5.2, 1.15, 4.3, 4.0, { accent: C.teal });
435
+ s.addText("scGPT Attention \u2248 ๆ•ฐๆฎ้ฉฑๅŠจ GRN", {
436
+ x: 5.45, y: 1.25, w: 3.8, h: 0.3,
437
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
438
+ });
439
+ s.addText("attn[i][j] ้ซ˜ \u2192 ๅŸบๅ›  j ๅฏนๅŸบๅ›  i ๆœ‰ๅผบ่ฐƒๆŽง", {
440
+ x: 5.45, y: 1.7, w: 3.8, h: 0.3,
441
+ fontSize: 11, fontFace: "Consolas", color: C.tealDk, margin: 0,
442
+ });
443
+ s.addText([
444
+ { text: "ไธŠไธ‹ๆ–‡็›ธๅ…ณ็š„ GRN", options: { bold: true, breakLine: true, fontSize: 12 } },
445
+ { text: "้š็ป†่ƒž็Šถๆ€ๅ˜ๅŒ–๏ผŒๆฏ”้™ๆ€ GO ๅ›พๆ›ด็ตๆดป", options: { breakLine: true, fontSize: 11, color: C.textS } },
446
+ { text: "", options: { breakLine: true, fontSize: 4 } },
447
+ { text: "ๆๅ–ๆ‰ฐๅŠจๅผ•่ตท็š„ GRN ๅ˜ๅŒ–", options: { bold: true, breakLine: true, fontSize: 12 } },
448
+ { text: "ๅˆ†ๅˆซ่พ“ๅ…ฅ ctrl / pert ่กจ่พพ", options: { breakLine: true, fontSize: 11, color: C.textS } },
449
+ { text: "ๅพ—ๅˆฐไธคไธช attention matrix", options: { breakLine: true, fontSize: 11, color: C.textS } },
450
+ { text: "ๅทฎๅ€ผ = ๆ‰ฐๅŠจๅผ•่ตท็š„ GRN ๅ˜ๅŒ–", options: { breakLine: true, fontSize: 11, color: C.textS } },
451
+ ], { x: 5.45, y: 2.1, w: 3.8, h: 2.1, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.25 });
452
+ // Formula highlight
453
+ s.addShape(pres.shapes.RECTANGLE, {
454
+ x: 5.45, y: 4.3, w: 3.8, h: 0.45, fill: { color: C.tealLt },
455
+ });
456
+ s.addText("\u0394_attn = Attn(pert) - Attn(ctrl)", {
457
+ x: 5.45, y: 4.32, w: 3.8, h: 0.4,
458
+ fontSize: 14, fontFace: "Consolas", color: C.tealDk, bold: true, align: "center", margin: 0,
459
+ });
460
+
461
+ // ============================
462
+ addSlideNum(s);
463
+ // SLIDE 9: METHOD OVERVIEW
464
+ // ============================
465
+ s = pres.addSlide();
466
+ s.background = { color: C.light };
467
+ titleBar(s, "ๆ–นๆณ•ๆ€ป่งˆ๏ผšCascaded Flow Matching");
468
+
469
+ s.addText("ๅœจ scDFM ็š„ flow matching ๆก†ๆžถไธŠ๏ผŒๅผ•ๅ…ฅ GRN-aware latent flow", {
470
+ x: 0.6, y: 1.05, w: 8.8, h: 0.3,
471
+ fontSize: 13, fontFace: "Calibri", color: C.textS, italic: true, margin: 0,
472
+ });
473
+
474
+ // Stage 1
475
+ s.addShape(pres.shapes.RECTANGLE, {
476
+ x: 0.5, y: 1.55, w: 4.3, h: 2.3,
477
+ fill: { color: C.amber, transparency: 92 }, line: { color: C.amber, width: 2 },
478
+ });
479
+ s.addText("Stage 1: GRN Latent Flow", {
480
+ x: 0.7, y: 1.65, w: 3.9, h: 0.4,
481
+ fontSize: 17, fontFace: "Georgia", color: C.amber, bold: true, margin: 0,
482
+ });
483
+ s.addText([
484
+ { text: "noise \u2192 GRN ๅ˜ๅŒ–็‰นๅพ", options: { bold: true, breakLine: true, fontSize: 14 } },
485
+ { text: "", options: { breakLine: true, fontSize: 6 } },
486
+ { text: "็†่งฃ่ฐƒๆŽง็ฝ‘็ปœๅฆ‚ไฝ•ๆ”นๅ˜", options: { breakLine: true, fontSize: 13, color: C.textS } },
487
+ { text: "ๆŽจ็†ๆ—ถๅ…ˆๅฎŒๆˆ", options: { fontSize: 13, color: C.amber, bold: true } },
488
+ ], { x: 0.7, y: 2.15, w: 3.9, h: 1.5, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.2 });
489
+
490
+ // Arrow
491
+ s.addText("\u2192", {
492
+ x: 4.5, y: 2.2, w: 1, h: 0.8,
493
+ fontSize: 40, fontFace: "Calibri", color: C.tealDk, align: "center", valign: "middle", margin: 0,
494
+ });
495
+
496
+ // Stage 2
497
+ s.addShape(pres.shapes.RECTANGLE, {
498
+ x: 5.2, y: 1.55, w: 4.3, h: 2.3,
499
+ fill: { color: C.teal, transparency: 92 }, line: { color: C.teal, width: 2 },
500
+ });
501
+ s.addText("Stage 2: Expression Flow", {
502
+ x: 5.4, y: 1.65, w: 3.9, h: 0.4,
503
+ fontSize: 17, fontFace: "Georgia", color: C.teal, bold: true, margin: 0,
504
+ });
505
+ s.addText([
506
+ { text: "noise \u2192 ๅŸบๅ› ่กจ่พพ้ข„ๆต‹", options: { bold: true, breakLine: true, fontSize: 14 } },
507
+ { text: "", options: { breakLine: true, fontSize: 6 } },
508
+ { text: "ๅŸบไบŽ GRN ๅ˜ๅŒ–้ข„ๆต‹่กจ่พพ", options: { breakLine: true, fontSize: 13, color: C.textS } },
509
+ { text: "ๆŽจ็†ๆ—ถๅŽๅฎŒๆˆ", options: { fontSize: 13, color: C.teal, bold: true } },
510
+ ], { x: 5.4, y: 2.15, w: 3.9, h: 1.5, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.2 });
511
+
512
+ // Intuition banner
513
+ card(s, 0.5, 4.2, 9.0, 1.05, { accent: C.tealDk });
514
+ s.addText("็”Ÿ็‰ฉๅญฆ็›ด่ง‰", {
515
+ x: 0.75, y: 4.3, w: 2, h: 0.3,
516
+ fontSize: 14, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
517
+ });
518
+ s.addText("ๆจกๅž‹ๅ…ˆ\u201Cๆƒณๆธ…ๆฅš\u201Dๆ‰ฐๅŠจๆ”นๅ˜ไบ†ๅ“ชไบ›ๅŸบๅ› ่ฐƒๆŽงๅ…ณ็ณป๏ผŒๅ†ๅŸบไบŽ่ฟ™ไบ›็†่งฃๅŽป้ข„ๆต‹่กจ่พพๅ˜ๅŒ–", {
519
+ x: 0.75, y: 4.6, w: 8.5, h: 0.4,
520
+ fontSize: 13, fontFace: "Calibri", color: C.text, margin: 0,
521
+ });
522
+
523
+ // ============================
524
+ addSlideNum(s);
525
+ // SLIDE 10: ARCHITECTURE
526
+ // ============================
527
+ s = pres.addSlide();
528
+ s.background = { color: C.light };
529
+ titleBar(s, "ๆจกๅž‹ๆžถๆž„");
530
+
531
+ // Left architecture diagram
532
+ // Condition inputs
533
+ card(s, 0.3, 1.15, 3.0, 1.35);
534
+ s.addText("ๆกไปถไฟกๆฏ๏ผˆๆŽจ็†ๆ—ถๅฏ็”จ๏ผ‰", {
535
+ x: 0.45, y: 1.2, w: 2.7, h: 0.25,
536
+ fontSize: 11, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
537
+ });
538
+ s.addText([
539
+ { text: "x_ctrl (control ่กจ่พพ)", options: { breakLine: true } },
540
+ { text: "pert_id (ๆ‰ฐๅŠจๅŸบๅ› )", options: { breakLine: true } },
541
+ { text: "t\u2081, t\u2082 (ๆ—ถ้—ดๆญฅ)", options: {} },
542
+ ], { x: 0.45, y: 1.5, w: 2.7, h: 0.85, fontSize: 10.5, fontFace: "Consolas", color: C.text, margin: 0, bullet: true, paraSpaceAfter: 3 });
543
+
544
+ // GRN target
545
+ card(s, 3.6, 1.15, 3.1, 1.35, { fill: "FFF7ED" });
546
+ s.addText("่พ…ๅŠฉ็›ฎๆ ‡๏ผˆไปŽๅ™ชๅฃฐ็”Ÿๆˆ๏ผ‰", {
547
+ x: 3.75, y: 1.2, w: 2.8, h: 0.25,
548
+ fontSize: 11, fontFace: "Calibri", color: C.amber, bold: true, margin: 0,
549
+ });
550
+ s.addText([
551
+ { text: "z = \u0394_attn @ gene_emb", options: { breakLine: true, fontFace: "Consolas" } },
552
+ { text: "GRN ๅ˜ๅŒ–็‰นๅพ (512d/gene)", options: { breakLine: true } },
553
+ { text: "ๆฅ่‡ช frozen scGPT", options: {} },
554
+ ], { x: 3.75, y: 1.5, w: 2.8, h: 0.85, fontSize: 10.5, fontFace: "Calibri", color: C.text, margin: 0, bullet: true, paraSpaceAfter: 3 });
555
+
556
+ // Expression stream
557
+ s.addShape(pres.shapes.RECTANGLE, {
558
+ x: 0.3, y: 2.75, w: 3.0, h: 0.5, fill: { color: C.teal, transparency: 85 }, line: { color: C.teal, width: 1 },
559
+ });
560
+ s.addText("Expression Stream \u2192 expr_tokens", {
561
+ x: 0.4, y: 2.78, w: 2.8, h: 0.45,
562
+ fontSize: 11, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0, valign: "middle",
563
+ });
564
+
565
+ // Latent stream
566
+ s.addShape(pres.shapes.RECTANGLE, {
567
+ x: 3.6, y: 2.75, w: 3.1, h: 0.5, fill: { color: C.amber, transparency: 85 }, line: { color: C.amber, width: 1 },
568
+ });
569
+ s.addText("Latent Stream \u2192 lat_tokens", {
570
+ x: 3.7, y: 2.78, w: 2.9, h: 0.45,
571
+ fontSize: 11, fontFace: "Calibri", color: C.amber, bold: true, margin: 0, valign: "middle",
572
+ });
573
+
574
+ // Merge
575
+ s.addText("\u2295 ๅŠ ๆณ•่žๅˆ", {
576
+ x: 1.5, y: 3.32, w: 3.5, h: 0.3,
577
+ fontSize: 12, fontFace: "Calibri", color: C.text, align: "center", margin: 0,
578
+ });
579
+
580
+ // Shared backbone
581
+ s.addShape(pres.shapes.RECTANGLE, {
582
+ x: 0.3, y: 3.7, w: 6.4, h: 0.6, fill: { color: C.tealDk },
583
+ });
584
+ s.addText("Shared Backbone: DiffPerceiverBlock \u00D7 4 + GeneadaLN", {
585
+ x: 0.5, y: 3.73, w: 6.0, h: 0.55,
586
+ fontSize: 12.5, fontFace: "Calibri", color: C.white, bold: true, margin: 0, valign: "middle",
587
+ });
588
+
589
+ // Two heads
590
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 4.5, w: 3.0, h: 0.45, fill: { color: C.teal } });
591
+ s.addText("ExprHead \u2192 v_expr (B,G)", {
592
+ x: 0.4, y: 4.52, w: 2.8, h: 0.4,
593
+ fontSize: 11, fontFace: "Calibri", color: C.white, bold: true, margin: 0, valign: "middle",
594
+ });
595
+ s.addShape(pres.shapes.RECTANGLE, { x: 3.6, y: 4.5, w: 3.1, h: 0.45, fill: { color: C.amber } });
596
+ s.addText("LatentHead \u2192 v_latent (B,G,512)", {
597
+ x: 3.7, y: 4.52, w: 2.9, h: 0.4,
598
+ fontSize: 11, fontFace: "Calibri", color: C.white, bold: true, margin: 0, valign: "middle",
599
+ });
600
+
601
+ // Right: key design points
602
+ card(s, 7.0, 1.15, 2.7, 3.8);
603
+ s.addText("่ฎพ่ฎก่ฆ็‚น", {
604
+ x: 7.15, y: 1.25, w: 2.4, h: 0.3,
605
+ fontSize: 13, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
606
+ });
607
+ s.addText([
608
+ { text: "ๅŒๆต่พ“ๅ…ฅ", options: { bold: true, breakLine: true, fontSize: 11 } },
609
+ { text: "่กจ่พพ + GRN latent ๅ„่‡ช็ผ–็ ๅŽๅŠ ๆณ•่žๅˆ", options: { breakLine: true, fontSize: 10, color: C.textS } },
610
+ { text: "", options: { breakLine: true, fontSize: 5 } },
611
+ { text: "ๅ…ฑไบซ้ชจๅนฒ", options: { bold: true, breakLine: true, fontSize: 11 } },
612
+ { text: "4 ๅฑ‚ DiffPerceiverBlock ่”ๅˆๅค„็†", options: { breakLine: true, fontSize: 10, color: C.textS } },
613
+ { text: "", options: { breakLine: true, fontSize: 5 } },
614
+ { text: "ๅŒๅคด่พ“ๅ‡บ", options: { bold: true, breakLine: true, fontSize: 11 } },
615
+ { text: "ๅˆ†ๅˆซ้ข„ๆต‹่กจ่พพๅ’Œ latent ้€Ÿๅบฆๅœบ", options: { breakLine: true, fontSize: 10, color: C.textS } },
616
+ { text: "", options: { breakLine: true, fontSize: 5 } },
617
+ { text: "ๆกไปถๆณจๅ…ฅ", options: { bold: true, breakLine: true, fontSize: 11 } },
618
+ { text: "c = t\u2081 + t\u2082 + pert_emb", options: { breakLine: true, fontSize: 10, color: C.textS } },
619
+ { text: "้€š่ฟ‡ adaLN ๆณจๅ…ฅ", options: { fontSize: 10, color: C.textS } },
620
+ ], { x: 7.15, y: 1.6, w: 2.4, h: 3.2, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.15 });
621
+
622
+ // ============================
623
+ addSlideNum(s);
624
+ // SLIDE 11: TRAINING & INFERENCE
625
+ // ============================
626
+ s = pres.addSlide();
627
+ s.background = { color: C.light };
628
+ titleBar(s, "Cascaded ่ฎญ็ปƒไธŽๆŽจ็†");
629
+
630
+ // Training (left)
631
+ card(s, 0.5, 1.15, 4.3, 4.0, { accent: C.purple });
632
+ s.addText("่ฎญ็ปƒ๏ผšๆฆ‚็އๅˆ‡ๆข", {
633
+ x: 0.75, y: 1.25, w: 3.8, h: 0.35,
634
+ fontSize: 16, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
635
+ });
636
+ s.addText("ไธๅŒๆ—ถไผ˜ๅŒ–ไธคไธช flow๏ผŒ้šๆœบ coin flip๏ผš", {
637
+ x: 0.75, y: 1.65, w: 3.8, h: 0.25,
638
+ fontSize: 12, fontFace: "Calibri", color: C.textS, margin: 0,
639
+ });
640
+
641
+ // 40% latent
642
+ s.addShape(pres.shapes.RECTANGLE, {
643
+ x: 0.75, y: 2.1, w: 3.8, h: 0.9,
644
+ fill: { color: C.amber, transparency: 90 }, line: { color: C.amber, width: 1 },
645
+ });
646
+ s.addText("40%", {
647
+ x: 0.85, y: 2.15, w: 0.8, h: 0.35,
648
+ fontSize: 22, fontFace: "Georgia", color: C.amber, bold: true, margin: 0,
649
+ });
650
+ s.addText([
651
+ { text: "่ฎญ็ปƒ Latent Flow", options: { bold: true, breakLine: true } },
652
+ { text: "t\u2082 ้šๆœบ, t\u2081=0, ๅช็ฎ— loss_latent", options: {} },
653
+ ], { x: 1.7, y: 2.15, w: 2.7, h: 0.75, fontSize: 11, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.5 });
654
+
655
+ // 60% expression
656
+ s.addShape(pres.shapes.RECTANGLE, {
657
+ x: 0.75, y: 3.2, w: 3.8, h: 0.9,
658
+ fill: { color: C.teal, transparency: 90 }, line: { color: C.teal, width: 1 },
659
+ });
660
+ s.addText("60%", {
661
+ x: 0.85, y: 3.25, w: 0.8, h: 0.35,
662
+ fontSize: 22, fontFace: "Georgia", color: C.teal, bold: true, margin: 0,
663
+ });
664
+ s.addText([
665
+ { text: "่ฎญ็ปƒ Expression Flow", options: { bold: true, breakLine: true } },
666
+ { text: "t\u2081 ้šๆœบ, t\u2082\u22481, ๅช็ฎ— loss_expr", options: {} },
667
+ ], { x: 1.7, y: 3.25, w: 2.7, h: 0.75, fontSize: 11, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.5 });
668
+
669
+ // Inference (right)
670
+ card(s, 5.2, 1.15, 4.3, 4.0, { accent: C.teal });
671
+ s.addText("ๆŽจ็†๏ผšไธค้˜ถๆฎตไธฒ่กŒ", {
672
+ x: 5.45, y: 1.25, w: 3.8, h: 0.35,
673
+ fontSize: 16, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
674
+ });
675
+
676
+ // Stage 1
677
+ s.addShape(pres.shapes.RECTANGLE, {
678
+ x: 5.45, y: 1.8, w: 3.8, h: 1.2,
679
+ fill: { color: C.amber, transparency: 90 }, line: { color: C.amber, width: 1 },
680
+ });
681
+ s.addText("Stage 1: GRN Latent", {
682
+ x: 5.55, y: 1.85, w: 3.6, h: 0.3,
683
+ fontSize: 13, fontFace: "Calibri", color: C.amber, bold: true, margin: 0,
684
+ });
685
+ s.addText([
686
+ { text: "z_noise ==(ODE)==> z_clean", options: { breakLine: true, fontFace: "Consolas", fontSize: 11 } },
687
+ { text: "ๅ…ˆ็†่งฃ GRN ๅฆ‚ไฝ•ๅ˜ๅŒ– (t\u2082: 0\u21921)", options: { fontSize: 11 } },
688
+ ], { x: 5.55, y: 2.2, w: 3.6, h: 0.65, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.4 });
689
+
690
+ // Arrow
691
+ s.addText("\u2193", {
692
+ x: 5.45, y: 3.05, w: 3.8, h: 0.35,
693
+ fontSize: 22, fontFace: "Calibri", color: C.tealDk, align: "center", margin: 0,
694
+ });
695
+
696
+ // Stage 2
697
+ s.addShape(pres.shapes.RECTANGLE, {
698
+ x: 5.45, y: 3.45, w: 3.8, h: 1.2,
699
+ fill: { color: C.teal, transparency: 90 }, line: { color: C.teal, width: 1 },
700
+ });
701
+ s.addText("Stage 2: Expression", {
702
+ x: 5.55, y: 3.5, w: 3.6, h: 0.3,
703
+ fontSize: 13, fontFace: "Calibri", color: C.teal, bold: true, margin: 0,
704
+ });
705
+ s.addText([
706
+ { text: "x_noise ==(ODE)==> x_pred", options: { breakLine: true, fontFace: "Consolas", fontSize: 11 } },
707
+ { text: "ๅŸบไบŽ z_clean ้ข„ๆต‹่กจ่พพ (t\u2081: 0\u21921)", options: { fontSize: 11 } },
708
+ ], { x: 5.55, y: 3.85, w: 3.6, h: 0.65, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.4 });
709
+
710
+ // ============================
711
+ addSlideNum(s);
712
+ // SLIDE 12: CHALLENGES
713
+ // ============================
714
+ s = pres.addSlide();
715
+ s.background = { color: C.light };
716
+ titleBar(s, "ๅฝ“ๅ‰ๆŒ‘ๆˆ˜ไธŽ่งฃๅ†ณๆ–นๅ‘");
717
+
718
+ // Challenge 1
719
+ card(s, 0.5, 1.15, 4.3, 4.0, { accent: C.red });
720
+ s.addText("ๆŒ‘ๆˆ˜ 1๏ผšGRN ไฟกๅทๅ™ชๅฃฐๅคง", {
721
+ x: 0.75, y: 1.25, w: 3.8, h: 0.3,
722
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
723
+ });
724
+ s.addText([
725
+ { text: "Attention: 5000\u00D75000 = 25M ้ž้›ถๅ€ผ", options: { breakLine: true } },
726
+ { text: "็œŸๅฎž GRN: ๆฏๅŸบๅ› ไป… ~20-50 ้ถๆ ‡", options: { breakLine: true } },
727
+ { text: "99%+ attention ๅ€ผๆ˜ฏๅ™ชๅฃฐ", options: { breakLine: true, color: C.red, bold: true } },
728
+ { text: "latent loss \u2248 1.12 >> expr loss \u2248 0.019", options: { color: C.red } },
729
+ ], { x: 0.75, y: 1.65, w: 3.8, h: 1.15, fontSize: 12, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
730
+
731
+ // Solution 1
732
+ s.addShape(pres.shapes.RECTANGLE, {
733
+ x: 0.75, y: 3.05, w: 3.8, h: 1.8,
734
+ fill: { color: C.green, transparency: 90 }, line: { color: C.green, width: 1 },
735
+ });
736
+ s.addText("่งฃๅ†ณ๏ผš็จ€็–ๅŒ– Top-K", {
737
+ x: 0.85, y: 3.1, w: 3.6, h: 0.3,
738
+ fontSize: 13, fontFace: "Calibri", color: C.green, bold: true, margin: 0,
739
+ });
740
+ s.addText([
741
+ { text: "ๆฏไธชๅŸบๅ› ๅชไฟ็•™ |\u0394| ๆœ€ๅคง็š„ K=30 ไธช", options: { breakLine: true } },
742
+ { text: "่ฟ‡ๆปค 99.4% ๅ™ชๅฃฐ", options: { breakLine: true, bold: true } },
743
+ { text: "sparse_topk_emb ๆจกๅผ", options: { fontFace: "Consolas" } },
744
+ ], { x: 0.85, y: 3.45, w: 3.6, h: 1.0, fontSize: 11.5, fontFace: "Calibri", color: C.text, margin: 0, bullet: true, paraSpaceAfter: 4 });
745
+
746
+ // Challenge 2
747
+ card(s, 5.2, 1.15, 4.3, 4.0, { accent: C.red });
748
+ s.addText("ๆŒ‘ๆˆ˜ 2๏ผš512 ็ปด Latent ๅคช้šพ้ข„ๆต‹", {
749
+ x: 5.45, y: 1.25, w: 3.8, h: 0.3,
750
+ fontSize: 14, fontFace: "Calibri", color: C.text, bold: true, margin: 0,
751
+ });
752
+ s.addText([
753
+ { text: "ๆฏๅŸบๅ›  512 ็ปด = 250 ไธ‡็ปด้€Ÿๅบฆๅœบ", options: { breakLine: true } },
754
+ { text: "ๆจกๅž‹ๆฏๆญฅ้œ€้ข„ๆต‹ๅฆ‚ๆญคๅคง็š„ๅ‘้‡", options: { breakLine: true } },
755
+ { text: "ๆถˆ่ž: 512\u21921 ็ปด, loss ไปŽ ~1.1 ้™ๅˆฐ ~0.5", options: { breakLine: true, color: C.red, bold: true } },
756
+ { text: "็ปดๅบฆๆ˜ฏ้šพๅบฆ็š„้‡่ฆๆฅๆบ", options: { color: C.red } },
757
+ ], { x: 5.45, y: 1.65, w: 3.8, h: 1.15, fontSize: 12, fontFace: "Calibri", color: C.textS, margin: 0, bullet: true, paraSpaceAfter: 4 });
758
+
759
+ // Solution 2
760
+ s.addShape(pres.shapes.RECTANGLE, {
761
+ x: 5.45, y: 3.05, w: 3.8, h: 1.8,
762
+ fill: { color: C.green, transparency: 90 }, line: { color: C.green, width: 1 },
763
+ });
764
+ s.addText("่งฃๅ†ณ๏ผšPCA ้™็ปด", {
765
+ x: 5.55, y: 3.1, w: 3.6, h: 0.3,
766
+ fontSize: 13, fontFace: "Calibri", color: C.green, bold: true, margin: 0,
767
+ });
768
+ s.addText([
769
+ { text: "512-d gene_emb \u2192 PCA ๆŠ•ๅฝฑๅˆฐ 64 ็ปด", options: { breakLine: true } },
770
+ { text: "ๅŽปๆމๅ†—ไฝ™็ปดๅบฆ๏ผŒไฟ็•™ไธปๅ˜ๅŒ–ๆ–นๅ‘", options: { breakLine: true, bold: true } },
771
+ { text: "sparse_pca ๆจกๅผ", options: { fontFace: "Consolas" } },
772
+ ], { x: 5.55, y: 3.45, w: 3.6, h: 1.0, fontSize: 11.5, fontFace: "Calibri", color: C.text, margin: 0, bullet: true, paraSpaceAfter: 4 });
773
+
774
+ // ============================
775
+ addSlideNum(s);
776
+ // SLIDE 13: SUMMARY & FUTURE
777
+ // ============================
778
+ s = pres.addSlide();
779
+ s.background = { color: C.light };
780
+ titleBar(s, "ๆ€ป็ป“ไธŽๅฑ•ๆœ›");
781
+
782
+ // Core contribution
783
+ card(s, 0.5, 1.15, 9.0, 1.4, { accent: C.teal });
784
+ s.addText("ๆ ธๅฟƒ่ดก็Œฎ", {
785
+ x: 0.75, y: 1.25, w: 2, h: 0.3,
786
+ fontSize: 16, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
787
+ });
788
+ s.addText("ไธๆ˜ฏๆžถๆž„ๆ”น่ฟ›๏ผŒ่€Œๆ˜ฏไปŽ็”Ÿ็‰ฉๅญฆๆœบๅˆถๅ‡บๅ‘้‡ๆ–ฐๅปบๆจก๏ผš็”จ Cascaded Flow Matching ๅฎž็Žฐ\u201Cๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพๅ˜ๅŒ–\u201D", {
789
+ x: 0.75, y: 1.6, w: 8.5, h: 0.75,
790
+ fontSize: 14, fontFace: "Calibri", color: C.text, margin: 0, lineSpacingMultiple: 1.35,
791
+ });
792
+
793
+ // Future experiment
794
+ s.addText("ๅŽ็ปญๅ…ณ้”ฎๅฎž้ชŒ๏ผš้ชŒ่ฏๅ› ๆžœๅ‡๏ฟฝ๏ฟฝ", {
795
+ x: 0.5, y: 2.8, w: 5, h: 0.35,
796
+ fontSize: 16, fontFace: "Calibri", color: C.tealDk, bold: true, margin: 0,
797
+ });
798
+
799
+ const tbl = [
800
+ [
801
+ { text: "ๆŽจ็†ๆ–นๅผ", options: { bold: true, color: "FFFFFF", fill: { color: C.tealDk } } },
802
+ { text: "ๅซไน‰", options: { bold: true, color: "FFFFFF", fill: { color: C.tealDk } } },
803
+ { text: "้ข„ๆœŸ", options: { bold: true, color: "FFFFFF", fill: { color: C.tealDk } } },
804
+ ],
805
+ [
806
+ { text: "ๅ…ˆ GRN \u2192 ๅŽ Expression", options: { bold: true, fill: { color: C.tealLt } } },
807
+ { text: "ๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพ", options: { fill: { color: C.tealLt } } },
808
+ { text: "ๆœ€ไผ˜", options: { bold: true, color: C.teal, fill: { color: C.tealLt } } },
809
+ ],
810
+ ["ๅ…ˆ Expression \u2192 ๅŽ GRN", "ๅ…ˆ้ข„ๆต‹่กจ่พพ๏ผŒๅ†็†่งฃ่ฐƒๆŽง", "ๆฌกไผ˜"],
811
+ ["ๅŒๆ—ถ random", "ๆ— ๆ˜พๅผ้กบๅบ", "ๆœ€ๅทฎ"],
812
+ ];
813
+ s.addTable(tbl, {
814
+ x: 0.5, y: 3.25, w: 9.0,
815
+ fontSize: 12, fontFace: "Calibri",
816
+ border: { pt: 0.5, color: C.border },
817
+ colW: [3.0, 3.5, 2.5],
818
+ rowH: [0.38, 0.38, 0.38, 0.38],
819
+ autoPage: false,
820
+ });
821
+
822
+ s.addText("ๅฆ‚ๆžœ\u201Cๅ…ˆ GRN ๅŽ Expression\u201Dๆ˜พ่‘—ไผ˜ไบŽๅ…ถไป– \u2192 ้ชŒ่ฏ GRN ็†่งฃๆ˜ฏ้ข„ๆต‹่กจ่พพๅ˜ๅŒ–็š„ๅ‰ๆ", {
823
+ x: 0.5, y: 4.85, w: 9.0, h: 0.35,
824
+ fontSize: 12, fontFace: "Calibri", color: C.teal, italic: true, bold: true, margin: 0,
825
+ });
826
+
827
+ // ============================
828
+ addSlideNum(s);
829
+ // SLIDE 14: CONCLUSION
830
+ // ============================
831
+ s = pres.addSlide();
832
+ s.background = { color: C.dark };
833
+ s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.15, h: 5.625, fill: { color: C.teal } });
834
+
835
+ s.addText("ๆ ธๅฟƒ็ป“่ฎบ", {
836
+ x: 0.8, y: 1.2, w: 3, h: 0.4,
837
+ fontSize: 16, fontFace: "Calibri", color: "CBD5E1", margin: 0,
838
+ });
839
+ s.addText("็”จ scGPT ็š„ attention delta ๆ˜พๅผๆๅ–ๆ‰ฐๅŠจๅผ•่ตท็š„ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๅ˜ๅŒ–๏ผŒ้€š่ฟ‡ cascaded flow matching ๅผบๅˆถๆจกๅž‹\u201Cๅ…ˆ็†่งฃ GRN ๅฆ‚ไฝ•ๆ”นๅ˜๏ผŒๅ†้ข„ๆต‹่กจ่พพๅฆ‚ไฝ•ๅ˜ๅŒ–\u201D๏ผŒไปŽ่€Œๅฐ†็”Ÿ็‰ฉๅญฆๅ…ˆ้ชŒ่žๅ…ฅ็”Ÿๆˆๅผๆจกๅž‹็š„ๆŽจ็†่ฟ‡็จ‹ใ€‚", {
840
+ x: 0.8, y: 1.8, w: 8.4, h: 2.2,
841
+ fontSize: 22, fontFace: "Georgia", color: C.white, lineSpacingMultiple: 1.45, margin: 0,
842
+ });
843
+ s.addText("GRN-Guided Cascaded Flow Matching", {
844
+ x: 0.8, y: 4.6, w: 5, h: 0.35,
845
+ fontSize: 14, fontFace: "Calibri", color: "22D3EE", margin: 0,
846
+ });
847
+
848
+ addSlideNum(s, true);
849
+
850
+ // === SAVE ===
851
+ const outPath = "/home/hp250092/ku50001222/qian/aivc/lfj/Report/PPT/GRN_CCFM_presentation.pptx";
852
+ pres.writeFile({ fileName: outPath })
853
+ .then(() => console.log("Saved: " + outPath))
854
+ .catch(err => console.error("Error:", err));
Report/PPT/fixed-01.jpg ADDED

Git LFS Details

  • SHA256: c631e126985c1ff914cee0cd1595e3204dad15b01af0f1db7f41a5945bf97636
  • Pointer size: 130 Bytes
  • Size of remote file: 59.1 kB
Report/PPT/fixed14-14.jpg ADDED

Git LFS Details

  • SHA256: 418131775627829fd21436f61d741503f3423c471ffaa4b0aa69cefabd6794c7
  • Pointer size: 130 Bytes
  • Size of remote file: 92.6 kB
Report/PPT/fixed6-06.jpg ADDED

Git LFS Details

  • SHA256: f9ff0271562848760442ceecb1db322cb1f4c1b191096f69238c679fab8c3671
  • Pointer size: 130 Bytes
  • Size of remote file: 57.7 kB
Report/PPT/fixed8-08.jpg ADDED

Git LFS Details

  • SHA256: f9ed17be84795684e751704508f27b2a4580876d6306079f891fedeaf6a3ea6c
  • Pointer size: 131 Bytes
  • Size of remote file: 101 kB
Report/PPT/slide-01.jpg ADDED

Git LFS Details

  • SHA256: 6b152a0aba53d948de49b79a4cdb4b4ecaead3996e1ee5cb936b1f1e08a4842e
  • Pointer size: 130 Bytes
  • Size of remote file: 57.6 kB
Report/PPT/slide-02.jpg ADDED

Git LFS Details

  • SHA256: 83ce6d8368e8dc12ad18826464122fa26dc994617a8c831ea59a049ad12fab76
  • Pointer size: 131 Bytes
  • Size of remote file: 101 kB
Report/PPT/slide-03.jpg ADDED

Git LFS Details

  • SHA256: 07c41eb5c57b2f177be03875aad56a84018917384426848fbe35157c0420e7a2
  • Pointer size: 130 Bytes
  • Size of remote file: 92.6 kB
Report/PPT/slide-04.jpg ADDED

Git LFS Details

  • SHA256: b2287e11118720c608c12bd727e3034b8d0b47dfba63fa5b84fca2df2064bfe4
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
Report/PPT/slide-05.jpg ADDED

Git LFS Details

  • SHA256: 558138b09e0c889201620e18fb3c95c88caf92b6424f9db0e251f9ff2513944e
  • Pointer size: 130 Bytes
  • Size of remote file: 95 kB
Report/PPT/slide-06.jpg ADDED

Git LFS Details

  • SHA256: 996cd046952b85460b44e766962c7866ef7f8db128cab23ff58b477719e3b59e
  • Pointer size: 130 Bytes
  • Size of remote file: 56.2 kB
Report/PPT/slide-07.jpg ADDED

Git LFS Details

  • SHA256: 36e5fa8dd236235138e4ad27f5228d7833d3967b3b9884085275079438821ea3
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
Report/PPT/slide-08.jpg ADDED

Git LFS Details

  • SHA256: bfa205e78b69cee5f1975749f396e2976b91a8595519128ee3eda187743b5cfc
  • Pointer size: 131 Bytes
  • Size of remote file: 104 kB
Report/PPT/slide-09.jpg ADDED

Git LFS Details

  • SHA256: 676b23cfb611210d86132250ced284d69b25b35b138c49b51dca9d1e0fd47b1a
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
Report/PPT/slide-10.jpg ADDED

Git LFS Details

  • SHA256: bd3992d33935045309ad7f373c5e62618ba82fa3acb5f6e89e80069bed5415e9
  • Pointer size: 130 Bytes
  • Size of remote file: 99.9 kB
Report/PPT/slide-11.jpg ADDED

Git LFS Details

  • SHA256: 2b39316d1347d44092875cb66f852fb176992aa92111082871efd779479e3568
  • Pointer size: 130 Bytes
  • Size of remote file: 95.6 kB
Report/PPT/slide-12.jpg ADDED

Git LFS Details

  • SHA256: a8ffbaa916367ec425df46533e73790c9bde609200dbf3ec8c58e929148c248e
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
Report/PPT/slide-13.jpg ADDED

Git LFS Details

  • SHA256: 10d324d8635dfe78283520d1b844cf7ae7963e6a3a2e88a5ce29e1aa1899d1b1
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
Report/PPT/slide-14.jpg ADDED

Git LFS Details

  • SHA256: 53383136661abb01efb21bc0b9e3fb6a9c110e9ee7ae84063d4daa043b9450ea
  • Pointer size: 130 Bytes
  • Size of remote file: 91.2 kB
Report/PPT/่ฎฒ่งฃ็จฟ.md ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GRN-Guided Cascaded Flow Matching ่ฎฒ่งฃ็จฟ
2
+
3
+ ---
4
+
5
+ ## Slide 1๏ผšๅฐ้ข
6
+
7
+ ๅคงๅฎถๅฅฝ๏ผŒไปŠๅคฉๆˆ‘ๆฑ‡ๆŠฅ็š„้ข˜็›ฎๆ˜ฏ **GRN-Guided Cascaded Flow Matching for Single-Cell Perturbation Prediction**โ€”โ€”็”จๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๅผ•ๅฏผ็š„็บง่”ๆตๅŒน้…ๆ–นๆณ•ๆฅๅšๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹ใ€‚
8
+
9
+ ---
10
+
11
+ ## Slide 2๏ผšTaskโ€”โ€”ๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹
12
+
13
+ ้ฆ–ๅ…ˆไป‹็ปไธ€ไธ‹ๆˆ‘ไปฌ่ฆ่งฃๅ†ณ็š„ไปปๅŠกใ€‚
14
+
15
+ **่™šๆ‹Ÿ็ป†่ƒž**ๆ˜ฏๅฝ“ๅ‰่ฎก็ฎ—็”Ÿ็‰ฉๅญฆ็š„ๆ ธๅฟƒๆ„ฟๆ™ฏ๏ผšๆˆ‘ไปฌๅธŒๆœ›ๆž„ๅปบไธ€ไธช AI ๆจกๅž‹๏ผŒ่ƒฝๅคŸๅœจ่ฎก็ฎ—ๆœบไธญๆจกๆ‹Ÿ็œŸๅฎž็ป†่ƒž็š„่กŒไธบโ€”โ€”็ป™ๅฎšไปปๆ„่พ“ๅ…ฅๆกไปถ๏ผŒ้ข„ๆต‹็ป†่ƒž็š„ๅˆ†ๅญ็Šถๆ€ๅ˜ๅŒ–ใ€‚ๅ•็ป†่ƒžๆ‰ฐๅŠจ้ข„ๆต‹ๆ˜ฏๅฎž็Žฐ่™šๆ‹Ÿ็ป†่ƒžๆœ€ๅ…ณ้”ฎ็š„ๅญไปปๅŠกไน‹ไธ€ใ€‚
16
+
17
+ ๆ‰ฐๅŠจๆœ‰ๅพˆๅคš็ง็ฑปๅž‹๏ผš่ฏ็‰ฉๆ‰ฐๅŠจใ€็ป†่ƒžๅ› ๅญๆ‰ฐๅŠจใ€ๅŸบๅ› ๆ‰ฐๅŠจ็ญ‰ใ€‚ๆˆ‘ไปฌ่ฟ™ไธชๅทฅไฝœ่š็„ฆ็š„ๆ˜ฏ**ๅŸบๅ› ๆ‰ฐๅŠจ**๏ผŒๅ…ทไฝ“ๆฅ่ฏดๅฐฑๆ˜ฏ็”จ CRISPR ๆŠ€ๆœฏๅฏน็ป†่ƒž่ฟ›่กŒๅŸบๅ› ๆ•ฒ้™คๆˆ–่ฟ‡่กจ่พพ๏ผŒ็„ถๅŽ็”จๅ•็ป†่ƒž RNA-seq ๆต‹้‡ๆ‰€ๆœ‰ๅŸบๅ› ็š„่กจ่พพๅ˜ๅŒ–ใ€‚
18
+
19
+ ไปปๅŠก็š„ๅฝขๅผๅŒ–ๅพˆ็ฎ€ๅ•๏ผšๅทฒ็Ÿฅ control ็ป†่ƒž็š„ๅŸบๅ› ่กจ่พพ่ฐฑๅ’Œ่ขซๆ‰ฐๅŠจ็š„ๅŸบๅ› ๏ผŒ้ข„ๆต‹ๆ‰ฐๅŠจๅŽ็š„ๅŸบๅ› ่กจ่พพ่ฐฑใ€‚ๅŸบๅ› ๆ•ฐ้‡ๅคง็บฆๆ˜ฏ 5000 ไธช้ซ˜ๅ˜ๅŸบๅ› ใ€‚
20
+
21
+ ---
22
+
23
+ ## Slide 3๏ผšไธบไป€ไนˆ้‡่ฆ & ๆ•ฐๆฎ็‰น็‚น
24
+
25
+ ่ฟ™ไธชไปปๅŠกไธบไป€ไนˆ้‡่ฆ๏ผŸไธ‰ไธชๅŽŸๅ› ๏ผš
26
+
27
+ ็ฌฌไธ€๏ผŒ**่ฏ็‰ฉ็ญ›้€‰ๅŠ ้€Ÿ**ใ€‚ๅšไธ€ๆฌก Perturb-seq ๅฎž้ชŒๆˆๆœฌ้žๅธธ้ซ˜๏ผŒๅฆ‚ๆžœ่ƒฝ็”จ่ฎก็ฎ—้ข„ๆต‹๏ผŒๅฏไปฅๅคงๅน…็ผฉๅฐๅ€™้€‰่Œƒๅ›ดใ€‚
28
+
29
+ ็ฌฌไบŒ๏ผŒ**็ป„ๅˆๆ‰ฐๅŠจ็ˆ†็‚ธ**ใ€‚N ไธชๅŸบๅ› ็š„ไธคไธค็ป„ๅˆๅฐฑๆ˜ฏ N(N-1)/2 ็งๅฎž้ชŒ๏ผŒไธๅฏ่ƒฝ็ฉทไธพ๏ผŒๅฟ…้กป้ ้ข„ๆต‹ใ€‚
30
+
31
+ ็ฌฌไธ‰๏ผŒ**็†่งฃ็–พ็—…ๆœบๅˆถ**ใ€‚้ข„ๆต‹ๅ“ชไบ›ๅŸบๅ› ่ขซๆ‰ฐๅŠจๅŽไผšไบง็”ŸๆŸ็ง็–พ็—…่กจๅž‹ใ€‚
32
+
33
+ ๆˆ‘ไปฌไฝฟ็”จ็š„ๆ˜ฏ Norman ๆ•ฐๆฎ้›†๏ผŒๅคง็บฆ 9000 ไธช็ป†่ƒž๏ผŒ5000 ไธช้ซ˜ๅ˜ๅŸบๅ› ๏ผŒ105 ็งๅ•ๅŸบๅ› ๅ’ŒๅŒๅŸบๅ› ็š„ CRISPR ๆ‰ฐๅŠจใ€‚
34
+
35
+ ่ฟ™้‡Œๆœ‰ไธ€ไธชๅ…ณ้”ฎๆŒ‘ๆˆ˜๏ผš**็ป†่ƒž้…ๅฏนไธๅฏๅพ—**ใ€‚ๆ‰ฐๅŠจๆ˜ฏ็ ดๅๆ€ง็š„๏ผŒไธ€ไธช็ป†่ƒžๅช่ƒฝๆต‹ไธ€ๆฌก๏ผŒๆˆ‘ไปฌๆ— ๆณ•ๅพ—ๅˆฐๅŒไธ€ไธช็ป†่ƒžๆ‰ฐๅŠจๅ‰ๅŽ็š„้…ๅฏนๆ•ฐๆฎใ€‚
36
+
37
+ ---
38
+
39
+ ## Slide 4๏ผš็Žฐๆœ‰ๆ–นๆณ•โ€”โ€”็ฎ€ๅ•ๅŸบ็บฟไธŽ้ข„่ฎญ็ปƒๅคงๆจกๅž‹
40
+
41
+ ๆŽฅไธ‹ๆฅ็œ‹็œ‹็Žฐๆœ‰็š„ๆ–นๆณ•ใ€‚
42
+
43
+ ๆœ€็ฎ€ๅ•็š„ๅŸบ็บฟๆ˜ฏ **Additive Shift**๏ผŒไนŸๅฐฑๆ˜ฏๅ‡ๅ€ผๅ็งป๏ผš็›ดๆŽฅ็”จ่ฎญ็ปƒ้›†้‡Œๆ‰ฐๅŠจๅ‰ๅŽ็š„ๅนณๅ‡ๅทฎๆฅ้ข„ๆต‹ใ€‚ๅฎƒๅ‡่ฎพๆ‰ฐๅŠจๆ•ˆๅบ”ๅฏนๆ‰€ๆœ‰็ป†่ƒžๆ˜ฏไธ€ไธชๅธธๆ•ฐๅนณ็งป๏ผŒๅฎŒๅ…จๅฟฝ็•ฅไบ†็ป†่ƒžๅผ‚่ดจๆ€งใ€‚ไฝ†ๆœ‰ๆ„ๆ€็š„ๆ˜ฏ๏ผŒ่ฟ™ไธช็ฎ€ๅ•ๅŸบ็บฟๅ‡บๅฅ‡ๅœฐ้šพไปฅ่ถ…่ถŠโ€”โ€”ๅพˆๅคšๅคๆ‚ๆจกๅž‹ๅœจ top DE ๅŸบๅ› ไธŠๅนถไธๆฏ”ๅฎƒๅฅฝใ€‚
44
+
45
+ **scGPT** ๆ˜ฏ 2024 ๅนดๅ‘่กจๅœจ Nature Methods ไธŠ็š„ๅทฅไฝœ๏ผŒ็”จ่‡ชๅ›žๅฝ’ Transformer ๅœจๅคง่ง„ๆจกๅ•็ป†่ƒžๆ•ฐๆฎไธŠ้ข„่ฎญ็ปƒใ€‚ๅฎƒๅšๆ‰ฐๅŠจ้ข„ๆต‹็š„ๆ–นๅผๆ˜ฏๆŠŠๆ‰ฐๅŠจๅŸบๅ›  mask ๆމ่ฎฉๆจกๅž‹่กฅๅ…จใ€‚ไฝ†ๆœฌ่ดจไธŠๅฎƒๆ˜ฏ่‡ชๅ›žๅฝ’่กฅๅ…จ๏ผŒไธๆ˜ฏไธบๆ‰ฐๅŠจ้ข„ๆต‹ไธ“้—จ่ฎพ่ฎก็š„ใ€‚
46
+
47
+ **Geneformer** ไนŸๆ˜ฏ 2024 ๅนดๅ‘ๅœจ Nature ไธŠ๏ผŒ็”จ rank-value encoding ๅš้ข„่ฎญ็ปƒใ€‚ๅฎƒๅšๆ‰ฐๅŠจ้ข„ๆต‹ๆ˜ฏ็›ดๆŽฅๅˆ ๆމ็›ฎๆ ‡ๅŸบๅ› ็š„ token๏ผŒ็œ‹ embedding ๅ˜ๅŒ–ใ€‚่ฟ™ๆ˜ฏไธ€ไธชๅฏๅ‘ๅผๆ–นๆณ•๏ผŒๆฒกๆœ‰็œŸๆญฃๅญฆไน ๆ‰ฐๅŠจ็š„ๅŠจๅŠ›ๅญฆใ€‚
48
+
49
+ **CPA** ๆŠŠ็ป†่ƒž็Šถๆ€ๅˆ†่งฃไธบ basal state ๅŠ  perturbation effect๏ผŒๅœจ latent space ้‡Œๅš็บฟๆ€ง็ป„ๅˆใ€‚้—ฎ้ข˜ๆ˜ฏ็บฟๆ€งๅฏๅŠ ๅ‡่ฎพๅคชๅผบไบ†๏ผŒๅŸบๅ› ่ฐƒๆŽงๆœฌ่ดจไธŠๆ˜ฏ้ž็บฟๆ€ง็š„ใ€‚
50
+
51
+ ---
52
+
53
+ ## Slide 5๏ผš็Žฐๆœ‰ๆ–นๆณ•โ€”โ€”ไธ“็”จๆ‰ฐๅŠจ้ข„ๆต‹ๆจกๅž‹
54
+
55
+ ๅ†็œ‹็œ‹ไธ“้—จไธบๆ‰ฐๅŠจ้ข„ๆต‹่ฎพ่ฎก็š„ๆจกๅž‹ใ€‚
56
+
57
+ **GEARS** ็”จ Gene Ontology ๅ›พไธŠ็š„ GNN ๆฅ็ผ–็ ๅŸบๅ› ๅ…ณ็ณป๏ผŒไฝ† GO ๅ›พๆ˜ฏ้™ๆ€็š„ๅ…ˆ้ชŒ็Ÿฅ่ฏ†๏ผŒไธ้š็ป†่ƒž็Šถๆ€ๅ˜ๅŒ–๏ผŒ่€Œไธ”ๅฎƒๆ˜ฏ็กฎๅฎšๆ€ง้ข„ๆต‹๏ผŒไธ่ƒฝ็ป™ๅ‡บๅˆ†ๅธƒใ€‚
58
+
59
+ **STATE** ๆ˜ฏ ICLR 2025 ็š„ๅทฅไฝœ๏ผŒ็”จ Stacked Attention ๅš่กจ่พพๅ˜ๆข๏ผŒๅŒๆ ทๆ˜ฏ็กฎๅฎšๆ€ง้ข„ๆต‹๏ผŒๆฒกๆœ‰ไปŽ GRN ๅ˜ๅŒ–็š„่ง’ๅบฆๅปบๆจกใ€‚
60
+
61
+ **CellFlow** ไนŸ็”จไบ† flow matching ๆก†ๆžถ๏ผŒไฝ†ๅฎƒ็”จ้ข„่ฎญ็ปƒ embedding ไฝœไธบๆกไปถ๏ผŒ่ฟ™ไบ› embedding ็ผ–็ ็š„ๆ˜ฏ็ปๅฏน็Šถๆ€๏ผŒๆฒกๆœ‰ๆ˜พๅผๅปบๆจกๆ‰ฐๅŠจๅฏน่ฐƒๆŽง็ฝ‘็ปœ็š„ๆ”นๅ˜ใ€‚
62
+
63
+ **scDFM** ๆ˜ฏๆˆ‘ไปฌ็š„ๅŸบ็บฟๆ–นๆณ•๏ผŒไปŠๅนดๅ‘่กจๅœจ ICLR 2026ใ€‚ๅฎƒๆŠŠ Conditional Flow Matching ๅผ•ๅ…ฅๆ‰ฐๅŠจ้ข„ๆต‹๏ผŒๅญฆไน ไปŽๅ™ชๅฃฐๅˆฐ็›ฎๆ ‡่กจ่พพ็š„้€Ÿๅบฆๅœบใ€‚ไผ˜็‚นๆ˜ฏ็”Ÿๆˆๅผๆจกๅž‹๏ผŒ่ƒฝ็ป™ๅ‡บๅˆ†ๅธƒ๏ผŒ่ฎญ็ปƒไนŸ็จณๅฎšใ€‚ไฝ†้—ฎ้ข˜ๅœจไบŽไฟกๆฏๆฅๆบๅ•ไธ€โ€”โ€”ๅชๆœ‰ control ็š„ๆ•ฐๅ€ผ่กจ่พพๅŠ ๆ‰ฐๅŠจๅŸบๅ› ็š„ embedding๏ผŒๆจกๅž‹ไธ็†่งฃๅŸบๅ› ้—ด็š„่ฐƒๆŽงๅ…ณ็ณปใ€‚
64
+
65
+ ---
66
+
67
+ ## Slide 6๏ผšๆ‰€ๆœ‰็Žฐๆœ‰ๆ–นๆณ•็š„ๅ…ฑๅŒ็›ฒๅŒบ
68
+
69
+ ๆ€ป็ป“ไธ€ไธ‹๏ผŒๆ‰€ๆœ‰็Žฐๆœ‰ๆ–นๆณ•้ƒฝๆœ‰ไธ€ไธชๅ…ฑๅŒ็š„็›ฒๅŒบ๏ผš
70
+
71
+ ๅฎƒไปฌ้ƒฝๆ˜ฏ **ๆ‰ฐๅŠจ โ†’ ้ป‘็ฎฑๆจกๅž‹ โ†’ ่กจ่พพๅ˜ๅŒ–** ่ฟ™ๆ ท็š„็ซฏๅˆฐ็ซฏๆจกๅผใ€‚
72
+
73
+ ๆฒกๆœ‰ไปปไฝ•ไธ€ไธชๆ–นๆณ•ๆ˜พๅผๅœฐๅปบๆจกไธญ้—ด่ฟ™ไธ€ๆญฅ๏ผš**ๆ‰ฐๅŠจๆ˜ฏๅฆ‚ไฝ•้€š่ฟ‡ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœ็š„ๅ˜ๅŒ–ๆฅๅฏผ่‡ด่กจ่พพๅ˜ๅŒ–็š„**ใ€‚
74
+
75
+ ๆˆ‘ไปฌ็š„ๆ–นๆณ•่ฆๅš็š„๏ผŒๅฐฑๆ˜ฏๆŠŠ่ฟ™ไธ€ๆญฅ่กฅไธŠ๏ผš**ๆ‰ฐๅŠจ โ†’ GRN ๅ˜ๅŒ– โ†’ ่กจ่พพๅ˜ๅŒ–**๏ผŒๆ˜พๅผๅปบๆจก็”Ÿ็‰ฉๅญฆๆœบๅˆถใ€‚
76
+
77
+ ---
78
+
79
+ ## Slide 7๏ผšMotivation 1โ€”โ€”Flow Matching ่งฃๅ†ณ้…ๅฏน้—ฎ้ข˜
80
+
81
+ ๆˆ‘ไปฌ็š„ๅทฅไฝœๆœ‰ไธ‰ไธช motivationใ€‚
82
+
83
+ ็ฌฌไธ€ไธชๆ˜ฏ็”จ Flow Matching ๆฅ่งฃๅ†ณ็ป†่ƒž้…ๅฏน้—ฎ้ข˜ใ€‚ๅˆšๆ‰ๆๅˆฐ๏ผŒๅ•็ป†่ƒžๆ‰ฐๅŠจๆ•ฐๆฎๅคฉ็„ถๆฒกๆœ‰ paired data๏ผŒไธ€ไธช็ป†่ƒžๆ‰ฐๅŠจๅŽๅฐฑๅ˜ไบ†๏ผŒๆ— ๆณ•ๅ›žๅˆฐๆ‰ฐๅŠจๅ‰็Šถๆ€ใ€‚
84
+
85
+ ไผ ็ปŸๆ–นๆณ•่ฆไนˆ็”จ็พคไฝ“ๅ‡ๅ€ผๅŒน้…ไธขๅคฑๅผ‚่ดจๆ€ง๏ผŒ่ฆไนˆ็”จ Autoencoder ๅ—้™ไบŽ้‡ๅปบ่ดจ้‡ใ€‚
86
+
87
+ **Flow Matching ็š„ไผ˜ๅŠฟ**ๅœจไบŽ๏ผšๅฎƒๅญฆไน ็š„ๆ˜ฏไปŽ source ๅˆ†ๅธƒๅˆฐ target ๅˆ†ๅธƒ็š„ๆฆ‚็އไผ ่พ“ๆ˜ ๏ฟฝ๏ฟฝ๏ฟฝ๏ผŒๅคฉ็„ถ้€‚ๅˆ unpaired ๆ•ฐๆฎใ€‚ไธ้œ€่ฆ้€็ป†่ƒž้…ๅฏน๏ผŒๅช้œ€่ฆไธค็ป„็ป†่ƒž็š„็พคไฝ“ๅˆ†ๅธƒใ€‚้€š่ฟ‡ Conditional Optimal Transport ๆž„้€ ่ฎญ็ปƒๅฏน๏ผŒๆ•ˆ็އๆ›ด้ซ˜ใ€‚่€Œไธ”ๅฎƒๆ˜ฏ็”Ÿๆˆๅผ่พ“ๅ‡บ๏ผŒๆฏไธช control ็ป†่ƒžๅฏไปฅ้‡‡ๆ ทๅคšไธช้ข„ๆต‹๏ผŒ็ป™ๅ‡บไธ็กฎๅฎšๆ€งไผฐ่ฎกใ€‚
88
+
89
+ ---
90
+
91
+ ## Slide 8๏ผšMotivation 2 & 3โ€”โ€”GRN ่ง†่ง’ + scGPT Attention
92
+
93
+ ็ฌฌไบŒไธช motivation ๆ˜ฏไปŽ GRN ๅ˜ๅŒ–็š„่ง’ๅบฆๆฅ็†่งฃๆ‰ฐๅŠจใ€‚
94
+
95
+ ็”Ÿ็‰ฉๅญฆไธŠ๏ผŒๅŸบๅ› ๆ‰ฐๅŠจไธๆ˜ฏ็ฎ€ๅ•ๅœฐๆ”นๅ˜ไธ€ไธชๅŸบๅ› ็š„ๅ€ผใ€‚ๆฏ”ๅฆ‚ CRISPR ๆ•ฒ้™คๅŸบๅ›  A๏ผŒ้ฆ–ๅ…ˆ A ็š„่กจ่พพ้™ไธบ 0๏ผŒ็„ถๅŽ A ็›ดๆŽฅ่ฐƒๆŽง็š„ๅŸบๅ›  Bใ€Cใ€D ๅ‘็”Ÿๅ˜ๅŒ–๏ผŒๅ†ๅพ€ไธ‹ B ่ฐƒๆŽง็š„ Eใ€F๏ผŒC ่ฐƒๆŽง็š„ Gใ€H ไพๆฌกๆ”นๅ˜โ€”โ€”่ฟ™ๆ˜ฏไธ€ไธช้€š่ฟ‡ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœ็š„็บง่”ไผ ๆ’ญ่ฟ‡็จ‹ใ€‚ๅฆ‚ๆžœๆˆ‘ไปฌ่ƒฝๅ…ˆ็†่งฃ GRN ๅฆ‚ไฝ•ๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพ๏ผŒ้ข„ๆต‹ไผšๆ›ดๅ‡†็กฎใ€‚
96
+
97
+ ็ฌฌไธ‰ไธช motivation ๆ˜ฏ scGPT ็š„ attention matrix ๅฏไปฅไฝœไธบๆ•ฐๆฎ้ฉฑๅŠจ็š„ GRNใ€‚้ข„่ฎญ็ปƒ็š„ scGPT ๅœจ attention matrix ้‡Œ็ผ–็ ไบ†ๅŸบๅ› ้—ด็š„่ฐƒๆŽงๅ…ณ็ณป๏ผšattn[i][j] ้ซ˜่กจ็คบๅŸบๅ›  j ๅฏนๅŸบๅ›  i ๆœ‰ๅผบ่ฐƒๆŽงใ€‚่€Œไธ”่ฟ™ไธช GRN ๆ˜ฏไธŠไธ‹ๆ–‡็›ธๅ…ณ็š„๏ผŒ้š็ป†่ƒž็Šถๆ€ๅ˜ๅŒ–๏ผŒๆฏ”้™ๆ€็š„ GO ๅ›พ็ตๆดปๅพ—ๅคšใ€‚
98
+
99
+ ๆˆ‘ไปฌๅฏไปฅๅˆ†ๅˆซ่พ“ๅ…ฅ control ๅ’Œ perturbed ็š„่กจ่พพ๏ผŒๅพ—ๅˆฐไธคไธช attention matrix๏ผŒๅฎƒไปฌ็š„ๅทฎๅ€ผ ฮ”_attn ๅฐฑ็›ดๆŽฅๅๆ˜ ไบ†ๆ‰ฐๅŠจๅผ•่ตท็š„ GRN ๅ˜ๅŒ–ใ€‚
100
+
101
+ ---
102
+
103
+ ## Slide 9๏ผšๆ–นๆณ•ๆ€ป่งˆโ€”โ€”Cascaded Flow Matching
104
+
105
+ ๅŸบไบŽ่ฟ™ไธ‰ไธช motivation๏ผŒๆˆ‘ไปฌๆๅ‡บไบ† Cascaded Flow Matchingใ€‚
106
+
107
+ ๆ ธๅฟƒๆ€่ทฏๆ˜ฏๅœจ scDFM ็š„ flow matching ๆก†ๆžถไธŠ๏ผŒๅผ•ๅ…ฅไธ€ไธช **GRN-aware latent flow**๏ผŒๅฝขๆˆไธค้˜ถๆฎต็š„็บง่”็ป“ๆž„๏ผš
108
+
109
+ **Stage 1 ๆ˜ฏ GRN Latent Flow**๏ผšไปŽๅ™ชๅฃฐ็”Ÿๆˆ GRN ๅ˜ๅŒ–็‰นๅพ๏ผŒ็†่งฃ่ฐƒๆŽง็ฝ‘็ปœๅฆ‚ไฝ•ๆ”นๅ˜ใ€‚ๆŽจ็†ๆ—ถๅ…ˆๅฎŒๆˆใ€‚
110
+
111
+ **Stage 2 ๆ˜ฏ Expression Flow**๏ผšไปŽๅ™ชๅฃฐ็”ŸๆˆๅŸบๅ› ่กจ่พพ้ข„ๆต‹๏ผŒๅŸบไบŽ GRN ๅ˜ๅŒ–ๆฅ้ข„ๆต‹่กจ่พพใ€‚ๆŽจ็†ๆ—ถๅŽๅฎŒๆˆใ€‚
112
+
113
+ ็”Ÿ็‰ฉๅญฆ็›ด่ง‰ๅพˆ็ฎ€ๅ•๏ผšๆจกๅž‹ๅ…ˆ"ๆƒณๆธ…ๆฅš"ๆ‰ฐๅŠจๆ”นๅ˜ไบ†ๅ“ชไบ›ๅŸบๅ› ่ฐƒๆŽงๅ…ณ็ณป๏ผŒๅ†ๅŸบไบŽ่ฟ™ไบ›็†่งฃๅŽป้ข„ๆต‹่กจ่พพๅ˜ๅŒ–ใ€‚
114
+
115
+ ---
116
+
117
+ ## Slide 10๏ผšๆจกๅž‹ๆžถๆž„
118
+
119
+ ๅ…ทไฝ“็š„ๆจกๅž‹ๆžถๆž„ๆ˜ฏ่ฟ™ๆ ท็š„ใ€‚
120
+
121
+ ่พ“ๅ…ฅๅˆ†ไธบไธค้ƒจๅˆ†๏ผšไธ€ๆ˜ฏๆกไปถไฟกๆฏ๏ผŒๅŒ…ๆ‹ฌ control ่กจ่พพใ€ๆ‰ฐๅŠจๅŸบๅ›  ID ๅ’Œไธคไธชๆ—ถ้—ดๆญฅ๏ผ›ไบŒๆ˜ฏ่พ…ๅŠฉ็”Ÿๆˆ็›ฎๆ ‡๏ผŒๅฐฑๆ˜ฏ GRN ๅ˜ๅŒ–็‰นๅพ z๏ผŒ้€š่ฟ‡ frozen scGPT ็š„ ฮ”_attn ไน˜ไปฅ gene embedding ๅพ—ๅˆฐใ€‚
122
+
123
+ ๆจกๅž‹ๆœ‰**ๅŒๆต่พ“ๅ…ฅ**๏ผšExpression Stream ็ผ–็ ่กจ่พพไฟกๆฏ๏ผŒLatent Stream ็ผ–็  GRN latent ไฟกๆฏ๏ผŒไธค่€…ๅŠ ๆณ•่žๅˆใ€‚
124
+
125
+ ่žๅˆๅŽ่ฟ›ๅ…ฅ**ๅ…ฑไบซ้ชจๅนฒ**๏ผš4 ๅฑ‚ DiffPerceiverBlock๏ผŒ้…ๅˆ GeneadaLN ๆณจๅ…ฅๆกไปถไฟกๆฏใ€‚ๆกไปถๅ‘้‡ c ็”ฑไธคไธชๆ—ถ้—ดๆญฅๅŠ ๆ‰ฐๅŠจ embedding ็ป„ๆˆใ€‚
126
+
127
+ ๆœ€ๅŽๆ˜ฏ**ๅŒๅคด่พ“ๅ‡บ**๏ผšExprHead ้ข„ๆต‹่กจ่พพ้€Ÿๅบฆๅœบ๏ผŒLatentHead ้ข„ๆต‹ latent ้€Ÿๅบฆๅœบใ€‚
128
+
129
+ ---
130
+
131
+ ## Slide 11๏ผšCascaded ่ฎญ็ปƒไธŽๆŽจ็†
132
+
133
+ ่ฎญ็ปƒ็š„ๆ—ถๅ€™ๆˆ‘ไปฌไธๅŒๆ—ถไผ˜ๅŒ–ไธคไธช flow๏ผŒ่€Œๆ˜ฏๆฆ‚็އๅˆ‡ๆข๏ผš
134
+
135
+ 40% ็š„ๆฆ‚็އ่ฎญ็ปƒ Latent Flowโ€”โ€”tโ‚‚ ้šๆœบ้‡‡ๆ ท๏ผŒtโ‚ ๅ›บๅฎšไธบ 0๏ผŒๅช็ฎ— latent lossใ€‚
136
+
137
+ 60% ็š„ๆฆ‚็އ่ฎญ็ปƒ Expression Flowโ€”โ€”tโ‚ ้šๆœบ้‡‡ๆ ท๏ผŒtโ‚‚ ๆŽฅ่ฟ‘ 1๏ผŒๅช็ฎ— expression lossใ€‚
138
+
139
+ ๆŽจ็†็š„ๆ—ถๅ€™ๆ˜ฏไธค้˜ถๆฎตไธฒ่กŒ๏ผš
140
+
141
+ **Stage 1** ๅ…ˆ่ท‘ GRN Latent๏ผŒไปŽ z_noise ้€š่ฟ‡ ODE ็”Ÿๆˆ z_clean๏ผŒ็†่งฃ GRN ๅฆ‚ไฝ•ๅ˜ๅŒ–ใ€‚
142
+
143
+ **Stage 2** ๅ†่ท‘ Expression๏ผŒๅˆฉ็”จๅทฒๅฎŒๆˆ็š„ z_clean ไฝœไธบๆกไปถ๏ผŒไปŽ x_noise ้€š่ฟ‡ ODE ็”Ÿๆˆ x_predใ€‚
144
+
145
+ ่ฟ™็งๅ…ˆๅŽ้กบๅบ็š„่ฎพ่ฎก๏ผŒๅฐฑๆ˜ฏๆˆ‘ไปฌ่ฟ™ไธชๅทฅไฝœ็š„ๆ ธๅฟƒ๏ผšๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพๅ˜ๅŒ–ใ€‚
146
+
147
+ ---
148
+
149
+ ## Slide 12๏ผšๅฝ“ๅ‰ๆŒ‘ๆˆ˜ไธŽ่งฃๅ†ณๆ–นๅ‘
150
+
151
+ ็›ฎๅ‰ๆœ‰ไธคไธชไธป่ฆๆŒ‘ๆˆ˜ใ€‚
152
+
153
+ **็ฌฌไธ€ไธชๆŒ‘ๆˆ˜๏ผšGRN ไฟกๅทๅ™ชๅฃฐๅคชๅคงใ€‚** scGPT ็š„ attention matrix ๆ˜ฏ 5000ร—5000 ็š„็จ ๅฏ†็Ÿฉ้˜ต๏ผŒๆœ‰ 2500 ไธ‡ไธช้ž้›ถๅ€ผใ€‚ไฝ†็œŸๅฎž็š„ GRN ๆ˜ฏๆžๅบฆ็จ€็–็š„๏ผŒไธ€ไธชๅŸบๅ› ้€šๅธธๅช็›ดๆŽฅ่ฐƒๆŽงๅ‡ ๅไธช้ถๆ ‡ใ€‚ๆ‰€ไปฅ 99% ไปฅไธŠ็š„ attention ๅ€ผ้ƒฝๆ˜ฏๅ™ชๅฃฐใ€‚ๅฎž้ชŒไนŸ้ชŒ่ฏไบ†่ฟ™ไธ€็‚น๏ผšlatent loss ็บฆ 1.12๏ผŒ่ฟœ้ซ˜ไบŽ expression loss ็š„ 0.019ใ€‚
154
+
155
+ ๆˆ‘ไปฌ็š„่งฃๅ†ณๆ–นๆกˆๆ˜ฏ**็จ€็–ๅŒ– Top-K**๏ผšๆฏไธชๅŸบๅ› ๅชไฟ็•™ ฮ” ๅ€ผๆœ€ๅคง็š„ K=30 ไธช่ฟžๆŽฅ๏ผŒ่ฟ‡ๆปคๆމ 99.4% ็š„ๅ™ชๅฃฐใ€‚
156
+
157
+ **็ฌฌไบŒไธชๆŒ‘ๆˆ˜๏ผš512 ็ปด็š„ latent ๅคช้šพ้ข„ๆต‹ใ€‚** ๆฏไธชๅŸบๅ› ็š„ GRN ็‰นๅพๆ˜ฏ 512 ็ปด๏ผŒๆ•ดไธช้€Ÿๅบฆๅœบๆ˜ฏ 250 ไธ‡็ปด๏ผŒๆจกๅž‹้šพไปฅๅœจๆฏไธชๆ—ถ้—ดๆญฅ้ข„ๆต‹่ฟ™ไนˆๅคง็š„ๅ‘้‡ใ€‚ๆถˆ่žๅฎž้ชŒ่ฏๅฎž๏ผŒๆŠŠ็ปดๅบฆไปŽ 512 ้™ๅˆฐ 1๏ผŒloss ไปŽ็บฆ 1.1 ้™ๅˆฐ็บฆ 0.5ใ€‚
158
+
159
+ ่งฃๅ†ณๆ–นๆกˆๆ˜ฏ **PCA ้™็ปด**๏ผšๆŠŠ 512 ็ปด็š„ gene embedding ้€š่ฟ‡ PCA ๆŠ•ๅฝฑๅˆฐ 64 ็ปด๏ผŒๅŽปๆމๅ†—ไฝ™็ปดๅบฆ๏ผŒๅชไฟ็•™ไธป่ฆ็š„ๅ˜ๅŒ–ๆ–นๅ‘ใ€‚
160
+
161
+ ---
162
+
163
+ ## Slide 13๏ผšๆ€ป็ป“ไธŽๅฑ•ๆœ›
164
+
165
+ ๆ€ป็ป“ไธ€ไธ‹๏ผŒๆˆ‘ไปฌ่ฟ™ไธชๅทฅไฝœ็š„ๆ ธๅฟƒ่ดก็Œฎไธๆ˜ฏๅœจๆจกๅž‹ๆžถๆž„ไธŠๅšๆ”น่ฟ›๏ผŒ่€Œๆ˜ฏ**ไปŽ็”Ÿ็‰ฉๅญฆๆœบๅˆถๅ‡บๅ‘**้‡ๆ–ฐๅปบๆจกๆ‰ฐๅŠจ้ข„ๆต‹ไปปๅŠก๏ผš็”จ Cascaded Flow Matching ๅฎž็Žฐ"ๅ…ˆ็†่งฃ่ฐƒๆŽงๅ˜ๅŒ–๏ผŒๅ†้ข„ๆต‹่กจ่พพๅ˜ๅŒ–"ใ€‚
166
+
167
+ ๅŽ็ปญๆœ€ๅ…ณ้”ฎ็š„ๅฎž้ชŒๆ˜ฏ้ชŒ่ฏๅ› ๆžœๅ‡่ฎพใ€‚ๆˆ‘ไปฌ่ฎกๅˆ’่ฎญ็ปƒไธ€ไธชๆ”ฏๆŒไปปๆ„ๆŽจ็†้กบๅบ็š„ๆจกๅž‹๏ผŒ็„ถๅŽๅฏนๆฏ”ไธ‰็งๆŽจ็†ๆ–นๅผ๏ผš
168
+
169
+ - ๅ…ˆ GRN ๅŽ Expressionโ€”โ€”ๆˆ‘ไปฌ้ข„ๆœŸ่ฟ™ๆ˜ฏๆœ€ไผ˜็š„๏ผ›
170
+ - ๅ…ˆ Expression ๅŽ GRNโ€”โ€”้ข„ๆœŸๆฌกไผ˜๏ผ›
171
+ - ๅŒๆ—ถ randomโ€”โ€”้ข„ๆœŸๆœ€ๅทฎใ€‚
172
+
173
+ ๅฆ‚ๆžœ"ๅ…ˆ GRN ๅŽ Expression"ๆ˜พ่‘—ไผ˜ไบŽๅ…ถไป–้กบๅบ๏ผŒๅฐฑ้ชŒ่ฏไบ†ๆˆ‘ไปฌ็š„ๆ ธๅฟƒๅ‡่ฎพ๏ผš**็†่งฃๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœ็š„ๅ˜ๅŒ–๏ผŒๆ˜ฏ้ข„ๆต‹ๆ‰ฐๅŠจ่กจ่พพๅ˜ๅŒ–็š„ๅ‰ๆๆกไปถ๏ผŒ่€Œไธๆ˜ฏๅ‰ฏไบง็‰ฉใ€‚**
174
+
175
+ ---
176
+
177
+ ## Slide 14๏ผšๆ ธๅฟƒ็ป“่ฎบ
178
+
179
+ ๆœ€ๅŽไธ€ๅฅ่ฏๆ€ป็ป“๏ผš
180
+
181
+ ๆˆ‘ไปฌ็”จ scGPT ็š„ attention delta ๆ˜พๅผๆๅ–ๆ‰ฐๅŠจๅผ•่ตท็š„ๅŸบๅ› ่ฐƒๆŽง็ฝ‘็ปœๅ˜ๅŒ–๏ผŒ้€š่ฟ‡ cascaded flow matching ๅผบๅˆถๆจกๅž‹"ๅ…ˆ็†่งฃ GRN ๅฆ‚ไฝ•ๆ”นๅ˜๏ผŒๅ†้ข„ๆต‹่กจ่พพๅฆ‚ไฝ•ๅ˜ๅŒ–"๏ผŒไปŽ่€Œๅฐ†็”Ÿ็‰ฉๅญฆๅ…ˆ้ชŒโ€”โ€”ๆ‰ฐๅŠจ้€š่ฟ‡ GRN ็บง่”ไผ ๆ’ญโ€”โ€”่žๅ…ฅ็”Ÿๆˆๅผๆจกๅž‹็š„ๆŽจ็†่ฟ‡็จ‹ใ€‚
182
+
183
+ ่ฐข่ฐขๅคงๅฎถ๏ผŒๆฌข่ฟŽๆ้—ฎใ€‚
Report/PPT2/GRN_CCFM_presentation.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a364adbc69c18b72d658c56eab80dc2f46a3a7ee8e04d82a5f4524ec453efe3
3
+ size 199553
Report/PPT2/GRN_CCFM_presentation.pptx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a1aad9d0018851617a8642f4a3afc393bfc330232ea929f581683af8b53ce08
3
+ size 317483
Report/PPT2/generate.js ADDED
@@ -0,0 +1,781 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const pptxgen = require("pptxgenjs");
2
+ const pres = new pptxgen();
3
+ pres.layout = "LAYOUT_16x9"; // 10" x 5.625"
4
+ pres.author = "Qian";
5
+ pres.title = "GRN-Guided Cascaded Flow Matching for Single-Cell Perturbation Prediction";
6
+
7
+ // โ”€โ”€โ”€ COLOR PALETTE โ”€โ”€โ”€
8
+ const NAVY = "1B2A4A";
9
+ const BLUE = "2E6B9E";
10
+ const LT_BLUE = "B8D4E8";
11
+ const BG_GRAY = "F0F2F5";
12
+ const CARD_BG = "F7F8FA";
13
+ const TXT = "2C3E50";
14
+ const TXT_MID = "4A5568";
15
+ const TXT_LT = "6B7B8D";
16
+ const WHITE = "FFFFFF";
17
+ const RED = "C0392B";
18
+ const GREEN = "27AE60";
19
+ const ORANGE = "D35400";
20
+
21
+ const HF = "Cambria";
22
+ const BF = "Calibri";
23
+ const CF = "Consolas";
24
+
25
+ // โ”€โ”€โ”€ HELPERS โ”€โ”€โ”€
26
+ function slideNum(slide, n) {
27
+ slide.addText(String(n), {
28
+ x: 9.2, y: 5.2, w: 0.5, h: 0.3,
29
+ fontSize: 10, color: TXT_LT, fontFace: BF, align: "right"
30
+ });
31
+ }
32
+
33
+ function headerBar(slide, title) {
34
+ slide.addShape(pres.shapes.RECTANGLE, {
35
+ x: 0, y: 0, w: 10, h: 0.85,
36
+ fill: { color: NAVY }
37
+ });
38
+ slide.addText(title, {
39
+ x: 0.6, y: 0.12, w: 8.8, h: 0.6,
40
+ fontSize: 24, fontFace: HF, color: WHITE, bold: true, margin: 0
41
+ });
42
+ }
43
+
44
+ function sectionLabel(slide, text, x, y, w) {
45
+ slide.addText(text, {
46
+ x: x || 0.6, y: y || 1.1, w: w || 8.8, h: 0.4,
47
+ fontSize: 17, fontFace: HF, color: NAVY, bold: true, margin: 0
48
+ });
49
+ }
50
+
51
+ function card(slide, x, y, w, h, accentColor) {
52
+ slide.addShape(pres.shapes.RECTANGLE, {
53
+ x, y, w, h, fill: { color: CARD_BG }
54
+ });
55
+ if (accentColor) {
56
+ slide.addShape(pres.shapes.RECTANGLE, {
57
+ x, y, w: 0.06, h, fill: { color: accentColor }
58
+ });
59
+ }
60
+ }
61
+
62
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
63
+ // SLIDE 1: TITLE
64
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
65
+ let s1 = pres.addSlide();
66
+ s1.background = { color: NAVY };
67
+ s1.addShape(pres.shapes.RECTANGLE, {
68
+ x: 0, y: 0, w: 10, h: 0.06, fill: { color: BLUE }
69
+ });
70
+ s1.addText([
71
+ { text: "GRN-Guided Cascaded Flow Matching", options: { breakLine: true, fontSize: 34 } },
72
+ { text: "for Single-Cell Perturbation Prediction", options: { fontSize: 28 } }
73
+ ], {
74
+ x: 0.8, y: 1.0, w: 8.4, h: 2.2,
75
+ fontFace: HF, color: WHITE, bold: true,
76
+ align: "center", valign: "middle", paraSpaceAfter: 8
77
+ });
78
+ s1.addShape(pres.shapes.RECTANGLE, {
79
+ x: 3.8, y: 3.4, w: 2.4, h: 0.035, fill: { color: BLUE }
80
+ });
81
+ s1.addText("Group Meeting Report", {
82
+ x: 1, y: 3.65, w: 8, h: 0.45,
83
+ fontSize: 18, fontFace: BF, color: LT_BLUE, align: "center"
84
+ });
85
+ s1.addText("March 2026", {
86
+ x: 1, y: 4.2, w: 8, h: 0.35,
87
+ fontSize: 14, fontFace: BF, color: TXT_LT, align: "center"
88
+ });
89
+
90
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
91
+ // SLIDE 2: TASK DEFINITION
92
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
93
+ let s2 = pres.addSlide();
94
+ headerBar(s2, "Task: Single-Cell Perturbation Prediction");
95
+ slideNum(s2, 2);
96
+
97
+ // Left column
98
+ sectionLabel(s2, "Virtual Cell Vision", 0.6, 1.05);
99
+ s2.addText([
100
+ { text: "AI model simulating cell behavior", options: { bullet: true, breakLine: true } },
101
+ { text: "Predict molecular state under perturbation", options: { bullet: true, breakLine: true } },
102
+ { text: "Focus: CRISPR genetic perturbation", options: { bullet: true } }
103
+ ], {
104
+ x: 0.6, y: 1.5, w: 4.2, h: 1.2,
105
+ fontSize: 13, fontFace: BF, color: TXT, paraSpaceAfter: 4
106
+ });
107
+
108
+ sectionLabel(s2, "Perturbation Types", 0.6, 2.8);
109
+ s2.addText([
110
+ { text: "Drug (small molecule compounds)", options: { bullet: true, breakLine: true } },
111
+ { text: "Cytokine (immune signaling)", options: { bullet: true, breakLine: true } },
112
+ { text: "Genetic (CRISPR KO / OE / KD)", options: { bullet: true, bold: true } }
113
+ ], {
114
+ x: 0.6, y: 3.25, w: 4.2, h: 1.2,
115
+ fontSize: 13, fontFace: BF, color: TXT, paraSpaceAfter: 4
116
+ });
117
+
118
+ // Right column - task formulation card
119
+ card(s2, 5.3, 1.05, 4.2, 3.7, BLUE);
120
+ s2.addText("Task Formulation", {
121
+ x: 5.6, y: 1.15, w: 3.7, h: 0.35,
122
+ fontSize: 15, fontFace: HF, color: NAVY, bold: true, margin: 0
123
+ });
124
+ s2.addText([
125
+ { text: "Input:", options: { bold: true, breakLine: true } },
126
+ { text: " x_ctrl (control expression, G dims)", options: { breakLine: true } },
127
+ { text: " p (perturbed gene ID)", options: { breakLine: true } },
128
+ { text: "", options: { breakLine: true, fontSize: 6 } },
129
+ { text: "Output:", options: { bold: true, breakLine: true } },
130
+ { text: " x_pert (perturbed expression, G dims)", options: { breakLine: true } },
131
+ { text: "", options: { breakLine: true, fontSize: 6 } },
132
+ { text: "G = 5,000 highly variable genes", options: { italic: true, color: TXT_MID } }
133
+ ], {
134
+ x: 5.6, y: 1.6, w: 3.7, h: 2.8,
135
+ fontSize: 12, fontFace: CF, color: TXT
136
+ });
137
+
138
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
139
+ // SLIDE 3: SIGNIFICANCE & DATASET
140
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
141
+ let s3 = pres.addSlide();
142
+ headerBar(s3, "Significance & Dataset");
143
+ slideNum(s3, 3);
144
+
145
+ // Three importance cards
146
+ const importCards = [
147
+ { num: "$$$", title: "Drug Screening", body: "Wet-lab Perturb-seq is expensive;\nvirtual screening saves resources" },
148
+ { num: "N\u00B2", title: "Combinatorial Explosion", body: "N genes \u2192 N(N-1)/2 combinations;\nimpossible to enumerate all" },
149
+ { num: "DNA", title: "Disease Mechanism", body: "Predict which gene perturbation\ncauses disease phenotype" }
150
+ ];
151
+ importCards.forEach((c, i) => {
152
+ const cx = 0.6 + i * 3.1;
153
+ card(s3, cx, 1.05, 2.8, 2.0, BLUE);
154
+ s3.addText(c.num, {
155
+ x: cx + 0.15, y: 1.15, w: 1.0, h: 0.45,
156
+ fontSize: 20, fontFace: HF, color: BLUE, bold: true, margin: 0
157
+ });
158
+ s3.addText(c.title, {
159
+ x: cx + 0.15, y: 1.6, w: 2.5, h: 0.3,
160
+ fontSize: 14, fontFace: HF, color: NAVY, bold: true, margin: 0
161
+ });
162
+ s3.addText(c.body, {
163
+ x: cx + 0.15, y: 1.95, w: 2.5, h: 0.9,
164
+ fontSize: 11, fontFace: BF, color: TXT_MID
165
+ });
166
+ });
167
+
168
+ // Dataset info
169
+ sectionLabel(s3, "Dataset: Norman et al.", 0.6, 3.3);
170
+ s3.addText([
171
+ { text: "~9,000 cells \u00D7 5,000 HVG", options: { bullet: true, breakLine: true, bold: true } },
172
+ { text: "105 single/double CRISPR perturbations (KO + OE)", options: { bullet: true, breakLine: true } },
173
+ { text: "No cell-level pairing (destructive measurement)", options: { bullet: true, breakLine: true, bold: true, color: RED } },
174
+ { text: "Metrics: DE gene overlap, direction, MSE, Pearson r", options: { bullet: true } }
175
+ ], {
176
+ x: 0.6, y: 3.75, w: 8.8, h: 1.3,
177
+ fontSize: 13, fontFace: BF, color: TXT, paraSpaceAfter: 4
178
+ });
179
+
180
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
181
+ // SLIDE 4: EXISTING METHODS
182
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
183
+ let s4 = pres.addSlide();
184
+ headerBar(s4, "Existing Methods & Limitations");
185
+ slideNum(s4, 4);
186
+
187
+ const hdrOpts = (txt) => ({ text: txt, options: { bold: true, color: WHITE, fill: { color: NAVY }, fontSize: 12, fontFace: BF, align: "center" } });
188
+ const cellOpts = (txt, opts) => ({ text: txt, options: { fontSize: 11, fontFace: BF, ...opts } });
189
+ const altBg = { fill: { color: "F8F9FA" } };
190
+
191
+ s4.addTable([
192
+ [ hdrOpts("Method"), hdrOpts("Type"), hdrOpts("Key Limitation") ],
193
+ [ cellOpts("Additive Shift", altBg), cellOpts("Baseline", { ...altBg, align: "center" }), cellOpts("Ignores cell heterogeneity; constant shift assumption", altBg) ],
194
+ [ cellOpts("scGPT"), cellOpts("Pretrained LM", { align: "center" }), cellOpts("Autoregressive completion; not designed for perturbation") ],
195
+ [ cellOpts("Geneformer", altBg), cellOpts("Pretrained LM", { ...altBg, align: "center" }), cellOpts("Heuristic in-silico perturbation; loses expression info", altBg) ],
196
+ [ cellOpts("CPA"), cellOpts("Specialized", { align: "center" }), cellOpts("Linear additivity assumption in latent space") ],
197
+ [ cellOpts("GEARS", altBg), cellOpts("Specialized", { ...altBg, align: "center" }), cellOpts("Static GO graph prior; deterministic prediction only", altBg) ],
198
+ [ cellOpts("scDFM", { bold: true }), cellOpts("Flow Matching", { align: "center" }), cellOpts("No GRN modeling; limited model capacity (d=128)") ]
199
+ ], {
200
+ x: 0.6, y: 1.1, w: 8.8,
201
+ colW: [1.8, 1.5, 5.5],
202
+ border: { pt: 0.5, color: "DDE1E6" },
203
+ rowH: [0.45, 0.42, 0.42, 0.42, 0.42, 0.42, 0.42]
204
+ });
205
+
206
+ s4.addText("scDFM (ICLR 2026) is closest to our work \u2014 we build upon its flow matching framework.", {
207
+ x: 0.6, y: 4.5, w: 8.8, h: 0.3,
208
+ fontSize: 11, fontFace: BF, color: TXT_MID, italic: true
209
+ });
210
+
211
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
212
+ // SLIDE 5: THE MISSING PIECE
213
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
214
+ let s5 = pres.addSlide();
215
+ headerBar(s5, "The Common Blind Spot");
216
+ slideNum(s5, 5);
217
+
218
+ sectionLabel(s5, "All existing methods share the same gap:");
219
+
220
+ // Existing approach block
221
+ card(s5, 0.6, 1.8, 8.8, 1.3, RED);
222
+ s5.addText("Existing Approach", {
223
+ x: 0.85, y: 1.9, w: 3.0, h: 0.3,
224
+ fontSize: 14, fontFace: HF, color: RED, bold: true, margin: 0
225
+ });
226
+ s5.addText("Perturbation \u2192 [ Black-Box Model ] \u2192 Expression Change", {
227
+ x: 0.85, y: 2.3, w: 8.2, h: 0.4,
228
+ fontSize: 16, fontFace: CF, color: TXT, margin: 0
229
+ });
230
+ s5.addText("No explicit modeling of gene regulatory network changes", {
231
+ x: 0.85, y: 2.7, w: 8.0, h: 0.3,
232
+ fontSize: 12, fontFace: BF, color: TXT_MID, italic: true, margin: 0
233
+ });
234
+
235
+ // Our approach block
236
+ card(s5, 0.6, 3.5, 8.8, 1.3, GREEN);
237
+ s5.addText("Our Approach", {
238
+ x: 0.85, y: 3.6, w: 3.0, h: 0.3,
239
+ fontSize: 14, fontFace: HF, color: GREEN, bold: true, margin: 0
240
+ });
241
+ s5.addText("Perturbation \u2192 GRN Rewiring \u2192 Expression Change", {
242
+ x: 0.85, y: 4.0, w: 8.2, h: 0.4,
243
+ fontSize: 16, fontFace: CF, color: TXT, margin: 0
244
+ });
245
+ s5.addText("Explicitly model how perturbation alters the gene regulatory network", {
246
+ x: 0.85, y: 4.4, w: 8.0, h: 0.3,
247
+ fontSize: 12, fontFace: BF, color: TXT_MID, italic: true, margin: 0
248
+ });
249
+
250
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
251
+ // SLIDE 6: THREE KEY MOTIVATIONS
252
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
253
+ let s6 = pres.addSlide();
254
+ headerBar(s6, "Three Key Motivations");
255
+ slideNum(s6, 6);
256
+
257
+ const motivations = [
258
+ {
259
+ num: "1", title: "Flow Matching for Unpaired Data",
260
+ bullets: [
261
+ "Learns probability transport: p(ctrl) \u2192 p(pert)",
262
+ "No cell-level pairing required",
263
+ "Generative output with uncertainty estimation"
264
+ ]
265
+ },
266
+ {
267
+ num: "2", title: "GRN Cascade Drives Expression Change",
268
+ bullets: [
269
+ "KO gene A \u2192 direct targets B,C,D change",
270
+ "Cascade propagates through regulatory network",
271
+ "Understanding GRN change = better prediction"
272
+ ]
273
+ },
274
+ {
275
+ num: "3", title: "scGPT Attention \u2248 Data-Driven GRN",
276
+ bullets: [
277
+ "Pretrained attention encodes gene-gene regulation",
278
+ "Context-dependent: varies with cell state",
279
+ "\u0394_attn captures GRN change from perturbation"
280
+ ]
281
+ }
282
+ ];
283
+
284
+ motivations.forEach((m, i) => {
285
+ const cy = 1.05 + i * 1.4;
286
+ card(s6, 0.6, cy, 8.8, 1.2, BLUE);
287
+ s6.addShape(pres.shapes.OVAL, {
288
+ x: 0.85, y: cy + 0.15, w: 0.5, h: 0.5,
289
+ fill: { color: NAVY }
290
+ });
291
+ s6.addText(m.num, {
292
+ x: 0.85, y: cy + 0.15, w: 0.5, h: 0.5,
293
+ fontSize: 18, fontFace: HF, color: WHITE, bold: true,
294
+ align: "center", valign: "middle", margin: 0
295
+ });
296
+ s6.addText(m.title, {
297
+ x: 1.55, y: cy + 0.1, w: 7.5, h: 0.35,
298
+ fontSize: 15, fontFace: HF, color: NAVY, bold: true, margin: 0
299
+ });
300
+ s6.addText(m.bullets.map((b, bi) => ({
301
+ text: b,
302
+ options: { bullet: true, breakLine: bi < m.bullets.length - 1 }
303
+ })), {
304
+ x: 1.55, y: cy + 0.5, w: 7.5, h: 0.65,
305
+ fontSize: 12, fontFace: BF, color: TXT_MID, paraSpaceAfter: 2
306
+ });
307
+ });
308
+
309
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
310
+ // SLIDE 7: METHOD OVERVIEW
311
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
312
+ let s7 = pres.addSlide();
313
+ headerBar(s7, "Method: Cascaded Flow Matching");
314
+ slideNum(s7, 7);
315
+
316
+ sectionLabel(s7, "Two-Stage Generation: \"Think First, Then Predict\"");
317
+
318
+ // Stage 1 box
319
+ card(s7, 0.6, 1.7, 4.1, 2.8, ORANGE);
320
+ s7.addText("Stage 1: GRN Latent Flow", {
321
+ x: 0.85, y: 1.8, w: 3.6, h: 0.35,
322
+ fontSize: 15, fontFace: HF, color: ORANGE, bold: true, margin: 0
323
+ });
324
+ s7.addText([
325
+ { text: "noise \u2192 GRN change features", options: { breakLine: true, bold: true } },
326
+ { text: "", options: { breakLine: true, fontSize: 6 } },
327
+ { text: "Understand how perturbation", options: { breakLine: true } },
328
+ { text: "rewires the regulatory network", options: { breakLine: true } },
329
+ { text: "", options: { breakLine: true, fontSize: 6 } },
330
+ { text: "Conditioned on:", options: { bold: true, breakLine: true } },
331
+ { text: " \u2022 control expression", options: { breakLine: true } },
332
+ { text: " \u2022 perturbed gene ID", options: {} }
333
+ ], {
334
+ x: 0.85, y: 2.25, w: 3.6, h: 2.0,
335
+ fontSize: 12, fontFace: BF, color: TXT
336
+ });
337
+
338
+ // Arrow
339
+ s7.addText("\u2192", {
340
+ x: 4.7, y: 2.7, w: 0.6, h: 0.5,
341
+ fontSize: 30, fontFace: BF, color: NAVY, align: "center", valign: "middle", bold: true
342
+ });
343
+
344
+ // Stage 2 box
345
+ card(s7, 5.3, 1.7, 4.1, 2.8, GREEN);
346
+ s7.addText("Stage 2: Expression Flow", {
347
+ x: 5.55, y: 1.8, w: 3.6, h: 0.35,
348
+ fontSize: 15, fontFace: HF, color: GREEN, bold: true, margin: 0
349
+ });
350
+ s7.addText([
351
+ { text: "noise \u2192 gene expression", options: { breakLine: true, bold: true } },
352
+ { text: "", options: { breakLine: true, fontSize: 6 } },
353
+ { text: "Predict expression changes", options: { breakLine: true } },
354
+ { text: "based on GRN understanding", options: { breakLine: true } },
355
+ { text: "", options: { breakLine: true, fontSize: 6 } },
356
+ { text: "Conditioned on:", options: { bold: true, breakLine: true } },
357
+ { text: " \u2022 Stage 1 GRN features", options: { breakLine: true } },
358
+ { text: " \u2022 control expression + pert ID", options: {} }
359
+ ], {
360
+ x: 5.55, y: 2.25, w: 3.6, h: 2.0,
361
+ fontSize: 12, fontFace: BF, color: TXT
362
+ });
363
+
364
+ // Bottom insight bar
365
+ s7.addShape(pres.shapes.RECTANGLE, {
366
+ x: 0.6, y: 4.7, w: 8.8, h: 0.5,
367
+ fill: { color: LT_BLUE }
368
+ });
369
+ s7.addText("Biological intuition: first understand GRN rewiring, then predict expression change", {
370
+ x: 0.8, y: 4.7, w: 8.4, h: 0.5,
371
+ fontSize: 13, fontFace: BF, color: NAVY, italic: true, valign: "middle"
372
+ });
373
+
374
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
375
+ // SLIDE 8: GRN FEATURE EXTRACTION
376
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
377
+ let s8 = pres.addSlide();
378
+ headerBar(s8, "GRN Feature: Attention-Delta Extraction");
379
+ slideNum(s8, 8);
380
+
381
+ sectionLabel(s8, "Using Frozen scGPT to Extract GRN Change Signal");
382
+
383
+ // Steps
384
+ const steps = [
385
+ "Feed control & perturbed expression\ninto frozen scGPT separately",
386
+ "Extract attention matrices:\nAttn(ctrl) and Attn(pert)",
387
+ "Compute delta:\n\u0394_attn = Attn(pert) \u2212 Attn(ctrl)",
388
+ "Project to features:\nz = \u0394_attn \u00D7 gene_embeddings"
389
+ ];
390
+ steps.forEach((desc, i) => {
391
+ const sy = 1.65 + i * 0.9;
392
+ s8.addShape(pres.shapes.OVAL, {
393
+ x: 0.7, y: sy + 0.05, w: 0.45, h: 0.45,
394
+ fill: { color: BLUE }
395
+ });
396
+ s8.addText(String(i + 1), {
397
+ x: 0.7, y: sy + 0.05, w: 0.45, h: 0.45,
398
+ fontSize: 16, fontFace: HF, color: WHITE, bold: true,
399
+ align: "center", valign: "middle", margin: 0
400
+ });
401
+ s8.addText(desc, {
402
+ x: 1.4, y: sy, w: 3.8, h: 0.6,
403
+ fontSize: 12, fontFace: BF, color: TXT, valign: "middle", margin: 0
404
+ });
405
+ if (i < steps.length - 1) {
406
+ s8.addShape(pres.shapes.LINE, {
407
+ x: 0.92, y: sy + 0.52, w: 0, h: 0.35,
408
+ line: { color: BLUE, width: 1.5, dashType: "dash" }
409
+ });
410
+ }
411
+ });
412
+
413
+ // Output card on right
414
+ card(s8, 5.6, 1.65, 3.8, 3.2, NAVY);
415
+ s8.addText("Output", {
416
+ x: 5.85, y: 1.75, w: 3.3, h: 0.3,
417
+ fontSize: 15, fontFace: HF, color: NAVY, bold: true, margin: 0
418
+ });
419
+ s8.addText([
420
+ { text: "Per-gene GRN change vector", options: { breakLine: true, bold: true } },
421
+ { text: "", options: { breakLine: true, fontSize: 6 } },
422
+ { text: "Shape: (B, G, 512)", options: { breakLine: true, fontFace: CF } },
423
+ { text: "", options: { breakLine: true, fontSize: 6 } },
424
+ { text: "Each gene gets a 512-d vector\nencoding: \"how did upstream\nregulatory relationships change\nfor this gene?\"", options: { color: TXT_MID } }
425
+ ], {
426
+ x: 5.85, y: 2.15, w: 3.3, h: 2.2,
427
+ fontSize: 12, fontFace: BF, color: TXT
428
+ });
429
+
430
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
431
+ // SLIDE 9: MODEL ARCHITECTURE
432
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
433
+ let s9 = pres.addSlide();
434
+ headerBar(s9, "Model Architecture");
435
+ slideNum(s9, 9);
436
+
437
+ // Expression Stream
438
+ card(s9, 0.6, 1.1, 4.1, 1.1, BLUE);
439
+ s9.addText("Expression Stream", {
440
+ x: 0.85, y: 1.15, w: 3.6, h: 0.3,
441
+ fontSize: 14, fontFace: HF, color: BLUE, bold: true, margin: 0
442
+ });
443
+ s9.addText("GeneEncoder + ValueEnc \u2192 expr_tokens (B,G,d)", {
444
+ x: 0.85, y: 1.5, w: 3.6, h: 0.4,
445
+ fontSize: 11, fontFace: CF, color: TXT, margin: 0
446
+ });
447
+
448
+ // Latent Stream
449
+ card(s9, 5.3, 1.1, 4.1, 1.1, ORANGE);
450
+ s9.addText("Latent Stream", {
451
+ x: 5.55, y: 1.15, w: 3.6, h: 0.3,
452
+ fontSize: 14, fontFace: HF, color: ORANGE, bold: true, margin: 0
453
+ });
454
+ s9.addText("LatentEmbedder \u2192 lat_tokens (B,G,d)", {
455
+ x: 5.55, y: 1.5, w: 3.6, h: 0.4,
456
+ fontSize: 11, fontFace: CF, color: TXT, margin: 0
457
+ });
458
+
459
+ // Merge
460
+ s9.addText("\u2295 Additive Fusion", {
461
+ x: 3.0, y: 2.35, w: 4.0, h: 0.35,
462
+ fontSize: 13, fontFace: BF, color: NAVY, bold: true, align: "center", margin: 0
463
+ });
464
+
465
+ // Down arrows
466
+ s9.addShape(pres.shapes.LINE, {
467
+ x: 2.5, y: 2.2, w: 0, h: 0.15,
468
+ line: { color: NAVY, width: 1.5 }
469
+ });
470
+ s9.addShape(pres.shapes.LINE, {
471
+ x: 7.5, y: 2.2, w: 0, h: 0.15,
472
+ line: { color: NAVY, width: 1.5 }
473
+ });
474
+
475
+ // Conditioning
476
+ card(s9, 2.0, 2.85, 6.0, 0.5, NAVY);
477
+ s9.addText("Conditioning: c = t_expr + t_latent + pert_embedding", {
478
+ x: 2.25, y: 2.9, w: 5.5, h: 0.4,
479
+ fontSize: 11, fontFace: CF, color: TXT, valign: "middle", margin: 0
480
+ });
481
+
482
+ // Down arrow to backbone
483
+ s9.addShape(pres.shapes.LINE, {
484
+ x: 5.0, y: 3.35, w: 0, h: 0.2,
485
+ line: { color: NAVY, width: 1.5 }
486
+ });
487
+
488
+ // Shared Backbone
489
+ s9.addShape(pres.shapes.RECTANGLE, {
490
+ x: 2.0, y: 3.6, w: 6.0, h: 0.65,
491
+ fill: { color: NAVY }
492
+ });
493
+ s9.addText("Shared Backbone: DiffPerceiverBlock \u00D7 4 (with Gene-AdaLN)", {
494
+ x: 2.0, y: 3.6, w: 6.0, h: 0.65,
495
+ fontSize: 13, fontFace: BF, color: WHITE, bold: true,
496
+ align: "center", valign: "middle"
497
+ });
498
+
499
+ // Down arrows to heads
500
+ s9.addShape(pres.shapes.LINE, {
501
+ x: 3.4, y: 4.25, w: 0, h: 0.2,
502
+ line: { color: NAVY, width: 1.5 }
503
+ });
504
+ s9.addShape(pres.shapes.LINE, {
505
+ x: 6.6, y: 4.25, w: 0, h: 0.2,
506
+ line: { color: NAVY, width: 1.5 }
507
+ });
508
+
509
+ // Dual heads
510
+ card(s9, 2.0, 4.5, 2.8, 0.65, BLUE);
511
+ s9.addText("Expression Head \u2192 v_expr (B,G)", {
512
+ x: 2.2, y: 4.55, w: 2.4, h: 0.45,
513
+ fontSize: 11, fontFace: CF, color: TXT, valign: "middle", margin: 0
514
+ });
515
+ card(s9, 5.2, 4.5, 2.8, 0.65, ORANGE);
516
+ s9.addText("Latent Head \u2192 v_latent (B,G,512)", {
517
+ x: 5.4, y: 4.55, w: 2.4, h: 0.45,
518
+ fontSize: 11, fontFace: CF, color: TXT, valign: "middle", margin: 0
519
+ });
520
+
521
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
522
+ // SLIDE 10: TRAINING & INFERENCE
523
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
524
+ let s10 = pres.addSlide();
525
+ headerBar(s10, "Cascaded Training & Inference");
526
+ slideNum(s10, 10);
527
+
528
+ // Left: Training
529
+ sectionLabel(s10, "Training: Probabilistic Switching", 0.6, 1.1, 4.2);
530
+ card(s10, 0.6, 1.55, 4.2, 1.4, BLUE);
531
+ s10.addText([
532
+ { text: "40%", options: { bold: true, fontSize: 20, color: ORANGE } },
533
+ { text: " Train Latent Flow only", options: { fontSize: 13 } }
534
+ ], {
535
+ x: 0.85, y: 1.65, w: 3.7, h: 0.45, fontFace: BF, color: TXT, valign: "middle", margin: 0
536
+ });
537
+ s10.addText("t\u2082 random, t\u2081 = 0, only loss_latent", {
538
+ x: 0.85, y: 2.05, w: 3.7, h: 0.25,
539
+ fontSize: 10, fontFace: CF, color: TXT_MID, margin: 0
540
+ });
541
+ s10.addText([
542
+ { text: "60%", options: { bold: true, fontSize: 20, color: GREEN } },
543
+ { text: " Train Expression Flow only", options: { fontSize: 13 } }
544
+ ], {
545
+ x: 0.85, y: 2.4, w: 3.7, h: 0.45, fontFace: BF, color: TXT, valign: "middle", margin: 0
546
+ });
547
+ s10.addText("t\u2081 random, t\u2082 \u2248 1, only loss_expr", {
548
+ x: 0.85, y: 2.7, w: 3.7, h: 0.25,
549
+ fontSize: 10, fontFace: CF, color: TXT_MID, margin: 0
550
+ });
551
+
552
+ // Right: Inference
553
+ sectionLabel(s10, "Inference: Sequential Two-Stage", 5.3, 1.1, 4.2);
554
+ card(s10, 5.3, 1.55, 4.2, 1.4, NAVY);
555
+ s10.addText([
556
+ { text: "Stage 1:", options: { bold: true, color: ORANGE, breakLine: true } },
557
+ { text: "z_noise \u2550\u2550(ODE)\u2550\u2550> z_clean (t\u2082: 0\u21921)", options: { fontFace: CF, fontSize: 11, breakLine: true } },
558
+ { text: "", options: { breakLine: true, fontSize: 4 } },
559
+ { text: "Stage 2:", options: { bold: true, color: GREEN, breakLine: true } },
560
+ { text: "x_noise \u2550\u2550(ODE)\u2550\u2550> x_pred (t\u2081: 0\u21921)", options: { fontFace: CF, fontSize: 11 } }
561
+ ], {
562
+ x: 5.55, y: 1.65, w: 3.7, h: 1.2,
563
+ fontSize: 12, fontFace: BF, color: TXT, margin: 0
564
+ });
565
+
566
+ // Biological analogy
567
+ sectionLabel(s10, "Biological Cascade Analogy", 0.6, 3.2, 8.8);
568
+ s10.addShape(pres.shapes.RECTANGLE, {
569
+ x: 0.6, y: 3.6, w: 8.8, h: 1.6,
570
+ fill: { color: LT_BLUE }
571
+ });
572
+ s10.addText([
573
+ { text: "CRISPR knock-out gene A", options: { bold: true, breakLine: true } },
574
+ { text: " \u2193 Gene A expression \u2192 0", options: { breakLine: true } },
575
+ { text: " \u2193 Direct targets B, C, D change (1st-order)", options: { breakLine: true } },
576
+ { text: " \u2193 B\u2019s targets E, F and C\u2019s targets G, H change (cascade)", options: { breakLine: true } },
577
+ { text: " \u2193 Thousands of genes altered across the transcriptome", options: {} }
578
+ ], {
579
+ x: 0.8, y: 3.65, w: 8.4, h: 1.5,
580
+ fontSize: 12, fontFace: CF, color: TXT
581
+ });
582
+
583
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
584
+ // SLIDE 11: CHALLENGE 1 - NOISY GRN SIGNAL
585
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
586
+ let s11 = pres.addSlide();
587
+ headerBar(s11, "Challenge 1: Noisy GRN Signal");
588
+ slideNum(s11, 11);
589
+
590
+ // Problem
591
+ sectionLabel(s11, "Problem: Noise Drowns True Signal", 0.6, 1.1, 4.2);
592
+ card(s11, 0.6, 1.55, 4.2, 1.8, RED);
593
+ s11.addText([
594
+ { text: "Attention matrix: 5000\u00D75000", options: { bold: true, breakLine: true } },
595
+ { text: "= 25,000,000 non-zero values", options: { breakLine: true } },
596
+ { text: "", options: { breakLine: true, fontSize: 6 } },
597
+ { text: "Real GRN: ~20\u201350 targets per gene", options: { breakLine: true } },
598
+ { text: "\u2192 99%+ attention values are noise", options: { bold: true, color: RED } }
599
+ ], {
600
+ x: 0.85, y: 1.65, w: 3.7, h: 1.4,
601
+ fontSize: 12, fontFace: BF, color: TXT
602
+ });
603
+ s11.addText("Evidence: latent loss \u2248 1.12 >> expr loss \u2248 0.019", {
604
+ x: 0.6, y: 3.5, w: 4.2, h: 0.25,
605
+ fontSize: 11, fontFace: BF, color: TXT_MID, italic: true
606
+ });
607
+
608
+ // Solution
609
+ sectionLabel(s11, "Solution: Sparse Top-K Filtering", 5.3, 1.1, 4.2);
610
+ card(s11, 5.3, 1.55, 4.2, 1.8, GREEN);
611
+ s11.addText([
612
+ { text: "Keep only top K=30 per gene", options: { bold: true, breakLine: true } },
613
+ { text: "(ranked by |\u0394_attn| magnitude)", options: { breakLine: true, color: TXT_MID } },
614
+ { text: "", options: { breakLine: true, fontSize: 6 } },
615
+ { text: "\u2192 Filters 99.4% noise", options: { bold: true, color: GREEN, breakLine: true } },
616
+ { text: "", options: { breakLine: true, fontSize: 6 } },
617
+ { text: "features = sparse_\u0394_topk \u00D7 gene_emb", options: { fontFace: CF, fontSize: 11 } }
618
+ ], {
619
+ x: 5.55, y: 1.65, w: 3.7, h: 1.4,
620
+ fontSize: 12, fontFace: BF, color: TXT
621
+ });
622
+ s11.addText("Status: implemented (sparse_topk_emb mode)", {
623
+ x: 5.3, y: 3.5, w: 4.2, h: 0.25,
624
+ fontSize: 11, fontFace: BF, color: GREEN, italic: true
625
+ });
626
+
627
+ // Before/after comparison bar
628
+ s11.addShape(pres.shapes.RECTANGLE, {
629
+ x: 0.6, y: 4.0, w: 8.8, h: 1.2,
630
+ fill: { color: BG_GRAY }
631
+ });
632
+ s11.addText([
633
+ { text: "Before: ", options: { bold: true } },
634
+ { text: "\u0394_attn (G\u00D7G) \u2192 25M values \u2192 noise dominates \u2192 loss ~1.12", options: { color: RED } }
635
+ ], {
636
+ x: 0.8, y: 4.1, w: 8.4, h: 0.35,
637
+ fontSize: 12, fontFace: BF, color: TXT
638
+ });
639
+ s11.addText([
640
+ { text: "After: ", options: { bold: true } },
641
+ { text: "sparse_\u0394_topk (G\u00D7K) \u2192 150K values \u2192 signal preserved \u2192 loss expected \u2193", options: { color: GREEN } }
642
+ ], {
643
+ x: 0.8, y: 4.55, w: 8.4, h: 0.35,
644
+ fontSize: 12, fontFace: BF, color: TXT
645
+ });
646
+
647
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
648
+ // SLIDE 12: CHALLENGE 2 - HIGH-DIM LATENT
649
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
650
+ let s12 = pres.addSlide();
651
+ headerBar(s12, "Challenge 2: High-Dimensional Latent");
652
+ slideNum(s12, 12);
653
+
654
+ // Problem
655
+ sectionLabel(s12, "Problem: High-Dim Latent Prediction", 0.6, 1.1, 4.2);
656
+ card(s12, 0.6, 1.55, 4.2, 1.8, RED);
657
+ s12.addText([
658
+ { text: "Each gene: 512-d GRN feature vector", options: { breakLine: true, bold: true } },
659
+ { text: "Total: G\u00D7512 = 2.5M-dim velocity field", options: { breakLine: true } },
660
+ { text: "", options: { breakLine: true, fontSize: 6 } },
661
+ { text: "Ablation experiment:", options: { bold: true, breakLine: true } },
662
+ { text: "512-d \u2192 1-d: loss drops 1.1 \u2192 0.5", options: { bold: true, color: RED } }
663
+ ], {
664
+ x: 0.85, y: 1.65, w: 3.7, h: 1.5,
665
+ fontSize: 12, fontFace: BF, color: TXT
666
+ });
667
+ s12.addText("Dimensionality is a major difficulty source", {
668
+ x: 0.6, y: 3.5, w: 4.2, h: 0.25,
669
+ fontSize: 11, fontFace: BF, color: TXT_MID, italic: true
670
+ });
671
+
672
+ // Solution
673
+ sectionLabel(s12, "Solution: PCA Compression", 5.3, 1.1, 4.2);
674
+ card(s12, 5.3, 1.55, 4.2, 1.8, GREEN);
675
+ s12.addText([
676
+ { text: "PCA on gene embeddings:", options: { bold: true, breakLine: true } },
677
+ { text: "512-d \u2192 64-d principal components", options: { breakLine: true } },
678
+ { text: "", options: { breakLine: true, fontSize: 6 } },
679
+ { text: "features = sparse_\u0394 \u00D7 pca_basis", options: { fontFace: CF, fontSize: 11, breakLine: true } },
680
+ { text: "Output: (B, G, 64)", options: { fontFace: CF, fontSize: 11 } }
681
+ ], {
682
+ x: 5.55, y: 1.65, w: 3.7, h: 1.5,
683
+ fontSize: 12, fontFace: BF, color: TXT
684
+ });
685
+ s12.addText("Status: implemented (sparse_pca mode)", {
686
+ x: 5.3, y: 3.5, w: 4.2, h: 0.25,
687
+ fontSize: 11, fontFace: BF, color: GREEN, italic: true
688
+ });
689
+
690
+ // Combined pipeline
691
+ s12.addShape(pres.shapes.RECTANGLE, {
692
+ x: 0.6, y: 4.0, w: 8.8, h: 1.2,
693
+ fill: { color: LT_BLUE }
694
+ });
695
+ s12.addText("Combined Pipeline", {
696
+ x: 0.8, y: 4.05, w: 8.4, h: 0.3,
697
+ fontSize: 14, fontFace: HF, color: NAVY, bold: true, margin: 0
698
+ });
699
+ s12.addText("\u0394_attn \u2192 Sparse Top-K (noise filter) \u2192 PCA 512\u219264 (dim reduction) \u2192 GRN features (B, G, 64)", {
700
+ x: 0.8, y: 4.45, w: 8.4, h: 0.5,
701
+ fontSize: 13, fontFace: CF, color: TXT, valign: "middle"
702
+ });
703
+
704
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
705
+ // SLIDE 13: SUMMARY & FUTURE WORK
706
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
707
+ let s13 = pres.addSlide();
708
+ headerBar(s13, "Summary & Future Work");
709
+ slideNum(s13, 13);
710
+
711
+ // Core Contribution
712
+ sectionLabel(s13, "Core Contribution", 0.6, 1.1);
713
+ s13.addText([
714
+ { text: "First explicit GRN modeling in perturbation prediction", options: { bullet: true, breakLine: true, bold: true } },
715
+ { text: "Cascaded flow matching: GRN first, expression second", options: { bullet: true, breakLine: true } },
716
+ { text: "Biologically grounded: perturbation cascades through GRN", options: { bullet: true } }
717
+ ], {
718
+ x: 0.6, y: 1.5, w: 8.8, h: 1.0,
719
+ fontSize: 13, fontFace: BF, color: TXT, paraSpaceAfter: 4
720
+ });
721
+
722
+ // Future experiment
723
+ sectionLabel(s13, "Key Future Experiment: Validate Causal Hypothesis", 0.6, 2.7);
724
+
725
+ const fHdr = (t) => ({ text: t, options: { bold: true, color: WHITE, fill: { color: NAVY }, fontSize: 11, fontFace: BF, align: "center" } });
726
+ const fCell = (t, opts) => ({ text: t, options: { fontSize: 11, fontFace: BF, ...opts } });
727
+ const fAlt = { fill: { color: "F8F9FA" } };
728
+
729
+ s13.addTable([
730
+ [ fHdr("Inference Order"), fHdr("Meaning"), fHdr("Expected") ],
731
+ [ fCell("GRN \u2192 Expression", { ...fAlt, bold: true }), fCell("Understand first, then predict", fAlt), fCell("Best", { ...fAlt, bold: true, color: GREEN, align: "center" }) ],
732
+ [ fCell("Expression \u2192 GRN"), fCell("Predict first, understand later"), fCell("Suboptimal", { color: ORANGE, align: "center" }) ],
733
+ [ fCell("Simultaneous", fAlt), fCell("No explicit order", fAlt), fCell("Worst", { ...fAlt, color: RED, align: "center" }) ]
734
+ ], {
735
+ x: 0.6, y: 3.15, w: 8.8,
736
+ colW: [2.5, 3.8, 2.5],
737
+ border: { pt: 0.5, color: "DDE1E6" },
738
+ rowH: [0.4, 0.4, 0.4, 0.4]
739
+ });
740
+
741
+ s13.addText("If \"GRN \u2192 Expression\" wins: GRN understanding is a prerequisite, not a byproduct.", {
742
+ x: 0.6, y: 4.8, w: 8.8, h: 0.4,
743
+ fontSize: 12, fontFace: BF, color: NAVY, bold: true, italic: true
744
+ });
745
+
746
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
747
+ // SLIDE 14: TAKE-HOME MESSAGE
748
+ // โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
749
+ let s14 = pres.addSlide();
750
+ s14.background = { color: NAVY };
751
+ s14.addShape(pres.shapes.RECTANGLE, {
752
+ x: 0, y: 0, w: 10, h: 0.06, fill: { color: BLUE }
753
+ });
754
+ s14.addText("Take-Home Message", {
755
+ x: 1, y: 1.0, w: 8, h: 0.6,
756
+ fontSize: 24, fontFace: HF, color: LT_BLUE, align: "center"
757
+ });
758
+ s14.addText([
759
+ { text: "We embed biological prior \u2014 perturbation cascades through GRN \u2014", options: { breakLine: true } },
760
+ { text: "into generative modeling via cascaded flow matching,", options: { breakLine: true } },
761
+ { text: "forcing the model to ", options: {} },
762
+ { text: "\"understand regulatory rewiring", options: { bold: true } },
763
+ { text: "", options: { breakLine: true } },
764
+ { text: "before predicting expression changes.\"", options: { bold: true } }
765
+ ], {
766
+ x: 1.0, y: 2.0, w: 8.0, h: 2.0,
767
+ fontSize: 18, fontFace: BF, color: WHITE, align: "center", valign: "middle",
768
+ paraSpaceAfter: 6
769
+ });
770
+ s14.addShape(pres.shapes.RECTANGLE, {
771
+ x: 3.8, y: 4.3, w: 2.4, h: 0.035, fill: { color: BLUE }
772
+ });
773
+ s14.addText("Thank You", {
774
+ x: 1, y: 4.5, w: 8, h: 0.5,
775
+ fontSize: 20, fontFace: HF, color: TXT_LT, align: "center"
776
+ });
777
+
778
+ // โ”€โ”€โ”€ WRITE โ”€โ”€โ”€
779
+ pres.writeFile({ fileName: "/home/hp250092/ku50001222/qian/aivc/lfj/Report/PPT2/GRN_CCFM_presentation.pptx" })
780
+ .then(() => console.log("SUCCESS: Presentation saved."))
781
+ .catch(err => console.error("ERROR:", err));
Report/PPT2/slide-01.jpg ADDED

Git LFS Details

  • SHA256: 8bb4b4674a586f1f296253d772a268de46bb2a69ea475f3abb0033d12e383af4
  • Pointer size: 130 Bytes
  • Size of remote file: 61 kB
Report/PPT2/slide-02.jpg ADDED

Git LFS Details

  • SHA256: 89597b14dce6384996d2c8fbcdd652743a1acd83577ab13e8b36c61a66b50675
  • Pointer size: 130 Bytes
  • Size of remote file: 85.9 kB
Report/PPT2/slide-03.jpg ADDED

Git LFS Details

  • SHA256: b6f213ffee8fa9b5d3b9758f7d5b477e18ce7b066a6bf714d6d6da0ec5050791
  • Pointer size: 130 Bytes
  • Size of remote file: 85.2 kB
Report/PPT2/slide-04.jpg ADDED

Git LFS Details

  • SHA256: 76fde572ded1d92d18d2659fe51828191bf78ff14380af4c46bfa166ca0a33ab
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
Report/PPT2/slide-05.jpg ADDED

Git LFS Details

  • SHA256: a8badccb4ebc96454320b1e9551842258d5339b4687a13b80546baf9693921c4
  • Pointer size: 130 Bytes
  • Size of remote file: 73.1 kB
Report/PPT2/slide-06.jpg ADDED

Git LFS Details

  • SHA256: edab95833bebbd6cfa57d78e8348ab1c791e6c603910da16592c89bd01d3f716
  • Pointer size: 130 Bytes
  • Size of remote file: 90 kB
Report/PPT2/slide-07.jpg ADDED

Git LFS Details

  • SHA256: d57994a64e2b2b2d5b31f2ae65f3a9e4bf8c04a97a8b7046bb83745e4ef8fac0
  • Pointer size: 130 Bytes
  • Size of remote file: 96.6 kB
Report/PPT2/slide-08.jpg ADDED

Git LFS Details

  • SHA256: 60ad2fd5c0f000e791edfea62429d0996eb384346cae953b442b9054b3b3fa83
  • Pointer size: 130 Bytes
  • Size of remote file: 85.8 kB
Report/PPT2/slide-09.jpg ADDED

Git LFS Details

  • SHA256: c348e7226dcd2b4a800b07d937b64b46ce62e9f7cbe42fa586fd71ca79e1f2b9
  • Pointer size: 130 Bytes
  • Size of remote file: 72 kB
Report/PPT2/slide-10.jpg ADDED

Git LFS Details

  • SHA256: f7db8ce9a24d198792fd769847dc5099e0651f3be7f347f3f8277c6ff43a98cf
  • Pointer size: 130 Bytes
  • Size of remote file: 98.8 kB
Report/PPT2/slide-11.jpg ADDED

Git LFS Details

  • SHA256: f01d32bfc3873b0674f03a474d134ceadc7f26f049ebeb70b1bfe8f070e233c7
  • Pointer size: 130 Bytes
  • Size of remote file: 92.2 kB
Report/PPT2/slide-12.jpg ADDED

Git LFS Details

  • SHA256: e756e4e94a6dba9bf4a6e945b0fd5731b08beb178423727167a798b432381fc0
  • Pointer size: 130 Bytes
  • Size of remote file: 94.8 kB
Report/PPT2/slide-13.jpg ADDED

Git LFS Details

  • SHA256: 5bcab6e1f84bf17855f975b2fdea7f08ff7b28de97cd8c58a36d967134c4a867
  • Pointer size: 130 Bytes
  • Size of remote file: 98.7 kB
Report/PPT2/slide-14.jpg ADDED

Git LFS Details

  • SHA256: 868969f09a899269c667c558182bcd148b2356641d18f743754c95c533f76fb4
  • Pointer size: 130 Bytes
  • Size of remote file: 66.5 kB
Report/build_pptx.js ADDED
@@ -0,0 +1,703 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const pptxgen = require("pptxgenjs");
2
+
3
+ const pres = new pptxgen();
4
+ pres.layout = "LAYOUT_16x9";
5
+ pres.author = "Qian";
6
+ pres.title = "GRN-Guided Cascaded Flow Matching";
7
+
8
+ // === Color Palette ===
9
+ const C = {
10
+ navy: "0B1D3A",
11
+ deepBlue: "0E3B5C",
12
+ teal: "0D7377",
13
+ seafoam: "14B8A6",
14
+ mint: "99F6E4", // brightened for dark bg readability
15
+ gold: "F59E0B",
16
+ orange: "F97316",
17
+ coral: "EF4444",
18
+ white: "FFFFFF",
19
+ offWhite: "F0F4F8",
20
+ lightGray: "E2E8F0",
21
+ midGray: "94A3B8",
22
+ darkGray: "334155",
23
+ textDark: "1E293B",
24
+ textMid: "475569",
25
+ accent1: "3B82F6", // blue for expression
26
+ accent2: "F59E0B", // gold for GRN/latent
27
+ accent3: "10B981", // green for bio
28
+ subtitleOnDark: "A7F3D0", // bright mint-green for subtitles on navy
29
+ };
30
+
31
+ const cardShadow = () => ({ type: "outer", blur: 4, offset: 2, angle: 135, color: "000000", opacity: 0.10 });
32
+
33
+ // Slide number โ€” placed safely out of content area
34
+ function addSlideNum(slide, num) {
35
+ slide.addText(String(num), {
36
+ x: 9.3, y: 5.2, w: 0.5, h: 0.3,
37
+ fontSize: 8, color: C.midGray, align: "right", fontFace: "Calibri",
38
+ });
39
+ }
40
+
41
+ // Section divider โ€” centered vertically, improved contrast
42
+ function addDividerSlide(title, subtitle, num) {
43
+ const s = pres.addSlide();
44
+ s.background = { color: C.navy };
45
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 2.0, w: 0.8, h: 0.06, fill: { color: C.seafoam } });
46
+ s.addText(title, {
47
+ x: 0.7, y: 2.2, w: 8.6, h: 1.0,
48
+ fontSize: 36, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
49
+ });
50
+ if (subtitle) {
51
+ s.addText(subtitle, {
52
+ x: 0.7, y: 3.3, w: 8.6, h: 0.6,
53
+ fontSize: 16, fontFace: "Calibri", color: C.subtitleOnDark, margin: 0,
54
+ });
55
+ }
56
+ addSlideNum(s, num);
57
+ return s;
58
+ }
59
+
60
+ // Content slide โ€” title with teal top bar
61
+ function addContentSlide(title, num) {
62
+ const s = pres.addSlide();
63
+ s.background = { color: C.offWhite };
64
+ s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.teal } });
65
+ s.addText(title, {
66
+ x: 0.6, y: 0.15, w: 8.8, h: 0.55,
67
+ fontSize: 22, fontFace: "Georgia", color: C.textDark, bold: true, margin: 0,
68
+ });
69
+ addSlideNum(s, num);
70
+ return s;
71
+ }
72
+
73
+ let slideNum = 0;
74
+
75
+ // ============================================================
76
+ // SLIDE 1: Title
77
+ // ============================================================
78
+ slideNum++;
79
+ {
80
+ const s = pres.addSlide();
81
+ s.background = { color: C.navy };
82
+ s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.seafoam } });
83
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 1.2, w: 1.2, h: 0.06, fill: { color: C.gold } });
84
+
85
+ s.addText("GRN-Guided\nCascaded Flow Matching\nfor Single-Cell Perturbation Prediction", {
86
+ x: 0.7, y: 1.4, w: 8.6, h: 2.2,
87
+ fontSize: 30, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
88
+ lineSpacingMultiple: 1.35,
89
+ });
90
+
91
+ s.addText("Gene Regulatory Network meets Flow Matching", {
92
+ x: 0.7, y: 3.75, w: 8.6, h: 0.4,
93
+ fontSize: 14, fontFace: "Calibri", color: C.subtitleOnDark, italic: true, margin: 0,
94
+ });
95
+
96
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 4.35, w: 2.5, h: 0.02, fill: { color: C.midGray } });
97
+
98
+ s.addText("Group Meeting | 2026.03", {
99
+ x: 0.7, y: 4.5, w: 8.6, h: 0.4,
100
+ fontSize: 12, fontFace: "Calibri", color: C.lightGray, margin: 0,
101
+ });
102
+ addSlideNum(s, slideNum);
103
+ }
104
+
105
+ // ============================================================
106
+ // SLIDE 2: Section โ€” Task
107
+ // ============================================================
108
+ slideNum++;
109
+ addDividerSlide("1. Task", "Single-Cell Perturbation Prediction", slideNum);
110
+
111
+ // ============================================================
112
+ // SLIDE 3: Virtual Cell + Perturbation Types
113
+ // ============================================================
114
+ slideNum++;
115
+ {
116
+ const s = addContentSlide("Virtual Cell & Perturbation Types", slideNum);
117
+
118
+ // Virtual Cell callout
119
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 4.2, h: 1.15, fill: { color: C.white }, shadow: cardShadow() });
120
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 0.07, h: 1.15, fill: { color: C.teal } });
121
+ s.addText([
122
+ { text: "Virtual Cell", options: { bold: true, fontSize: 13, color: C.teal, breakLine: true } },
123
+ { text: "AI model simulating real cell behavior: given genotype, environment, perturbation \u2192 predict molecular state changes. Perturbation prediction is its most critical subtask.", options: { fontSize: 10.5, color: C.textMid } },
124
+ ], { x: 0.75, y: 0.95, w: 3.8, h: 1.05, valign: "top", fontFace: "Calibri", margin: 0 });
125
+
126
+ // Three perturbation type cards (right)
127
+ const types = [
128
+ { title: "Drug Perturbation", desc: "Small molecules / drugs (L1000/LINCS)", color: C.accent1 },
129
+ { title: "Cytokine Perturbation", desc: "Cytokines (IL-6, TNF-a, IFN-g) signaling", color: C.accent3 },
130
+ { title: "Genetic Perturbation", desc: "CRISPR KO / CRISPRa OE / RNAi KD", color: C.accent2 },
131
+ ];
132
+ const cardX = 5.0, cardW = 4.5, cardH = 0.7;
133
+ types.forEach((t, i) => {
134
+ const yy = 0.9 + i * (cardH + 0.12);
135
+ s.addShape(pres.shapes.RECTANGLE, { x: cardX, y: yy, w: cardW, h: cardH, fill: { color: C.white }, shadow: cardShadow() });
136
+ s.addShape(pres.shapes.RECTANGLE, { x: cardX, y: yy, w: 0.07, h: cardH, fill: { color: t.color } });
137
+ s.addText(t.title, {
138
+ x: cardX + 0.2, y: yy + 0.05, w: 4.0, h: 0.28,
139
+ fontSize: 11.5, fontFace: "Calibri", bold: true, color: C.textDark, margin: 0,
140
+ });
141
+ s.addText(t.desc, {
142
+ x: cardX + 0.2, y: yy + 0.35, w: 4.0, h: 0.3,
143
+ fontSize: 9.5, fontFace: "Calibri", color: C.textMid, margin: 0,
144
+ });
145
+ });
146
+
147
+ // Focus banner
148
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.4, w: 9.0, h: 0.5, fill: { color: C.navy } });
149
+ s.addText("This work: genetic perturbation (Perturb-seq) = CRISPR perturbation + scRNA-seq readout", {
150
+ x: 0.7, y: 3.42, w: 8.6, h: 0.46,
151
+ fontSize: 11.5, fontFace: "Calibri", color: C.white, bold: true, margin: 0, valign: "middle",
152
+ });
153
+
154
+ // Task formalization
155
+ s.addText([
156
+ { text: "Task: ", options: { bold: true, color: C.teal, fontSize: 13 } },
157
+ { text: "x_ctrl + perturbation ID \u2192 predict x_pert (x \u2208 R^G, G \u2248 5000 HVG)", options: { color: C.textDark, fontSize: 12, fontFace: "Consolas" } },
158
+ ], { x: 0.5, y: 4.05, w: 9.0, h: 0.35, fontFace: "Calibri", margin: 0 });
159
+
160
+ // Key challenges
161
+ s.addText([
162
+ { text: "Drug screening acceleration | Combinatorial explosion: N genes \u2192 N(N-1)/2 combos | ", options: { fontSize: 10, color: C.textMid, breakLine: false } },
163
+ { text: "No paired data (destructive measurement)", options: { fontSize: 10, color: C.coral, bold: true } },
164
+ ], { x: 0.5, y: 4.45, w: 9.0, h: 0.35, fontFace: "Calibri", margin: 0 });
165
+ }
166
+
167
+ // ============================================================
168
+ // SLIDE 4: Section โ€” Existing Methods
169
+ // ============================================================
170
+ slideNum++;
171
+ addDividerSlide("2. Existing Methods", "And their common blind spot", slideNum);
172
+
173
+ // ============================================================
174
+ // SLIDE 5: Methods Overview Table
175
+ // ============================================================
176
+ slideNum++;
177
+ {
178
+ const s = addContentSlide("Existing Methods: Overview", slideNum);
179
+
180
+ const methods = [
181
+ { name: "Additive Shift", cat: "Baseline", approach: "Mean shift: x = x_ctrl + delta_mean", issue: "Ignores cell heterogeneity" },
182
+ { name: "scGPT", cat: "Foundation Model", approach: "Masked token completion (fine-tune)", issue: "Encodes absolute state, not change" },
183
+ { name: "Geneformer", cat: "Foundation Model", approach: "In-silico: delete gene token", issue: "Heuristic, no learned dynamics" },
184
+ { name: "CPA", cat: "Dedicated Model", approach: "VAE: basal + perturbation (additive)", issue: "Linear additivity too strong" },
185
+ { name: "GEARS", cat: "Dedicated Model", approach: "GNN on GO graph + cross-attention", issue: "Static prior graph, deterministic" },
186
+ { name: "STATE", cat: "Dedicated Model", approach: "Stacked attention on expression", issue: "Deterministic, no GRN modeling" },
187
+ { name: "CellFlow", cat: "Flow Matching", approach: "FM + pretrained embedding cond.", issue: "Embedding = absolute state" },
188
+ { name: "scDFM", cat: "Flow Matching", approach: "Conditional FM + DiffPerceiver", issue: "No GRN understanding" },
189
+ ];
190
+
191
+ const hY = 0.85;
192
+ const cols = [
193
+ { x: 0.5, w: 1.5, label: "Method" },
194
+ { x: 2.0, w: 1.5, label: "Category" },
195
+ { x: 3.5, w: 3.2, label: "Approach" },
196
+ { x: 6.7, w: 2.8, label: "Key Limitation" },
197
+ ];
198
+
199
+ // Header
200
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: hY, w: 9.0, h: 0.35, fill: { color: C.teal } });
201
+ cols.forEach(c => {
202
+ s.addText(c.label, {
203
+ x: c.x + 0.08, y: hY, w: c.w - 0.08, h: 0.35,
204
+ fontSize: 10, fontFace: "Calibri", bold: true, color: C.white, valign: "middle", margin: 0,
205
+ });
206
+ });
207
+
208
+ // Data rows
209
+ const rowH = 0.37;
210
+ methods.forEach((m, i) => {
211
+ const ry = hY + 0.35 + i * rowH;
212
+ const bgColor = i % 2 === 0 ? C.white : "F8FAFC";
213
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: ry, w: 9.0, h: rowH, fill: { color: bgColor } });
214
+ s.addText(m.name, {
215
+ x: cols[0].x + 0.08, y: ry, w: cols[0].w - 0.08, h: rowH,
216
+ fontSize: 9.5, fontFace: "Calibri", bold: true, color: C.textDark, valign: "middle", margin: 0,
217
+ });
218
+ s.addText(m.cat, {
219
+ x: cols[1].x + 0.08, y: ry, w: cols[1].w - 0.08, h: rowH,
220
+ fontSize: 9, fontFace: "Calibri", color: C.textMid, valign: "middle", margin: 0,
221
+ });
222
+ s.addText(m.approach, {
223
+ x: cols[2].x + 0.08, y: ry, w: cols[2].w - 0.08, h: rowH,
224
+ fontSize: 9, fontFace: "Calibri", color: C.textDark, valign: "middle", margin: 0,
225
+ });
226
+ s.addText(m.issue, {
227
+ x: cols[3].x + 0.08, y: ry, w: cols[3].w - 0.08, h: rowH,
228
+ fontSize: 9, fontFace: "Calibri", color: C.coral, bold: true, valign: "middle", margin: 0,
229
+ });
230
+ });
231
+
232
+ // Common blind spot callout
233
+ const bY = hY + 0.35 + methods.length * rowH + 0.3;
234
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: bY, w: 9.0, h: 0.7, fill: { color: C.navy } });
235
+ s.addText([
236
+ { text: "Common blind spot: ", options: { bold: true, color: C.gold, fontSize: 13 } },
237
+ { text: "Perturbation \u2192 [black box] \u2192 Expression change", options: { color: C.white, fontSize: 13, breakLine: true } },
238
+ { text: "No method explicitly models: Perturbation \u2192 GRN rewiring \u2192 Expression change", options: { color: C.subtitleOnDark, fontSize: 11 } },
239
+ ], { x: 0.7, y: bY + 0.03, w: 8.6, h: 0.65, fontFace: "Calibri", valign: "middle", margin: 0 });
240
+ }
241
+
242
+ // ============================================================
243
+ // SLIDE 6: Section โ€” Motivation
244
+ // ============================================================
245
+ slideNum++;
246
+ addDividerSlide("3. Motivation", "Why GRN + Flow Matching?", slideNum);
247
+
248
+ // ============================================================
249
+ // SLIDE 7: Motivation 1 โ€” Flow Matching
250
+ // ============================================================
251
+ slideNum++;
252
+ {
253
+ const s = addContentSlide("Motivation 1: Flow Matching for Unpaired Data", slideNum);
254
+
255
+ // Problem card (left)
256
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 4.2, h: 1.8, fill: { color: C.white }, shadow: cardShadow() });
257
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 0.07, h: 1.8, fill: { color: C.coral } });
258
+ s.addText([
259
+ { text: "The Pairing Problem", options: { bold: true, fontSize: 13, color: C.coral, breakLine: true } },
260
+ { text: "", options: { breakLine: true, fontSize: 5 } },
261
+ { text: "Perturbation is destructive:", options: { fontSize: 11, color: C.textDark, breakLine: true } },
262
+ { text: "One cell measured ONCE only", options: { fontSize: 11, color: C.textDark, breakLine: true } },
263
+ { text: "No (x_ctrl, x_pert) pairs available", options: { fontSize: 11, color: C.coral, bold: true, breakLine: true } },
264
+ { text: "", options: { breakLine: true, fontSize: 5 } },
265
+ { text: "Mean matching \u2192 loses heterogeneity", options: { bullet: true, fontSize: 10, color: C.textMid, breakLine: true } },
266
+ { text: "Autoencoder \u2192 limited reconstruction", options: { bullet: true, fontSize: 10, color: C.textMid } },
267
+ ], { x: 0.75, y: 0.95, w: 3.8, h: 1.7, fontFace: "Calibri", valign: "top", margin: 0 });
268
+
269
+ // Solution card (right)
270
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.0, y: 0.9, w: 4.5, h: 1.8, fill: { color: C.white }, shadow: cardShadow() });
271
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.0, y: 0.9, w: 0.07, h: 1.8, fill: { color: C.accent3 } });
272
+ s.addText([
273
+ { text: "Flow Matching Solution", options: { bold: true, fontSize: 13, color: C.accent3, breakLine: true } },
274
+ { text: "", options: { breakLine: true, fontSize: 5 } },
275
+ { text: "Learn probabilistic transport mapping\nbetween distributions (not individual cells)", options: { fontSize: 11, color: C.textDark, breakLine: true } },
276
+ { text: "", options: { breakLine: true, fontSize: 5 } },
277
+ { text: "Only needs population-level distributions", options: { bullet: true, fontSize: 10, color: C.textMid, breakLine: true } },
278
+ { text: "Conditional OT for efficient pairing", options: { bullet: true, fontSize: 10, color: C.textMid, breakLine: true } },
279
+ { text: "Generative output = uncertainty estimation", options: { bullet: true, fontSize: 10, color: C.textMid } },
280
+ ], { x: 5.25, y: 0.95, w: 4.1, h: 1.7, fontFace: "Calibri", valign: "top", margin: 0 });
281
+
282
+ // Flow diagram
283
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.0, w: 9.0, h: 1.6, fill: { color: C.white }, shadow: cardShadow() });
284
+
285
+ s.addShape(pres.shapes.OVAL, { x: 1.2, y: 3.25, w: 1.8, h: 1.1, fill: { color: "FEE2E2" } });
286
+ s.addText("noise x\u2080", { x: 1.2, y: 3.25, w: 1.8, h: 1.1, fontSize: 12, fontFace: "Calibri", color: C.coral, align: "center", valign: "middle", bold: true, margin: 0 });
287
+
288
+ s.addText("v\u03B8( x, t, ctrl, pert )", {
289
+ x: 3.2, y: 3.45, w: 3.6, h: 0.5,
290
+ fontSize: 14, fontFace: "Consolas", color: C.teal, align: "center", valign: "middle", bold: true, margin: 0,
291
+ });
292
+ s.addShape(pres.shapes.RECTANGLE, { x: 3.5, y: 3.95, w: 3.0, h: 0.04, fill: { color: C.teal } });
293
+ s.addText("learned velocity field (ODE)", {
294
+ x: 3.2, y: 4.0, w: 3.6, h: 0.3,
295
+ fontSize: 9, fontFace: "Calibri", color: C.textMid, align: "center", margin: 0,
296
+ });
297
+
298
+ s.addShape(pres.shapes.OVAL, { x: 7.0, y: 3.25, w: 1.8, h: 1.1, fill: { color: "D1FAE5" } });
299
+ s.addText("predicted\nx_pert", { x: 7.0, y: 3.25, w: 1.8, h: 1.1, fontSize: 12, fontFace: "Calibri", color: C.accent3, align: "center", valign: "middle", bold: true, margin: 0 });
300
+ }
301
+
302
+ // ============================================================
303
+ // SLIDE 8: Motivation 2 โ€” GRN Cascade
304
+ // ============================================================
305
+ slideNum++;
306
+ {
307
+ const s = addContentSlide("Motivation 2: Perturbation Propagates via GRN", slideNum);
308
+
309
+ // Cascade diagram (left)
310
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 5.5, h: 2.8, fill: { color: C.white }, shadow: cardShadow() });
311
+
312
+ const steps = [
313
+ { text: "CRISPR knock-out Gene A", color: C.coral, bold: true },
314
+ { text: "Gene A expression --> 0", color: C.coral, bold: false },
315
+ { text: "Direct targets B, C, D change (1st order)", color: C.accent2, bold: false },
316
+ { text: "B->E,F C->G,H D->I ... (cascade)", color: C.accent2, bold: false },
317
+ { text: "Thousands of genes ultimately affected", color: C.teal, bold: true },
318
+ ];
319
+ steps.forEach((st, i) => {
320
+ const yy = 1.05 + i * 0.45;
321
+ s.addText((i > 0 ? " | " : " ") + st.text, {
322
+ x: 0.8, y: yy, w: 5.0, h: 0.38,
323
+ fontSize: 11, fontFace: "Calibri", color: st.color, bold: st.bold, margin: 0,
324
+ });
325
+ });
326
+
327
+ s.addText("This cascade path = Gene Regulatory Network (GRN)", {
328
+ x: 0.8, y: 3.3, w: 5.0, h: 0.3,
329
+ fontSize: 11, fontFace: "Calibri", color: C.navy, bold: true, italic: true, margin: 0,
330
+ });
331
+
332
+ // Comparison cards (right)
333
+ s.addShape(pres.shapes.RECTANGLE, { x: 6.3, y: 0.9, w: 3.2, h: 1.2, fill: { color: "FEF3C7" }, shadow: cardShadow() });
334
+ s.addText([
335
+ { text: "Existing Methods", options: { bold: true, fontSize: 12, color: C.textDark, breakLine: true } },
336
+ { text: "", options: { breakLine: true, fontSize: 4 } },
337
+ { text: "Pert -> [black box] -> Expr", options: { fontSize: 11, fontFace: "Consolas", color: C.coral, breakLine: true } },
338
+ { text: "End-to-end, no GRN understanding", options: { fontSize: 10, color: C.textMid } },
339
+ ], { x: 6.5, y: 0.95, w: 2.9, h: 1.1, fontFace: "Calibri", valign: "top", margin: 0 });
340
+
341
+ s.addShape(pres.shapes.RECTANGLE, { x: 6.3, y: 2.3, w: 3.2, h: 1.4, fill: { color: "D1FAE5" }, shadow: cardShadow() });
342
+ s.addText([
343
+ { text: "Our Approach", options: { bold: true, fontSize: 12, color: C.textDark, breakLine: true } },
344
+ { text: "", options: { breakLine: true, fontSize: 4 } },
345
+ { text: "Pert -> GRN change -> Expr", options: { fontSize: 11, fontFace: "Consolas", color: C.accent3, breakLine: true } },
346
+ { text: "", options: { breakLine: true, fontSize: 4 } },
347
+ { text: "Explicitly model how perturbation rewires the regulatory network, then predict expression", options: { fontSize: 10, color: C.textDark } },
348
+ ], { x: 6.5, y: 2.35, w: 2.9, h: 1.3, fontFace: "Calibri", valign: "top", margin: 0 });
349
+
350
+ // Bottom insight
351
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 4.1, w: 9.0, h: 0.5, fill: { color: C.navy } });
352
+ s.addText("Understanding GRN changes is a prerequisite for accurate expression prediction", {
353
+ x: 0.7, y: 4.12, w: 8.6, h: 0.46,
354
+ fontSize: 12, fontFace: "Calibri", color: C.gold, bold: true, margin: 0, valign: "middle",
355
+ });
356
+ }
357
+
358
+ // ============================================================
359
+ // SLIDE 9: Motivation 3 โ€” scGPT Attention = GRN
360
+ // ============================================================
361
+ slideNum++;
362
+ {
363
+ const s = addContentSlide("Motivation 3: scGPT Attention = Data-Driven GRN", slideNum);
364
+
365
+ // Left: explanation
366
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 4.5, h: 2.1, fill: { color: C.white }, shadow: cardShadow() });
367
+ s.addText([
368
+ { text: "scGPT Transformer Attention", options: { bold: true, fontSize: 13, color: C.teal, breakLine: true } },
369
+ { text: "", options: { breakLine: true, fontSize: 5 } },
370
+ { text: "attn[i][j] high -> gene j influences gene i", options: { fontSize: 11, fontFace: "Consolas", color: C.textDark, breakLine: true } },
371
+ { text: "", options: { breakLine: true, fontSize: 5 } },
372
+ { text: "= Context-dependent, data-driven GRN", options: { fontSize: 12, color: C.navy, bold: true, breakLine: true } },
373
+ { text: "", options: { breakLine: true, fontSize: 5 } },
374
+ { text: "vs static GO graph:", options: { bold: true, fontSize: 10, color: C.textMid, breakLine: true } },
375
+ { text: "Changes with cell state (context-aware)", options: { bullet: true, fontSize: 10, color: C.textMid, breakLine: true } },
376
+ { text: "Learned from massive scRNA-seq data", options: { bullet: true, fontSize: 10, color: C.textMid, breakLine: true } },
377
+ { text: "Captures non-linear regulatory logic", options: { bullet: true, fontSize: 10, color: C.textMid } },
378
+ ], { x: 0.7, y: 0.95, w: 4.1, h: 2.0, fontFace: "Calibri", valign: "top", margin: 0 });
379
+
380
+ // Right: Attention-Delta
381
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.3, y: 0.9, w: 4.2, h: 2.1, fill: { color: C.white }, shadow: cardShadow() });
382
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.3, y: 0.9, w: 0.07, h: 2.1, fill: { color: C.gold } });
383
+ s.addText([
384
+ { text: "Attention-Delta", options: { bold: true, fontSize: 13, color: C.accent2, breakLine: true } },
385
+ { text: "", options: { breakLine: true, fontSize: 5 } },
386
+ { text: "Same frozen scGPT, two inputs:", options: { fontSize: 11, color: C.textDark, breakLine: true } },
387
+ { text: "attn_ctrl = scGPT(x_ctrl)", options: { fontSize: 10.5, fontFace: "Consolas", color: C.accent1, breakLine: true } },
388
+ { text: "attn_pert = scGPT(x_pert)", options: { fontSize: 10.5, fontFace: "Consolas", color: C.coral, breakLine: true } },
389
+ { text: "", options: { breakLine: true, fontSize: 4 } },
390
+ { text: "delta_attn = attn_pert - attn_ctrl", options: { fontSize: 11, fontFace: "Consolas", color: C.navy, bold: true, breakLine: true } },
391
+ { text: "", options: { breakLine: true, fontSize: 4 } },
392
+ { text: "Directly captures how perturbation\nrewires gene regulatory relationships", options: { fontSize: 10, color: C.textDark } },
393
+ ], { x: 5.55, y: 0.95, w: 3.8, h: 2.0, fontFace: "Calibri", valign: "top", margin: 0 });
394
+
395
+ // Bottom: GRN features formula
396
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.3, w: 9.0, h: 1.25, fill: { color: C.navy } });
397
+ s.addText([
398
+ { text: "GRN Change Features:", options: { bold: true, fontSize: 14, color: C.gold, breakLine: true } },
399
+ { text: "", options: { breakLine: true, fontSize: 4 } },
400
+ { text: "z = delta_attn x gene_embeddings", options: { fontSize: 17, fontFace: "Consolas", color: C.white, breakLine: true } },
401
+ { text: " (G x G) (G x 512) --> (G x 512)", options: { fontSize: 11, fontFace: "Consolas", color: C.subtitleOnDark } },
402
+ ], { x: 0.7, y: 3.35, w: 8.6, h: 1.15, fontFace: "Calibri", valign: "top", margin: 0 });
403
+ }
404
+
405
+ // ============================================================
406
+ // SLIDE 10: Section โ€” Our Method
407
+ // ============================================================
408
+ slideNum++;
409
+ addDividerSlide("4. Our Method", "GRN-Guided Cascaded Flow Matching", slideNum);
410
+
411
+ // ============================================================
412
+ // SLIDE 11: Two-Stage Cascaded FM
413
+ // ============================================================
414
+ slideNum++;
415
+ {
416
+ const s = addContentSlide("Two-Stage Cascaded Flow Matching", slideNum);
417
+
418
+ // Stage 1 card
419
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 4.0, h: 2.0, fill: { color: C.white }, shadow: cardShadow() });
420
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 0.07, h: 2.0, fill: { color: C.gold } });
421
+ s.addText([
422
+ { text: "Stage 1: GRN Latent Flow", options: { bold: true, fontSize: 13, color: C.accent2, breakLine: true } },
423
+ { text: "", options: { breakLine: true, fontSize: 6 } },
424
+ { text: "noise ==(ODE)==> GRN features", options: { fontSize: 12, fontFace: "Consolas", color: C.textDark, breakLine: true } },
425
+ { text: "", options: { breakLine: true, fontSize: 6 } },
426
+ { text: "\"Understand how gene regulation\n changes under perturbation\"", options: { fontSize: 11, color: C.accent2, italic: true, breakLine: true } },
427
+ { text: "", options: { breakLine: true, fontSize: 6 } },
428
+ { text: "t_latent: 0 -> 1", options: { fontSize: 10, fontFace: "Consolas", color: C.textMid, breakLine: true } },
429
+ { text: "t_expr = 0 (expression frozen)", options: { fontSize: 10, fontFace: "Consolas", color: C.textMid } },
430
+ ], { x: 0.75, y: 0.95, w: 3.6, h: 1.9, fontFace: "Calibri", valign: "top", margin: 0 });
431
+
432
+ // Arrow
433
+ s.addShape(pres.shapes.RECTANGLE, { x: 4.6, y: 1.75, w: 0.7, h: 0.04, fill: { color: C.teal } });
434
+ s.addText(">", { x: 5.0, y: 1.55, w: 0.5, h: 0.5, fontSize: 24, color: C.teal, align: "center", valign: "middle", fontFace: "Calibri", bold: true, margin: 0 });
435
+
436
+ // Stage 2 card
437
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.5, y: 0.9, w: 4.0, h: 2.0, fill: { color: C.white }, shadow: cardShadow() });
438
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.5, y: 0.9, w: 0.07, h: 2.0, fill: { color: C.accent1 } });
439
+ s.addText([
440
+ { text: "Stage 2: Expression Flow", options: { bold: true, fontSize: 13, color: C.accent1, breakLine: true } },
441
+ { text: "", options: { breakLine: true, fontSize: 6 } },
442
+ { text: "noise ==(ODE)==> expression", options: { fontSize: 12, fontFace: "Consolas", color: C.textDark, breakLine: true } },
443
+ { text: "", options: { breakLine: true, fontSize: 6 } },
444
+ { text: "\"Based on GRN understanding,\n predict gene expression changes\"", options: { fontSize: 11, color: C.accent1, italic: true, breakLine: true } },
445
+ { text: "", options: { breakLine: true, fontSize: 6 } },
446
+ { text: "t_expr: 0 -> 1", options: { fontSize: 10, fontFace: "Consolas", color: C.textMid, breakLine: true } },
447
+ { text: "t_latent = 1 (GRN complete)", options: { fontSize: 10, fontFace: "Consolas", color: C.textMid } },
448
+ ], { x: 5.75, y: 0.95, w: 3.6, h: 1.9, fontFace: "Calibri", valign: "top", margin: 0 });
449
+
450
+ // Bio intuition banner
451
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.15, w: 9.0, h: 0.55, fill: { color: C.navy } });
452
+ s.addText("Bio intuition: First understand HOW regulation changes, THEN predict WHAT expression changes", {
453
+ x: 0.7, y: 3.18, w: 8.6, h: 0.5,
454
+ fontSize: 12, fontFace: "Calibri", color: C.gold, bold: true, margin: 0, valign: "middle",
455
+ });
456
+
457
+ // Training note card
458
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.95, w: 9.0, h: 0.85, fill: { color: C.white }, shadow: cardShadow() });
459
+ s.addText([
460
+ { text: "Cascaded Training: ", options: { bold: true, fontSize: 12, color: C.teal } },
461
+ { text: "Probabilistic switching (not simultaneous)", options: { fontSize: 12, color: C.textDark, breakLine: true } },
462
+ { text: "", options: { breakLine: true, fontSize: 4 } },
463
+ { text: "40% Train Latent Flow: t_latent random, t_expr=0, loss_latent only", options: { fontSize: 10, fontFace: "Consolas", color: C.accent2, breakLine: true } },
464
+ { text: "60% Train Expr Flow: t_expr random, t_latent~1, loss_expr only", options: { fontSize: 10, fontFace: "Consolas", color: C.accent1 } },
465
+ ], { x: 0.7, y: 4.0, w: 8.6, h: 0.75, fontFace: "Calibri", valign: "top", margin: 0 });
466
+ }
467
+
468
+ // ============================================================
469
+ // SLIDE 12: Model Architecture
470
+ // ============================================================
471
+ slideNum++;
472
+ {
473
+ const s = addContentSlide("Model Architecture", slideNum);
474
+
475
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.85, w: 9.0, h: 4.2, fill: { color: C.white }, shadow: cardShadow() });
476
+
477
+ // --- Top: Two input streams ---
478
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.8, y: 1.0, w: 3.5, h: 0.6, fill: { color: "DBEAFE" } });
479
+ s.addText([
480
+ { text: "Expression Stream", options: { bold: true, fontSize: 11, color: C.accent1, breakLine: true } },
481
+ { text: "GeneEnc(id) + ValueEnc(x_t, x_ctrl) -> tokens", options: { fontSize: 8.5, fontFace: "Consolas", color: C.textMid } },
482
+ ], { x: 0.9, y: 1.03, w: 3.3, h: 0.55, fontFace: "Calibri", valign: "middle", margin: 0 });
483
+
484
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.7, y: 1.0, w: 3.5, h: 0.6, fill: { color: "FEF3C7" } });
485
+ s.addText([
486
+ { text: "Latent Stream (GRN)", options: { bold: true, fontSize: 11, color: C.accent2, breakLine: true } },
487
+ { text: "LatentEmbedder(z_t) -> tokens", options: { fontSize: 8.5, fontFace: "Consolas", color: C.textMid } },
488
+ ], { x: 5.8, y: 1.03, w: 3.3, h: 0.55, fontFace: "Calibri", valign: "middle", margin: 0 });
489
+
490
+ // Plus
491
+ s.addShape(pres.shapes.OVAL, { x: 4.5, y: 1.05, w: 0.5, h: 0.5, fill: { color: C.teal } });
492
+ s.addText("+", { x: 4.5, y: 1.05, w: 0.5, h: 0.5, fontSize: 20, color: C.white, align: "center", valign: "middle", bold: true, margin: 0 });
493
+
494
+ // Down arrow
495
+ s.addText("|", { x: 4.5, y: 1.6, w: 0.5, h: 0.3, fontSize: 14, color: C.teal, align: "center", valign: "middle", margin: 0 });
496
+ s.addText("V", { x: 4.5, y: 1.8, w: 0.5, h: 0.2, fontSize: 10, color: C.teal, align: "center", valign: "middle", margin: 0 });
497
+
498
+ // --- Shared Backbone ---
499
+ s.addShape(pres.shapes.RECTANGLE, { x: 1.5, y: 2.1, w: 3.8, h: 1.5, fill: { color: C.teal } });
500
+ s.addText([
501
+ { text: "Shared Backbone", options: { bold: true, fontSize: 13, color: C.white, breakLine: true } },
502
+ { text: "", options: { breakLine: true, fontSize: 3 } },
503
+ { text: "DiffPerceiverBlock x 4", options: { fontSize: 11, color: C.mint, breakLine: true } },
504
+ { text: "(GeneadaLN + Adapter + DiffAttn)", options: { fontSize: 9, color: C.mint, breakLine: true } },
505
+ { text: "d_model = 512", options: { fontSize: 10, fontFace: "Consolas", color: C.white } },
506
+ ], { x: 1.6, y: 2.15, w: 3.6, h: 1.4, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
507
+
508
+ // --- Conditioning box ---
509
+ s.addShape(pres.shapes.RECTANGLE, { x: 6.0, y: 2.1, w: 3.2, h: 0.55, fill: { color: "E0E7FF" } });
510
+ s.addText("c = t_expr + t_latent + pert_emb", {
511
+ x: 6.05, y: 2.1, w: 3.1, h: 0.55,
512
+ fontSize: 9, fontFace: "Consolas", color: C.accent1, valign: "middle", align: "center", margin: 0,
513
+ });
514
+ s.addText("Cond.", {
515
+ x: 5.35, y: 2.15, w: 0.6, h: 0.45,
516
+ fontSize: 8, fontFace: "Calibri", color: C.textMid, valign: "middle", align: "center", margin: 0,
517
+ });
518
+
519
+ // --- Frozen scGPT box ---
520
+ s.addShape(pres.shapes.RECTANGLE, { x: 6.0, y: 2.9, w: 3.2, h: 1.65, fill: { color: "F1F5F9" }, line: { color: C.midGray, width: 1, dashType: "dash" } });
521
+ s.addText([
522
+ { text: "Frozen scGPT", options: { bold: true, fontSize: 11, color: C.darkGray, breakLine: true } },
523
+ { text: "(no gradient)", options: { fontSize: 8, color: C.midGray, breakLine: true } },
524
+ { text: "", options: { breakLine: true, fontSize: 3 } },
525
+ { text: "x_ctrl, x_pert", options: { fontSize: 9, fontFace: "Consolas", color: C.accent1, breakLine: true } },
526
+ { text: " -> attention layer 11", options: { fontSize: 9, fontFace: "Consolas", color: C.midGray, breakLine: true } },
527
+ { text: "delta_attn x gene_emb", options: { fontSize: 9, fontFace: "Consolas", color: C.accent2, breakLine: true } },
528
+ { text: " -> z_target (B,G,512)", options: { fontSize: 9, fontFace: "Consolas", color: C.accent2 } },
529
+ ], { x: 6.1, y: 2.95, w: 3.0, h: 1.55, fontFace: "Calibri", valign: "top", margin: 0 });
530
+
531
+ // --- Two decoder heads ---
532
+ s.addShape(pres.shapes.RECTANGLE, { x: 1.5, y: 3.9, w: 1.7, h: 0.6, fill: { color: "DBEAFE" } });
533
+ s.addText([
534
+ { text: "Expr Head", options: { bold: true, fontSize: 10, color: C.accent1, breakLine: true } },
535
+ { text: "v_expr (B,G)", options: { fontSize: 9, fontFace: "Consolas", color: C.textMid } },
536
+ ], { x: 1.5, y: 3.93, w: 1.7, h: 0.55, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
537
+
538
+ s.addShape(pres.shapes.RECTANGLE, { x: 3.6, y: 3.9, w: 1.7, h: 0.6, fill: { color: "FEF3C7" } });
539
+ s.addText([
540
+ { text: "Latent Head", options: { bold: true, fontSize: 10, color: C.accent2, breakLine: true } },
541
+ { text: "v_latent (B,G,512)", options: { fontSize: 9, fontFace: "Consolas", color: C.textMid } },
542
+ ], { x: 3.6, y: 3.93, w: 1.7, h: 0.55, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
543
+ }
544
+
545
+ // ============================================================
546
+ // SLIDE 13: Section โ€” Challenges
547
+ // ============================================================
548
+ slideNum++;
549
+ addDividerSlide("5. Current Challenges", "And proposed solutions", slideNum);
550
+
551
+ // ============================================================
552
+ // SLIDE 14: Challenges + Solutions
553
+ // ============================================================
554
+ slideNum++;
555
+ {
556
+ const s = addContentSlide("Challenges & Solutions", slideNum);
557
+
558
+ // Challenge 1 (top-left)
559
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 4.3, h: 2.0, fill: { color: C.white }, shadow: cardShadow() });
560
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.9, w: 0.07, h: 2.0, fill: { color: C.coral } });
561
+ s.addText([
562
+ { text: "Challenge 1: Noise in Attention", options: { bold: true, fontSize: 12, color: C.coral, breakLine: true } },
563
+ { text: "", options: { breakLine: true, fontSize: 4 } },
564
+ { text: "Attention: 5000x5000 = 25M non-zero values", options: { fontSize: 10, color: C.textDark, breakLine: true } },
565
+ { text: "Real GRN: ~20-50 regulators per gene", options: { fontSize: 10, color: C.textDark, breakLine: true } },
566
+ { text: "99%+ values are noise!", options: { fontSize: 11, color: C.coral, bold: true, breakLine: true } },
567
+ { text: "", options: { breakLine: true, fontSize: 4 } },
568
+ { text: "Evidence: latent loss ~ 1.12", options: { fontSize: 10, color: C.textMid, breakLine: true } },
569
+ { text: " >> expr loss ~ 0.019", options: { fontSize: 10, color: C.textMid } },
570
+ ], { x: 0.75, y: 0.95, w: 3.9, h: 1.9, fontFace: "Calibri", valign: "top", margin: 0 });
571
+
572
+ // Solution 1 (top-right)
573
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 0.9, w: 4.3, h: 2.0, fill: { color: C.white }, shadow: cardShadow() });
574
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 0.9, w: 0.07, h: 2.0, fill: { color: C.accent3 } });
575
+ s.addText([
576
+ { text: "Solution: Sparse Top-K", options: { bold: true, fontSize: 12, color: C.accent3, breakLine: true } },
577
+ { text: "", options: { breakLine: true, fontSize: 4 } },
578
+ { text: "Per gene: keep only K=30 largest |delta|", options: { fontSize: 10, color: C.textDark, breakLine: true } },
579
+ { text: "", options: { breakLine: true, fontSize: 4 } },
580
+ { text: "delta_attn (GxG) 25M values", options: { fontSize: 9.5, fontFace: "Consolas", color: C.coral, breakLine: true } },
581
+ { text: " -> top-K sparsification", options: { fontSize: 9.5, fontFace: "Consolas", color: C.textMid, breakLine: true } },
582
+ { text: "sparse_delta (Gx30) filter 99.4%", options: { fontSize: 9.5, fontFace: "Consolas", color: C.accent3, breakLine: true } },
583
+ { text: " -> x gene_emb = (G,512)", options: { fontSize: 9.5, fontFace: "Consolas", color: C.accent3 } },
584
+ ], { x: 5.45, y: 0.95, w: 3.9, h: 1.9, fontFace: "Calibri", valign: "top", margin: 0 });
585
+
586
+ // Challenge 2 (bottom-left)
587
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.2, w: 4.3, h: 1.2, fill: { color: C.white }, shadow: cardShadow() });
588
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.2, w: 0.07, h: 1.2, fill: { color: C.coral } });
589
+ s.addText([
590
+ { text: "Challenge 2: 512-d Latent Too Hard", options: { bold: true, fontSize: 12, color: C.coral, breakLine: true } },
591
+ { text: "", options: { breakLine: true, fontSize: 4 } },
592
+ { text: "(G,512) = 2.5M-dim velocity field per step", options: { fontSize: 10, color: C.textDark, breakLine: true } },
593
+ { text: "Ablation: dim 512->1: loss 1.1 -> 0.5-0.7", options: { fontSize: 10, fontFace: "Consolas", color: C.textDark } },
594
+ ], { x: 0.75, y: 3.25, w: 3.9, h: 1.1, fontFace: "Calibri", valign: "top", margin: 0 });
595
+
596
+ // Solution 2 (bottom-right)
597
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 3.2, w: 4.3, h: 1.2, fill: { color: C.white }, shadow: cardShadow() });
598
+ s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 3.2, w: 0.07, h: 1.2, fill: { color: C.accent3 } });
599
+ s.addText([
600
+ { text: "Solution: PCA Reduction", options: { bold: true, fontSize: 12, color: C.accent3, breakLine: true } },
601
+ { text: "", options: { breakLine: true, fontSize: 4 } },
602
+ { text: "sparse_delta x pca_basis -> (G, 64)", options: { fontSize: 10, fontFace: "Consolas", color: C.textDark, breakLine: true } },
603
+ { text: "Keep principal directions, 8x reduction", options: { fontSize: 10, color: C.textMid } },
604
+ ], { x: 5.45, y: 3.25, w: 3.9, h: 1.1, fontFace: "Calibri", valign: "top", margin: 0 });
605
+ }
606
+
607
+ // ============================================================
608
+ // SLIDE 15: Section โ€” Summary
609
+ // ============================================================
610
+ slideNum++;
611
+ addDividerSlide("6. Summary & Future Work", "Validating the biological hypothesis", slideNum);
612
+
613
+ // ============================================================
614
+ // SLIDE 16: Summary + Future Experiment
615
+ // ============================================================
616
+ slideNum++;
617
+ {
618
+ const s = addContentSlide("Summary & Key Future Experiment", slideNum);
619
+
620
+ // Core contribution
621
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 0.85, w: 9.0, h: 0.9, fill: { color: C.navy } });
622
+ s.addText([
623
+ { text: "Core contribution: ", options: { bold: true, color: C.gold, fontSize: 12 } },
624
+ { text: "Not architectural improvement -- biological mechanism-driven modeling", options: { color: C.white, fontSize: 12, breakLine: true } },
625
+ { text: "", options: { breakLine: true, fontSize: 3 } },
626
+ { text: "Existing: Pert -> [black box] -> Expr ", options: { fontSize: 10, fontFace: "Consolas", color: C.midGray } },
627
+ { text: "Ours: Pert -> GRN rewiring -> Expr", options: { fontSize: 10, fontFace: "Consolas", color: C.subtitleOnDark } },
628
+ ], { x: 0.7, y: 0.88, w: 8.6, h: 0.85, fontFace: "Calibri", valign: "middle", margin: 0 });
629
+
630
+ // Future experiment
631
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 2.0, w: 9.0, h: 2.3, fill: { color: C.white }, shadow: cardShadow() });
632
+ s.addText([
633
+ { text: "Key Future Experiment: Does inference order matter?", options: { bold: true, fontSize: 14, color: C.teal, breakLine: true } },
634
+ { text: "", options: { breakLine: true, fontSize: 4 } },
635
+ { text: "Train with random t1, t2 (no cascade). Compare inference orders:", options: { fontSize: 11, color: C.textDark } },
636
+ ], { x: 0.7, y: 2.05, w: 8.6, h: 0.7, fontFace: "Calibri", valign: "top", margin: 0 });
637
+
638
+ const rows = [
639
+ { order: "GRN first -> Expr", meaning: "Understand regulation, then predict", expected: "Best", bg: "D1FAE5", color: C.accent3 },
640
+ { order: "Expr first -> GRN", meaning: "Predict first, understand after", expected: "Suboptimal", bg: "FEF3C7", color: C.accent2 },
641
+ { order: "Simultaneous", meaning: "No explicit order", expected: "Worst", bg: "FEE2E2", color: C.coral },
642
+ ];
643
+ rows.forEach((r, i) => {
644
+ const ry = 2.85 + i * 0.45;
645
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.8, y: ry, w: 8.4, h: 0.38, fill: { color: r.bg } });
646
+ s.addText(r.order, {
647
+ x: 0.9, y: ry, w: 2.8, h: 0.38,
648
+ fontSize: 11, fontFace: "Consolas", color: C.textDark, bold: true, valign: "middle", margin: 0,
649
+ });
650
+ s.addText(r.meaning, {
651
+ x: 3.8, y: ry, w: 3.2, h: 0.38,
652
+ fontSize: 10, fontFace: "Calibri", color: C.textMid, valign: "middle", margin: 0,
653
+ });
654
+ s.addText(r.expected, {
655
+ x: 7.2, y: ry, w: 1.8, h: 0.38,
656
+ fontSize: 12, fontFace: "Calibri", color: r.color, bold: true, valign: "middle", align: "center", margin: 0,
657
+ });
658
+ });
659
+
660
+ // Hypothesis
661
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 4.55, w: 9.0, h: 0.5, fill: { color: C.navy } });
662
+ s.addText([
663
+ { text: "Hypothesis: ", options: { bold: true, color: C.gold, fontSize: 12 } },
664
+ { text: "Understanding GRN changes is a prerequisite for expression prediction, not a byproduct.", options: { color: C.white, fontSize: 12 } },
665
+ ], { x: 0.7, y: 4.57, w: 8.6, h: 0.46, fontFace: "Calibri", valign: "middle", margin: 0 });
666
+ }
667
+
668
+ // ============================================================
669
+ // SLIDE 17: Closing
670
+ // ============================================================
671
+ slideNum++;
672
+ {
673
+ const s = pres.addSlide();
674
+ s.background = { color: C.navy };
675
+ s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.seafoam } });
676
+
677
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 1.5, w: 1.0, h: 0.06, fill: { color: C.gold } });
678
+
679
+ s.addText("Takeaway", {
680
+ x: 0.7, y: 1.7, w: 8.6, h: 0.5,
681
+ fontSize: 18, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
682
+ });
683
+
684
+ s.addText("Use scGPT attention-delta to explicitly extract perturbation-induced GRN changes, and through cascaded flow matching, force the model to \"first understand how GRN changes, then predict how expression changes\" -- embedding the biological prior that perturbation propagates through GRN into the generative model's inference process.", {
685
+ x: 0.7, y: 2.4, w: 8.6, h: 2.0,
686
+ fontSize: 16, fontFace: "Georgia", color: C.white, lineSpacingMultiple: 1.5, margin: 0,
687
+ });
688
+
689
+ s.addShape(pres.shapes.RECTANGLE, { x: 0.7, y: 4.6, w: 2.5, h: 0.02, fill: { color: C.midGray } });
690
+ s.addText("Thank you!", {
691
+ x: 0.7, y: 4.75, w: 8.6, h: 0.45,
692
+ fontSize: 16, fontFace: "Georgia", color: C.white, bold: true, margin: 0,
693
+ });
694
+ addSlideNum(s, slideNum);
695
+ }
696
+
697
+ // === Save ===
698
+ const outPath = "/home/hp250092/ku50001222/qian/aivc/lfj/Report/GRN_CCFM_group_meeting.pptx";
699
+ pres.writeFile({ fileName: outPath }).then(() => {
700
+ console.log("Saved to: " + outPath);
701
+ }).catch(err => {
702
+ console.error("Error:", err);
703
+ });
Report/week10/GRN_Progress_Report.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c202c96142417b70f03e2f2df5df8756e82b87b20cdc5cc260442d0b3973d425
3
+ size 228576
Report/week10/GRN_Progress_Report.pptx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:784e7892790d73089573d185c67036ff63ed5cf9ee786620e169ad5d39ab8bba
3
+ size 668124
Report/week10/gen_pptx.js ADDED
@@ -0,0 +1,874 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const pptxgen = require("pptxgenjs");
2
+
3
+ const pres = new pptxgen();
4
+ pres.layout = "LAYOUT_16x9";
5
+ pres.author = "Qian";
6
+ pres.title = "GRN-Guided Perturbation Prediction";
7
+
8
+ // โ”€โ”€ Design Tokens โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
9
+ const C = {
10
+ primary: "990011", // cherry red
11
+ primaryLt: "B8001A", // lighter red
12
+ accent: "2F3C7E", // navy accent
13
+ dark: "1A1A2E", // near-black for title slides
14
+ white: "FFFFFF",
15
+ offWhite: "FCF6F5",
16
+ lightGray: "F5F0EE",
17
+ midGray: "AAAAAA",
18
+ darkText: "2D2D2D",
19
+ bodyText: "3A3A3A",
20
+ tableHead: "990011",
21
+ tableAlt: "FDF2F2",
22
+ green: "2E7D32",
23
+ red: "C62828",
24
+ };
25
+ const FONT_H = "Georgia";
26
+ const FONT_B = "Calibri";
27
+
28
+ // โ”€โ”€ Helper: section divider bar (top) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
29
+ function addTopBar(slide) {
30
+ slide.addShape(pres.shapes.RECTANGLE, {
31
+ x: 0, y: 0, w: 10, h: 0.06,
32
+ fill: { color: C.primary },
33
+ });
34
+ }
35
+
36
+ // โ”€โ”€ Helper: slide number โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
37
+ function addSlideNum(slide, num) {
38
+ slide.addText(String(num), {
39
+ x: 9.2, y: 5.15, w: 0.6, h: 0.35,
40
+ fontSize: 10, fontFace: FONT_B, color: C.midGray, align: "right",
41
+ });
42
+ }
43
+
44
+ // โ”€โ”€ Helper: content slide title โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
45
+ function addTitle(slide, title, num) {
46
+ addTopBar(slide);
47
+ slide.addText(title, {
48
+ x: 0.6, y: 0.25, w: 8.8, h: 0.55,
49
+ fontSize: 28, fontFace: FONT_H, color: C.primary, bold: true, margin: 0,
50
+ });
51
+ // thin separator
52
+ slide.addShape(pres.shapes.LINE, {
53
+ x: 0.6, y: 0.85, w: 8.8, h: 0,
54
+ line: { color: C.primary, width: 1.2 },
55
+ });
56
+ addSlideNum(slide, num);
57
+ }
58
+
59
+ // โ”€โ”€ Helper: bullet list โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
60
+ function bullets(items, opts = {}) {
61
+ return items.map((t, i) => ({
62
+ text: typeof t === "string" ? t : t.text,
63
+ options: {
64
+ bullet: { code: "2022" },
65
+ breakLine: i < items.length - 1,
66
+ fontSize: opts.fontSize || 14,
67
+ fontFace: FONT_B,
68
+ color: opts.color || C.bodyText,
69
+ bold: (typeof t === "object" && t.bold) || false,
70
+ indentLevel: (typeof t === "object" && t.indent) || 0,
71
+ paraSpaceAfter: 6,
72
+ },
73
+ }));
74
+ }
75
+
76
+ // โ”€โ”€ Helper: table with standard styling โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
77
+ function styledTable(headerRow, dataRows, opts = {}) {
78
+ const hdrCells = headerRow.map((h) => ({
79
+ text: h, options: {
80
+ bold: true, color: C.white, fill: { color: C.tableHead },
81
+ fontSize: 11, fontFace: FONT_B, align: "center", valign: "middle",
82
+ },
83
+ }));
84
+ const bodyRows = dataRows.map((row, ri) =>
85
+ row.map((cell) => {
86
+ const isObj = typeof cell === "object" && cell !== null;
87
+ return {
88
+ text: isObj ? cell.text : String(cell),
89
+ options: {
90
+ fontSize: 11, fontFace: FONT_B, color: C.darkText,
91
+ fill: { color: ri % 2 === 0 ? C.white : C.tableAlt },
92
+ align: isObj && cell.align ? cell.align : "center",
93
+ valign: "middle",
94
+ bold: isObj && cell.bold ? true : false,
95
+ },
96
+ };
97
+ })
98
+ );
99
+ return { rows: [hdrCells, ...bodyRows], opts };
100
+ }
101
+
102
+ // ====================================================================
103
+ // SLIDE 1 โ€” Title
104
+ // ====================================================================
105
+ {
106
+ const s = pres.addSlide();
107
+ s.background = { color: C.dark };
108
+ // accent bar left
109
+ s.addShape(pres.shapes.RECTANGLE, {
110
+ x: 0, y: 0, w: 0.12, h: 5.625, fill: { color: C.primary },
111
+ });
112
+ s.addText("GRN-Guided Perturbation Prediction", {
113
+ x: 0.7, y: 1.2, w: 8.6, h: 1.2,
114
+ fontSize: 36, fontFace: FONT_H, color: C.white, bold: true, margin: 0,
115
+ });
116
+ s.addText("From Cascaded Flow Matching to RegFM", {
117
+ x: 0.7, y: 2.4, w: 8.6, h: 0.6,
118
+ fontSize: 20, fontFace: FONT_B, color: C.primaryLt, margin: 0,
119
+ });
120
+ s.addShape(pres.shapes.LINE, {
121
+ x: 0.7, y: 3.2, w: 3, h: 0,
122
+ line: { color: C.primary, width: 2 },
123
+ });
124
+ s.addText("Weekly Research Progress Report | 2026-03-29", {
125
+ x: 0.7, y: 3.5, w: 8.6, h: 0.4,
126
+ fontSize: 14, fontFace: FONT_B, color: "CCCCCC", margin: 0,
127
+ });
128
+ }
129
+
130
+ // ====================================================================
131
+ // SLIDE 2 โ€” Task Overview
132
+ // ====================================================================
133
+ {
134
+ const s = pres.addSlide();
135
+ s.background = { color: C.white };
136
+ addTitle(s, "Task: Single-Cell Perturbation Prediction", 2);
137
+
138
+ // Left column โ€” description
139
+ s.addText(bullets([
140
+ "Input: control expression + perturbed gene(s)",
141
+ "Output: post-perturbation expression",
142
+ "No cell-level pairing (destructive assay)",
143
+ "Eval: DE overlap, Pearson, MSE, etc.",
144
+ ]), { x: 0.6, y: 1.15, w: 4.5, h: 2.2 });
145
+
146
+ // Right column โ€” dataset card
147
+ s.addShape(pres.shapes.RECTANGLE, {
148
+ x: 5.5, y: 1.15, w: 4.0, h: 2.3,
149
+ fill: { color: C.lightGray },
150
+ });
151
+ s.addShape(pres.shapes.RECTANGLE, {
152
+ x: 5.5, y: 1.15, w: 4.0, h: 0.4,
153
+ fill: { color: C.primary },
154
+ });
155
+ s.addText("Norman Dataset", {
156
+ x: 5.5, y: 1.15, w: 4.0, h: 0.4,
157
+ fontSize: 13, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
158
+ });
159
+ s.addText(bullets([
160
+ "~9,000 cells x 5,000 HVG",
161
+ "105 CRISPR perturbations (KO + OE)",
162
+ "39 held-out test perturbations",
163
+ "Fold-1 split (additive)",
164
+ ], { fontSize: 12 }), { x: 5.7, y: 1.65, w: 3.6, h: 1.7 });
165
+
166
+ // Formalization box
167
+ s.addShape(pres.shapes.RECTANGLE, {
168
+ x: 0.6, y: 3.7, w: 8.8, h: 1.4,
169
+ fill: { color: C.offWhite },
170
+ });
171
+ s.addShape(pres.shapes.RECTANGLE, {
172
+ x: 0.6, y: 3.7, w: 0.08, h: 1.4,
173
+ fill: { color: C.primary },
174
+ });
175
+ s.addText([
176
+ { text: "Formal Definition", options: { bold: true, fontSize: 14, fontFace: FONT_H, color: C.primary, breakLine: true, paraSpaceAfter: 4 } },
177
+ { text: "Given: x_ctrl in R^G (control expression), p in {gene_1, gene_2} (perturbation)", options: { fontSize: 12, fontFace: FONT_B, color: C.bodyText, breakLine: true, paraSpaceAfter: 2 } },
178
+ { text: "Predict: x_pert in R^G (post-perturbation expression)", options: { fontSize: 12, fontFace: FONT_B, color: C.bodyText } },
179
+ ], { x: 0.9, y: 3.8, w: 8.3, h: 1.2 });
180
+ }
181
+
182
+ // ====================================================================
183
+ // SLIDE 3 โ€” Baseline: scDFM
184
+ // ====================================================================
185
+ {
186
+ const s = pres.addSlide();
187
+ s.background = { color: C.white };
188
+ addTitle(s, "Baseline: scDFM (Flow Matching)", 3);
189
+
190
+ s.addText(bullets([
191
+ "Learns velocity field v(x, t) via flow matching",
192
+ "Transports control distribution to perturbed",
193
+ "DiffPerceiverBlock backbone (d=128, 4 layers)",
194
+ "ODE solver: RK4, 20 steps",
195
+ ]), { x: 0.6, y: 1.15, w: 5.0, h: 2.0 });
196
+
197
+ // Metrics callout cards
198
+ const metrics = [
199
+ { label: "Pearson Delta", value: "0.866" },
200
+ { label: "MSE", value: "0.0032" },
201
+ { label: "DE Direction", value: "93.7%" },
202
+ { label: "Discrimination", value: "0.980" },
203
+ ];
204
+ metrics.forEach((m, i) => {
205
+ const mx = 0.6 + i * 2.3;
206
+ s.addShape(pres.shapes.RECTANGLE, {
207
+ x: mx, y: 2.9, w: 2.1, h: 1.5,
208
+ fill: { color: C.offWhite },
209
+ });
210
+ s.addShape(pres.shapes.RECTANGLE, {
211
+ x: mx, y: 2.9, w: 2.1, h: 0.06,
212
+ fill: { color: C.primary },
213
+ });
214
+ s.addText(m.value, {
215
+ x: mx, y: 3.1, w: 2.1, h: 0.6,
216
+ fontSize: 26, fontFace: FONT_H, color: C.primary, bold: true, align: "center", margin: 0,
217
+ });
218
+ s.addText(m.label, {
219
+ x: mx, y: 3.7, w: 2.1, h: 0.4,
220
+ fontSize: 12, fontFace: FONT_B, color: "777777", align: "center", margin: 0,
221
+ });
222
+ });
223
+
224
+ // Limitation note
225
+ s.addText([
226
+ { text: "Limitation: ", options: { bold: true, fontSize: 13, color: C.red } },
227
+ { text: "Genes treated as unstructured vector; no GRN modeling", options: { fontSize: 13, color: C.bodyText } },
228
+ ], { x: 0.6, y: 4.7, w: 8.8, h: 0.3, fontFace: FONT_B });
229
+ }
230
+
231
+ // ====================================================================
232
+ // SLIDE 4 โ€” GRN-CCFM: Cascaded Approach
233
+ // ====================================================================
234
+ {
235
+ const s = pres.addSlide();
236
+ s.background = { color: C.white };
237
+ addTitle(s, "GRN-CCFM: Cascaded Approach", 4);
238
+
239
+ // Core idea
240
+ s.addText([
241
+ { text: "Core Idea", options: { bold: true, fontSize: 16, fontFace: FONT_H, color: C.primary, breakLine: true, paraSpaceAfter: 6 } },
242
+ { text: "Extract Attention-Delta from scGPT to capture GRN change, then use LatentForcing cascade to jointly generate GRN features and gene expression.", options: { fontSize: 13, fontFace: FONT_B, color: C.bodyText } },
243
+ ], { x: 0.6, y: 1.15, w: 8.8, h: 1.0 });
244
+
245
+ // Three pillars
246
+ const pillars = [
247
+ { title: "Attention-Delta", items: ["delta_attn = attn_tgt - attn_ctrl", "Captures regulatory change", "Sparse G x G matrix (~0.6%)"] },
248
+ { title: "Cascaded Training", items: ["40% steps: latent flow only", "60% steps: expression flow only", "Two-stage ODE at inference"] },
249
+ { title: "Architecture Fix", items: ["d_model: 128 -> 512", "Missing gene mask (7 sites)", "scGPT vocab alignment"] },
250
+ ];
251
+ pillars.forEach((p, i) => {
252
+ const px = 0.6 + i * 3.1;
253
+ s.addShape(pres.shapes.RECTANGLE, {
254
+ x: px, y: 2.4, w: 2.8, h: 2.8,
255
+ fill: { color: C.offWhite },
256
+ });
257
+ s.addShape(pres.shapes.RECTANGLE, {
258
+ x: px, y: 2.4, w: 2.8, h: 0.45,
259
+ fill: { color: C.primary },
260
+ });
261
+ s.addText(p.title, {
262
+ x: px, y: 2.4, w: 2.8, h: 0.45,
263
+ fontSize: 13, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
264
+ });
265
+ s.addText(bullets(p.items, { fontSize: 11 }), {
266
+ x: px + 0.15, y: 3.0, w: 2.5, h: 2.0,
267
+ });
268
+ });
269
+ }
270
+
271
+ // ====================================================================
272
+ // SLIDE 5 โ€” Cascaded Variants Overview
273
+ // ====================================================================
274
+ {
275
+ const s = pres.addSlide();
276
+ s.background = { color: C.white };
277
+ addTitle(s, "Cascaded Variants: Design Space", 5);
278
+
279
+ const tbl = styledTable(
280
+ ["Variant", "Latent Dim", "Agg. Method", "delta_topk", "Key Idea"],
281
+ [
282
+ ["grn_att_only", "128 (bilinear)", "Bilinear head", "30", "Attention only, no SVD"],
283
+ ["grn_svd", "128", "SVD dictionary", "30", "Fixed SVD basis"],
284
+ ["grn_svd_cross", "128", "SVD + cross-attn", "30", "Learnable SVD queries"],
285
+ ["grn_dense4", "4", "Multi-stats", "30", "Low-dim dense features"],
286
+ ["grn_scalar", "1", "signed_L2 + norm", "100", "Scalar latent per gene"],
287
+ ["dim1_ablation", "1", "Slice scGPT[0]", "30", "Ablation: 512d -> 1d"],
288
+ ]
289
+ );
290
+ s.addTable(tbl.rows, {
291
+ x: 0.5, y: 1.15, w: 9.0,
292
+ border: { pt: 0.5, color: "DDDDDD" },
293
+ colW: [1.5, 1.3, 1.5, 1.0, 3.7],
294
+ rowH: [0.38, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35],
295
+ autoPage: false,
296
+ });
297
+
298
+ // Shared config note
299
+ s.addShape(pres.shapes.RECTANGLE, {
300
+ x: 0.5, y: 3.85, w: 9.0, h: 1.3,
301
+ fill: { color: C.offWhite },
302
+ });
303
+ s.addShape(pres.shapes.RECTANGLE, {
304
+ x: 0.5, y: 3.85, w: 0.08, h: 1.3,
305
+ fill: { color: C.accent },
306
+ });
307
+ s.addText([
308
+ { text: "Shared Config", options: { bold: true, fontSize: 13, fontFace: FONT_H, color: C.accent, breakLine: true, paraSpaceAfter: 4 } },
309
+ ], { x: 0.8, y: 3.95, w: 8.5, h: 0.3 });
310
+ s.addText(bullets([
311
+ "d_model=128, nlayers=4, nhead=8, lr=5e-5, EMA=0.9999",
312
+ "Cascaded: choose_latent_p=0.4, latent_weight=1.0",
313
+ "Inference: RK4 ODE, 20 steps each stage",
314
+ ], { fontSize: 11 }), { x: 0.8, y: 4.25, w: 8.5, h: 0.8 });
315
+ }
316
+
317
+ // ====================================================================
318
+ // SLIDE 6 โ€” Cascaded Results
319
+ // ====================================================================
320
+ {
321
+ const s = pres.addSlide();
322
+ s.background = { color: C.white };
323
+ addTitle(s, "Cascaded Results: Evaluation Metrics", 6);
324
+
325
+ const tbl = styledTable(
326
+ ["Model", "Pearson Delta", "MSE", "DE Direction", "Discrim."],
327
+ [
328
+ [{ text: "scDFM Baseline", bold: true }, { text: "0.866", bold: true }, { text: "0.0032", bold: true }, { text: "0.937", bold: true }, { text: "0.980", bold: true }],
329
+ [{ text: "dim1_ablation", bold: true }, { text: "0.752", bold: true }, "0.0059", "0.878", "0.914"],
330
+ ["grn_dense4", "0.122", "0.020", "0.780", "0.521"],
331
+ ["grn_scalar (dtk100)", "0.087", "0.021", "0.793", "0.534"],
332
+ ["grn_scalar (bs48)", "0.068", "0.026", "0.771", "0.533"],
333
+ ["grn_att_only", "-0.097", "0.602", "0.747", "0.552"],
334
+ ["grn_svd / svd_cross", "-0.096", "0.575", "0.746", "0.492"],
335
+ ]
336
+ );
337
+ s.addTable(tbl.rows, {
338
+ x: 0.5, y: 1.15, w: 9.0,
339
+ border: { pt: 0.5, color: "DDDDDD" },
340
+ colW: [2.2, 1.7, 1.3, 1.6, 1.4],
341
+ rowH: [0.4, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36, 0.36],
342
+ autoPage: false,
343
+ });
344
+
345
+ // Insight box
346
+ s.addShape(pres.shapes.RECTANGLE, {
347
+ x: 0.5, y: 4.2, w: 9.0, h: 1.05,
348
+ fill: { color: "FFF5F5" },
349
+ });
350
+ s.addShape(pres.shapes.RECTANGLE, {
351
+ x: 0.5, y: 4.2, w: 0.08, h: 1.05,
352
+ fill: { color: C.red },
353
+ });
354
+ s.addText(bullets([
355
+ { text: "Only dim1 (d=1) approaches baseline; all high-dim cascaded variants fail", bold: true },
356
+ "High-dim latent generation is the fundamental bottleneck",
357
+ "grn_att_only / grn_svd: negative Pearson, MSE > 0.5",
358
+ ], { fontSize: 12 }), { x: 0.8, y: 4.25, w: 8.5, h: 0.95 });
359
+ }
360
+
361
+ // ====================================================================
362
+ // SLIDE 7 โ€” Failure Analysis
363
+ // ====================================================================
364
+ {
365
+ const s = pres.addSlide();
366
+ s.background = { color: C.white };
367
+ addTitle(s, "Failure Analysis: Why Cascaded Fails", 7);
368
+
369
+ // Left: problem
370
+ s.addShape(pres.shapes.RECTANGLE, {
371
+ x: 0.5, y: 1.15, w: 4.3, h: 3.5,
372
+ fill: { color: "FFF5F5" },
373
+ });
374
+ s.addShape(pres.shapes.RECTANGLE, {
375
+ x: 0.5, y: 1.15, w: 4.3, h: 0.45,
376
+ fill: { color: C.red },
377
+ });
378
+ s.addText("Root Cause", {
379
+ x: 0.5, y: 1.15, w: 4.3, h: 0.45,
380
+ fontSize: 14, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
381
+ });
382
+ s.addText(bullets([
383
+ "Latent loss stuck at ~1.0-2.0",
384
+ "Target: sparse G x G matrix (~0.6% non-zero)",
385
+ "Generating GRN is itself a hard problem",
386
+ "Decoupled training prevents joint optimization",
387
+ "Expression flow never benefits from GRN",
388
+ ], { fontSize: 12 }), { x: 0.7, y: 1.8, w: 3.9, h: 2.5 });
389
+
390
+ // Right: evidence
391
+ s.addShape(pres.shapes.RECTANGLE, {
392
+ x: 5.2, y: 1.15, w: 4.3, h: 3.5,
393
+ fill: { color: C.offWhite },
394
+ });
395
+ s.addShape(pres.shapes.RECTANGLE, {
396
+ x: 5.2, y: 1.15, w: 4.3, h: 0.45,
397
+ fill: { color: C.green },
398
+ });
399
+ s.addText("Evidence from dim1 Ablation", {
400
+ x: 5.2, y: 1.15, w: 4.3, h: 0.45,
401
+ fontSize: 14, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
402
+ });
403
+ s.addText(bullets([
404
+ "scgpt_dim: 512 -> 1",
405
+ "Latent loss converges normally",
406
+ "Pearson delta: 0.752 (vs baseline 0.866)",
407
+ "Confirms: high-dim target is the bottleneck",
408
+ "But dim=1 loses most GRN information",
409
+ ], { fontSize: 12 }), { x: 5.4, y: 1.8, w: 3.9, h: 2.5 });
410
+
411
+ // Bottom conclusion
412
+ s.addShape(pres.shapes.RECTANGLE, {
413
+ x: 0.5, y: 4.85, w: 9.0, h: 0.5,
414
+ fill: { color: C.dark },
415
+ });
416
+ s.addText("Conclusion: Cascaded generation of GRN features is a dead end. Need a new paradigm.", {
417
+ x: 0.5, y: 4.85, w: 9.0, h: 0.5,
418
+ fontSize: 13, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
419
+ });
420
+ }
421
+
422
+ // ====================================================================
423
+ // SLIDE 8 โ€” Paradigm Shift
424
+ // ====================================================================
425
+ {
426
+ const s = pres.addSlide();
427
+ s.background = { color: C.dark };
428
+ s.addShape(pres.shapes.RECTANGLE, {
429
+ x: 0, y: 0, w: 0.12, h: 5.625, fill: { color: C.primary },
430
+ });
431
+
432
+ s.addText("Paradigm Shift", {
433
+ x: 0.7, y: 0.8, w: 8.6, h: 0.6,
434
+ fontSize: 32, fontFace: FONT_H, color: C.white, bold: true, margin: 0,
435
+ });
436
+ s.addText("From GRN Generation to Structural Supervision", {
437
+ x: 0.7, y: 1.4, w: 8.6, h: 0.5,
438
+ fontSize: 18, fontFace: FONT_B, color: C.primaryLt, margin: 0,
439
+ });
440
+
441
+ // Key insight box
442
+ s.addShape(pres.shapes.RECTANGLE, {
443
+ x: 0.7, y: 2.3, w: 8.6, h: 1.2,
444
+ fill: { color: C.primary },
445
+ });
446
+ s.addText([
447
+ { text: "Key Insight: ", options: { bold: true, fontSize: 15, color: C.white } },
448
+ { text: "Delta-attention is ", options: { fontSize: 15, color: C.white } },
449
+ { text: "privileged information", options: { bold: true, italic: true, fontSize: 15, color: C.white } },
450
+ { text: " -- available at training (from source + target), absent at inference (only source).", options: { fontSize: 15, color: C.white } },
451
+ ], { x: 1.0, y: 2.5, w: 8.0, h: 0.8, fontFace: FONT_B });
452
+
453
+ // Old vs New
454
+ s.addShape(pres.shapes.RECTANGLE, {
455
+ x: 0.7, y: 3.8, w: 4.0, h: 1.2,
456
+ fill: { color: "2A2A42" },
457
+ });
458
+ s.addText([
459
+ { text: "OLD: Cascaded", options: { bold: true, fontSize: 14, color: C.red, breakLine: true, paraSpaceAfter: 4 } },
460
+ { text: "Generate GRN features (latent flow)", options: { fontSize: 13, color: "E8E8E8", breakLine: true, paraSpaceAfter: 2 } },
461
+ { text: "-> Use for expression (expr flow)", options: { fontSize: 13, color: "E8E8E8" } },
462
+ ], { x: 0.9, y: 3.9, w: 3.6, h: 1.0, fontFace: FONT_B });
463
+
464
+ s.addShape(pres.shapes.RECTANGLE, {
465
+ x: 5.3, y: 3.8, w: 4.0, h: 1.2,
466
+ fill: { color: "2A2A42" },
467
+ });
468
+ s.addText([
469
+ { text: "NEW: RegFM", options: { bold: true, fontSize: 14, color: "66BB6A", breakLine: true, paraSpaceAfter: 4 } },
470
+ { text: "Embed GRN as structural bias", options: { fontSize: 13, color: "E8E8E8", breakLine: true, paraSpaceAfter: 2 } },
471
+ { text: "-> Soft-supervise with delta_attn at train", options: { fontSize: 13, color: "E8E8E8" } },
472
+ ], { x: 5.5, y: 3.9, w: 3.6, h: 1.0, fontFace: FONT_B });
473
+
474
+ addSlideNum(s, 8);
475
+ }
476
+
477
+ // ====================================================================
478
+ // SLIDE 9 โ€” RegFM Architecture
479
+ // ====================================================================
480
+ {
481
+ const s = pres.addSlide();
482
+ s.background = { color: C.white };
483
+ addTitle(s, "RegFM: Architecture", 9);
484
+
485
+ // Equation box
486
+ s.addShape(pres.shapes.RECTANGLE, {
487
+ x: 0.6, y: 1.15, w: 8.8, h: 0.7,
488
+ fill: { color: C.offWhite },
489
+ });
490
+ s.addText([
491
+ { text: "v(x, t) = \u03B1 \u00B7 v", options: { fontFace: "Calibri", fontSize: 22, color: C.primary, bold: true } },
492
+ { text: "reg", options: { fontFace: "Calibri", fontSize: 15, color: C.primary, bold: true } },
493
+ { text: " + (1 \u2013 \u03B1) \u00B7 v", options: { fontFace: "Calibri", fontSize: 22, color: C.primary, bold: true } },
494
+ { text: "int", options: { fontFace: "Calibri", fontSize: 15, color: C.primary, bold: true } },
495
+ ], {
496
+ x: 0.6, y: 1.15, w: 8.8, h: 0.7,
497
+ align: "center", valign: "middle",
498
+ });
499
+
500
+ // Three component cards
501
+ const comps = [
502
+ {
503
+ title: "v_reg (Regulatory)",
504
+ color: C.primary,
505
+ items: [
506
+ "RegulatoryHead module",
507
+ "Q, K, V from backbone h",
508
+ "R = tanh(QK^T / sqrt(d_r))",
509
+ "v_reg = Linear(R @ V)",
510
+ "d_r = 32, params = 12K",
511
+ ],
512
+ },
513
+ {
514
+ title: "v_int (Intrinsic)",
515
+ color: C.accent,
516
+ items: [
517
+ "Original ExprDecoder",
518
+ "3-layer MLP",
519
+ "Per-gene autonomous dynamics",
520
+ "No inter-gene interaction",
521
+ "Reused from scDFM baseline",
522
+ ],
523
+ },
524
+ {
525
+ title: "Gate (alpha)",
526
+ color: C.green,
527
+ items: [
528
+ "VelocityGate module",
529
+ "Input: h + pert_emb + t_emb",
530
+ "MLP(384 -> 128 -> 1)",
531
+ "Init: bias=-3, alpha~0.05",
532
+ "Safe fallback to v_int",
533
+ ],
534
+ },
535
+ ];
536
+ comps.forEach((c, i) => {
537
+ const cx = 0.5 + i * 3.15;
538
+ s.addShape(pres.shapes.RECTANGLE, {
539
+ x: cx, y: 2.15, w: 2.95, h: 3.0,
540
+ fill: { color: C.offWhite },
541
+ });
542
+ s.addShape(pres.shapes.RECTANGLE, {
543
+ x: cx, y: 2.15, w: 2.95, h: 0.42,
544
+ fill: { color: c.color },
545
+ });
546
+ s.addText(c.title, {
547
+ x: cx, y: 2.15, w: 2.95, h: 0.42,
548
+ fontSize: 12, fontFace: FONT_B, color: C.white, bold: true, align: "center", valign: "middle",
549
+ });
550
+ s.addText(bullets(c.items, { fontSize: 10.5 }), {
551
+ x: cx + 0.1, y: 2.7, w: 2.75, h: 2.3,
552
+ });
553
+ });
554
+ }
555
+
556
+ // ====================================================================
557
+ // SLIDE 10 โ€” RegFM Training & Loss
558
+ // ====================================================================
559
+ {
560
+ const s = pres.addSlide();
561
+ s.background = { color: C.white };
562
+ addTitle(s, "RegFM: Training & Loss Design", 10);
563
+
564
+ // Loss equation
565
+ s.addShape(pres.shapes.RECTANGLE, {
566
+ x: 0.6, y: 1.15, w: 8.8, h: 0.6,
567
+ fill: { color: C.offWhite },
568
+ });
569
+ s.addText([
570
+ { text: "L = L", options: { fontFace: "Calibri", fontSize: 20, color: C.primary, bold: true } },
571
+ { text: "vel", options: { fontFace: "Calibri", fontSize: 14, color: C.primary, bold: true } },
572
+ { text: " + \u03BB \u00B7 L", options: { fontFace: "Calibri", fontSize: 20, color: C.primary, bold: true } },
573
+ { text: "reg", options: { fontFace: "Calibri", fontSize: 14, color: C.primary, bold: true } },
574
+ { text: " + \u03B3 \u00B7 L", options: { fontFace: "Calibri", fontSize: 20, color: C.primary, bold: true } },
575
+ { text: "mmd", options: { fontFace: "Calibri", fontSize: 14, color: C.primary, bold: true } },
576
+ ], {
577
+ x: 0.6, y: 1.15, w: 8.8, h: 0.6,
578
+ align: "center", valign: "middle",
579
+ });
580
+
581
+ // Loss details table
582
+ const tbl = styledTable(
583
+ ["Loss Term", "Target", "Weight", "Description"],
584
+ [
585
+ ["L_vel", "v_target = x1 - eps", "1.0", "Standard flow matching MSE"],
586
+ ["L_reg", "delta_attention", "0.1", "R_theta aligned with GRN ground truth"],
587
+ ["L_mmd", "Distribution matching", "0.5", "Sliced Wasserstein / MMD"],
588
+ ]
589
+ );
590
+ s.addTable(tbl.rows, {
591
+ x: 0.6, y: 2.0, w: 8.8,
592
+ border: { pt: 0.5, color: "DDDDDD" },
593
+ colW: [1.2, 2.5, 1.0, 4.1],
594
+ rowH: [0.38, 0.35, 0.35, 0.35],
595
+ autoPage: false,
596
+ });
597
+
598
+ // Training status
599
+ s.addText([
600
+ { text: "Training Status (RegFM + MMD)", options: { bold: true, fontSize: 14, fontFace: FONT_H, color: C.primary, breakLine: true, paraSpaceAfter: 6 } },
601
+ ], { x: 0.6, y: 3.4, w: 4.5, h: 0.35 });
602
+
603
+ const statusTbl = styledTable(
604
+ ["Step", "L_vel", "L_reg", "L_mmd", "Total"],
605
+ [
606
+ ["5k", "0.169", "0.318", "0.025", "0.226"],
607
+ ["20k", "0.126", "0.254", "0.017", "0.168"],
608
+ ["32k", "0.112", "0.236", "0.016", "0.152"],
609
+ ]
610
+ );
611
+ s.addTable(statusTbl.rows, {
612
+ x: 0.6, y: 3.8, w: 5.5,
613
+ border: { pt: 0.5, color: "DDDDDD" },
614
+ colW: [0.8, 1.0, 1.0, 1.0, 1.0],
615
+ rowH: [0.35, 0.3, 0.3, 0.3],
616
+ autoPage: false,
617
+ });
618
+
619
+ // Key design notes
620
+ s.addShape(pres.shapes.RECTANGLE, {
621
+ x: 6.5, y: 3.4, w: 3.0, h: 1.8,
622
+ fill: { color: C.offWhite },
623
+ });
624
+ s.addShape(pres.shapes.RECTANGLE, {
625
+ x: 6.5, y: 3.4, w: 0.07, h: 1.8,
626
+ fill: { color: C.accent },
627
+ });
628
+ s.addText([
629
+ { text: "Design Notes", options: { bold: true, fontSize: 12, fontFace: FONT_H, color: C.accent, breakLine: true, paraSpaceAfter: 4 } },
630
+ ], { x: 6.75, y: 3.5, w: 2.6, h: 0.3 });
631
+ s.addText(bullets([
632
+ "Gate init: alpha ~ 0.05",
633
+ "Diagonal removed from R",
634
+ "Tanh bounds R to [-1, 1]",
635
+ "Backbone: d_model=128",
636
+ ], { fontSize: 10.5 }), { x: 6.75, y: 3.85, w: 2.6, h: 1.2 });
637
+ }
638
+
639
+ // ====================================================================
640
+ // SLIDE 11 โ€” Schrodinger Bridge: Approach
641
+ // ====================================================================
642
+ {
643
+ const s = pres.addSlide();
644
+ s.background = { color: C.white };
645
+ addTitle(s, "Schrodinger Bridge: Approach", 11);
646
+
647
+ // Motivation
648
+ s.addText(bullets([
649
+ "FM: noise -> target (unpaired, indirect)",
650
+ "SB: source -> target (optimal transport coupling)",
651
+ "Natural fit for perturbation prediction",
652
+ ], { fontSize: 13 }), { x: 0.6, y: 1.15, w: 9.0, h: 1.2 });
653
+
654
+ // Variants table
655
+ const tbl = styledTable(
656
+ ["Variant", "Transport", "Score Head", "Anchoring", "Key Feature"],
657
+ [
658
+ ["A1 (baseline)", "SB-ODE", "None", "None", "Basic SB formulation"],
659
+ ["A5 (full SDE)", "SB-SDE", "Full ASB", "None", "Score + velocity joint"],
660
+ ["A6 (DSM aniso)", "SB-SDE", "Anisotropic", "None", "Per-gene noise scale"],
661
+ ["SA1 (src-ODE)", "SB-ODE", "None", "Source cell", "Anchor at x_ctrl"],
662
+ ["SA6 (src-SDE)", "SB-SDE", "Anisotropic", "Source cell", "Anchor + aniso score"],
663
+ ]
664
+ );
665
+ s.addTable(tbl.rows, {
666
+ x: 0.4, y: 2.55, w: 9.2,
667
+ border: { pt: 0.5, color: "DDDDDD" },
668
+ colW: [1.7, 1.2, 1.4, 1.3, 3.6],
669
+ rowH: [0.38, 0.32, 0.32, 0.32, 0.32, 0.32],
670
+ autoPage: false,
671
+ });
672
+
673
+ // Source-anchored note
674
+ s.addShape(pres.shapes.RECTANGLE, {
675
+ x: 0.5, y: 4.35, w: 9.0, h: 0.75,
676
+ fill: { color: C.offWhite },
677
+ });
678
+ s.addShape(pres.shapes.RECTANGLE, {
679
+ x: 0.5, y: 4.35, w: 0.08, h: 0.75,
680
+ fill: { color: C.accent },
681
+ });
682
+ s.addText([
683
+ { text: "Source-Anchored: ", options: { bold: true, fontSize: 12, color: C.accent } },
684
+ { text: "ODE starts from x_ctrl (not noise). Loss_v drops to ~0.0004 (vs ~0.3 for standard SB).", options: { fontSize: 12, color: C.bodyText } },
685
+ ], { x: 0.8, y: 4.4, w: 8.5, h: 0.6, fontFace: FONT_B });
686
+ }
687
+
688
+ // ====================================================================
689
+ // SLIDE 12 โ€” Schrodinger Bridge: Results
690
+ // ====================================================================
691
+ {
692
+ const s = pres.addSlide();
693
+ s.background = { color: C.white };
694
+ addTitle(s, "Schrodinger Bridge: Results", 12);
695
+
696
+ // Top table โ€” use explicit large font cells
697
+ const hdr12 = ["Model", "Pearson", "MSE", "DE Dir.", "Discrim."].map(h => ({
698
+ text: h, options: { bold: true, color: C.white, fill: { color: C.tableHead }, fontSize: 13, fontFace: FONT_B, align: "center", valign: "middle" },
699
+ }));
700
+ const data12 = [
701
+ [{ text: "scDFM Baseline", bold: true }, { text: "0.866", bold: true }, "0.0032", "0.937", "0.980"],
702
+ [{ text: "SB A1 (baseline)", bold: true }, { text: "0.858", bold: true }, "0.0072", "0.902", "0.957"],
703
+ ["SB A6 (aniso DSM)", "0.849", "0.0074", "0.901", "0.956"],
704
+ ["SA1 / SA6", "Training...", "@ 195k", "-", "-"],
705
+ ].map((row, ri) => row.map(cell => {
706
+ const isObj = typeof cell === "object" && cell !== null;
707
+ return { text: isObj ? cell.text : String(cell), options: { fontSize: 13, fontFace: FONT_B, color: C.darkText, fill: { color: ri % 2 === 0 ? C.white : C.tableAlt }, align: "center", valign: "middle", bold: isObj && cell.bold ? true : false } };
708
+ }));
709
+ s.addTable([hdr12, ...data12], {
710
+ x: 0.5, y: 1.15, w: 9.0,
711
+ border: { pt: 0.5, color: "DDDDDD" },
712
+ colW: [2.4, 1.6, 1.4, 1.6, 1.6],
713
+ rowH: [0.42, 0.4, 0.4, 0.4, 0.4],
714
+ autoPage: false,
715
+ });
716
+
717
+ // Training loss comparison
718
+ s.addText([
719
+ { text: "Training Loss Comparison", options: { bold: true, fontSize: 14, fontFace: FONT_H, color: C.primary, breakLine: true, paraSpaceAfter: 6 } },
720
+ ], { x: 0.6, y: 3.25, w: 8.8, h: 0.35 });
721
+
722
+ const hdrL = ["Variant", "Loss_v", "Loss_s", "Notes"].map(h => ({
723
+ text: h, options: { bold: true, color: C.white, fill: { color: C.tableHead }, fontSize: 12, fontFace: FONT_B, align: "center", valign: "middle" },
724
+ }));
725
+ const dataL = [
726
+ ["A1 Baseline", "0.26 - 0.40", "N/A", "Stable"],
727
+ ["A6 DSM Aniso", "0.30 - 0.37", "0.76 - 0.80", "Better score"],
728
+ ["SA1 Src-ODE", "~0.0005", "N/A", "Very low (anchored)"],
729
+ ["SA6 Src-SDE", "~0.001", "~0.057", "Anchored + aniso"],
730
+ ].map((row, ri) => row.map(cell => ({
731
+ text: cell, options: { fontSize: 12, fontFace: FONT_B, color: C.darkText, fill: { color: ri % 2 === 0 ? C.white : C.tableAlt }, align: "center", valign: "middle" },
732
+ })));
733
+ s.addTable([hdrL, ...dataL], {
734
+ x: 0.5, y: 3.65, w: 9.0,
735
+ border: { pt: 0.5, color: "DDDDDD" },
736
+ colW: [2.2, 2.0, 1.8, 3.0],
737
+ rowH: [0.38, 0.35, 0.35, 0.35, 0.35],
738
+ autoPage: false,
739
+ });
740
+ }
741
+
742
+ // ====================================================================
743
+ // SLIDE 13 โ€” Comprehensive Comparison
744
+ // ====================================================================
745
+ {
746
+ const s = pres.addSlide();
747
+ s.background = { color: C.white };
748
+ addTitle(s, "Comprehensive Comparison", 13);
749
+
750
+ const tbl = styledTable(
751
+ ["Method", "Approach", "Pearson", "MSE", "DE Dir.", "Discrim."],
752
+ [
753
+ [{ text: "scDFM Baseline", bold: true }, "Flow Matching", { text: "0.866", bold: true }, { text: "0.003", bold: true }, { text: "0.937", bold: true }, { text: "0.980", bold: true }],
754
+ [{ text: "SB A1", bold: true }, "Schrodinger Bridge", "0.858", "0.007", "0.902", "0.957"],
755
+ ["SB A6", "SB + Aniso DSM", "0.849", "0.007", "0.901", "0.956"],
756
+ [{ text: "dim1 ablation", bold: true }, "Cascaded (d=1)", "0.752", "0.006", "0.878", "0.914"],
757
+ ["grn_dense4", "Cascaded (d=4)", "0.122", "0.020", "0.780", "0.521"],
758
+ ["grn_scalar", "Cascaded (d=1, L2)", "0.087", "0.021", "0.793", "0.534"],
759
+ ["grn_att_only", "Cascaded (bilinear)", "-0.097", "0.602", "0.747", "0.552"],
760
+ ["grn_svd_cross", "Cascaded (SVD)", "-0.096", "0.575", "0.746", "0.492"],
761
+ ["RegFM (20k)", "Structural Bias", "0.040", "0.128", "0.748", "0.505"],
762
+ ]
763
+ );
764
+ s.addTable(tbl.rows, {
765
+ x: 0.3, y: 1.1, w: 9.4,
766
+ border: { pt: 0.5, color: "DDDDDD" },
767
+ colW: [1.6, 1.7, 1.1, 1.0, 1.0, 1.0],
768
+ rowH: [0.38, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35, 0.35],
769
+ autoPage: false,
770
+ });
771
+
772
+ // Color legend
773
+ s.addShape(pres.shapes.RECTANGLE, {
774
+ x: 0.5, y: 4.85, w: 9.0, h: 0.5,
775
+ fill: { color: C.offWhite },
776
+ });
777
+ s.addText([
778
+ { text: "Top tier: ", options: { bold: true, fontSize: 11, color: C.green } },
779
+ { text: "Baseline (0.866), SB A1 (0.858) ", options: { fontSize: 11, color: C.bodyText } },
780
+ { text: "Mid tier: ", options: { bold: true, fontSize: 11, color: C.accent } },
781
+ { text: "dim1 (0.752) ", options: { fontSize: 11, color: C.bodyText } },
782
+ { text: "Failed: ", options: { bold: true, fontSize: 11, color: C.red } },
783
+ { text: "All high-dim cascaded variants", options: { fontSize: 11, color: C.bodyText } },
784
+ ], { x: 0.7, y: 4.85, w: 8.6, h: 0.5, fontFace: FONT_B, valign: "middle" });
785
+ }
786
+
787
+ // ====================================================================
788
+ // SLIDE 14 โ€” Key Takeaways
789
+ // ====================================================================
790
+ {
791
+ const s = pres.addSlide();
792
+ s.background = { color: C.white };
793
+ addTitle(s, "Key Takeaways", 14);
794
+
795
+ const takeaways = [
796
+ { num: "1", title: "Cascaded GRN Generation Fails", desc: "High-dim latent target (G x G sparse) is fundamentally too hard to generate via flow matching." },
797
+ { num: "2", title: "SB Competitive with FM Baseline", desc: "Schrodinger Bridge (A1: 0.858) nearly matches scDFM (0.866); source-anchored variants training." },
798
+ { num: "3", title: "RegFM: New Paradigm", desc: "Treat delta_attn as privileged info; embed GRN as structural bias, not generation target." },
799
+ { num: "4", title: "dim1 Confirms the Diagnosis", desc: "Only 1d latent converges; validates that task difficulty scales with latent dimensionality." },
800
+ ];
801
+
802
+ takeaways.forEach((t, i) => {
803
+ const ty = 1.15 + i * 1.05;
804
+ // Number circle
805
+ s.addShape(pres.shapes.OVAL, {
806
+ x: 0.6, y: ty + 0.05, w: 0.45, h: 0.45,
807
+ fill: { color: C.primary },
808
+ });
809
+ s.addText(t.num, {
810
+ x: 0.6, y: ty + 0.05, w: 0.45, h: 0.45,
811
+ fontSize: 16, fontFace: FONT_H, color: C.white, bold: true, align: "center", valign: "middle",
812
+ });
813
+ // Title + description
814
+ s.addText(t.title, {
815
+ x: 1.25, y: ty, w: 8.2, h: 0.3,
816
+ fontSize: 15, fontFace: FONT_H, color: C.primary, bold: true, margin: 0,
817
+ });
818
+ s.addText(t.desc, {
819
+ x: 1.25, y: ty + 0.32, w: 8.2, h: 0.55,
820
+ fontSize: 12, fontFace: FONT_B, color: C.bodyText, margin: 0,
821
+ });
822
+ });
823
+ }
824
+
825
+ // ====================================================================
826
+ // SLIDE 15 โ€” Next Steps
827
+ // ====================================================================
828
+ {
829
+ const s = pres.addSlide();
830
+ s.background = { color: C.dark };
831
+ s.addShape(pres.shapes.RECTANGLE, {
832
+ x: 0, y: 0, w: 0.12, h: 5.625, fill: { color: C.primary },
833
+ });
834
+
835
+ s.addText("Next Steps", {
836
+ x: 0.7, y: 0.6, w: 8.6, h: 0.6,
837
+ fontSize: 32, fontFace: FONT_H, color: C.white, bold: true, margin: 0,
838
+ });
839
+
840
+ const steps = [
841
+ { title: "RegFM Full Training", desc: "Continue to 100k+ steps; evaluate and compare with baseline at convergence" },
842
+ { title: "SB Source-Anchored Eval", desc: "Evaluate SA1 / SA6 at 200k; compare ODE vs SDE transport" },
843
+ { title: "RegFM vs SB vs Baseline", desc: "Head-to-head comparison on cell-eval + distributional metrics" },
844
+ { title: "Distributional Evaluation", desc: "Apply new metrics (MMD, Energy Distance, C2ST, kNN) beyond conditional mean" },
845
+ { title: "Interpretability Analysis", desc: "Visualize R_theta from RegFM; compare with known GRN structure" },
846
+ ];
847
+
848
+ steps.forEach((st, i) => {
849
+ const sy = 1.5 + i * 0.78;
850
+ s.addShape(pres.shapes.RECTANGLE, {
851
+ x: 0.7, y: sy, w: 8.6, h: 0.65,
852
+ fill: { color: "2A2A42" },
853
+ });
854
+ s.addShape(pres.shapes.RECTANGLE, {
855
+ x: 0.7, y: sy, w: 0.07, h: 0.65,
856
+ fill: { color: C.primary },
857
+ });
858
+ s.addText(st.title, {
859
+ x: 1.0, y: sy + 0.03, w: 3.0, h: 0.3,
860
+ fontSize: 14, fontFace: FONT_B, color: C.white, bold: true, margin: 0,
861
+ });
862
+ s.addText(st.desc, {
863
+ x: 1.0, y: sy + 0.32, w: 8.1, h: 0.28,
864
+ fontSize: 12, fontFace: FONT_B, color: "CCCCCC", margin: 0,
865
+ });
866
+ });
867
+
868
+ addSlideNum(s, 15);
869
+ }
870
+
871
+ // โ”€โ”€ Write file โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
872
+ pres.writeFile({ fileName: "/home/hp250092/ku50001222/qian/aivc/lfj/Report/week10/GRN_Progress_Report.pptx" })
873
+ .then(() => console.log("PPTX saved successfully."))
874
+ .catch((err) => console.error("Error:", err));