Eachan Johnson commited on
Commit
1389e42
Β·
1 Parent(s): 9f79439

Update README

Browse files
Files changed (1) hide show
  1. README.md +344 -0
README.md CHANGED
@@ -1,3 +1,347 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ task_categories:
4
+ - text-classification
5
+ - text2text-generation
6
+ - translation
7
+ - zero-shot-classification
8
+ tags:
9
+ - chemistry
10
+ - biology
11
+ - SMILES
12
+ - benchmark
13
+ size_categories:
14
+ - 10k<n<100k
15
+ pretty_name: 'Lo-Hi Benchmark'
16
+ configs:
17
+ configs:
18
+ - config_name: hi-drd2-1
19
+ data_files:
20
+ - split: train
21
+ path: "hi/drd2/train_1.csv"
22
+ - split: test
23
+ path: "hi/drd2/test_1.csv"
24
+ - config_name: hi-drd2-2
25
+ data_files:
26
+ - split: train
27
+ path: "hi/drd2/train_2.csv"
28
+ - split: test
29
+ path: "hi/drd2/test_2.csv"
30
+ - config_name: hi-drd2-3
31
+ data_files:
32
+ - split: train
33
+ path: "hi/drd2/train_3.csv"
34
+ - split: test
35
+ path: "hi/drd2/test_3.csv"
36
+ - config_name: hi-hiv-1
37
+ data_files:
38
+ - split: train
39
+ path: "hi/hiv/train_1.csv"
40
+ - split: test
41
+ path: "hi/hiv/test_1.csv"
42
+ - config_name: hi-hiv-2
43
+ data_files:
44
+ - split: train
45
+ path: "hi/hiv/train_2.csv"
46
+ - split: test
47
+ path: "hi/hiv/test_2.csv"
48
+ - config_name: hi-hiv-3
49
+ data_files:
50
+ - split: train
51
+ path: "hi/hiv/train_3.csv"
52
+ - split: test
53
+ path: "hi/hiv/test_3.csv"
54
+ - config_name: hi-kdr-1
55
+ data_files:
56
+ - split: train
57
+ path: "hi/kdr/train_1.csv"
58
+ - split: test
59
+ path: "hi/kdr/test_1.csv"
60
+ - config_name: hi-kdr-2
61
+ data_files:
62
+ - split: train
63
+ path: "hi/kdr/train_2.csv"
64
+ - split: test
65
+ path: "hi/kdr/test_2.csv"
66
+ - config_name: hi-kdr-3
67
+ data_files:
68
+ - split: train
69
+ path: "hi/kdr/train_3.csv"
70
+ - split: test
71
+ path: "hi/kdr/test_3.csv"
72
+ - config_name: hi-sol-1
73
+ data_files:
74
+ - split: train
75
+ path: "hi/sol/train_1.csv"
76
+ - split: test
77
+ path: "hi/sol/test_1.csv"
78
+ - config_name: hi-sol-2
79
+ data_files:
80
+ - split: train
81
+ path: "hi/sol/train_2.csv"
82
+ - split: test
83
+ path: "hi/sol/test_2.csv"
84
+ - config_name: hi-sol-3
85
+ data_files:
86
+ - split: train
87
+ path: "hi/sol/train_3.csv"
88
+ - split: test
89
+ path: "hi/sol/test_3.csv"
90
+ - config_name: lo-drd2-1
91
+ data_files:
92
+ - split: train
93
+ path: "lo/drd2/train_1.csv"
94
+ - split: test
95
+ path: "lo/drd2/test_1.csv"
96
+ - config_name: lo-drd2-2
97
+ data_files:
98
+ - split: train
99
+ path: "lo/drd2/train_2.csv"
100
+ - split: test
101
+ path: "lo/drd2/test_2.csv"
102
+ - config_name: lo-drd2-3
103
+ data_files:
104
+ - split: train
105
+ path: "lo/drd2/train_3.csv"
106
+ - split: test
107
+ path: "lo/drd2/test_3.csv"
108
+ - config_name: lo-kcnh2-1
109
+ data_files:
110
+ - split: train
111
+ path: "lo/kcnh2/train_1.csv"
112
+ - split: test
113
+ path: "lo/kcnh2/test_1.csv"
114
+ - config_name: lo-kcnh2-2
115
+ data_files:
116
+ - split: train
117
+ path: "lo/kcnh2/train_2.csv"
118
+ - split: test
119
+ path: "lo/kcnh2/test_2.csv"
120
+ - config_name: lo-kcnh2-3
121
+ data_files:
122
+ - split: train
123
+ path: "lo/kcnh2/train_3.csv"
124
+ - split: test
125
+ path: "lo/kcnh2/test_3.csv"
126
+ - config_name: lo-kdr-1
127
+ data_files:
128
+ - split: train
129
+ path: "lo/kdr/train_1.csv"
130
+ - split: test
131
+ path: "lo/kdr/test_1.csv"
132
+ - config_name: lo-kdr-2
133
+ data_files:
134
+ - split: train
135
+ path: "lo/kdr/train_2.csv"
136
+ - split: test
137
+ path: "lo/kdr/test_2.csv"
138
+ - config_name: lo-kdr-3
139
+ data_files:
140
+ - split: train
141
+ path: "lo/kdr/train_3.csv"
142
+ - split: test
143
+ path: "lo/kdr/test_3.csv"
144
  ---
