wozhen commited on
Commit
0bc9f6f
·
verified ·
1 Parent(s): 27ef4a6

dataset card: Dataset Viewer configs (8 configs)

Browse files
Files changed (1) hide show
  1. README.md +79 -37
README.md CHANGED
@@ -9,50 +9,94 @@ tags:
9
  - zero-shot
10
  - protein-embeddings
11
  size_categories:
12
- - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
  # AMBIMOD benchmark data (K562)
16
 
17
  Derived evaluation data for the AMBIMOD zero-shot perturbation-prediction
18
- benchmark. ~27 MB unpacked; raw datasets are NOT included (see Raw Data Sources).
 
19
 
20
  ## Dataset Access
21
- This repository hosts the processed, benchmark-ready derived data (490-TF
22
- cohort, locked response matrices, protein embeddings, split manifests).
23
 
24
- ## Raw Data Sources
25
- - K562 GWPS + RPE1 essentialome (Perturb-seq): https://gwps.wi.mit.edu/
26
- - K562/RPE1 figshare mirror (RPE1 h5ad, direct download): https://figshare.com/ndownloader/files/42362275
27
- - Norman 2019 CRISPRa (GEARS-official file, Harvard Dataverse): https://dataverse.harvard.edu/api/access/datafile/6154020
28
 
29
- ## Contents
 
30
 
 
 
 
31
  ```
32
- cache/
33
- embeddings/ # protein embeddings for the 490-TF cohort
34
- k562_esm2_650m_491x1280.npy # ESM2-650M residue-mean (default)
35
- esm2_3b_490.npy # ESM2-3B
36
- protrek_490.npy # ProTrek-650M
37
- k562_experiments/
38
- cohort/cohort_doublet_filtered.csv # 490 TFs: gene, length, sequence, UniProt
39
- responses_doublet_filtered/
40
- responses_log1p_delta.npy # (490, 5, 1000) log1p-delta responses
41
- target_gene_indices.npy # 1000 target-gene indices
42
- metadata.json
43
- annotations/
44
- dbd_annotations_doublet_filtered.csv # DNA-binding-domain families
45
- ensembl_paralogs_doublet_filtered.json# paralog graph (leakage control)
46
- data/
47
- splits/
48
- k562/{design}_seed{NN}.json # 15 frozen split manifests (train/test TF lists)
49
- eligible_tfs.json, seed*.json # RPE1 frozen splits (raw-data pipeline)
50
- embedding_checksums.txt # SHA-256 of every embedding file
51
- download_*.sh # raw-data download scripts (optional rebuild)
52
- EMBEDDINGS.md # embedding provenance + reproduction guide
53
  ```
54
 
55
- ### Embedding provenance
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  All embedding caches were **computed by us** from public model weights applied
58
  to the cohort's UniProt-reviewed sequences — no third-party embedding files
@@ -60,20 +104,18 @@ are redistributed. Checkpoints used (all public):
60
 
61
  | Embedding | Checkpoint | Pooling |
62
  |---|---|---|
63
- | `k562_esm2_650m_491x1280.npy` | `facebook/esm2_t33_650M_UR50D` | residue mean (1022-aa length-weighted chunks), L2-normalized |
64
- | `esm2_3b_490.npy` | `facebook/esm2_t36_3B_UR50D` | same |
65
- | `protrek_490.npy` | `westlake-repl/ProTrek_650M` | official `get_protein_repr` |
66
 
67
  `scripts/recompute_embeddings.py` in the code repository rebuilds any cache
68
  from these checkpoints and fails on checksum mismatch. The RPE1 patched
69
  ProTrek cache and its gated sanity receipt are documented in
70
  `EMBEDDINGS.md` in the code repository.
71
 
72
- ## Usage
73
 
74
  ```bash
75
- huggingface-cli download wozhen/ambimod --repo-type dataset --local-dir .
76
- tar xzf ambimod-benchmark-data.tar.gz
77
  pip install -e git+https://github.com/ambimod/ambimod#egg=ambimod
78
  python -c "from mechid.benchmark import load_benchmark; s = load_benchmark(); print(len(s))"
79
  # -> 15
 
9
  - zero-shot
10
  - protein-embeddings
11
  size_categories:
12
+ - 1M<n<10M
13
+ configs:
14
+ - config_name: cohort
15
+ data_files:
16
+ - split: train
17
+ path: viewer/cohort/*.parquet
18
+ - config_name: annotations
19
+ data_files:
20
+ - split: train
21
+ path: viewer/annotations/*.parquet
22
+ - config_name: responses
23
+ data_files:
24
+ - split: train
25
+ path: viewer/responses/*.parquet
26
+ - config_name: embeddings_esm2_650m
27
+ data_files:
28
+ - split: train
29
+ path: viewer/embeddings/embedding_esm2_650m.parquet
30
+ - config_name: embeddings_esm2_3b
31
+ data_files:
32
+ - split: train
33
+ path: viewer/embeddings/embedding_esm2_3b.parquet
34
+ - config_name: embeddings_protrek
35
+ data_files:
36
+ - split: train
37
+ path: viewer/embeddings/embedding_protrek.parquet
38
+ - config_name: splits
39
+ data_files:
40
+ - split: train
41
+ path: viewer/splits/splits.parquet
42
+ - config_name: rpe1_splits
43
+ data_files:
44
+ - split: train
45
+ path: viewer/splits/rpe1_splits.parquet
46
  ---
47
 
48
  # AMBIMOD benchmark data (K562)
49
 
50
  Derived evaluation data for the AMBIMOD zero-shot perturbation-prediction
51
+ benchmark. The data is organized into Dataset-Viewer configs (browse each
52
+ tab above) plus a ready-to-use archive for the benchmark code.
53
 
54
  ## Dataset Access
 
 
55
 
56
+ Two equivalent access paths:
57
+
58
+ **A. Load individual tables with `datasets`** (what the Dataset Viewer shows):
 
59
 
60
+ ```python
61
+ from datasets import load_dataset
62
 
