|
1250 | 1250 | "source": [ |
1251 | 1251 | "## 2. Facade & FacadeUtils\n", |
1252 | 1252 | "\n", |
1253 | | - "The module ```FacadeUtils``` from ```findCPcore``` provides specific methods for the generation of spreadsheets regarding the computation of chokepoint reactions taking into account Flux Variability Analysis and Dead End Metabolites." |
| 1253 | + "Modules ```FacadeUtils``` and ```Facade``` from ```findCPcore``` provides specific methods for the generation of spreadsheets regarding the computation of critical reactions taking into account Flux Variability Analysis and Dead End Metabolites." |
1254 | 1254 | ] |
1255 | 1255 | }, |
1256 | 1256 | { |
|
1264 | 1264 | }, |
1265 | 1265 | { |
1266 | 1266 | "cell_type": "code", |
1267 | | - "execution_count": 33, |
| 1267 | + "execution_count": 3, |
1268 | 1268 | "metadata": {}, |
1269 | 1269 | "outputs": [], |
1270 | 1270 | "source": [ |
|
1314 | 1314 | }, |
1315 | 1315 | { |
1316 | 1316 | "cell_type": "code", |
1317 | | - "execution_count": 34, |
| 1317 | + "execution_count": 4, |
1318 | 1318 | "metadata": {}, |
1319 | 1319 | "outputs": [ |
1320 | 1320 | { |
|
1339 | 1339 | "LOG:Searching essential genes...\n", |
1340 | 1340 | "LOG:Searching essential genes reactions...\n", |
1341 | 1341 | "LOG:Searching essential reactions...\n", |
1342 | | - "LOG:Removing" |
| 1342 | + "LOG:Removing Dead End Metabolites (D.E.M.)...\n", |
| 1343 | + "LOG:Searching essential reactions...\n", |
| 1344 | + "LOG:Searching new chokepoint reactions...\n", |
| 1345 | + "LOG:Searching essential genes...\n", |
| 1346 | + "LOG:Searching essential genes reactions...\n", |
| 1347 | + "LOG:Generating spreadsheet...\n" |
1343 | 1348 | ] |
1344 | 1349 | }, |
1345 | 1350 | { |
1346 | 1351 | "data": { |
1347 | | - "text/html": [ |
1348 | | - "* * *" |
| 1352 | + "text/plain": [ |
| 1353 | + "(True, 'output.xls')" |
1349 | 1354 | ] |
1350 | 1355 | }, |
| 1356 | + "execution_count": 4, |
1351 | 1357 | "metadata": {}, |
1352 | | - "output_type": "display_data" |
| 1358 | + "output_type": "execute_result" |
1353 | 1359 | } |
1354 | 1360 | ], |
1355 | 1361 | "source": [ |
|
1416 | 1422 | }, |
1417 | 1423 | { |
1418 | 1424 | "cell_type": "code", |
1419 | | - "execution_count": 35, |
| 1425 | + "execution_count": 6, |
1420 | 1426 | "metadata": {}, |
1421 | 1427 | "outputs": [ |
1422 | 1428 | { |
1423 | | - "name": "stdout", |
1424 | | - "output_type": "stream", |
1425 | | - "text": [ |
1426 | | - "Reading model...\n", |
1427 | | - "Running Flux Variability Analysis with fraction: 0.0\n", |
1428 | | - "Running Flux Variability Analysis with fraction: 0.1\n", |
1429 | | - "Running Flux Variability Analysis with fraction: 0.2\n", |
1430 | | - "Running Flux Variability Analysis with fraction: 0.3\n", |
1431 | | - "Running Flux Variability Analysis with fraction: 0.4\n", |
1432 | | - "Running Flux Variability Analysis with fraction: 0.5\n", |
1433 | | - "Running Flux Variability Analysis with fraction: 0.6\n", |
1434 | | - "Running Flux Variability Analysis with fraction: 0.7\n", |
1435 | | - "Running Flux Variability Analysis with fraction: 0.8\n", |
1436 | | - "Running Flux Variability Analysis with fraction: 0.9\n", |
1437 | | - "Running Flux Variability Analysis with fraction: 1.0\n" |
| 1429 | + "ename": "TypeError", |
| 1430 | + "evalue": "'module' object is not callable", |
| 1431 | + "output_type": "error", |
| 1432 | + "traceback": [ |
| 1433 | + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
| 1434 | + "\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)", |
| 1435 | + "\u001b[0;32m<ipython-input-6-4bebcdd4e316>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 6\u001b[0m \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 7\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 8\u001b[0;31m \u001b[0mconfig\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mGrowthDependentCPConfig\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 9\u001b[0m \u001b[0mconfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mprint_f\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcallback_print\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 10\u001b[0m \u001b[0mconfig\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmodel_path\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m\"aureus.xml\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
| 1436 | + "\u001b[0;31mTypeError\u001b[0m: 'module' object is not callable" |
1438 | 1437 | ] |
1439 | | - }, |
1440 | | - { |
1441 | | - "data": { |
1442 | | - "text/plain": [ |
1443 | | - "(True, 'output.xls')" |
1444 | | - ] |
1445 | | - }, |
1446 | | - "execution_count": 35, |
1447 | | - "metadata": {}, |
1448 | | - "output_type": "execute_result" |
1449 | 1438 | } |
1450 | 1439 | ], |
1451 | 1440 | "source": [ |
| 1441 | + "# import config class\n", |
| 1442 | + "from findCPcore.utils import GrowthDependentCPConfig\n", |
| 1443 | + "\n", |
| 1444 | + "\n", |
1452 | 1445 | "def callback_print(message, arg1, arg2):\n", |
1453 | 1446 | " print(message)\n", |
1454 | 1447 | "\n", |
|
1461 | 1454 | "facade = Facade()\n", |
1462 | 1455 | "facade.generate_growth_dependent_report(config)" |
1463 | 1456 | ] |
| 1457 | + }, |
| 1458 | + { |
| 1459 | + "cell_type": "code", |
| 1460 | + "execution_count": null, |
| 1461 | + "metadata": {}, |
| 1462 | + "outputs": [], |
| 1463 | + "source": [] |
1464 | 1464 | } |
1465 | 1465 | ], |
1466 | 1466 | "metadata": { |
|
0 commit comments