rbapy


Namerbapy JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://sysbioinra.github.io/RBApy/
SummaryPackage for automated generation of bacterial Resource Balance Analysis (RBA) models and simulation of RBA models
upload_time2023-06-05 14:39:58
maintainer
docs_urlNone
authorRBApy was conceived and implemented originally by INRAE (Stephan Fischer, Ana Bulovic, Anne Goelzer and Marc Dinh), and updated regularly by several contributors (Oliver Bodeit, Jonathan Karr, Michael Jahn)
requires_python
licenseGPLv3
keywords metabolism resource balance analysis molecular biology cell biology biochemistry systems biology computational biology mathematical modeling numerical simulation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            RBApy
==============================

RBApy is a open-source Python package for the automated generation of bacterial Resource Balance Analysis (RBA) models (https://rba.inrae.fr).
Existing RBA models for *Bacillus subtilis 168* (wild type), *Escherichia coli K-12* (wild type) and CO2-fixing *Escherichia coli K-12* (an engineered strain) can be found here: https://github.com/SysBioInra/Bacterial-RBA-models.

For a complete documentation on RBApy installation and usage, please visit the website:
https://sysbioinra.github.io/RBApy/


Installation
-------------

RBApy requires one of the linear programming solvers `IBM CPLEX <https://www.ibm.com/analytics/cplex-optimizer>`_, `GLPK <https://www.gnu.org/software/glpk/>`_, or `Gurobi <https://www.gurobi.com/products/gurobi-optimizer/>`_. Note, while GLPK is capable of executing the example models in the tutorial, in our experience, GLPK is prohibitively slow for real RBA models. IBM and Gurobi both provide free licenses for academic research.

1. Optionally, install the CPLEX linear programming solver.

2. Install this package from PyPI:
    ```
    pip install rbapy
    ```

    Optionally, also install CPLEX by installing RBApy with the ``cplex`` option. Note, this requires a CPLEX license.:

    ```
    pip install rbapy[cplex]
    ```

    Optionally, also install GLPK by installing RBApy with the ``swiglpk`` option. Note, this requires ``libglpk-dev``.:
    
    ```
    pip install rbapy[swiglpk]
    ```

    Optionally, also install Gurobi by installing RBApy with the ``gurobi`` option. Note, this requires a Gurobi license.:

    ```
    pip install rbapy[gurobi]
    ```

More information about how to install RBApy is available at https://sysbioinra.github.io/RBApy/installation.html.

Remark on usage
---------------

When using RBApy in own Python code, it must be imported as: rba

    ```
    import rba
    ```
    
Running
-------

For more detailed instructions on usage, please refer to the RBApy website https://sysbioinra.github.io/RBApy/.

Put the SBML file containing the Genome Size Metabolic Model (GSMM) of your organism of interest in the `input` directory and fill in the
parameter file `input/params.in`. Then open a console at the root
of the repository and run:


```
python generate_rba_model.py input/params.in
```

or, more generally:


```
python generate_rba_model.py path/to/params.in
```

The script will generate several files used as an input for the RBA solver.
By default, they will be written to the `output` directory.

Warning: for the first run, the script will download and parse Uniprot data
as best it can. Unfortunately, numerous values cannot be parsed properly and
are replaced with default values. The script will generate many helper files
to replace these default values with hand-curated values. You should fill in
these helper files and rerun the script to obtain more relevant output
(see instructions below).

If rbapy has been installed properly, there also exists command-line interface called by:


```
generate-rba-model path/to/params.in
```

Once the RBA model has been generated, you can solve it using:


```
python solve_rba_model.py path/to/model
```

where the path points to the directory containing the XML files defining
the RBA model.

If rbapy was installed properly, there also exists command-line interface called by:


```
solve-rba-model path/to/model
```


Running RBApy with Gurobi
^^^^^^^^^^^^^^^^^^^^^^^^^

To use RBApy with Gurobi, either:

* Save your license to your home directory (``~/gurobi.lic``) or to the appropriate location for your OS (e.g., ``/opt/gurobi/gurobi.lic`` for Linux).
* Encode your license variables (e.g., ``WLSACCESSID``, ``WLSSECRET``, ``LICENSEID``) into environment variables with the prefix ``GRB_`` (e.g., ``GRB_WLSACCESSID``, ``GRB_WLSSECRET``, ``GRB_LICENSEID``).


SBML file requirements
----------------------

The SBML file must be a valid SBML file, with gene-reaction associations.
RBApy assumes that the boolean relation is always “or”s of “and”s, e.g. (g1 and g2) or (g3 and g4)
Moreover, the words  “or” and “and” must be written in lowercase letters.
Empty fields in Gene-association will be interpreted as a diffusion reaction.

Authors
-------

Fischer S. , Bulovic A. , Goelzer A. , Bodeit, O., Dinh M.


Citation
---------------

If you use RBApy for scientific publications, please cite Bulović A., Fischer S., Dinh M., Golib F., Liebermeister W., Poirier C., Tournier L., Klipp E., Fromion V., Goelzer A. (2019), "Automated generation of bacterial resource allocation models", Metabolic Engineering 55 (2019) 12–22. `https://doi.org/10.1016/j.ymben.2019.06.001 <https://doi.org/10.1016/j.ymben.2019.06.001>`_.


License
-------

Copyright (c) 2018 INRAE - MaIAGE - France.

RBApy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RBApy is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with RBApy.  If not, see <https://www.gnu.org/licenses/>





            

Raw data

            {
    "_id": null,
    "home_page": "https://sysbioinra.github.io/RBApy/",
    "name": "rbapy",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "metabolism,Resource Balance Analysis,molecular biology,cell biology,biochemistry,systems biology,computational biology,mathematical modeling,numerical simulation",
    "author": "RBApy was conceived and implemented originally by INRAE (Stephan Fischer, Ana Bulovic, Anne Goelzer and Marc Dinh), and updated regularly by several contributors (Oliver Bodeit, Jonathan Karr, Michael Jahn)",
    "author_email": "anne.goelzer@inra.fr",
    "download_url": "https://files.pythonhosted.org/packages/85/a5/12eadbc7a6df93e5249ef47277d1e314d38642ce31376f9720ae964692d4/rbapy-2.0.1.tar.gz",
    "platform": null,
    "description": "RBApy\n==============================\n\nRBApy is a open-source Python package for the automated generation of bacterial Resource Balance Analysis (RBA) models (https://rba.inrae.fr).\nExisting RBA models for *Bacillus subtilis 168* (wild type), *Escherichia coli K-12* (wild type) and CO2-fixing *Escherichia coli K-12* (an engineered strain) can be found here: https://github.com/SysBioInra/Bacterial-RBA-models.\n\nFor a complete documentation on RBApy installation and usage, please visit the website:\nhttps://sysbioinra.github.io/RBApy/\n\n\nInstallation\n-------------\n\nRBApy requires one of the linear programming solvers `IBM CPLEX <https://www.ibm.com/analytics/cplex-optimizer>`_, `GLPK <https://www.gnu.org/software/glpk/>`_, or `Gurobi <https://www.gurobi.com/products/gurobi-optimizer/>`_. Note, while GLPK is capable of executing the example models in the tutorial, in our experience, GLPK is prohibitively slow for real RBA models. IBM and Gurobi both provide free licenses for academic research.\n\n1. Optionally, install the CPLEX linear programming solver.\n\n2. Install this package from PyPI:\n    ```\n    pip install rbapy\n    ```\n\n    Optionally, also install CPLEX by installing RBApy with the ``cplex`` option. Note, this requires a CPLEX license.:\n\n    ```\n    pip install rbapy[cplex]\n    ```\n\n    Optionally, also install GLPK by installing RBApy with the ``swiglpk`` option. Note, this requires ``libglpk-dev``.:\n    \n    ```\n    pip install rbapy[swiglpk]\n    ```\n\n    Optionally, also install Gurobi by installing RBApy with the ``gurobi`` option. Note, this requires a Gurobi license.:\n\n    ```\n    pip install rbapy[gurobi]\n    ```\n\nMore information about how to install RBApy is available at https://sysbioinra.github.io/RBApy/installation.html.\n\nRemark on usage\n---------------\n\nWhen using RBApy in own Python code, it must be imported as: rba\n\n    ```\n    import rba\n    ```\n    \nRunning\n-------\n\nFor more detailed instructions on usage, please refer to the RBApy website https://sysbioinra.github.io/RBApy/.\n\nPut the SBML file containing the Genome Size Metabolic Model (GSMM) of your organism of interest in the `input` directory and fill in the\nparameter file `input/params.in`. Then open a console at the root\nof the repository and run:\n\n\n```\npython generate_rba_model.py input/params.in\n```\n\nor, more generally:\n\n\n```\npython generate_rba_model.py path/to/params.in\n```\n\nThe script will generate several files used as an input for the RBA solver.\nBy default, they will be written to the `output` directory.\n\nWarning: for the first run, the script will download and parse Uniprot data\nas best it can. Unfortunately, numerous values cannot be parsed properly and\nare replaced with default values. The script will generate many helper files\nto replace these default values with hand-curated values. You should fill in\nthese helper files and rerun the script to obtain more relevant output\n(see instructions below).\n\nIf rbapy has been installed properly, there also exists command-line interface called by:\n\n\n```\ngenerate-rba-model path/to/params.in\n```\n\nOnce the RBA model has been generated, you can solve it using:\n\n\n```\npython solve_rba_model.py path/to/model\n```\n\nwhere the path points to the directory containing the XML files defining\nthe RBA model.\n\nIf rbapy was installed properly, there also exists command-line interface called by:\n\n\n```\nsolve-rba-model path/to/model\n```\n\n\nRunning RBApy with Gurobi\n^^^^^^^^^^^^^^^^^^^^^^^^^\n\nTo use RBApy with Gurobi, either:\n\n* Save your license to your home directory (``~/gurobi.lic``) or to the appropriate location for your OS (e.g., ``/opt/gurobi/gurobi.lic`` for Linux).\n* Encode your license variables (e.g., ``WLSACCESSID``, ``WLSSECRET``, ``LICENSEID``) into environment variables with the prefix ``GRB_`` (e.g., ``GRB_WLSACCESSID``, ``GRB_WLSSECRET``, ``GRB_LICENSEID``).\n\n\nSBML file requirements\n----------------------\n\nThe SBML file must be a valid SBML file, with gene-reaction associations.\nRBApy assumes that the boolean relation is always \u201cor\u201ds of \u201cand\u201ds, e.g. (g1 and g2) or (g3 and g4)\nMoreover, the words  \u201cor\u201d and \u201cand\u201d must be written in lowercase letters.\nEmpty fields in Gene-association will be interpreted as a diffusion reaction.\n\nAuthors\n-------\n\nFischer S. , Bulovic A. , Goelzer A. , Bodeit, O., Dinh M.\n\n\nCitation\n---------------\n\nIf you use RBApy for scientific publications, please cite Bulovi\u0107 A., Fischer S., Dinh M., Golib F., Liebermeister W., Poirier C., Tournier L., Klipp E., Fromion V., Goelzer A. (2019), \"Automated generation of bacterial resource allocation models\", Metabolic Engineering 55 (2019) 12\u201322. `https://doi.org/10.1016/j.ymben.2019.06.001 <https://doi.org/10.1016/j.ymben.2019.06.001>`_.\n\n\nLicense\n-------\n\nCopyright (c) 2018 INRAE - MaIAGE - France.\n\nRBApy is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nRBApy is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with RBApy.  If not, see <https://www.gnu.org/licenses/>\n\n\n\n\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Package for automated generation of bacterial Resource Balance Analysis (RBA) models and simulation of RBA models",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://sysbioinra.github.io/RBApy/"
    },
    "split_keywords": [
        "metabolism",
        "resource balance analysis",
        "molecular biology",
        "cell biology",
        "biochemistry",
        "systems biology",
        "computational biology",
        "mathematical modeling",
        "numerical simulation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5baf32d65d1ff74e1746bbd783ea42a584d0d0cda6f279f37fde86acc4ea3d7e",
                "md5": "31b4e93ea1171bb200de87e6621f05f9",
                "sha256": "b27a6b88cd40de536b15801c5dec0fc9f8da3eeda90ff8f117eb17f4002d149e"
            },
            "downloads": -1,
            "filename": "rbapy-2.0.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "31b4e93ea1171bb200de87e6621f05f9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 96519,
            "upload_time": "2023-06-05T14:39:55",
            "upload_time_iso_8601": "2023-06-05T14:39:55.279301Z",
            "url": "https://files.pythonhosted.org/packages/5b/af/32d65d1ff74e1746bbd783ea42a584d0d0cda6f279f37fde86acc4ea3d7e/rbapy-2.0.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85a512eadbc7a6df93e5249ef47277d1e314d38642ce31376f9720ae964692d4",
                "md5": "48cc3e219960c1a29180ea309231cf1b",
                "sha256": "0f068819add3e586f1a568488e460910fff84f05c3c34d9d56fa51852f3adf84"
            },
            "downloads": -1,
            "filename": "rbapy-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "48cc3e219960c1a29180ea309231cf1b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6385376,
            "upload_time": "2023-06-05T14:39:58",
            "upload_time_iso_8601": "2023-06-05T14:39:58.389658Z",
            "url": "https://files.pythonhosted.org/packages/85/a5/12eadbc7a6df93e5249ef47277d1e314d38642ce31376f9720ae964692d4/rbapy-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-05 14:39:58",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "rbapy"
}
        
Elapsed time: 0.10512s