really remove all KRAS proteins
Browse files- combine_dbs.ipynb +36 -35
- data/all_nokras.parquet +2 -2
combine_dbs.ipynb
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"id": "95bd761a-fe51-4a8e-bc70-1365260ba5f8",
|
7 |
"metadata": {},
|
8 |
"outputs": [],
|
@@ -12,7 +12,7 @@
|
|
12 |
},
|
13 |
{
|
14 |
"cell_type": "code",
|
15 |
-
"execution_count":
|
16 |
"id": "b0859483-5e19-4280-9f53-0d00a6f22d34",
|
17 |
"metadata": {},
|
18 |
"outputs": [],
|
@@ -23,7 +23,7 @@
|
|
23 |
},
|
24 |
{
|
25 |
"cell_type": "code",
|
26 |
-
"execution_count":
|
27 |
"id": "f30732b7-7444-47ad-84e7-566e7a6f2f8e",
|
28 |
"metadata": {},
|
29 |
"outputs": [
|
@@ -104,7 +104,7 @@
|
|
104 |
"4 CO[C@@H]1[C@H](O[C@H]([C@@H]1O)n1ccc(=O)[nH]c1... 0.185 "
|
105 |
]
|
106 |
},
|
107 |
-
"execution_count":
|
108 |
"metadata": {},
|
109 |
"output_type": "execute_result"
|
110 |
}
|
@@ -115,7 +115,7 @@
|
|
115 |
},
|
116 |
{
|
117 |
"cell_type": "code",
|
118 |
-
"execution_count":
|
119 |
"id": "2787b9fd-3d6f-4ae3-a3ad-d3539b72782b",
|
120 |
"metadata": {},
|
121 |
"outputs": [],
|
@@ -135,7 +135,7 @@
|
|
135 |
},
|
136 |
{
|
137 |
"cell_type": "code",
|
138 |
-
"execution_count":
|
139 |
"id": "d1abe1c8-ac66-4289-8964-367a5b18528d",
|
140 |
"metadata": {},
|
141 |
"outputs": [],
|
@@ -146,7 +146,7 @@
|
|
146 |
},
|
147 |
{
|
148 |
"cell_type": "code",
|
149 |
-
"execution_count":
|
150 |
"id": "988bab9c-5147-44e2-92ef-902eaf3c5a90",
|
151 |
"metadata": {},
|
152 |
"outputs": [
|
@@ -227,7 +227,7 @@
|
|
227 |
"4 OCCCCCN1[C@H](Cc2ccccc2)[C@H](O)[C@@H](O)[C@@H... 0.00099 "
|
228 |
]
|
229 |
},
|
230 |
-
"execution_count":
|
231 |
"metadata": {},
|
232 |
"output_type": "execute_result"
|
233 |
}
|
@@ -1250,7 +1250,7 @@
|
|
1250 |
},
|
1251 |
{
|
1252 |
"cell_type": "code",
|
1253 |
-
"execution_count":
|
1254 |
"id": "8f949038-d07d-4d3a-a47e-b825cc9018ca",
|
1255 |
"metadata": {},
|
1256 |
"outputs": [],
|
@@ -1260,7 +1260,7 @@
|
|
1260 |
},
|
1261 |
{
|
1262 |
"cell_type": "code",
|
1263 |
-
"execution_count":
|
1264 |
"id": "0c027988-0b44-4010-ad61-7d70eead1654",
|
1265 |
"metadata": {},
|
1266 |
"outputs": [],
|
@@ -1270,7 +1270,7 @@
|
|
1270 |
},
|
1271 |
{
|
1272 |
"cell_type": "code",
|
1273 |
-
"execution_count":
|
1274 |
"id": "6aeba020-b6ff-4633-902e-4df74463eb2f",
|
1275 |
"metadata": {},
|
1276 |
"outputs": [],
|
@@ -1280,7 +1280,7 @@
|
|
1280 |
},
|
1281 |
{
|
1282 |
"cell_type": "code",
|
1283 |
-
"execution_count":
|
1284 |
"id": "91196eee-5fd0-4aa4-927a-5c1a3f436ac8",
|
1285 |
"metadata": {},
|
1286 |
"outputs": [
|
@@ -1290,7 +1290,7 @@
|
|
1290 |
"(array([6.51286529]), array([2.4379995]))"
|
1291 |
]
|
1292 |
},
|
1293 |
-
"execution_count":
|
1294 |
"metadata": {},
|
1295 |
"output_type": "execute_result"
|
1296 |
}
|
@@ -1301,7 +1301,7 @@
|
|
1301 |
},
|
1302 |
{
|
1303 |
"cell_type": "code",
|
1304 |
-
"execution_count":
|
1305 |
"id": "56269dcb-e691-4759-949d-7bfdd02f5fd4",
|
1306 |
"metadata": {},
|
1307 |
"outputs": [],
|
@@ -1311,17 +1311,18 @@
|
|
1311 |
},
|
1312 |
{
|
1313 |
"cell_type": "code",
|
1314 |
-
"execution_count":
|
1315 |
"id": "c6c64066-4032-4247-a8b9-00388176cc7b",
|
1316 |
"metadata": {},
|
1317 |
"outputs": [],
|
1318 |
"source": [
|
1319 |
-
"df.to_parquet('data/all.parquet')"
|
|
|
1320 |
]
|
1321 |
},
|
1322 |
{
|
1323 |
"cell_type": "code",
|
1324 |
-
"execution_count":
|
1325 |
"id": "469cf0dd-7b87-4245-973c-2a445e1fcca9",
|
1326 |
"metadata": {},
|
1327 |
"outputs": [
|
@@ -1333,7 +1334,7 @@
|
|
1333 |
" dtype='object')"
|
1334 |
]
|
1335 |
},
|
1336 |
-
"execution_count":
|
1337 |
"metadata": {},
|
1338 |
"output_type": "execute_result"
|
1339 |
}
|
@@ -1344,7 +1345,7 @@
|
|
1344 |
},
|
1345 |
{
|
1346 |
"cell_type": "code",
|
1347 |
-
"execution_count":
|
1348 |
"id": "d91c0d91-474c-4ab2-9a5e-3b7861f7a832",
|
1349 |
"metadata": {},
|
1350 |
"outputs": [
|
@@ -1370,7 +1371,7 @@
|
|
1370 |
},
|
1371 |
{
|
1372 |
"cell_type": "code",
|
1373 |
-
"execution_count":
|
1374 |
"id": "0e895ef5-1812-46c7-a4c2-dd6619b49157",
|
1375 |
"metadata": {},
|
1376 |
"outputs": [
|
@@ -1380,7 +1381,7 @@
|
|
1380 |
"1927202"
|
1381 |
]
|
1382 |
},
|
1383 |
-
"execution_count":
|
1384 |
"metadata": {},
|
1385 |
"output_type": "execute_result"
|
1386 |
}
|
@@ -1391,7 +1392,7 @@
|
|
1391 |
},
|
1392 |
{
|
1393 |
"cell_type": "code",
|
1394 |
-
"execution_count":
|
1395 |
"id": "b85f8b72-8dfc-4a24-b5b8-51fcbe6dcf63",
|
1396 |
"metadata": {},
|
1397 |
"outputs": [
|
@@ -1408,7 +1409,7 @@
|
|
1408 |
" 'scale_': array([1.56140946])}"
|
1409 |
]
|
1410 |
},
|
1411 |
-
"execution_count":
|
1412 |
"metadata": {},
|
1413 |
"output_type": "execute_result"
|
1414 |
}
|
@@ -1419,7 +1420,7 @@
|
|
1419 |
},
|
1420 |
{
|
1421 |
"cell_type": "code",
|
1422 |
-
"execution_count":
|
1423 |
"id": "ec0ef8e2-c0e9-4c9b-bf3a-c98cc3889475",
|
1424 |
"metadata": {},
|
1425 |
"outputs": [
|
@@ -1436,7 +1437,7 @@
|
|
1436 |
" 'scale_': array([1.56140946])}"
|
1437 |
]
|
1438 |
},
|
1439 |
-
"execution_count":
|
1440 |
"metadata": {},
|
1441 |
"output_type": "execute_result"
|
1442 |
}
|
@@ -1447,7 +1448,7 @@
|
|
1447 |
},
|
1448 |
{
|
1449 |
"cell_type": "code",
|
1450 |
-
"execution_count":
|
1451 |
"id": "15f8d5b9-37d5-453e-a6df-df6510cc5c81",
|
1452 |
"metadata": {},
|
1453 |
"outputs": [],
|
@@ -1477,7 +1478,7 @@
|
|
1477 |
},
|
1478 |
{
|
1479 |
"cell_type": "code",
|
1480 |
-
"execution_count":
|
1481 |
"id": "8dec95dc-a014-4d39-ae51-8de981173573",
|
1482 |
"metadata": {},
|
1483 |
"outputs": [],
|
@@ -1488,27 +1489,27 @@
|
|
1488 |
},
|
1489 |
{
|
1490 |
"cell_type": "code",
|
1491 |
-
"execution_count":
|
1492 |
"id": "3f90eadd-d7e4-4104-961f-adaf5437e24b",
|
1493 |
"metadata": {},
|
1494 |
"outputs": [],
|
1495 |
"source": [
|
1496 |
-
"df_nokras = df[df.seq
|
1497 |
]
|
1498 |
},
|
1499 |
{
|
1500 |
"cell_type": "code",
|
1501 |
-
"execution_count":
|
1502 |
"id": "f5f5335a-8f28-4058-8647-fcc8f7d2f841",
|
1503 |
"metadata": {},
|
1504 |
"outputs": [
|
1505 |
{
|
1506 |
"data": {
|
1507 |
"text/plain": [
|
1508 |
-
"
|
1509 |
]
|
1510 |
},
|
1511 |
-
"execution_count":
|
1512 |
"metadata": {},
|
1513 |
"output_type": "execute_result"
|
1514 |
}
|
@@ -1519,7 +1520,7 @@
|
|
1519 |
},
|
1520 |
{
|
1521 |
"cell_type": "code",
|
1522 |
-
"execution_count":
|
1523 |
"id": "47966268-c97c-4bd9-9c90-eb568249f2ef",
|
1524 |
"metadata": {},
|
1525 |
"outputs": [],
|
@@ -1538,7 +1539,7 @@
|
|
1538 |
],
|
1539 |
"metadata": {
|
1540 |
"kernelspec": {
|
1541 |
-
"display_name": "Python 3",
|
1542 |
"language": "python",
|
1543 |
"name": "python3"
|
1544 |
},
|
@@ -1552,7 +1553,7 @@
|
|
1552 |
"name": "python",
|
1553 |
"nbconvert_exporter": "python",
|
1554 |
"pygments_lexer": "ipython3",
|
1555 |
-
"version": "3.9.
|
1556 |
}
|
1557 |
},
|
1558 |
"nbformat": 4,
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": 1,
|
6 |
"id": "95bd761a-fe51-4a8e-bc70-1365260ba5f8",
|
7 |
"metadata": {},
|
8 |
"outputs": [],
|
|
|
12 |
},
|
13 |
{
|
14 |
"cell_type": "code",
|
15 |
+
"execution_count": 2,
|
16 |
"id": "b0859483-5e19-4280-9f53-0d00a6f22d34",
|
17 |
"metadata": {},
|
18 |
"outputs": [],
|
|
|
23 |
},
|
24 |
{
|
25 |
"cell_type": "code",
|
26 |
+
"execution_count": 3,
|
27 |
"id": "f30732b7-7444-47ad-84e7-566e7a6f2f8e",
|
28 |
"metadata": {},
|
29 |
"outputs": [
|
|
|
104 |
"4 CO[C@@H]1[C@H](O[C@H]([C@@H]1O)n1ccc(=O)[nH]c1... 0.185 "
|
105 |
]
|
106 |
},
|
107 |
+
"execution_count": 3,
|
108 |
"metadata": {},
|
109 |
"output_type": "execute_result"
|
110 |
}
|
|
|
115 |
},
|
116 |
{
|
117 |
"cell_type": "code",
|
118 |
+
"execution_count": 4,
|
119 |
"id": "2787b9fd-3d6f-4ae3-a3ad-d3539b72782b",
|
120 |
"metadata": {},
|
121 |
"outputs": [],
|
|
|
135 |
},
|
136 |
{
|
137 |
"cell_type": "code",
|
138 |
+
"execution_count": 5,
|
139 |
"id": "d1abe1c8-ac66-4289-8964-367a5b18528d",
|
140 |
"metadata": {},
|
141 |
"outputs": [],
|
|
|
146 |
},
|
147 |
{
|
148 |
"cell_type": "code",
|
149 |
+
"execution_count": 6,
|
150 |
"id": "988bab9c-5147-44e2-92ef-902eaf3c5a90",
|
151 |
"metadata": {},
|
152 |
"outputs": [
|
|
|
227 |
"4 OCCCCCN1[C@H](Cc2ccccc2)[C@H](O)[C@@H](O)[C@@H... 0.00099 "
|
228 |
]
|
229 |
},
|
230 |
+
"execution_count": 6,
|
231 |
"metadata": {},
|
232 |
"output_type": "execute_result"
|
233 |
}
|
|
|
1250 |
},
|
1251 |
{
|
1252 |
"cell_type": "code",
|
1253 |
+
"execution_count": 16,
|
1254 |
"id": "8f949038-d07d-4d3a-a47e-b825cc9018ca",
|
1255 |
"metadata": {},
|
1256 |
"outputs": [],
|
|
|
1260 |
},
|
1261 |
{
|
1262 |
"cell_type": "code",
|
1263 |
+
"execution_count": 17,
|
1264 |
"id": "0c027988-0b44-4010-ad61-7d70eead1654",
|
1265 |
"metadata": {},
|
1266 |
"outputs": [],
|
|
|
1270 |
},
|
1271 |
{
|
1272 |
"cell_type": "code",
|
1273 |
+
"execution_count": 18,
|
1274 |
"id": "6aeba020-b6ff-4633-902e-4df74463eb2f",
|
1275 |
"metadata": {},
|
1276 |
"outputs": [],
|
|
|
1280 |
},
|
1281 |
{
|
1282 |
"cell_type": "code",
|
1283 |
+
"execution_count": 19,
|
1284 |
"id": "91196eee-5fd0-4aa4-927a-5c1a3f436ac8",
|
1285 |
"metadata": {},
|
1286 |
"outputs": [
|
|
|
1290 |
"(array([6.51286529]), array([2.4379995]))"
|
1291 |
]
|
1292 |
},
|
1293 |
+
"execution_count": 19,
|
1294 |
"metadata": {},
|
1295 |
"output_type": "execute_result"
|
1296 |
}
|
|
|
1301 |
},
|
1302 |
{
|
1303 |
"cell_type": "code",
|
1304 |
+
"execution_count": 21,
|
1305 |
"id": "56269dcb-e691-4759-949d-7bfdd02f5fd4",
|
1306 |
"metadata": {},
|
1307 |
"outputs": [],
|
|
|
1311 |
},
|
1312 |
{
|
1313 |
"cell_type": "code",
|
1314 |
+
"execution_count": 7,
|
1315 |
"id": "c6c64066-4032-4247-a8b9-00388176cc7b",
|
1316 |
"metadata": {},
|
1317 |
"outputs": [],
|
1318 |
"source": [
|
1319 |
+
"#df.to_parquet('data/all.parquet')\n",
|
1320 |
+
"df = pd.read_parquet('data/all.parquet')"
|
1321 |
]
|
1322 |
},
|
1323 |
{
|
1324 |
"cell_type": "code",
|
1325 |
+
"execution_count": 22,
|
1326 |
"id": "469cf0dd-7b87-4245-973c-2a445e1fcca9",
|
1327 |
"metadata": {},
|
1328 |
"outputs": [
|
|
|
1334 |
" dtype='object')"
|
1335 |
]
|
1336 |
},
|
1337 |
+
"execution_count": 22,
|
1338 |
"metadata": {},
|
1339 |
"output_type": "execute_result"
|
1340 |
}
|
|
|
1345 |
},
|
1346 |
{
|
1347 |
"cell_type": "code",
|
1348 |
+
"execution_count": 23,
|
1349 |
"id": "d91c0d91-474c-4ab2-9a5e-3b7861f7a832",
|
1350 |
"metadata": {},
|
1351 |
"outputs": [
|
|
|
1371 |
},
|
1372 |
{
|
1373 |
"cell_type": "code",
|
1374 |
+
"execution_count": 24,
|
1375 |
"id": "0e895ef5-1812-46c7-a4c2-dd6619b49157",
|
1376 |
"metadata": {},
|
1377 |
"outputs": [
|
|
|
1381 |
"1927202"
|
1382 |
]
|
1383 |
},
|
1384 |
+
"execution_count": 24,
|
1385 |
"metadata": {},
|
1386 |
"output_type": "execute_result"
|
1387 |
}
|
|
|
1392 |
},
|
1393 |
{
|
1394 |
"cell_type": "code",
|
1395 |
+
"execution_count": 25,
|
1396 |
"id": "b85f8b72-8dfc-4a24-b5b8-51fcbe6dcf63",
|
1397 |
"metadata": {},
|
1398 |
"outputs": [
|
|
|
1409 |
" 'scale_': array([1.56140946])}"
|
1410 |
]
|
1411 |
},
|
1412 |
+
"execution_count": 25,
|
1413 |
"metadata": {},
|
1414 |
"output_type": "execute_result"
|
1415 |
}
|
|
|
1420 |
},
|
1421 |
{
|
1422 |
"cell_type": "code",
|
1423 |
+
"execution_count": 26,
|
1424 |
"id": "ec0ef8e2-c0e9-4c9b-bf3a-c98cc3889475",
|
1425 |
"metadata": {},
|
1426 |
"outputs": [
|
|
|
1437 |
" 'scale_': array([1.56140946])}"
|
1438 |
]
|
1439 |
},
|
1440 |
+
"execution_count": 26,
|
1441 |
"metadata": {},
|
1442 |
"output_type": "execute_result"
|
1443 |
}
|
|
|
1448 |
},
|
1449 |
{
|
1450 |
"cell_type": "code",
|
1451 |
+
"execution_count": 27,
|
1452 |
"id": "15f8d5b9-37d5-453e-a6df-df6510cc5c81",
|
1453 |
"metadata": {},
|
1454 |
"outputs": [],
|
|
|
1478 |
},
|
1479 |
{
|
1480 |
"cell_type": "code",
|
1481 |
+
"execution_count": 29,
|
1482 |
"id": "8dec95dc-a014-4d39-ae51-8de981173573",
|
1483 |
"metadata": {},
|
1484 |
"outputs": [],
|
|
|
1489 |
},
|
1490 |
{
|
1491 |
"cell_type": "code",
|
1492 |
+
"execution_count": 45,
|
1493 |
"id": "3f90eadd-d7e4-4104-961f-adaf5437e24b",
|
1494 |
"metadata": {},
|
1495 |
"outputs": [],
|
1496 |
"source": [
|
1497 |
+
"df_nokras = df[~df.seq.str.startswith(seq_kras_wt[:20])]"
|
1498 |
]
|
1499 |
},
|
1500 |
{
|
1501 |
"cell_type": "code",
|
1502 |
+
"execution_count": 46,
|
1503 |
"id": "f5f5335a-8f28-4058-8647-fcc8f7d2f841",
|
1504 |
"metadata": {},
|
1505 |
"outputs": [
|
1506 |
{
|
1507 |
"data": {
|
1508 |
"text/plain": [
|
1509 |
+
"1926799"
|
1510 |
]
|
1511 |
},
|
1512 |
+
"execution_count": 46,
|
1513 |
"metadata": {},
|
1514 |
"output_type": "execute_result"
|
1515 |
}
|
|
|
1520 |
},
|
1521 |
{
|
1522 |
"cell_type": "code",
|
1523 |
+
"execution_count": 47,
|
1524 |
"id": "47966268-c97c-4bd9-9c90-eb568249f2ef",
|
1525 |
"metadata": {},
|
1526 |
"outputs": [],
|
|
|
1539 |
],
|
1540 |
"metadata": {
|
1541 |
"kernelspec": {
|
1542 |
+
"display_name": "Python 3 (ipykernel)",
|
1543 |
"language": "python",
|
1544 |
"name": "python3"
|
1545 |
},
|
|
|
1553 |
"name": "python",
|
1554 |
"nbconvert_exporter": "python",
|
1555 |
"pygments_lexer": "ipython3",
|
1556 |
+
"version": "3.9.6"
|
1557 |
}
|
1558 |
},
|
1559 |
"nbformat": 4,
|
data/all_nokras.parquet
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2317000538f9f8926d892e945de9175ca5745e3cefa28b5b521cc627f36b1996
|
3 |
+
size 247212299
|