PySCeS-CBMPy
Project description
PySCeS-CBMPy
============
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, 14.04, 16.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** which is no longer supported. 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 are available. Happy modelling!
The following installation instructions are for Ubuntu 16.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
New! auto-dependency configuration
----------------------------------
I am in the process of creating automated dependency checking and building tools for CBMPy. These can be found at::
https://github.com/bgoli/cbmpy-build
Ubuntu support is almost complete with Windows/Conda support in development, grab form GitHub::
https://github.com/bgoli/cbmpy-build.git
Manual dependency configuration is provided below. For Windows users most of these utilities are included in
Python distributions like Anaconda (recomended)
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
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 --update python-libsbml
Extended functionality
~~~~~~~~~~~~~~~~~~~~~~
sudo pip install biopython docx
Windows
~~~~~~~
Use easy_install, pip or your package manager (e.g. conda) to install the following packages::
numpy scipy matplotlib sympy xlrd xlwt
biopython docx suds wxPython
pip install --update python-libsbml
glpk/python-glpk
~~~~~~~~~~~~~~~~
CBMPy requires a linear solver for numerical analysis, the open source (glpk) solver can be automatically built and installed as follows (requires git to be installed and accessible):
Download the install script that will install GLPK/PyGLPK for CBMPy on Ubuntu 14.04 or newer::
curl --remote-name https://raw.githubusercontent.com/bgoli/cbmpy-glpk/master/install_glpk.sh
Make executable::
chmod 744 install_glpk.sh
and run::
./install_glpk.sh
Note this script is designed to be used for building containers and will remove any installed version of GLPK and build and install the correct version needed for PyGLPK.
No warranty of any kind assumed or otherwise, use at own risk!
CBMPy
~~~~~
Finally, install CBMPy::
sudo easy_install cbmpy
or
sudo pip install cbmpy
or try the new experimental CONDA support::
conda install -c bgoli -c sbmlteam cbmpy
or download the source and run::
python setup.py build sdist
sudo python setup.py install
============
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, 14.04, 16.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** which is no longer supported. 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 are available. Happy modelling!
The following installation instructions are for Ubuntu 16.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
New! auto-dependency configuration
----------------------------------
I am in the process of creating automated dependency checking and building tools for CBMPy. These can be found at::
https://github.com/bgoli/cbmpy-build
Ubuntu support is almost complete with Windows/Conda support in development, grab form GitHub::
https://github.com/bgoli/cbmpy-build.git
Manual dependency configuration is provided below. For Windows users most of these utilities are included in
Python distributions like Anaconda (recomended)
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
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 --update python-libsbml
Extended functionality
~~~~~~~~~~~~~~~~~~~~~~
sudo pip install biopython docx
Windows
~~~~~~~
Use easy_install, pip or your package manager (e.g. conda) to install the following packages::
numpy scipy matplotlib sympy xlrd xlwt
biopython docx suds wxPython
pip install --update python-libsbml
glpk/python-glpk
~~~~~~~~~~~~~~~~
CBMPy requires a linear solver for numerical analysis, the open source (glpk) solver can be automatically built and installed as follows (requires git to be installed and accessible):
Download the install script that will install GLPK/PyGLPK for CBMPy on Ubuntu 14.04 or newer::
curl --remote-name https://raw.githubusercontent.com/bgoli/cbmpy-glpk/master/install_glpk.sh
Make executable::
chmod 744 install_glpk.sh
and run::
./install_glpk.sh
Note this script is designed to be used for building containers and will remove any installed version of GLPK and build and install the correct version needed for PyGLPK.
No warranty of any kind assumed or otherwise, use at own risk!
CBMPy
~~~~~
Finally, install CBMPy::
sudo easy_install cbmpy
or
sudo pip install cbmpy
or try the new experimental CONDA support::
conda install -c bgoli -c sbmlteam cbmpy
or download the source and run::
python setup.py build sdist
sudo python setup.py install
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
cbmpy-0.7.8-1.zip
(4.6 MB
view details)
cbmpy-0.7.8-1.tar.gz
(4.5 MB
view details)
Built Distributions
cbmpy-0.7.8-1.win-amd64.msi
(1.8 MB
view details)
cbmpy-0.7.8-1.win-amd64.exe
(1.8 MB
view details)
File details
Details for the file cbmpy-0.7.8-1.zip
.
File metadata
- Download URL: cbmpy-0.7.8-1.zip
- Upload date:
- Size: 4.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2ae020f1feeda1ab96a07729025b33b8efaf111eb15249214e5510578ffcc88 |
|
MD5 | 448c196bb7774e44eff80881d87c5def |
|
BLAKE2b-256 | 7d40a0db87f5df95afb76390496aad76e12d9e92c6e513ef007f825d14bc5f4d |
File details
Details for the file cbmpy-0.7.8-1.tar.gz
.
File metadata
- Download URL: cbmpy-0.7.8-1.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28035d3808f58d0e74a846a1a2baedd9a86969959083271ea9c90b3863dd22fc |
|
MD5 | 4cb0da164fb19aa44650df2ef60109cc |
|
BLAKE2b-256 | 96d4015e72b55f1b338078034d59d99a0efc7a2259cc4c2d8682fd3b8109d7de |
File details
Details for the file cbmpy-0.7.8-1.win-amd64.msi
.
File metadata
- Download URL: cbmpy-0.7.8-1.win-amd64.msi
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8de1e100e4470e5127bf9467b4394ad270b80023f63804ec35aa985f78f7b38 |
|
MD5 | 05754acc454f4ca0b2d15c766c60b32d |
|
BLAKE2b-256 | b8851b4fe0303086d8fad488a6d803ed7c6359735e52040ed9aee539da8245fe |
File details
Details for the file cbmpy-0.7.8-1.win-amd64.exe
.
File metadata
- Download URL: cbmpy-0.7.8-1.win-amd64.exe
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9d28b954ba72f36d50451b47af447677861a087a5cf7dcb9c2b371aed194ea |
|
MD5 | 162360c4d5361536c0d6fd09d0c1586e |
|
BLAKE2b-256 | ebd6a588b95c6f131a09b6d7ebbb14857ab638cef917ecbd444cd0bf4a401a75 |