Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. ย See raw diff
- .gitattributes +13 -0
- CLAUDE.md +191 -0
- Report/GRN_CCFM_group_meeting.md +416 -0
- Report/GRN_CCFM_group_meeting.pptx +3 -0
- Report/Nano/.claude/settings.local.json +7 -0
- Report/Nano/Nanomotor_Presentation.pptx +3 -0
- Report/Nano/glucose-fueled-gated-nanomotors-enhancing-in-vivo-anticancer-efficacy-via-deep-drug-penetration-into-tumors.pdf +3 -0
- Report/PPT/GRN_CCFM_presentation.pdf +3 -0
- Report/PPT/GRN_CCFM_presentation.pptx +3 -0
- Report/PPT/create_ppt.js +854 -0
- Report/PPT/fixed-01.jpg +3 -0
- Report/PPT/fixed14-14.jpg +3 -0
- Report/PPT/fixed6-06.jpg +3 -0
- Report/PPT/fixed8-08.jpg +3 -0
- Report/PPT/slide-01.jpg +3 -0
- Report/PPT/slide-02.jpg +3 -0
- Report/PPT/slide-03.jpg +3 -0
- Report/PPT/slide-04.jpg +3 -0
- Report/PPT/slide-05.jpg +3 -0
- Report/PPT/slide-06.jpg +3 -0
- Report/PPT/slide-07.jpg +3 -0
- Report/PPT/slide-08.jpg +3 -0
- Report/PPT/slide-09.jpg +3 -0
- Report/PPT/slide-10.jpg +3 -0
- Report/PPT/slide-11.jpg +3 -0
- Report/PPT/slide-12.jpg +3 -0
- Report/PPT/slide-13.jpg +3 -0
- Report/PPT/slide-14.jpg +3 -0
- Report/PPT/่ฎฒ่งฃ็จฟ.md +183 -0
- Report/PPT2/GRN_CCFM_presentation.pdf +3 -0
- Report/PPT2/GRN_CCFM_presentation.pptx +3 -0
- Report/PPT2/generate.js +781 -0
- Report/PPT2/slide-01.jpg +3 -0
- Report/PPT2/slide-02.jpg +3 -0
- Report/PPT2/slide-03.jpg +3 -0
- Report/PPT2/slide-04.jpg +3 -0
- Report/PPT2/slide-05.jpg +3 -0
- Report/PPT2/slide-06.jpg +3 -0
- Report/PPT2/slide-07.jpg +3 -0
- Report/PPT2/slide-08.jpg +3 -0
- Report/PPT2/slide-09.jpg +3 -0
- Report/PPT2/slide-10.jpg +3 -0
- Report/PPT2/slide-11.jpg +3 -0
- Report/PPT2/slide-12.jpg +3 -0
- Report/PPT2/slide-13.jpg +3 -0
- Report/PPT2/slide-14.jpg +3 -0
- Report/build_pptx.js +703 -0
- Report/week10/GRN_Progress_Report.pdf +3 -0
- Report/week10/GRN_Progress_Report.pptx +3 -0
- 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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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i-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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
Report/PPT/fixed14-14.jpg
ADDED
|
Git LFS Details
|
Report/PPT/fixed6-06.jpg
ADDED
|
Git LFS Details
|
Report/PPT/fixed8-08.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-01.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-02.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-03.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-04.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-05.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-06.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-07.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-08.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-09.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-10.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-11.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-12.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-13.jpg
ADDED
|
Git LFS Details
|
Report/PPT/slide-14.jpg
ADDED
|
Git LFS Details
|
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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|
Report/PPT2/slide-02.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-03.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-04.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-05.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-06.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-07.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-08.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-09.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-10.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-11.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-12.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-13.jpg
ADDED
|
Git LFS Details
|
Report/PPT2/slide-14.jpg
ADDED
|
Git LFS Details
|
Report/build_pptx.js
ADDED
|
@@ -0,0 +1,703 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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));
|