lhallee commited on
Commit
f770b38
·
verified ·
1 Parent(s): 4078f3c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +197 -33
README.md CHANGED
@@ -1,35 +1,199 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: seqs
5
- dtype: string
6
- - name: labels
7
- dtype: float64
8
- - name: Accession
9
- dtype: string
10
- - name: Organism
11
- dtype: string
12
- - name: EC Number
13
- dtype: string
14
- splits:
15
- - name: train
16
- num_bytes: 3461335
17
- num_examples: 7124
18
- - name: valid
19
- num_bytes: 372844
20
- num_examples: 760
21
- - name: test
22
- num_bytes: 954440
23
- num_examples: 1971
24
- download_size: 4258985
25
- dataset_size: 4788619
26
- configs:
27
- - config_name: default
28
- data_files:
29
- - split: train
30
- path: data/train-*
31
- - split: valid
32
- path: data/valid-*
33
- - split: test
34
- path: data/test-*
35
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - tabular-regression
5
+ tags:
6
+ - protein
7
+ - enzymes
8
+ - pH
9
+ - regression
10
+ - biology
11
+ pretty_name: Optimal pH (EpHod pHopt)
12
+ size_categories:
13
+ - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  ---
15
+
16
+ # Optimal pH (`optimal_ph`)
17
+
18
+ Enzyme optimum-pH (`pHopt`) regression dataset. Each row is a single enzyme
19
+ with its UniProt accession, amino acid sequence, and the experimentally
20
+ reported pH at which its catalytic activity is maximal. This is a
21
+ re-release of the exact train/valid/test split used in the EpHod paper
22
+ (Gado *et al.*, 2025), mirrored from the authors' Zenodo deposit and
23
+ reformatted for the Hugging Face `datasets` library.
24
+
25
+ - **Task:** regression (predict `labels` ∈ ℝ from `seqs`)
26
+ - **Input:** single-chain protein sequence (amino acids, length 32–1022)
27
+ - **Target:** optimum pH (typically ~1.0 to ~12.5, centered near 7)
28
+ - **n = 9,855** enzymes over 7,124 train / 760 valid / 1,971 test
29
+
30
+ ## Columns
31
+
32
+ | column | dtype | description |
33
+ |-------------|--------|-----------------------------------------------------|
34
+ | `seqs` | string | single-letter amino acid sequence |
35
+ | `labels` | float | experimental pHopt (mean over BRENDA entries) |
36
+ | `Accession` | string | UniProt accession |
37
+ | `Organism` | string | source organism (species) from UniProt |
38
+ | `EC Number` | string | Enzyme Commission number |
39
+
40
+ ## Splits
41
+
42
+ | split | rows | note |
43
+ |-------|-------|------------------------------------------------------------|
44
+ | train | 7,124 | mmseqs2 clusters at 20% identity, 90% of non-test clusters |
45
+ | valid | 760 | 10% of non-test clusters |
46
+ | test | 1,971 | held-out 20% random sample of the full dataset |
47
+
48
+ The split is inherited verbatim from the EpHod paper. The test set spans the
49
+ same pHopt distribution as training (not identity-held-out), so performance
50
+ on this split does **not** measure generalisation to dissimilar sequences by
51
+ itself. For that, use the paper's `Test <20% to Train` annotation (not
52
+ included here; available in the Zenodo deposit).
53
+
54
+ ## Usage
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ ds = load_dataset("GleghornLab/optimal_ph")
60
+ print(ds)
61
+ print(ds["test"][0])
62
+ ```
63
+
64
+ ## Known caveat: sequence-level leakage
65
+
66
+ The authors' published split contains **24 byte-identical sequences that
67
+ appear in more than one split** (20 train↔test, 4 valid↔test). These are
68
+ orthologs, paralogs, or reviewed/unreviewed pairs with different UniProt
69
+ accessions but identical amino acid strings. Some pairs have conflicting
70
+ pHopt labels or different EC annotations, which puts a ceiling on test RMSE
71
+ for any model that memorises training examples.
72
+
73
+ 9,855 accessions collapse to 9,774 unique sequences; 24 of the duplicates
74
+ cross split boundaries.
75
+
76
+ If you need a leakage-free split, de-duplicate by sequence or re-cluster
77
+ train+valid+test jointly before training.
78
+
79
+ ## Construction
80
+
81
+ This Hub dataset was built from the authors' raw `pHopt_data.csv` (Zenodo
82
+ deposit linked below) with the following one-shot transform:
83
+
84
+ ```python
85
+ import pandas as pd
86
+ from datasets import Dataset, DatasetDict
87
+
88
+ SPLIT_MAP = {"Training": "train", "Validation": "valid", "Testing": "test"}
89
+ KEEP_COLS = ["seqs", "labels", "Accession", "Organism", "EC Number"]
90
+
91
+ df = pd.read_csv("pHopt_data.csv", index_col=0)
92
+ df = df.rename(columns={"Sequence": "seqs", "pHopt": "labels"})
93
+ df = df.drop(columns=["Sample Weight", "Test <20% to Train"])
94
+
95
+ dsd = DatasetDict({
96
+ new_name: Dataset.from_pandas(
97
+ df[df["Split"] == raw_name][KEEP_COLS].reset_index(drop=True),
98
+ preserve_index=False,
99
+ )
100
+ for raw_name, new_name in SPLIT_MAP.items()
101
+ })
102
+ dsd.push_to_hub("GleghornLab/optimal_ph")
103
+ ```
104
+
105
+ ## Source data
106
+
107
+ - **BRENDA** (accessed 2022-05-25): 49,227 pH-optimum entries; 11,174 had
108
+ UniProt sequence mappings. Multiple entries per sequence were averaged if
109
+ within 1.0 pH unit, else dropped. Sequences <32 or >1022 aa were dropped,
110
+ leaving 9,855.
111
+ - **UniProt**: canonical sequences for the retained accessions.
112
+ - **Split**: 20% random holdout → test; remaining clustered with MMseqs2 at
113
+ 20% identity, 90/10 cluster split → train/valid.
114
+
115
+ ## License
116
+
117
+ Released under MIT to match the [EpHod code release](https://github.com/jafetgado/EpHod).
118
+ Underlying BRENDA and UniProt data are subject to their own terms
119
+ (BRENDA academic licence; UniProt CC BY 4.0); cite the sources below.
120
+
121
+ ## Citations
122
+
123
+ EpHod paper (Nature Machine Intelligence, 2025):
124
+
125
+ ```bibtex
126
+ @article{Gado2025EpHod,
127
+ title = {Deep learning prediction of enzyme optimum pH},
128
+ author = {Gado, Japheth E. and Knotts, Matthew and Shaw, Amber M. and
129
+ Marks, Debora and Gauthier, Nicholas P. and Hopf, Thomas A. and
130
+ Beckham, Gregg T.},
131
+ journal = {Nature Machine Intelligence},
132
+ year = {2025},
133
+ doi = {10.1038/s42256-025-01026-6},
134
+ url = {https://www.nature.com/articles/s42256-025-01026-6}
135
+ }
136
+ ```
137
+
138
+ bioRxiv preprint:
139
+
140
+ ```bibtex
141
+ @article{Gado2023EpHodPreprint,
142
+ title = {Deep learning prediction of enzyme optimum pH},
143
+ author = {Gado, Japheth E. and Knotts, Matthew and Shaw, Amber M. and
144
+ Marks, Debora and Gauthier, Nicholas P. and Hopf, Thomas A. and
145
+ Beckham, Gregg T.},
146
+ journal = {bioRxiv},
147
+ year = {2023},
148
+ doi = {10.1101/2023.06.22.544776},
149
+ url = {https://www.biorxiv.org/content/10.1101/2023.06.22.544776v2}
150
+ }
151
+ ```
152
+
153
+ Zenodo data deposit (v1):
154
+
155
+ ```bibtex
156
+ @dataset{Gado2024EpHodData,
157
+ title = {EpHod: Deep learning prediction of enzyme optimum pH (dataset)},
158
+ author = {Gado, Japheth E. and Knotts, Matthew and Shaw, Amber M. and
159
+ Marks, Debora and Gauthier, Nicholas P. and Hopf, Thomas A. and
160
+ Beckham, Gregg T.},
161
+ publisher = {Zenodo},
162
+ year = {2024},
163
+ doi = {10.5281/zenodo.14252615},
164
+ url = {https://doi.org/10.5281/zenodo.14252615}
165
+ }
166
+ ```
167
+
168
+ BRENDA (primary data source):
169
+
170
+ ```bibtex
171
+ @article{Chang2021BRENDA,
172
+ title = {BRENDA, the ELIXIR core data resource in 2021: new developments
173
+ and updates},
174
+ author = {Chang, Antje and Jeske, Lisa and Ulbrich, Sandra and Hofmann,
175
+ Julia and Koblitz, Julia and Schomburg, Ida and Neumann-Schaal,
176
+ Meina and Jahn, Dieter and Schomburg, Dietmar},
177
+ journal = {Nucleic Acids Research},
178
+ volume = {49},
179
+ number = {D1},
180
+ pages = {D498--D508},
181
+ year = {2021},
182
+ doi = {10.1093/nar/gkaa1025}
183
+ }
184
+ ```
185
+
186
+ UniProt (sequences):
187
+
188
+ ```bibtex
189
+ @article{UniProt2023,
190
+ title = {UniProt: the Universal Protein Knowledgebase in 2023},
191
+ author = {{The UniProt Consortium}},
192
+ journal = {Nucleic Acids Research},
193
+ volume = {51},
194
+ number = {D1},
195
+ pages = {D523--D531},
196
+ year = {2023},
197
+ doi = {10.1093/nar/gkac1052}
198
+ }
199
+ ```