63
+ cohort = load_dataset("wozhen/ambimod", "cohort", split="train")
64
+ splits = load_dataset("wozhen/ambimod", "splits", split="train")
65
+ responses = load_dataset("wozhen/ambimod", "responses", split="train")
66
  ```
67
+
68
+ **B. Download the benchmark archive** (exact layout the code expects —
69
+ `cache/`, `data/splits/`, checksums):
70
+
71
+ ```bash
72
+ huggingface-cli download wozhen/ambimod --repo-type dataset --local-dir .
73
+ tar xzf ambimod-benchmark-data.tar.gz
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  ```
75
 
76
+ ## Configs (Dataset Viewer tabs)
77
+
78
+ | Config | Rows | Columns | Content |
79
+ |---|---|---|---|
80
+ | `cohort` | 490 | tf, n_cells, sequence_length, sequence, uniprot_header | quality-controlled K562 TF cohort (UniProt-reviewed human sequences) |
81
+ | `annotations` | 490+490 | tf ↔ DBD family (InterPro); tf ↔ paralog list | leakage-control annotations |
82
+ | `responses` | 2,450,000 | tf, replicate (1–5), gene_idx, gene_id, log1p_delta | held-out evaluation responses: log1p-delta per TF × replicate × 1,000 target genes |
83
+ | `embeddings_esm2_650m` | 627,200 | tf, dim, value | ESM2-650M embeddings (490 × 1280, L2-normalized) |
84
+ | `embeddings_esm2_3b` | 1,254,400 | tf, dim, value | ESM2-3B embeddings (490 × 2560) |
85
+ | `embeddings_protrek` | 501,760 | tf, dim, value | ProTrek-650M embeddings (490 × 1024) |
86
+ | `splits` | 7,350 | design, seed, role, tf | the 15 frozen K562 splits (random / dbd_family / embed_ball × 5 seeds), train/test membership |
87
+ | `rpe1_splits` | 6,534 | seed, role, perturbation | frozen RPE1 split manifests (reference for the raw-data pipeline) |
88
+
89
+ Embeddings are stored in long format (`tf, dim, value`) for Viewer
90
+ compatibility; the benchmark archive (`ambimod-benchmark-data.tar.gz`)
91
+ contains the same values as dense `(490, d)` float32 arrays.
92
+
93
+ ## Raw Data Sources
94
+
95
+ - K562 GWPS + RPE1 essentialome (Perturb-seq): https://gwps.wi.mit.edu/
96
+ - K562/RPE1 figshare mirror (RPE1 h5ad, direct download): https://figshare.com/ndownloader/files/42362275
97
+ - Norman 2019 CRISPRa (GEARS-official file, Harvard Dataverse): https://dataverse.harvard.edu/api/access/datafile/6154020
98
+
99
+ ## Embedding provenance
100
 
101
  All embedding caches were **computed by us** from public model weights applied
102
  to the cohort's UniProt-reviewed sequences — no third-party embedding files
 
104
 
105
  | Embedding | Checkpoint | Pooling |
106
  |---|---|---|
107
+ | `esm2_650m` | `facebook/esm2_t33_650M_UR50D` | residue mean (1022-aa length-weighted chunks), L2-normalized |
108
+ | `esm2_3b` | `facebook/esm2_t36_3B_UR50D` | same |
109
+ | `protrek` | `westlake-repl/ProTrek_650M` | official `get_protein_repr` |
110
 
111
  `scripts/recompute_embeddings.py` in the code repository rebuilds any cache
112
  from these checkpoints and fails on checksum mismatch. The RPE1 patched
113
  ProTrek cache and its gated sanity receipt are documented in
114
  `EMBEDDINGS.md` in the code repository.
115
 
116
+ ## Usage with the benchmark code
117
 
118
  ```bash
 
 
119
  pip install -e git+https://github.com/ambimod/ambimod#egg=ambimod
120
  python -c "from mechid.benchmark import load_benchmark; s = load_benchmark(); print(len(s))"
121
  # -> 15