CBMPy: PySCeS Constraint Based Modelling
Project description
PySCeS CBMPy (http://cbmpy.sourceforge.net) is a new platform for constraint based modelling and analysis. It has been designed using principles developed in the PySCeS simulation software project: usability, flexibility and accessibility. Its architecture is both extensible and flexible using data structures that are intuitive to the biologist (metabolites, reactions, compartments) while transparently translating these into the underlying mathematical structures used in advanced analysis (LP’s, MILP’s).
PySCeS CBMPy implements popular analyses such as FBA, FVA, element/charge balancing, network analysis and model editing as well as advanced methods developed specifically for the ecosystem modelling: minimal distance methods, flux minimization and input selection. To cater for a diverse range of modelling needs PySCeS CBMPy supports user interaction via:
interactive console, scripting for advanced use or as a library for software development
GUI, for quick access to a visual representation of the model, analysis methods and annotation tools
SOAP based web services: using the Mariner framework much high level functionality is exposed for integration into web tools
For more information on the development and use of PySCeS CBMPy feel free to contact me:
PySCeS-CBMPy has been tested on Windows 7 and 8.1, Mac OSX and Ubuntu Linux 12.04 1n3 14.04. It is compatible with both Python 2.7+ and includes experimental support for Python 3.4+ It is highly recommend to use Python 2.7 as not all Python package dependencies (extended functionality) are available for Python 3.
PySCeS CBMPy is now accessible as a Python module cbmpy in place of the the previously used pyscescbm. This release contains both modules with a reminder to update old scripts to new. CBMPy includes support for reading/writing models in SBML3 FBC versions 1 and 2 as well as COBRA dialect, Excel spreadsheets and Python.
To use follow the installation instructions given below and try the following in a Python shell:
import cbmpy cmod = cbmpy.readSBML3FBC('cbmpy_test_core') cbmpy.doFBA(cmod)
New Ipython notebook tutorials will be available soon. Happy modelling!
The following installation instructions are for Ubuntu 14.04 but should be adaptable to any Linux package managment system, OSX, Debian, etc. Except for GLPK (4.47) and SymPy (0.7.4 or newer) no specific library version is required. For more detailed installation instructions and Windows please see the online documentation http://cbmpy.sourceforge.net/reference/install_doc.html
Python2
First we create a scientific Python workbench:
sudo apt-get install python-dev python-numpy python-scipy python-matplotlib python-pip sudo apt-get install python-sympy python-suds python-xlrd python-xlwt python-h5py sudo apt-get install python-wxgtk2.8 python-qt4 sudo apt-get install ipython ipython-notebook
libSBML
Installing libSBML is now easy using Pip:
sudo apt-get install libxml2 libxml2-dev sudo apt-get install zlib1g zlib1g-dev sudo apt-get install bzip2 libbz2-dev sudo pip install python-libsbml-experimental
glpk/python-glpk
GLPK needs to be version 4.47 to work with glpk-0.3:
sudo apt-get install libgmp-dev
cd GLPK source (e.g. glpk-4.47):
./configure --with-gmp make make check sudo make install sudo ldconfig
cd to python-glpk source (glpk-0.3):
make sudo make install
CBMPy
Finally, install CBMPy:
python setup.py build sdist sudo python setup.py install
Python3 (experimental)
Not all dependencies are available for Python3:
sudo apt-get install python3-dev python3-numpy python3-scipy python3-matplotlib python3-pip sudo apt-get install python3-xlrd python3-h5py # need to find out what is going on with Python3 and xlwt suds # easy_install3 sympy ??? # wxPython and PyQt4 not in Ubuntu P3 builds yet sudo apt-get install ipython3 ipython3-notebook sudo apt-get install libxml2 libxml2-dev sudo apt-get install zlib1g zlib1g-dev sudo apt-get install bzip2 libbz2-dev sudo pip3 install python-libsbml-experimental sudo apt-get install python-qt4 python-qt4-dev python-sip python-sip-dev build-essential
More information in the docs/ directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file cbmpy-0.7.3.0.zip
.
File metadata
- Download URL: cbmpy-0.7.3.0.zip
- Upload date:
- Size: 6.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54ea7d4325a996eb82124fba80b1601ce4a336f1db0aafca2eea6f5bdba0400e |
|
MD5 | 3c7d10bcede17860d2d5113d9855ba1f |
|
BLAKE2b-256 | 0c4e5037dd94c03092bf2e8852748b3d91ed5db4232b71eb30a12c223508fafc |
File details
Details for the file cbmpy-0.7.3.0.tar.gz
.
File metadata
- Download URL: cbmpy-0.7.3.0.tar.gz
- Upload date:
- Size: 5.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cede519307a07c183282b22e88d097ab44087f5fd2ea31190c36335e250633aa |
|
MD5 | 6970eb5474dc80a1f8fa006a79e21f23 |
|
BLAKE2b-256 | 320eeccc4942946eeea1b4afebecc092340c3e2edb0d2452ba946f2a3009c2f1 |
File details
Details for the file cbmpy-0.7.3.0.win-amd64.msi
.
File metadata
- Download URL: cbmpy-0.7.3.0.win-amd64.msi
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4e04004a600e236766a29bf943ad1b9730f1655f5b06f91459ee729fe764913 |
|
MD5 | 0c2a675e3cb81ee8fd48b0ff94f3258d |
|
BLAKE2b-256 | e157647c23d09d213fa15c2841c365acba8d654891ed0cf9f0188b7e57706c7f |
File details
Details for the file cbmpy-0.7.3.0.win-amd64.exe
.
File metadata
- Download URL: cbmpy-0.7.3.0.win-amd64.exe
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e7e2d364c150c5edfef6bbd4251251bfb82e9162477e7af0492e053322aa97 |
|
MD5 | 74bf255aa92ec947dfbac081b0e1b1d4 |
|
BLAKE2b-256 | d5cbe916ab1eeab0991e08788f68adb56bdfc112407085d265ae1e19f2bac0c6 |
File details
Details for the file cbmpy-0.7.3.0.win32.msi
.
File metadata
- Download URL: cbmpy-0.7.3.0.win32.msi
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c4c176dc8b9d0282901abd9d3c787fdb518502a75b9514cef17dff5dadb3cba |
|
MD5 | 67dc93b00791f44258449c48d5573da9 |
|
BLAKE2b-256 | ec5597dd70cae017acf3e83d2bfdada14611a29f8b7276826943f99049515686 |
File details
Details for the file cbmpy-0.7.3.0.win32.exe
.
File metadata
- Download URL: cbmpy-0.7.3.0.win32.exe
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe66eeddca9d2316e604c09c3220308a85bffed153bdd15cf4df84fcd6791545 |
|
MD5 | 38925108eef2e35eb2df43c28245e81f |
|
BLAKE2b-256 | 86030a36639448f0580e32b7bccf8ee4c81e0bf6b5f3181c08b6b70400c02a6c |