Home
Biophysical Motivation
Installation
Quick Start Jupyter Notebook
Quick Start command line
Examples
Publications
Download and install Anaconda Distribution for Python
Open terminal and type:
pip install molclustpy
Create a working directory - /user/Desktop/molclustpy
Download the pair of bngl and python files (For example, EGFR_model.bngl and EGFR_model.py) and place them inside the working directory
python EGFR_model.py
Due to the system configuration, in some cases, you may need to type
python3 EGFR_model.py
The script should sequentially import the package, run multiple stochastic trials, analyze and visualize the data
Note: when you run python from the terminal, the figures will appear one after the other, that is, the second figure is displayed only after you close the first figure and so on. If you run python from an IDE like Spyder, all the figures are sequentially displayed, just like the jupyter notebook.
Change the simulation parameters and visualize the results
This notebook provides a step by step guide on how to change simulation parameters and analyze the results.
The terminal will ouput this:
The outputed results will be found in the same location as the bngl file:
Simulation output will be stored in a folder called MyModel if the model name is MyModel.bngl. There are two types of output:
Note: If the folder already contains results and number of current trials is less than existing ones, then existing results will be deleted. For higher number of trials, existing trajectories will be overwritten.
If you need to find the location of the package
import molclustpy
print(molclustpy.__file__)
This will output a path to the package that will look something like this
/usr/local/lib/python3.10/site-packages/molclustpy/__init__.py
AttributeError: module 'bionetgen' has no attribute 'bngmodel'
pip uninstall bionetgen
pip install bionetgen