kaveh commited on
Commit
253fc7e
·
1 Parent(s): a8be814
Files changed (1) hide show
  1. README.md +5 -34
README.md CHANGED
@@ -19,41 +19,12 @@ sdk: docker
19
  app_port: 7860
20
  ---
21
 
22
- # FateFormerApp
23
 
24
- ## Interactive explorer (Streamlit)
25
 
26
- From the repo root, with the project virtualenv activated:
27
 
28
- ```bash
29
- PYTHONPATH=. streamlit run streamlit_hf/app.py
30
- ```
31
 
32
- The default local port is **8501**. The **Dockerfile** (and Hugging Face Space card above) use **7860** to match Spaces.
33
-
34
- ### Updating results after new experiments (no code changes)
35
-
36
- The app reads **fixed paths**. Replace files under `streamlit_hf/cache/` using the **same filenames**; then **restart Streamlit** (or do a hard refresh) so the new data loads.
37
-
38
- | File | What it drives |
39
- |------|----------------|
40
- | `streamlit_hf/cache/latent_umap.pkl` | Single-Cell Explorer (UMAP) |
41
- | `streamlit_hf/cache/df_features.parquet` | Feature insights + Flux analysis |
42
- | `streamlit_hf/cache/attention_summary.pkl` | “Attention vs prediction” in Feature insights |
43
- | `streamlit_hf/cache/attention_feature_ranks.pkl` | Optional; attention lists also live inside `attention_summary.pkl` |
44
-
45
- You can also keep `analysis/df_features.csv` in sync for your own workflows; the UI **prefers** `streamlit_hf/cache/df_features.parquet` when present.
46
-
47
- ### Regenerating caches from this repo
48
-
49
- If you updated checkpoints, fold splits, shift pickles, or deg tables **inside this project**, run:
50
-
51
- ```bash
52
- python scripts/precompute_streamlit_cache.py
53
- ```
54
-
55
- That script expects (among others) `ckp/*.pth`, `objects/fold_results_multi.pkl`, `objects/mutlimodal_dataset.pkl`, `objects/fi_shift_*.pkl`, and `objects/degs.pkl`. Point those inputs at your new experiment outputs **before** running the script, or copy your new pickles/CSVs into `streamlit_hf/cache/` manually as in the table above.
56
-
57
- ### Docker / Hugging Face
58
-
59
- See `streamlit_hf/HUGGINGFACE.md` and the root `Dockerfile`.
 
19
  app_port: 7860
20
  ---
21
 
22
+ # FateFormer Explorer
23
 
24
+ **FateFormer** is a multimodal model (RNA expression, chromatin accessibility, metabolic flux) trained to predict single-cell fate during reprogramming. Labels come from **CellTag-Multi** lineage tracing on a MEF → induced endoderm progenitor (iEP) system.
25
 
26
+ This repository is the **Streamlit app** that explores the model and data: validation latent space (UMAP), global feature importance (latent shift and attention), per-cell views, and flux-focused analysis. The UI reads precomputed artifacts under `streamlit_hf/cache/`.
27
 
28
+ **Live app:** [https://huggingface.co/spaces/Angione-Lab/FateFormerExplorer](https://huggingface.co/spaces/Angione-Lab/FateFormerExplorer)
 
 
29
 
30
+ **Run, Docker, Hugging Face Spaces, and cache regeneration:** see [`streamlit_hf/README.md`](streamlit_hf/README.md) and [`streamlit_hf/HUGGINGFACE.md`](streamlit_hf/HUGGINGFACE.md).