{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Create an executable model with CaSQ" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import casq.celldesigner2qual as casq\n", "from colomoto_jupyter import tabulate" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Convert a cell designer map\n", "casq.map_to_model(\"Apoptosis_VS_SSA_AN.xml\", \"Apoptosis_VS_SSA_AN.sbml\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Load and view the model in GINsim" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import biolqm\n", "import ginsim" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/html": [ "" ], "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "m = biolqm.load(\"Apoptosis_VS_SSA_AN.sbml\")\n", "m = biolqm.sanitize(m)\n", "\n", "lrg = biolqm.to_ginsim(m)\n", "ginsim.show(lrg)" ] } ], "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.7.6" } }, "nbformat": 4, "nbformat_minor": 4 }