File size: 16,990 Bytes
4e3b836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f880234
4e3b836
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ee43bf48-5491-4dc4-aa09-cb4a0f460f97",
   "metadata": {},
   "outputs": [],
   "source": [
    "from openbabel import pybel\n",
    "from Bio.PDB import * \n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "26bc18a2-a6eb-49d3-be80-876ddc7dd8e1",
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "3b59cfb4-c42a-425d-9653-44f07f9e864e",
   "metadata": {},
   "outputs": [],
   "source": [
    "df = pd.read_table('biolip/data/BioLiP_2013-03-6_nr.txt',sep='\\t',header=None,usecols=[0,4,5,6,13,14,15,16,19])\n",
    "df = df.rename(columns={0:'pdb',4:'chain',5:'l_id',6:'l_chain',\n",
    "                        13: 'affinity_lit',14: 'affinity_moad',15: 'affinity_pdbbind-cn',16:'affinity_bindingdb',\n",
    "                        19: 'seq'})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "01123edd-2b98-4fcc-a2e9-28213b9bed82",
   "metadata": {},
   "outputs": [],
   "source": [
    "base = 'biolip/data/ligand_nr/'\n",
    "df['ligand_fn'] = base + df['pdb']+'_'+df['chain']+'_'+df['l_id'].astype(str)+'_'+df['l_chain'].astype(str)+'.pdb'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "bd8671da-66ad-40ad-b221-e33228be65f4",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_complex = pd.read_parquet('data/biolip_complex.parquet')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "id": "08b04d75-c01e-4b26-ae2d-622efae3bd1f",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_affinity = df_complex[~df_complex['affinity_lit'].isnull() | ~df_complex['affinity_moad'].isnull() \n",
    "                         | ~df_complex['affinity_pdbbind-cn'].isnull() | ~df_complex['affinity_bindingdb'].isnull()].copy()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 98,
   "id": "97af5533-10fe-4419-a998-ed80b7d26690",
   "metadata": {},
   "outputs": [],
   "source": [
    "from pint import UnitRegistry\n",
    "import numpy as np\n",
    "import re\n",
    "ureg = UnitRegistry()\n",
    "\n",
    "def to_uM(affinities):\n",
    "    lit, moad, pdbbind, bindingdb = affinities\n",
    "\n",
    "    vals = []\n",
    "    try:\n",
    "        lit = re.split('[=~<>]',str(lit))[1].split(' ')[0]\n",
    "        lit =  ureg(lit).m_as(ureg.uM)\n",
    "        vals.append(lit)\n",
    "    except:\n",
    "        pass\n",
    "\n",
    "    try:\n",
    "        moad = re.split('[=~<>]',str(moad))[1].split(' ')[0]\n",
    "        moad = ureg(moad).m_as(ureg.uM)\n",
    "        vals.append(moad)\n",
    "    except:\n",
    "        pass\n",
    "\n",
    "    try:\n",
    "        pdbbind = re.split('[=~<>]',str(pdbbind))[1].split(' ')[0]\n",
    "        pdbbind = ureg(bindingdb).m_as(ureg.uM)\n",
    "        vals.append(pdbbind)\n",
    "    except:\n",
    "        pass\n",
    "\n",
    "    try:\n",
    "        bindingdb = re.split('[=~<>]',str(bindingdb))[1].split(' ')[0]\n",
    "        bindingdb =  ureg(bindingdb).m_as(ureg.uM)\n",
    "        vals.append(bindingdb)\n",
    "    except:\n",
    "        pass\n",
    "\n",
    "    if len(vals) > 0:\n",
    "        vals = np.array(vals)\n",
    "        return np.mean(vals[~np.isnan(vals)])\n",
    "    \n",
    "    return None"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "id": "e21154a9-d3a0-4aa3-986f-cfeebc280da6",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_affinity['affinity_uM'] = df_affinity[['affinity_lit','affinity_moad','affinity_pdbbind-cn','affinity_bindingdb']].apply(to_uM,axis=1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 101,
   "id": "0fc94de0-823d-4f4f-9904-1c4d1e722c2e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>pdb</th>\n",
       "      <th>chain</th>\n",
       "      <th>l_id</th>\n",
       "      <th>l_chain</th>\n",
       "      <th>affinity_lit</th>\n",
       "      <th>affinity_moad</th>\n",
       "      <th>affinity_pdbbind-cn</th>\n",
       "      <th>affinity_bindingdb</th>\n",
       "      <th>seq</th>\n",
       "      <th>ligand_fn</th>\n",
       "      <th>smiles</th>\n",
       "      <th>affinity_uM</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>11gs</td>\n",
       "      <td>EAA</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>ki=1.5uM (GTT EAA)</td>\n",
       "      <td>Ki=1.5uM (GTT-EAA)</td>\n",
       "      <td>None</td>\n",
       "      <td>PYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKASC...</td>\n",
       "      <td>biolip/data/ligand_nr/11gs_EAA_A_1.pdb</td>\n",
       "      <td>CC[C@H](C(=O)c1ccc(c(c1Cl)Cl)OCC(=O)O)C</td>\n",
       "      <td>1.500</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>13gs</td>\n",
       "      <td>SAS</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>ki=24uM (SAS)</td>\n",
       "      <td>Ki=24uM (SAS)</td>\n",
       "      <td>None</td>\n",
       "      <td>MPPYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKA...</td>\n",
       "      <td>biolip/data/ligand_nr/13gs_SAS_A_1.pdb</td>\n",
       "      <td>OC(=O)c1cc(/N=N/c2ccc(cc2)S(=O)(=O)Nc2ccccn2)c...</td>\n",
       "      <td>24.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>54</th>\n",
       "      <td>17gs</td>\n",
       "      <td>GTX</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>Kd=10000nM</td>\n",
       "      <td>MPPYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKA...</td>\n",
       "      <td>biolip/data/ligand_nr/17gs_GTX_A_1.pdb</td>\n",
       "      <td>CCCCCCSC[C@@H](C(=O)NCC(=O)O)NC(=O)CC[C@@H](C(...</td>\n",
       "      <td>10.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>55</th>\n",
       "      <td>181l</td>\n",
       "      <td>BNZ</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>Ka=5700M^-1 (BNZ)</td>\n",
       "      <td>None</td>\n",
       "      <td>Kd=175000nM</td>\n",
       "      <td>MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAKSEL...</td>\n",
       "      <td>biolip/data/ligand_nr/181l_BNZ_A_1.pdb</td>\n",
       "      <td>c1ccccc1</td>\n",
       "      <td>175.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>56</th>\n",
       "      <td>182l</td>\n",
       "      <td>BZF</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>Ka=8900M^-1 (BZF)</td>\n",
       "      <td>None</td>\n",
       "      <td>Kd=112000nM</td>\n",
       "      <td>MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAKSEL...</td>\n",
       "      <td>biolip/data/ligand_nr/182l_BZF_A_1.pdb</td>\n",
       "      <td>c1ccc2c(c1)occ2</td>\n",
       "      <td>112.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105087</th>\n",
       "      <td>8kme</td>\n",
       "      <td>III</td>\n",
       "      <td>3</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>ki=8uM (BNN CUC TRG LEU PRO)</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>IVEGSDAEIGMSPWQVMLFRKSPQELLCGASLISDRWVLTAAHCLL...</td>\n",
       "      <td>biolip/data/ligand_nr/8kme_III_3_1.pdb</td>\n",
       "      <td>O=C[C@@H](NC(=O)[C@H](Cc1ccc(cc1)OS(O)(O)O)NC(...</td>\n",
       "      <td>8.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105088</th>\n",
       "      <td>8kme</td>\n",
       "      <td>III</td>\n",
       "      <td>4</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>ki=8uM (BNN CUC TRG LEU PRO)</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>IVEGSDAEIGMSPWQVMLFRKSPQELLCGASLISDRWVLTAAHCLL...</td>\n",
       "      <td>biolip/data/ligand_nr/8kme_III_4_1.pdb</td>\n",
       "      <td>CC(C[C@@H](C(=O)N1C=CC[C@H]1C(=O)N)NC(=O)[C@@H...</td>\n",
       "      <td>8.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105106</th>\n",
       "      <td>966c</td>\n",
       "      <td>RS2</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>ki=23nM (RS2)</td>\n",
       "      <td>Ki=23nM (RS2)</td>\n",
       "      <td>None</td>\n",
       "      <td>RWEQTHLTYRIENYTPDLPRADVDHAIEKAFQLWSNVTPLTFTKVS...</td>\n",
       "      <td>biolip/data/ligand_nr/966c_RS2_A_1.pdb</td>\n",
       "      <td>ONC(=O)CC1(CCOCC1)S(=O)(=O)c1ccc(cc1)Oc1ccccc1</td>\n",
       "      <td>0.023</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105124</th>\n",
       "      <td>9icd</td>\n",
       "      <td>NAP</td>\n",
       "      <td>A</td>\n",
       "      <td>1</td>\n",
       "      <td>None</td>\n",
       "      <td>kd=125uM (NAP)</td>\n",
       "      <td>Kd=125uM (NAP)</td>\n",
       "      <td>None</td>\n",
       "      <td>SKVVVPAQGKKITLQNGKLNVPENPIIPYIEGDGIGVDVTPAMLKV...</td>\n",
       "      <td>biolip/data/ligand_nr/9icd_NAP_A_1.pdb</td>\n",
       "      <td>O[C@@H]1[C@@H](COP(=O)(O)O)O[C@H]([C@@H]1OP(=O...</td>\n",
       "      <td>125.000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>105138</th>\n",
       "      <td>9nse</td>\n",
       "      <td>ISU</td>\n",
       "      <td>B</td>\n",
       "      <td>2</td>\n",
       "      <td>None</td>\n",
       "      <td>Ki=0.039uM (ISU)</td>\n",
       "      <td>None</td>\n",
       "      <td>None</td>\n",
       "      <td>KFPRVKNWELGSITYDTLCAQSQQDGPCTPRRCLGSLVLPRKLQTR...</td>\n",
       "      <td>biolip/data/ligand_nr/9nse_ISU_B_2.pdb</td>\n",
       "      <td>CC[Se]C(=N)N</td>\n",
       "      <td>0.039</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>7588 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "         pdb chain l_id  l_chain affinity_lit                 affinity_moad  \\\n",
       "38      11gs   EAA    A        1         None            ki=1.5uM (GTT EAA)   \n",
       "43      13gs   SAS    A        1         None                 ki=24uM (SAS)   \n",
       "54      17gs   GTX    A        1         None                          None   \n",
       "55      181l   BNZ    A        1         None             Ka=5700M^-1 (BNZ)   \n",
       "56      182l   BZF    A        1         None             Ka=8900M^-1 (BZF)   \n",
       "...      ...   ...  ...      ...          ...                           ...   \n",
       "105087  8kme   III    3        1         None  ki=8uM (BNN CUC TRG LEU PRO)   \n",
       "105088  8kme   III    4        1         None  ki=8uM (BNN CUC TRG LEU PRO)   \n",
       "105106  966c   RS2    A        1         None                 ki=23nM (RS2)   \n",
       "105124  9icd   NAP    A        1         None                kd=125uM (NAP)   \n",
       "105138  9nse   ISU    B        2         None              Ki=0.039uM (ISU)   \n",
       "\n",
       "       affinity_pdbbind-cn affinity_bindingdb  \\\n",
       "38      Ki=1.5uM (GTT-EAA)               None   \n",
       "43           Ki=24uM (SAS)               None   \n",
       "54                    None         Kd=10000nM   \n",
       "55                    None        Kd=175000nM   \n",
       "56                    None        Kd=112000nM   \n",
       "...                    ...                ...   \n",
       "105087                None               None   \n",
       "105088                None               None   \n",
       "105106       Ki=23nM (RS2)               None   \n",
       "105124      Kd=125uM (NAP)               None   \n",
       "105138                None               None   \n",
       "\n",
       "                                                      seq  \\\n",
       "38      PYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKASC...   \n",
       "43      MPPYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKA...   \n",
       "54      MPPYTVVYFPVRGRCAALRMLLADQGQSWKEEVVTVETWQEGSLKA...   \n",
       "55      MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAKSEL...   \n",
       "56      MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAKSEL...   \n",
       "...                                                   ...   \n",
       "105087  IVEGSDAEIGMSPWQVMLFRKSPQELLCGASLISDRWVLTAAHCLL...   \n",
       "105088  IVEGSDAEIGMSPWQVMLFRKSPQELLCGASLISDRWVLTAAHCLL...   \n",
       "105106  RWEQTHLTYRIENYTPDLPRADVDHAIEKAFQLWSNVTPLTFTKVS...   \n",
       "105124  SKVVVPAQGKKITLQNGKLNVPENPIIPYIEGDGIGVDVTPAMLKV...   \n",
       "105138  KFPRVKNWELGSITYDTLCAQSQQDGPCTPRRCLGSLVLPRKLQTR...   \n",
       "\n",
       "                                     ligand_fn  \\\n",
       "38      biolip/data/ligand_nr/11gs_EAA_A_1.pdb   \n",
       "43      biolip/data/ligand_nr/13gs_SAS_A_1.pdb   \n",
       "54      biolip/data/ligand_nr/17gs_GTX_A_1.pdb   \n",
       "55      biolip/data/ligand_nr/181l_BNZ_A_1.pdb   \n",
       "56      biolip/data/ligand_nr/182l_BZF_A_1.pdb   \n",
       "...                                        ...   \n",
       "105087  biolip/data/ligand_nr/8kme_III_3_1.pdb   \n",
       "105088  biolip/data/ligand_nr/8kme_III_4_1.pdb   \n",
       "105106  biolip/data/ligand_nr/966c_RS2_A_1.pdb   \n",
       "105124  biolip/data/ligand_nr/9icd_NAP_A_1.pdb   \n",
       "105138  biolip/data/ligand_nr/9nse_ISU_B_2.pdb   \n",
       "\n",
       "                                                   smiles  affinity_uM  \n",
       "38                CC[C@H](C(=O)c1ccc(c(c1Cl)Cl)OCC(=O)O)C        1.500  \n",
       "43      OC(=O)c1cc(/N=N/c2ccc(cc2)S(=O)(=O)Nc2ccccn2)c...       24.000  \n",
       "54      CCCCCCSC[C@@H](C(=O)NCC(=O)O)NC(=O)CC[C@@H](C(...       10.000  \n",
       "55                                               c1ccccc1      175.000  \n",
       "56                                        c1ccc2c(c1)occ2      112.000  \n",
       "...                                                   ...          ...  \n",
       "105087  O=C[C@@H](NC(=O)[C@H](Cc1ccc(cc1)OS(O)(O)O)NC(...        8.000  \n",
       "105088  CC(C[C@@H](C(=O)N1C=CC[C@H]1C(=O)N)NC(=O)[C@@H...        8.000  \n",
       "105106     ONC(=O)CC1(CCOCC1)S(=O)(=O)c1ccc(cc1)Oc1ccccc1        0.023  \n",
       "105124  O[C@@H]1[C@@H](COP(=O)(O)O)O[C@H]([C@@H]1OP(=O...      125.000  \n",
       "105138                                       CC[Se]C(=N)N        0.039  \n",
       "\n",
       "[7588 rows x 12 columns]"
      ]
     },
     "execution_count": 101,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_affinity[~df_affinity['affinity_uM'].isnull()]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 102,
   "id": "2b483565-3c99-4c42-b2a9-f7b97cd8e80e",
   "metadata": {},
   "outputs": [],
   "source": [
    "df_affinity.to_parquet('data/biolip.parquet')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "68dd5e45-b31d-492d-a47e-39072b67fa72",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}