{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import biolqm\n", "import mpbn" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "Downloading 'http://ginsim.org/sites/default/files/MAPK_large_19june2013.zginml'" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "lqm = biolqm.load(\"http://ginsim.org/sites/default/files/MAPK_large_19june2013.zginml\")" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 404 ms, sys: 81.6 ms, total: 486 ms\n", "Wall time: 1.55 s\n" ] }, { "data": { "text/plain": [ "18" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "%time len(biolqm.trapspace(lqm, \"terminal\"))" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "mbn = mpbn.MPBooleanNetwork(biolqm.to_minibn(lqm))" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "CPU times: user 15.2 ms, sys: 3.86 ms, total: 19 ms\n", "Wall time: 17.7 ms\n" ] }, { "data": { "text/plain": [ "18" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "%time len(list(mbn.attractors()))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python3", "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.6.6" } }, "nbformat": 4, "nbformat_minor": 2 }