Datasets:

Modalities:
Text
Formats:
parquet
License:
gabrielbianchin commited on
Commit
aaf15d4
·
1 Parent(s): c0f2157

update README

Browse files
Files changed (1) hide show
  1. README.md +259 -4
README.md CHANGED
@@ -1,11 +1,266 @@
1
- ```python
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  import ast
3
 
4
  def parse_terms(example):
5
  example["terms"] = ast.literal_eval(example["terms"])
6
  return example
7
 
8
- dataset_dict["train"] = dataset_dict["train"].map(parse_terms)
9
- dataset_dict["validation"] = dataset_dict["validation"].map(parse_terms)
10
- dataset_dict["test"] = dataset_dict["test"].map(parse_terms)
 
 
 
 
11
  ```
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-nd-4.0
3
+ tags:
4
+ - bioinformatics
5
+ - protein
6
+ - drug-discovery
7
+ ---
8
+
9
+ # Protein Benchmark for ProtEnrich
10
+ The paper is under review.
11
+
12
+
13
+ \[[Github Repo](https://github.com/pcdslab/ProtEnrich)\] | \[[Model Collection](https://huggingface.co/collections/SaeedLab/protenrich)\] | \[[Cite](#citation)\]
14
+
15
+
16
+ ## Abstract
17
+ Protein language models effectively capture evolutionary and functional signals from sequence data but lack explicit representation of the biophysical properties that govern protein structure and dynamics. Existing multimodal approaches attempt to integrate such physical information through direct fusion, often requiring multimodal inputs at inference time and distorting the sequence embedding space. Consequently, a fundamental challenge of how to incorporate structural and dynamical knowledge into sequence representations without disrupting their established semantic organization remains a field-of-research. We introduce ProtEnrich, a representation learning framework based on a residual multimodal enrichment paradigm. ProtEnrich decomposes sequence embeddings into two complementary latent subspaces, an anchor subspace that preserves sequence semantics, and an alignment subspace that encodes biophysical relationships. By converting multimodal information derived from ProstT5 and RocketSHP to a low-energy residual component, our approach injects physical representation while maintaining the original sequence embedding. Across eight diverse protein foundational models trained on 550,120 SwissProt proteins with AlphaFold structures, enriched embeddings improved zero-shot remote homology retrieval, increasing Precision@10 and MRR by up to 0.13 and 0.11, respectively. Downstream performance also improved on structure-dependent tasks, reducing fluorescence prediction error by up to 16% and increasing metal ion binding AUCROC by up to 2.4 points, while requiring only sequence input at inference.
18
+
19
+ ## Dataset Details
20
+
21
+ This repository provides the benchmarks used in ProtEnrich paper.
22
+
23
+ ### Pretraining
24
+
25
+ This dataset comprises 550,120 proteins from [SwissProt](https://www.uniprot.org/), representing the pretraining database used in the ProtEnrich paper. If you use this dataset, please cite our paper.
26
+
27
+ ### Out-of-distribution
28
+
29
+ This dataset comprises 10,000 proteins from [TrEMBL](https://www.uniprot.org/), representing the proteins out-of-pretraining (out-of-distribution) set. If you use this dataset, please cite our paper.
30
+
31
+ ### Fluorescence
32
+
33
+ The dataset consists of 21,446 training proteins, 5,362 validation proteins, and 27,217 test proteins. Fluorescence values range from 1.28 to 4.12. The objective is to predict the fluorescence intensity of mutant green fluorescent proteins. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2019/hash/37f65c068b7723cd7809ee2d31d7861c-Abstract.html).
34
+
35
+ ### Localization Binary
36
+
37
+ The dataset consists of 5,735 training proteins, 1,009 validation proteins, and 1,728 test proteins. The objective is to determine whether a protein is membrane-bound. If you use this dataset, please cite this [paper](https://academic.oup.com/bioinformatics/article/33/21/3387/3931857?login=false).
38
+
39
+ ### Localization Multiclass
40
+
41
+ The dataset consists of 9,324 training proteins, 1,658 validation proteins, and 2,742 test proteins. The objective is to determine ten possible subcellular compartments. If you use this dataset, please cite this [paper](https://academic.oup.com/bioinformatics/article/33/21/3387/3931857?login=false).
42
+
43
+ ### Metal Ion Binding
44
+
45
+ The dataset consists of 5,066 training proteins, 662 validation proteins, and 665 test proteins. The objective is to predict whether a protein contains a metal ion binding site. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2022/hash/fe066022bab2a6c6a3c57032a1623c70-Abstract-Conference.html).
46
+
47
+ ### Protein-Protein Interaction
48
+
49
+ The dataset consists of 5,131 proteins forming 26,317 training interactions, 215 proteins with 234 validation interactions, and 180 proteins with 180 test interactions. The objective is to determine whether two human proteins interact. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2022/hash/e467582d42d9c13fa9603df16f31de6d-Abstract-Datasets_and_Benchmarks.html).
50
+
51
+ ### Protein Function - Biological Process
52
+
53
+ The dataset consists of 80,185 training proteins, 10,127 validation proteins, and 9,910 test proteins, with 595 possible GO terms. The objective is to predict GO terms considering Biological Process (BP). If you use this dataset, please cite our paper.
54
+
55
+ ### Protein Function - Cellular Component
56
+
57
+ The dataset consists of 85,314 training proteins, 10,753 validation proteins, and 10,467 test proteins, with 560 possible GO terms. The objective is to predict GO terms considering Cellular Component (CC). If you use this dataset, please cite our paper.
58
+
59
+ ### Protein Function - Molecular Function
60
+
61
+ The dataset consists of 75,072 training proteins, 9,295 validation proteins, and 9,235 test proteins, with 550 possible GO terms. The objective is to predict GO terms considering Molecular Function (MF). If you use this dataset, please cite our paper.
62
+
63
+ ### Solubility
64
+
65
+ The dataset consists of 62,478 training proteins, 6,942 validation proteins, and 1,999 test proteins. The objective is to predict whether a protein is soluble. If you use this dataset, please cite this [paper](https://academic.oup.com/bioinformatics/article/34/15/2605/4938490?login=false).
66
+
67
+ ### Thermostability
68
+
69
+ The dataset consists of 5,025 training proteins, 636 validation proteins, and 1,329 test proteins. Thermostability values range from 40.20 to 67.00. The objective is to predict the melting temperature of human proteins. If you use this dataset, please cite this [paper](https://www.biorxiv.org/content/10.1101/2021.11.09.467890v2.abstract).
70
+
71
+ ### Remote Homology - Family
72
+
73
+ The dataset consists of 9,084 proteins. Each protein has a family identifier. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2019/hash/37f65c068b7723cd7809ee2d31d7861c-Abstract.html).
74
+
75
+ ### Remote Homology - Superfamily
76
+
77
+ The dataset consists of 10,524 proteins. Each protein has a superfamily identifier. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2019/hash/37f65c068b7723cd7809ee2d31d7861c-Abstract.html).
78
+
79
+ ### Remote Homology - Fold
80
+
81
+ The dataset consists of 10,892 proteins. Each protein has a fold identifier. If you use this dataset, please cite this [paper](https://proceedings.neurips.cc/paper_files/paper/2019/hash/37f65c068b7723cd7809ee2d31d7861c-Abstract.html).
82
+
83
+ ## Dataset Usage
84
+
85
+ ### Pretraining
86
+
87
+ Use the code below to load the pretraining dataset.
88
+ ```py
89
+ from datasets import load_dataset
90
+
91
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="pretraining")
92
+ ```
93
+
94
+ ### Out-of-distribution
95
+
96
+ Use the code below to load the out-of-distribution dataset.
97
+ ```py
98
+ from datasets import load_dataset
99
+
100
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="out-of-distribution")
101
+ ```
102
+
103
+ ### Fluorescence
104
+
105
+ Use the code below to load the fluorescence dataset.
106
+ ```py
107
+ from datasets import load_dataset
108
+
109
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="fluorescence")
110
+ ```
111
+
112
+ ### Localization Binary
113
+
114
+ Use the code below to load the localization binary dataset.
115
+ ```py
116
+ from datasets import load_dataset
117
+
118
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="localization_bin")
119
+ ```
120
+
121
+ ### Localization Multiclass
122
+
123
+ Use the code below to load the localization multiclasse dataset.
124
+ ```py
125
+ from datasets import load_dataset
126
+
127
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="localization_multi")
128
+ ```
129
+
130
+ ### Metal Ion Binding
131
+
132
+ Use the code below to load the metal ion binding dataset.
133
+ ```py
134
+ from datasets import load_dataset
135
+
136
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="metal_ion_binding")
137
+ ```
138
+
139
+ ### Protein-Protein Interaction
140
+
141
+ Use the code below to load the protein-protein interaction (ppi) dataset.
142
+ ```py
143
+ from datasets import load_dataset
144
+
145
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="ppi")
146
+ ```
147
+
148
+ ### Protein Function - Biological Process
149
+
150
+ Use the code below to load the protein function for biological process dataset.
151
+ ```py
152
+ from datasets import load_dataset
153
+ from huggingface_hub import hf_hub_download
154
  import ast
155
 
156
  def parse_terms(example):
157
  example["terms"] = ast.literal_eval(example["terms"])
158
  return example
159
 
160
+ dataset = load_dataset("SaeedLab/ProtEnrich", data_dir="protein_function_bp")
161
+ dataset["train"] = dataset["train"].map(parse_terms)
162
+ dataset["validation"] = dataset["validation"].map(parse_terms)
163
+ dataset["test"] = dataset["test"].map(parse_terms)
164
+
165
+ ic_values = load_dataset("SaeedLab/ProtEnrich", data_files={"ic": "protein_function_bp/ic.parquet"})['ic'].to_pandas()
166
+ obo_path = hf_hub_download(repo_id="SaeedLab/ProtEnrich", filename=f"protein_function_bp/go-basic.obo", repo_type="dataset")
167
  ```
168
+
169
+ ### Protein Function - Cellular Component
170
+
171
+ Use the code below to load the protein function for cellular component dataset.
172
+ ```py
173
+ from datasets import load_dataset
174
+ from huggingface_hub import hf_hub_download
175
+ import ast
176
+
177
+ def parse_terms(example):
178
+ example["terms"] = ast.literal_eval(example["terms"])
179
+ return example
180
+
181
+ dataset = load_dataset("SaeedLab/ProtEnrich", data_dir="protein_function_cc")
182
+ dataset["train"] = dataset["train"].map(parse_terms)
183
+ dataset["validation"] = dataset["validation"].map(parse_terms)
184
+ dataset["test"] = dataset["test"].map(parse_terms)
185
+
186
+ ic_values = load_dataset("SaeedLab/ProtEnrich", data_files={"ic": "protein_function_cc/ic.parquet"})['ic'].to_pandas()
187
+ obo_path = hf_hub_download(repo_id="SaeedLab/ProtEnrich", filename=f"protein_function_cc/go-basic.obo", repo_type="dataset")
188
+ ```
189
+
190
+ ### Protein Function - Molecular Function
191
+
192
+ Use the code below to load the protein function for molecular function dataset.
193
+ ```py
194
+ from datasets import load_dataset
195
+ from huggingface_hub import hf_hub_download
196
+ import ast
197
+
198
+ def parse_terms(example):
199
+ example["terms"] = ast.literal_eval(example["terms"])
200
+ return example
201
+
202
+ dataset = load_dataset("SaeedLab/ProtEnrich", data_dir="protein_function_mf")
203
+ dataset["train"] = dataset["train"].map(parse_terms)
204
+ dataset["validation"] = dataset["validation"].map(parse_terms)
205
+ dataset["test"] = dataset["test"].map(parse_terms)
206
+
207
+ ic_values = load_dataset("SaeedLab/ProtEnrich", data_files={"ic": "protein_function_mf/ic.parquet"})['ic'].to_pandas()
208
+ obo_path = hf_hub_download(repo_id="SaeedLab/ProtEnrich", filename=f"protein_function_mf/go-basic.obo", repo_type="dataset")
209
+ ```
210
+
211
+ ### Solubility
212
+
213
+ Use the code below to load the solubility dataset.
214
+ ```py
215
+ from datasets import load_dataset
216
+
217
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="solubility")
218
+ ```
219
+
220
+ ### Thermostability
221
+
222
+ Use the code below to load the thermostability dataset.
223
+ ```py
224
+ from datasets import load_dataset
225
+
226
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="thermostability")
227
+ ```
228
+
229
+ ### Remote Homology - Family
230
+
231
+ Use the code below to load the remote homology - family dataset.
232
+ ```py
233
+ from datasets import load_dataset
234
+
235
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="remote_homology_family")
236
+ ```
237
+
238
+ ### Remote Homology - Superfamily
239
+
240
+ Use the code below to load the remote homology - superfamily dataset.
241
+ ```py
242
+ from datasets import load_dataset
243
+
244
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="remote_homology_superfamily")
245
+ ```
246
+
247
+ ### Remote Homology - Fold
248
+
249
+ Use the code below to load the remote homology - fold dataset.
250
+ ```py
251
+ from datasets import load_dataset
252
+
253
+ dataset_dict = load_dataset("SaeedLab/ProtEnrich", data_dir="remote_homology_fold")
254
+ ```
255
+
256
+ ## Citation
257
+
258
+ The paper is under review. As soon as it is accepted, we will update this section.
259
+
260
+ ## License
261
+
262
+ This model and associated code are released under the CC-BY-NC-ND 4.0 license and may only be used for non-commercial, academic research purposes with proper attribution. Any commercial use, sale, or other monetization of this model and its derivatives, which include models trained on outputs from the model or datasets created from the model, is prohibited and requires prior approval. Downloading the model requires prior registration on Hugging Face and agreeing to the terms of use. By downloading this model, you agree not to distribute, publish or reproduce a copy of the model. If another user within your organization wishes to use the model, they must register as an individual user and agree to comply with the terms of use. Users may not attempt to re-identify the deidentified data used to develop the underlying model. If you are a commercial entity, please contact the corresponding author.
263
+
264
+ ## Contact
265
+
266
+ For any additional questions or comments, contact Fahad Saeed (fsaeed@fiu.edu).