hazemessam commited on
Commit
f7ebd40
·
verified ·
1 Parent(s): 70f23f3

Make this an exact, verified copy of the original source

Browse files

Data files verified against the original source (see README: Verification, Changes).

README.md ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: PEER PPI Affinity
3
+ license: apache-2.0
4
+ tags:
5
+ - biology
6
+ - proteins
7
+ - protein-language-models
8
+ - protein-protein-interaction
9
+ - binding-affinity
10
+ - regression
11
+ - peer
12
+ size_categories:
13
+ - 1K<n<10K
14
+ configs:
15
+ - config_name: default
16
+ default: true
17
+ data_files:
18
+ - split: train
19
+ path: ppi_affinity_train.csv
20
+ - split: validation
21
+ path: ppi_affinity_valid.csv
22
+ - split: test
23
+ path: ppi_affinity_test.csv
24
+ ---
25
+
26
+ # PEER PPI Affinity
27
+
28
+ Pairs of proteins, each labelled with a binding-affinity value. This is the PPI affinity task of **PEER** (Xu et al., 2022),
29
+ exported from PEER's original files without changes to any value.
30
+
31
+ **The task:** given two proteins' sequences (`primary_1`, `primary_2`), predict `interaction` (regression).
32
+
33
+ ## Quick start
34
+
35
+ ```python
36
+ from datasets import load_dataset
37
+
38
+ default = load_dataset("hazemessam/ppi-affinity", "default")
39
+ print(default["train"][0])
40
+ ```
41
+
42
+ ## Files and splits
43
+
44
+ | split | file | pairs | interaction range | length of protein 1 | length of protein 2 |
45
+ | --- | --- | --- | --- | --- | --- |
46
+ | train | `ppi_affinity_train.csv` | 2,421 | -21.41 to -1.36 | 17 to 749 (median 238) | 9 to 439 (median 90) |
47
+ | validation | `ppi_affinity_valid.csv` | 203 | -20.75 to -3.85 | 44 to 749 (median 262) | 32 to 200 (median 124) |
48
+ | test | `ppi_affinity_test.csv` | 326 | -19.25 to -3.81 | 82 to 533 (median 218) | 50 to 192 (median 53) |
49
+
50
+ ## Columns
51
+
52
+ | column | type | role | meaning |
53
+ | --- | --- | --- | --- |
54
+ | `primary_1` | string | **input** | amino-acid sequence of the first protein |
55
+ | `primary_2` | string | **input** | amino-acid sequence of the second protein |
56
+ | `protein_length_1`, `protein_length_2` | int | metadata | lengths of `primary_1` and `primary_2` |
57
+ | `interaction` | float | **label** | binding-affinity value as given by PEER (all values are negative) |
58
+
59
+ ## Verification
60
+
61
+ Checked on 2026-11-13 against the original source. SHA-256 of each file in this repo:
62
+
63
+ | file | SHA-256 | check against source |
64
+ | --- | --- | --- |
65
+ | `ppi_affinity_train.csv` | `d3349c12d0bb91932c9f64076fc3d0bc57151db9d720e4402bee008caddb09b2` | CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
66
+ | `ppi_affinity_valid.csv` | `53a9301001e6de0c5cf7a3d50ab6be1f64f15eb48606e0ca1c552e75428299ff` | CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
67
+ | `ppi_affinity_test.csv` | `a2a8151cd6ad9dcb84ecc7cb73072392ac6eb96004e77174ceab930e1e4c1790` | CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
68
+ | `original/ppi_affinity.zip` | `50cdf38b3fdff405f4715afa83bdd5586c7370d3a260d5d6e62a4e1b8b493dd8` | CSV: every row equals the LMDB record at the same index; archive: byte-identical, MD5 as pinned by torchdrug |
69
+
70
+ ## Source, license and citation
71
+
72
+ From the **PEER** benchmark (Xu et al., NeurIPS Datasets and Benchmarks 2022), as distributed by torchdrug
73
+ (<https://github.com/DeepGraphLearning/PEER_Benchmark>). `original/ppi_affinity.zip` is PEER's archive exactly as torchdrug downloads it from `https://miladeepgraphlearningproteindata.s3.us-east-2.amazonaws.com/` (MD5 `d114907fd20c75820e41881f8901e9e4`, the checksum torchdrug pins). It holds LMDB databases whose values are Python pickles: unpickle them only if you trust the source. PEER's repository is licensed
74
+ Apache-2.0; PEER's paper lists the original source of each task. Please cite PEER:
75
+
76
+ ```bibtex
77
+ @article{xu2022peer,
78
+ title = {PEER: A Comprehensive and Multi-Task Benchmark for Protein Sequence Understanding},
79
+ author = {Xu, Minghao and Zhang, Zuobai and Lu, Jiarui and Zhu, Zhaocheng and Zhang, Yangtian and Ma, Chang and Liu, Runcheng and Tang, Jian},
80
+ journal = {arXiv preprint arXiv:2206.02096},
81
+ year = {2022}
82
+ }
83
+ ```
84
+
85
+ ## Changes
86
+
87
+ Before this update (revision `70f23f3`), the CSVs here had conversion errors; the values themselves were correct:
88
+ - every file ended with an extra empty row (the converter read LMDB's `num_examples` key as a record), which loaded as an example with no sequence;
89
+ - rows were in LMDB key order compared as text (0, 1, 10, 100, …) instead of PEER's order 0, 1, 2, …;
90
+ - integer columns were written as floats (`499.0`);
91
+ The CSVs were rebuilt from PEER's original archive (now included under `original/`).
original/ppi_affinity.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50cdf38b3fdff405f4715afa83bdd5586c7370d3a260d5d6e62a4e1b8b493dd8
3
+ size 157688
ppi_affinity_test.csv CHANGED
The diff for this file is too large to render. See raw diff
 
ppi_affinity_train.csv CHANGED
The diff for this file is too large to render. See raw diff
 
ppi_affinity_valid.csv CHANGED
The diff for this file is too large to render. See raw diff