jasperyeoh2 commited on
Commit
f7e2e95
·
verified ·
1 Parent(s): 0439df2

Add dataset README (reproduction guide)

Browse files
Files changed (1) hide show
  1. README.md +93 -41
README.md CHANGED
@@ -10,80 +10,132 @@ tags:
10
  - zarr
11
  ---
12
 
13
- # pevo-msa-grch38-19way (dataset)
14
 
15
- **EN:** Data and thesis reproduction artifacts for primate 19-way / 10-primate MSA variant-effect modeling.
16
- **中文:** 灵长类 19-way / 10 物种 MSA 变异效应建模的数据与论文复现产物
17
 
18
  | | |
19
  | --- | --- |
20
- | **Code (training & eval)** | [github.com/jasperyeoh/pevo-msa-primate-genomics](https://github.com/jasperyeoh/pevo-msa-primate-genomics) |
21
  | **Model checkpoints** | [jasperyeoh2/pevo-msa-mlm-19way](https://huggingface.co/jasperyeoh2/pevo-msa-mlm-19way) |
22
- | **Layout map (full tree)** | `docs/HUGGINGFACE_DATASET_LAYOUT.md` in this repo |
23
  | **Upload audit** | `docs/UPLOAD_AUDIT.md` on GitHub |
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  ## Quick download / 快速下载
26
 
27
  ```bash
28
  pip install -U huggingface_hub
29
 
30
- # Everything (large 100GB+ depending on includes)
31
- hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf
32
-
33
- # Paper tables only (~hundreds of MB)
34
  hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf \
35
  --include 'thesis_repro/**' 'docs/**'
36
 
37
- # Training Zarr (per-chromosome tar bundles — extract after download)
38
  hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf \
39
  --include 'new_dataset_27feb/msaasr_dataset_10primates_full/**'
 
 
 
40
  ```
41
 
42
- ## Main folders / 主要目录
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- | Prefix | Contents |
 
 
 
 
 
 
 
 
 
45
  | --- | --- |
46
- | `thesis_repro/` | VEP aggregate CSVs, per-run score parquets, Feng benchmark **summary** CSVs, manuscript bootstrap artifacts |
47
- | `new_dataset_27feb/msaasr_dataset_10primates_full/bundles/` | **24×** `msaasr.zarr.bundle_*.tar` + README restore full training Zarr |
48
- | `new_dataset_27feb/gpnmsa_1024bp_pipeline/` | 1024bp window parquets, VEP ablation refs (large VCFs may be `.partNNNNofMMMMM`) |
49
- | `window_workspace/neutral_model_10primates/` | **`merged_10primates_training.maf`** (~23GB) for neutral-model / window pipeline |
50
- | `conservation_pipeline/scores/` | Per-chromosome phastCons / phyloP `.wig` tracks |
51
- | Root `train_*.parquet`, `windows_10primates_*.parquet` | Multi-resolution window snapshots |
52
- | `phylo_msa1/outputs/strictv2_frozen_1000_eval_20260506/` | Matched-width strict-v2 eval (May 2026) |
53
 
54
- **Not in this dataset (use GitHub code + model Hub or cluster):** raw MAF stage trees (`maf_workspace/`), Songlab `variants_and_preds.parquet`, full gnomAD-tail 1M score panels, `msaasr_dataset_v2/`.
55
 
56
- ## Restore into a code clone / 恢复到 Git 克隆目录
57
 
58
- After `git clone` and `hf download`:
 
 
 
 
 
 
 
 
59
 
60
- ```bash
61
- REPO=pevo-msa-primate-genomics
62
- DATA=data_hf
63
 
64
- mkdir -p $REPO/phylo_msa1/outputs/vep_all_base_models
65
- cp $DATA/thesis_repro/phylo_msa1_outputs/VEP_*.csv $REPO/phylo_msa1/outputs/
66
- cp $DATA/thesis_repro/phylo_msa1_outputs/vep_all_base_models/*.parquet $REPO/phylo_msa1/outputs/vep_all_base_models/
67
 
68
- mkdir -p $REPO/downstream_tasks/dna_foundation_benchmark
69
- cp -a $DATA/thesis_repro/dna_foundation_benchmark_results_final $REPO/downstream_tasks/dna_foundation_benchmark/results_final
 
 
 
 
70
 
71
- mkdir -p $REPO/thesis_manu_v2_6/artifacts
72
- cp $DATA/thesis_repro/thesis_manu_v2_6_artifacts/* $REPO/thesis_manu_v2_6/artifacts/ 2>/dev/null || true
73
- ```
74
 
75
- See `thesis_repro/README.md` and GitHub `REPRODUCE.md` for the full workflow.
76
 
77
- ## MSAASR Zarr bundles / 训练语料恢复
78
 
79
  1. Download `new_dataset_27feb/msaasr_dataset_10primates_full/bundles/msaasr.zarr.bundle_*.tar`
80
- 2. Follow `README_MSAASR_BUNDLES.md` in that folder to extract into `msaasr.zarr/`
81
- 3. Prefer bundles over the legacy root `msaasr.zarr/` chunk tree (millions of small files)
 
 
 
82
 
83
- ## Citation / 引用
84
 
85
- If you use this dataset, cite the thesis/preprint and link this dataset URL. Pin the dataset commit hash from the Hub **History** tab for exact reproduction.
 
 
 
 
 
 
 
86
 
87
- ## License
88
 
89
- MIT (see dataset card). Third-party references (gnomAD, ClinVar, EPO alignments) remain under their original terms.
 
 
10
  - zarr
11
  ---
12
 
13
+ # pevo-msa-grch38-19way (dataset Hub)
14
 
15
+ **EN:** Training data, thesis tables, and reproduction artifacts for primate MSA variant-effect modeling.
16
+ **中文:** 灵长类 MSA 变异效应建模的**训练数据****论文复现数据**(不含模型权重)
17
 
18
  | | |
19
  | --- | --- |
20
+ | **Code & experiment map** | [github.com/jasperyeoh/pevo-msa-primate-genomics](https://github.com/jasperyeoh/pevo-msa-primate-genomics) — see `EXPERIMENT_MAP.md` |
21
  | **Model checkpoints** | [jasperyeoh2/pevo-msa-mlm-19way](https://huggingface.co/jasperyeoh2/pevo-msa-mlm-19way) |
22
+ | **Full file tree** | `docs/HUGGINGFACE_DATASET_LAYOUT.md` (this repo) |
23
  | **Upload audit** | `docs/UPLOAD_AUDIT.md` on GitHub |
24
 
25
+ ---
26
+
27
+ ## Dataset vs model — which Hub?
28
+
29
+ ```text
30
+ GitHub (code + small CSV) THIS REPO (data) MODEL REPO (weights)
31
+ ───────────────────────── ──────────────── ────────────────────
32
+ scripts, configs, thesis CSV → Zarr, MAF, thesis_repro + base_models/*/checkpoint-best
33
+ windows, conservation configs/, inventory/
34
+ ```
35
+
36
+ ---
37
+
38
  ## Quick download / 快速下载
39
 
40
  ```bash
41
  pip install -U huggingface_hub
42
 
43
+ # A) Paper reproduction only (~hundreds of MB)
 
 
 
44
  hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf \
45
  --include 'thesis_repro/**' 'docs/**'
46
 
47
+ # B) Training corpus (Zarr per-chromosome tar — extract after download)
48
  hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf \
49
  --include 'new_dataset_27feb/msaasr_dataset_10primates_full/**'
50
+
51
+ # C) Full snapshot (100GB+)
52
+ hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir data_hf
53
  ```
54
 
55
+ ---
56
+
57
+ ## `thesis_repro/` — paper tables & scores
58
+
59
+ Restore into a Git clone (paths expected by `thesis_manu_v2_6/scripts/`):
60
+
61
+ ```bash
62
+ git clone https://github.com/jasperyeoh/pevo-msa-primate-genomics.git
63
+ cd pevo-msa-primate-genomics
64
+ hf download jasperyeoh2/pevo-msa-grch38-19way --repo-type dataset --local-dir ../data_hf \
65
+ --include 'thesis_repro/**'
66
+
67
+ mkdir -p phylo_msa1/outputs/vep_all_base_models
68
+ cp ../data_hf/thesis_repro/phylo_msa1_outputs/VEP_*.csv phylo_msa1/outputs/
69
+ cp ../data_hf/thesis_repro/phylo_msa1_outputs/vep_all_base_models/*.parquet \
70
+ phylo_msa1/outputs/vep_all_base_models/
71
 
72
+ cp -a ../data_hf/thesis_repro/dna_foundation_benchmark_results_final \
73
+ downstream_tasks/dna_foundation_benchmark/results_final
74
+
75
+ mkdir -p thesis_manu_v2_6/artifacts
76
+ cp ../data_hf/thesis_repro/thesis_manu_v2_6_artifacts/* thesis_manu_v2_6/artifacts/
77
+ ```
78
+
79
+ **Tip:** Many **summary CSVs** are also on GitHub now — `git clone` alone is enough for Tier-A LaTeX regeneration (see `EXPERIMENT_MAP.md`).
80
+
81
+ | `thesis_repro/` path | Used for |
82
  | --- | --- |
83
+ | `phylo_msa1_outputs/VEP_*.csv` | VEP leaderboards, strict-v2 tables (`tab:vep_*`, `tab:strictv2_*`) |
84
+ | `phylo_msa1_outputs/vep_all_base_models/*.parquet` | Per-checkpoint VEP vectors, ablation registry |
85
+ | `dna_foundation_benchmark_results_final/` | Feng AUROC tables/figures (`tab:feng_*`, `fig:feng_*`) |
86
+ | `thesis_manu_v2_6_artifacts/` | Matched-width strict-v2 bootstrap (May 2026) |
 
 
 
87
 
88
+ ---
89
 
90
+ ## Main data prefixes / 主要数据目录
91
 
92
+ | Prefix | Contents | Size |
93
+ | --- | --- | --- |
94
+ | `thesis_repro/` | Paper CSV + VEP parquets + Feng summaries | small |
95
+ | `new_dataset_27feb/msaasr_dataset_10primates_full/bundles/` | 24× `msaasr.zarr.bundle_*.tar` | ~132 GB total |
96
+ | `new_dataset_27feb/gpnmsa_1024bp_pipeline/` | 1024bp window parquets, VEP ablation (VCFs may be chunked) | mixed |
97
+ | `window_workspace/neutral_model_10primates/` | `merged_10primates_training.maf` | ~23 GB |
98
+ | `conservation_pipeline/scores/` | phastCons / phyloP `.wig` per chromosome | moderate |
99
+ | Root `train_*.parquet`, `windows_10primates_*.parquet` | Multi-resolution window panels | moderate each |
100
+ | `msaasr.zarr/` (legacy) | Old chunk tree at repo root | prefer **bundles** |
101
 
102
+ ---
 
 
103
 
104
+ ## Thesis figure/table index (data side)
 
 
105
 
106
+ | LaTeX label | Data on this Hub |
107
+ | --- | --- |
108
+ | `tab:vep_*`, `tab:strictv2_*`, `tab:vep_leaderboard_full` | `thesis_repro/phylo_msa1_outputs/VEP_*.csv` (+ parquets) |
109
+ | `fig:feng_*`, `tab:feng_*` | `thesis_repro/dna_foundation_benchmark_results_final/` |
110
+ | `fig:gnomad-tail-*` | CSV on **GitHub**; score parquets cluster-only |
111
+ | Retrain from scratch | `bundles/*.tar` → extract `msaasr.zarr/` |
112
 
113
+ Checkpoints for scoring: **model Hub** `base_models/full_training_*/checkpoint-best/`.
114
+ Full mapping: GitHub `EXPERIMENT_MAP.md`.
 
115
 
116
+ ---
117
 
118
+ ## MSAASR Zarr restore / 训练语料恢复
119
 
120
  1. Download `new_dataset_27feb/msaasr_dataset_10primates_full/bundles/msaasr.zarr.bundle_*.tar`
121
+ 2. Read `README_MSAASR_BUNDLES.md` in that folder
122
+ 3. Extract to `new_dataset_27feb/msaasr_dataset_10primates_full/msaasr.zarr/`
123
+ 4. Do **not** rely on root `msaasr.zarr/` chunk trees (millions of files; slow)
124
+
125
+ ---
126
 
127
+ ## Regenerate thesis LaTeX (minimal)
128
 
129
+ ```bash
130
+ cd pevo-msa-primate-genomics/thesis_manu_v2_6/scripts
131
+ python3 gen_strictv2_ci_artifacts.py
132
+ python3 gen_feng_combined_seq_and_l7_auroc.py
133
+ cd .. && latexmk -pdf main.tex
134
+ ```
135
+
136
+ ---
137
 
138
+ ## Citation & license
139
 
140
+ Cite the thesis/preprint and pin this dataset commit from **History**.
141
+ License: MIT (dataset card). gnomAD / ClinVar / EPO data remain under their original terms.