anindya64 commited on
Commit
d17a8bb
·
verified ·
1 Parent(s): 0804861

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +144 -54
README.md CHANGED
@@ -1,84 +1,174 @@
1
  ---
2
- license: other
3
  pretty_name: SKEMPI v2
4
- size_categories:
5
- - 1K<n<10K
6
- task_categories:
7
- - other
8
- language:
9
- - en
10
  tags:
11
- - biology
12
- - proteins
13
- - binding-affinity
14
- - mutation
15
- - skempi
16
- - jsonl
 
 
 
 
 
 
 
 
17
  ---
18
 
19
  # SKEMPI v2
20
 
21
- SKEMPI v2 protein-protein binding affinity mutation dataset, normalized to newline-delimited JSON with row-level provenance.
22
 
23
- Processed and uploaded by the [MegaData](https://github.com/) post-download pipeline
24
- (internal repo). Original source: <https://life.bsc.es/pid/skempi2>.
25
 
26
- ## Statistics
27
 
28
- | | |
29
- |---|---|
30
- | Table files | 1 |
31
- | Total rows | 7,085 |
32
- | Total bytes | 5.86 MiB (6,148,969) |
33
 
34
- ## Tables
35
 
36
- | Table | Rows | Bytes |
37
- |---|---:|---:|
38
- | `labeled_skempi2_skempi_v2.csv.jsonl` | 7,085 | 5.86 MiB |
39
 
40
- ## Layout
41
 
42
- ```
43
- .
44
- ├── _MANIFEST.json # aggregate manifest (per-table counts)
45
- └── tables/<source_slug>.jsonl # normalized rows (one JSON object per line)
46
- ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
- Each line in a `tables/*.jsonl` file is a JSON object with at least
49
- `dataset_id`, `row` (the raw upstream row), `row_index`, and `source_file`
50
- fields, so every row carries its upstream provenance.
51
 
52
- ## Loading
53
 
54
  ```bash
55
  hf download LiteFold/SKEMPI2 --repo-type dataset --local-dir ./skempi2
56
  ```
57
 
58
- Programmatic streaming:
59
 
60
  ```python
61
- import json
62
- from pathlib import Path
63
- from huggingface_hub import snapshot_download
64
-
65
- local = snapshot_download(repo_id="LiteFold/SKEMPI2", repo_type="dataset")
66
- for jsonl in sorted(Path(local, "tables").glob("*.jsonl")):
67
- with jsonl.open() as f:
68
- for line in f:
69
- row = json.loads(line)
70
- ... # row["row"] is the upstream record
71
  ```
72
 
73
- ## License
74
 
75
- See upstream SKEMPI v2 license.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
- ## Citation
78
 
79
- > Jankauskaite J, et al. SKEMPI 2.0: an updated benchmark of changes in protein-protein binding energy, kinetics and thermodynamics upon mutation. Bioinformatics, 35(3):462-469, 2019.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
- ## Provenance
82
 
83
- Built from the local manifest entry `skempi2` of `manifests/atlas_download_plan.json`.
84
- Pipeline source: `megadata-post normalize --dataset skempi2 --tables-only`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
 
2
  pretty_name: SKEMPI v2
3
+ license: other
 
 
 
 
 
4
  tags:
5
+ - biology
6
+ - protein
7
+ - protein-protein-interaction
8
+ - binding-affinity
9
+ - mutation
10
+ - protein-engineering
11
+ - skempi
12
+ - skempi2
13
+ - jsonl
14
+ configs:
15
+ - config_name: default
16
+ data_files:
17
+ - split: train
18
+ path: tables/labeled_skempi2_skempi_v2.csv.jsonl
19
  ---
20
 
21
  # SKEMPI v2
22
 
23
+ SKEMPI v2 is a manually curated benchmark of experimentally measured changes in protein-protein binding affinity, kinetics, and thermodynamics upon mutation. It focuses on structurally resolved protein-protein interactions, linking mutations to PDB complexes and literature-derived binding measurements. The dataset is commonly used to evaluate models that predict mutation effects on protein interfaces, binding free energy changes, and protein complex stability.
24
 
25
+ This Hugging Face mirror stores the SKEMPI v2 CSV as normalized JSONL rows with provenance. Each record contains the original upstream row under `row`, plus `dataset_id`, `row_index`, and `source_file`. The upstream table contains 7,085 mutation records, including single and multiple mutations, wild-type and mutant affinities, optional kinetic measurements, optional enthalpy and entropy values, experiment temperature, literature references, protein names, and SKEMPI version labels.
 
26
 
27
+ ## Splits
28
 
29
+ - `train`: 7,085 rows
 
 
 
 
30
 
31
+ There is no official train/test split in this mirror. Users should define task-specific splits carefully, for example by holding out PDB complexes, protein pairs, or interaction families, to avoid leakage between similar mutations from the same complex.
32
 
33
+ ## Columns
 
 
34
 
35
+ Every JSONL record has these outer fields:
36
 
37
+ - `dataset_id`: dataset identifier, always `skempi2`
38
+ - `row`: raw upstream SKEMPI CSV row stored as a nested JSON object
39
+ - `row_index`: zero-based row index in the upstream source table
40
+ - `source_file`: original source path, `labeled/skempi2/skempi_v2.csv`
41
+
42
+ The upstream SKEMPI CSV fields are semicolon-separated and include:
43
+
44
+ - `#Pdb`: PDB complex and chain identifier
45
+ - `Mutation(s)_PDB`: mutation notation using PDB residue numbering
46
+ - `Mutation(s)_cleaned`: cleaned mutation notation
47
+ - `iMutation_Location(s)`: mutation location class, such as core, rim, support, or surface
48
+ - `Hold_out_type`, `Hold_out_proteins`: split/grouping metadata from SKEMPI
49
+ - `Affinity_mut (M)`, `Affinity_mut_parsed`: mutant binding affinity
50
+ - `Affinity_wt (M)`, `Affinity_wt_parsed`: wild-type binding affinity
51
+ - `Reference`: source publication identifier
52
+ - `Protein 1`, `Protein 2`: interacting protein names
53
+ - `Temperature`: experimental temperature
54
+ - `kon_mut`, `kon_wt`: mutant and wild-type association rates when available
55
+ - `koff_mut`, `koff_wt`: mutant and wild-type dissociation rates when available
56
+ - `dH_mut`, `dH_wt`: mutant and wild-type enthalpy values when available
57
+ - `dS_mut`, `dS_wt`: mutant and wild-type entropy values when available
58
+ - `Notes`: free-text notes
59
+ - `Method`: experimental method
60
+ - `SKEMPI version`: source SKEMPI version label
61
 
62
+ ## Usage
 
 
63
 
64
+ Download the repository:
65
 
66
  ```bash
67
  hf download LiteFold/SKEMPI2 --repo-type dataset --local-dir ./skempi2
68
  ```
69
 
70
+ Load the JSONL table with `datasets`:
71
 
72
  ```python
73
+ from datasets import load_dataset
74
+
75
+ ds = load_dataset("LiteFold/SKEMPI2", split="train")
76
+ print(ds[0])
 
 
 
 
 
 
77
  ```
78
 
79
+ The current mirror keeps the original semicolon-separated CSV row as the single value inside `row`. This helper expands it into a normal dictionary:
80
 
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ HEADER = (
85
+ "#Pdb;Mutation(s)_PDB;Mutation(s)_cleaned;iMutation_Location(s);"
86
+ "Hold_out_type;Hold_out_proteins;Affinity_mut (M);Affinity_mut_parsed;"
87
+ "Affinity_wt (M);Affinity_wt_parsed;Reference;Protein 1;Protein 2;"
88
+ "Temperature;kon_mut (M^(-1)s^(-1));kon_mut_parsed;"
89
+ "kon_wt (M^(-1)s^(-1));kon_wt_parsed;koff_mut (s^(-1));"
90
+ "koff_mut_parsed;koff_wt (s^(-1));koff_wt_parsed;"
91
+ "dH_mut (kcal mol^(-1));dH_wt (kcal mol^(-1));"
92
+ "dS_mut (cal mol^(-1) K^(-1));dS_wt (cal mol^(-1) K^(-1));"
93
+ "Notes;Method;SKEMPI version"
94
+ )
95
+
96
+ fields = HEADER.split(";")
97
+
98
+ def expand_record(record):
99
+ raw_value = record["row"][HEADER]
100
+ values = raw_value.split(";")
101
+ parsed = dict(zip(fields, values))
102
+ parsed["dataset_id"] = record["dataset_id"]
103
+ parsed["row_index"] = record["row_index"]
104
+ parsed["source_file"] = record["source_file"]
105
+ return parsed
106
+
107
+ ds = load_dataset("LiteFold/SKEMPI2", split="train")
108
+ row = expand_record(ds[0])
109
+
110
+ print(row["#Pdb"])
111
+ print(row["Mutation(s)_cleaned"])
112
+ print(row["Affinity_mut_parsed"], row["Affinity_wt_parsed"])
113
+ ```
114
 
115
+ Stream and compute a simple binding-affinity change target:
116
 
117
+ ```python
118
+ import math
119
+ from datasets import load_dataset
120
+
121
+ R = 1.9872036e-3 # kcal mol^-1 K^-1
122
+ DEFAULT_T = 298.15
123
+
124
+ ds = load_dataset("LiteFold/SKEMPI2", split="train", streaming=True)
125
+
126
+ for record in ds:
127
+ row = expand_record(record)
128
+ kd_mut = float(row["Affinity_mut_parsed"])
129
+ kd_wt = float(row["Affinity_wt_parsed"])
130
+ temperature = float(row["Temperature"] or DEFAULT_T)
131
+ ddg = R * temperature * math.log(kd_mut / kd_wt)
132
+ print(row["#Pdb"], row["Mutation(s)_cleaned"], ddg)
133
+ break
134
+ ```
135
 
136
+ Load directly from the JSONL path:
137
 
138
+ ```python
139
+ from datasets import load_dataset
140
+
141
+ ds = load_dataset(
142
+ "json",
143
+ data_files="hf://datasets/LiteFold/SKEMPI2/tables/labeled_skempi2_skempi_v2.csv.jsonl",
144
+ split="train",
145
+ )
146
+ ```
147
+
148
+ ## Data Notes
149
+
150
+ SKEMPI v2 contains experimentally curated values, but it is still a benchmark that needs careful splitting. Random row splits can leak information because many records share the same PDB complex, protein pair, or closely related mutations. For model evaluation, prefer complex-level, protein-pair-level, or interaction-family-level splits depending on the question.
151
+
152
+ Binding affinities are reported as dissociation constants in molar units. A common derived supervised target is `ddG = R * T * ln(Kd_mut / Kd_wt)`, but users should check units, missing temperatures, censored or non-detectable binding values, and multi-mutation rows before training or benchmarking.
153
+
154
+ The Hugging Face dataset viewer may fail to preview this mirror because the original CSV row is nested under a long header key. The local JSONL and `datasets` loading examples above are the most reliable way to consume the current upload.
155
+
156
+ ## License
157
+
158
+ The dataset card metadata uses `license: other` because SKEMPI v2 should be used according to the upstream SKEMPI terms and citation requirements.
159
+
160
+ # Citation
161
+
162
+ ```bibtex
163
+ @article{jankauskaite2019skempi2,
164
+ title = {{SKEMPI} 2.0: an updated benchmark of changes in protein-protein binding energy, kinetics and thermodynamics upon mutation},
165
+ author = {Jankauskait{\.e}, Justina and Jim{\'e}nez-Garc{\'i}a, Brian and Dapk{\=u}nas, Justas and Fern{\'a}ndez-Recio, Juan and Moal, Iain H.},
166
+ journal = {Bioinformatics},
167
+ volume = {35},
168
+ number = {3},
169
+ pages = {462--469},
170
+ year = {2019},
171
+ doi = {10.1093/bioinformatics/bty635},
172
+ url = {https://doi.org/10.1093/bioinformatics/bty635}
173
+ }
174
+ ```