145
+ # Lo-Hi Benchmark
146
+
147
+ Data from [Simon Steshin, Lo-Hi: Practical ML Drug Discovery Benchmark](https://arxiv.org/abs/2310.06399), available from the [GitHub repositiory](https://github.com/SteshinSS/lohi_neurips2023). We used [schemist](https://github.com/scbirlab/schemist) (which in turn uses RDKit)
148
+ to add molecuar weight, Murcko scaffold, Crippen cLogP, and topological surface area.
149
+
150
+ ## Dataset Details
151
+
152
+ From the [original README](https://github.com/SteshinSS/lohi_neurips2023?tab=readme-ov-file):
153
+
154
+ ### Hit Identification
155
+ The goal of the Hit Identification task is to find novel molecules that have desirable property, but are dissimilar from the molecules with known activity. There are four datasets simulating this scenario: `DRD2-Hi`, `HIV-Hi`, `KDR-Hi` and `Sol-Hi`. They are binary classification tasks such that the most similar molecules between train and test have ECFP4 Tanimoto similarity < 0.4.
156
+
157
+ - `data/hi/drd2` -- for DRD2-Hi
158
+ - `data/hi/hiv` -- for HIV-Hi
159
+ - `data/hi/kdr` -- for KDR-Hi
160
+ - `data/hi/sol` -- for Sol-Hi
161
+
162
+ There are three splits of the datasets. Use only the first split for the hyperparameter tuning. Train your model with the same hyperparameters for all the three splits and calculate mean metric.
163
+
164
+ Metric: PR AUC.
165
+
166
+ ### Lead Optimization
167
+ The goal of the Lead Optimization task is to predict how minor modifications of a molecule affect its activity. There are three datasets simulating this scenario: `DRD2-Lo`, `KCNH2-Lo` and more challenging `KDR-Lo`. They are ranking tasks that have clusters in the test set, so that the molecules in each clusters are quite similar with Tanimoto similarity > 0.4 to the central molecules, and each cluster has one similar molecule in the train set, representing known hit.
168
+
169
+ - `data/lo/drd2` -- for DRD2-Lo
170
+ - `data/lo/kcnh2` -- for KCNH2-Lo
171
+ - `data/lo/kdr` -- for KDR-Lo
172
+
173
+ There are three splits of the datasets. Use only the first split for the hyperparameter tuning. Train your model with the same hyperparameters for all the three splits and calculate mean metric.
174
+
175
+ Metric: spearman correlation is calculated for each cluster in the test set and the mean is taken.
176
+
177
+ ### Dataset Description
178
+
179
+ - **Curated by:** Simon Steshin
180
+ <!-- - **Funded by:** The Francis Crick Institute -->
181
+ - **License:** MIT
182
+
183
+ ### Dataset Sources [optional]
184
+
185
+ <!-- Provide the basic links for the dataset. -->
186
+
187
+ - **Repository:** https://github.com/SteshinSS/lohi_neurips2023
188
+ - **Paper:** https://arxiv.org/abs/2310.06399
189
+ <!-- - **Demo [optional]:** [More Information Needed] -->
190
+
191
+ ## Uses
192
+
193
+ Bechmarking chemical property prediction models.
194
+
195
+ <!-- ### Direct Use -->
196
+
197
+ <!-- This section describes suitable use cases for the dataset. -->
198
+
199
+ <!-- [More Information Needed]
200
+
201
+ ### Out-of-Scope Use
202
+
203
+ <!-- This section addresses misuse, malicious use, and uses that the dataset will not work well for. -->
204
+
205
+ <!-- [More Information Needed] -->
206
+
207
+ ## Dataset Structure
208
+
209
+ The data are divided into the Hit Identification (`hi`, binary classification) and Lead Optimization (`lo`, regression) tasks. Within each are several datasets from a number of assays. Within each of these are three splits of train and test.
210
+
211
+ Each split is in a separate pair of train and test files. So the files for split 1 are in `train_1.csv.gz`, `test_1.csv.gz` and the files for split 2 are in `train_2.csv.gz`, `test_2.csv.gz`.
212
+
213
+ ```
214
+ .
215
+ β”œβ”€β”€ hi
216
+ β”‚ β”œβ”€β”€ drd2
217
+ β”‚ β”‚ β”œβ”€β”€ test_1.csv.gz
218
+ β”‚ β”‚ β”œβ”€β”€ test_2.csv.gz
219
+ β”‚ β”‚ β”œβ”€β”€ test_3.csv.gz
220
+ β”‚ β”‚ β”œβ”€β”€ train_1.csv.gz
221
+ β”‚ β”‚ β”œβ”€β”€ train_2.csv.gz
222
+ β”‚ β”‚ └── train_3.csv.gz
223
+ β”‚ β”œβ”€β”€ hiv
224
+ β”‚ β”‚ β”œβ”€β”€ test_1.csv.gz
225
+ β”‚ β”‚ β”œβ”€β”€ test_2.csv.gz
226
+ β”‚ β”‚ β”œβ”€β”€ test_3.csv.gz
227
+ β”‚ β”‚ β”œβ”€β”€ train_1.csv.gz
228
+ β”‚ β”‚ β”œβ”€β”€ train_2.csv.gz
229
+ β”‚ β”‚ └── train_3.csv.gz
230
+ β”‚ β”œβ”€β”€ kdr
231
+ β”‚ β”‚ β”œβ”€β”€ test_1.csv.gz
232
+ β”‚ β”‚ β”œβ”€β”€ test_2.csv.gz
233
+ β”‚ β”‚ β”œβ”€β”€ test_3.csv.gz
234
+ β”‚ β”‚ β”œβ”€β”€ train_1.csv.gz
235
+ β”‚ β”‚ β”œβ”€β”€ train_2.csv.gz
236
+ β”‚ β”‚ └── train_3.csv.gz
237
+ β”‚ └── sol
238
+ β”‚ β”œβ”€β”€ test_1.csv.gz
239
+ β”‚ β”œβ”€β”€ test_2.csv.gz
240
+ β”‚ β”œβ”€β”€ test_3.csv.gz
241
+ β”‚ β”œβ”€β”€ train_1.csv.gz
242
+ β”‚ β”œβ”€β”€ train_2.csv.gz
243
+ β”‚ └── train_3.csv.gz
244
+ └── lo
245
+ β”œβ”€β”€ drd2
246
+ β”‚ β”œβ”€β”€ test_1.csv.gz
247
+ β”‚ β”œβ”€β”€ test_2.csv.gz
248
+ β”‚ β”œβ”€β”€ test_3.csv.gz
249
+ β”‚ β”œβ”€β”€ train_1.csv.gz
250
+ β”‚ β”œβ”€β”€ train_2.csv.gz
251
+ β”‚ └── train_3.csv.gz
252
+ β”œβ”€β”€ kcnh2
253
+ β”‚ β”œβ”€β”€ test_1.csv.gz
254
+ β”‚ β”œβ”€β”€ test_2.csv.gz
255
+ β”‚ β”œβ”€β”€ test_3.csv.gz
256
+ β”‚ β”œβ”€β”€ train_1.csv.gz
257
+ β”‚ β”œβ”€β”€ train_2.csv.gz
258
+ β”‚ └── train_3.csv.gz
259
+ └── kdr
260
+ β”œβ”€β”€ test_1.csv.gz
261
+ β”œβ”€β”€ test_2.csv.gz
262
+ β”œβ”€β”€ test_3.csv.gz
263
+ β”œβ”€β”€ train_1.csv.gz
264
+ β”œβ”€β”€ train_2.csv.gz
265
+ └── train_3.csv.gz
266
+ ```
267
+
268
+ The column headings of the data are:
269
+
270
+ - **smiles**: SMILES string
271
+ - **value**: The assay result. This is True/False for `hi` and numeric for `lo`.
272
+ - **id**: Numeric structure identifier
273
+ - **inchikey**: Unique structure identifier
274
+ - **scaffold**: Murcko scaffold
275
+ - **mwt**: Molecular weight
276
+ - **clogp**: Crippen LogP
277
+ - **tpsa**: Calculated topological polar surface area.
278
+
279
+ The `hi` datasets also have a `cluster` column, indicating the structural cluster of the compound.
280
+
281
+ ## Dataset Creation
282
+
283
+ ### Curation Rationale
284
+
285
+ To make the Lo-Hi Benchmark readily available with light preprocessing.
286
+
287
+ #### Data Collection and Processing
288
+
289
+ Additional properties were calculated using [schemist](https://github.com/scbirlab/schemist), a tool for processing chemical datasets.
290
+
291
+ #### Who are the source data producers?
292
+
293
+ Simon Steshin (https://github.com/SteshinSS).
294
+
295
+ #### Personal and Sensitive Information
296
+
297
+ None
298
+
299
+ <!-- ## Bias, Risks, and Limitations -->
300
+
301
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
302
+
303
+ <!-- [More Information Needed] -->
304
+
305
+ <!-- ### Recommendations -->
306
+
307
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
308
+
309
+ <!-- Users should be made aware of the risks, biases and limitations of the dataset. More information needed for further recommendations. -->
310
+
311
+ ## Citation
312
+
313
+ <!-- If there is a paper or blog post introducing the dataset, the APA and Bibtex information for that should go in this section. -->
314
+
315
+ **BibTeX:**
316
+
317
+ ```
318
+ @misc{steshin2023lohipracticalmldrug,
319
+ title={Lo-Hi: Practical ML Drug Discovery Benchmark},
320
+ author={Simon Steshin},
321
+ year={2023},
322
+ eprint={2310.06399},
323
+ archivePrefix={arXiv},
324
+ primaryClass={cs.LG},
325
+ url={https://arxiv.org/abs/2310.06399},
326
+ }
327
+ ```
328
+
329
+ <!-- **APA:** -->
330
+
331
+ <!-- ## Glossary [optional] -->
332
+
333
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the dataset or dataset card. -->
334
+
335
+ <!-- [More Information Needed]
336
+
337
+ <!-- ## More Information [optional]
338
+
339
+ <!-- [More Information Needed]
340
+
341
+ <!-- ## Dataset Card Authors [optional]
342
+
343
+ <!-- [More Information Needed] -->
344
+
345
+ ## Dataset Card Contact
346
+
347
+ [@eachanjohnson](https://huggingface.co/eachanjohnson)