cobra


Namecobra JSON
Version 0.29.0 PyPI version JSON
download
home_pagehttps://opencobra.github.io/cobrapy
SummaryCOBRApy is a package for constraint-based modeling of metabolic networks.
upload_time2023-10-31 18:34:46
maintainerMoritz E. Beber
docs_urlNone
authorThe cobrapy core development team.
requires_python
licenseLGPL-2.0-or-later OR GPL-2.0-or-later
keywords metabolism biology constraint-based linear programming mixed-integer optimization flux-balance analysis reconstruction
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ================================================================
COBRApy - Constraint-Based Reconstruction and Analysis in Python
================================================================

.. image:: https://img.shields.io/pypi/v/cobra.svg
   :target: https://pypi.org/project/cobra/
   :alt: Current PyPI Version

.. image:: https://img.shields.io/pypi/pyversions/cobra.svg
   :target: https://pypi.org/project/cobra/
   :alt: Supported Python Versions

.. image:: https://img.shields.io/pypi/l/cobra.svg
   :target: https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html
   :alt: GNU Lesser General Public License 2 or later

.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg
   :target: https://github.com/opencobra/cobrapy/blob/devel/.github/CODE_OF_CONDUCT.md
   :alt: Code of Conduct

.. image:: https://github.com/opencobra/cobrapy/workflows/CI-CD/badge.svg
   :target: https://github.com/opencobra/cobrapy/workflows/CI-CD
   :alt: GitHub Actions CI/CD Status

.. image:: https://codecov.io/gh/opencobra/cobrapy/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/opencobra/cobrapy
   :alt: Codecov

.. image:: https://readthedocs.org/projects/cobrapy/badge/?version=latest
   :target: https://cobrapy.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. image:: https://badges.gitter.im/opencobra/cobrapy.svg
   :target: https://gitter.im/opencobra/cobrapy
   :alt: Gitter Chat Room

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/ambv/black
   :alt: Black

.. image:: https://zenodo.org/badge/6510063.svg
   :target: https://zenodo.org/badge/latestdoi/6510063
   :alt: Zenodo DOI

What is COBRApy?
================

COBRA methods are widely used for genome-scale modeling of metabolic networks in
both prokaryotes and eukaryotes. **COBRApy** is a constraint-based modeling
package that is designed to accommodate the biological complexity of the next
generation of COBRA models and provides access to commonly used COBRA methods,
such as flux balance analysis, flux variability analysis, and gene deletion
analyses.

Our aim with COBRApy is to provide useful, efficient infrastructure for:

- creating and managing metabolic models
- accessing popular solvers
- analyzing models with methods such as FVA, FBA, pFBA, MOMA etc.
- inspecting models and drawing conclusions on gene essentiality, testing
  consequences of knock-outs etc.

Our goal with COBRApy is for it to be useful on its own, and for it to be the
natural choice of infrastructure for developers that want to build new COBRA
related python packages for e.g. visualization, strain-design and data driven
analysis. By re-using the same classes and design principles, we can make new
methods both easier to implement and easier to use, thereby bringing the power
of COBRA to more researchers.

The documentation is browseable online at `readthedocs
<https://cobrapy.readthedocs.org/en/stable/>`_ and can also be `downloaded
<https://readthedocs.org/projects/cobrapy/downloads/>`_.

Please use the `Google Group <http://groups.google.com/group/cobra-pie>`_ for
help. By writing a well formulated question, with sufficient detail, you are
much more likely to quickly receive a good answer! Please refer to these
`StackOverflow guidelines <https://stackoverflow.com/help/how-to-ask>`_ on how
to ask questions.  Alternatively, you can use `gitter.im
<https://gitter.im/opencobra/cobrapy>`_ for quick questions and discussions
about COBRApy (faster response times). Please keep in mind that answers are
provided on a volunteer basis.

More information about opencobra is available at the `website
<http://opencobra.github.io/>`_.

If you use COBRApy in a scientific publication, please cite
`doi:10.1186/1752-0509-7-74 <http://dx.doi.org/doi:10.1186/1752-0509-7-74>`_

Installation
============

Use pip to `install COBRApy from PyPI <https://pypi.org/project/cobra/>`_ (we
recommend doing this inside a `virtual environment
<http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_)::

    pip install cobra

If you want to load MATLAB models, you will need additional dependencies. Please
install::

    pip install cobra[array]

For further information, please follow the `detailed installation instructions
<INSTALL.rst>`_.

Contributing
============

Contributions are always welcome! Please read the `contributing guidelines
<https://github.com/opencobra/cobrapy/blob/devel/.github/CONTRIBUTING.rst>`_ to
get started.

License
=======

The COBRApy source is released under both the GPL and LGPL licenses version 2 or
later. You may choose which license you choose to use the software under.

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

This program 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.

=======================
Installation of COBRApy
=======================

For installation help, please use the `Google Group
<http://groups.google.com/group/cobra-pie>`_. For usage instructions, please see
the `documentation <https://cobrapy.readthedocs.org/en/latest/>`_.

We only test against Python 3.7+, however, Python 3.4 or higher work mostly. 
For Windows users and possibly also Mac OS users, we recommend using the 
`Anaconda Python <https://www.anaconda.com/>`_ distribution.

Stable version installation
===========================

COBRApy can be installed with any recent installation of pip.  Instructions for
several operating systems are below:

Mac OS X or Linux
-----------------

1. We highly recommend that you create a `Python virtual environment
   <https://realpython.com/python-virtual-environments-a-primer>`_.
2. Install COBRApy when an environment is active by running ``pip install
   cobra`` in the terminal.

Microsoft Windows
-----------------

If you heed our recommendation to use Anaconda, you can open an Anaconda shell
and install COBRApy from the ``conda-forge`` channel.

.. code-block:: console

    conda install -c conda-forge cobra

Installation for development
============================

Get the `detailed contribution instructions <.github/CONTRIBUTING.rst>`_ for
contributing to COBRApy.

Solvers
=======

COBRApy uses `optlang <http://optlang.readthedocs.io>`_ to interface the
mathematical solvers used to optimize the created COBRA models.  At the time of
writing the supported solvers are:

- ILOG/CPLEX (available with `Academic
  <https://www.ibm.com/developerworks/university/academicinitiative/>`_ and
  `Commercial
  <http://www.ibm.com/software/integration/optimization/cplex-optimizer/>`_
  licenses)
- `Gurobi <http://gurobi.com>`_
- `GLPK <http://www.gnu.org/software/glpk/>`_ which is automatically installed
  as swiglpk

            

Raw data

            {
    "_id": null,
    "home_page": "https://opencobra.github.io/cobrapy",
    "name": "cobra",
    "maintainer": "Moritz E. Beber",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "moritz.beber@gmail.com",
    "keywords": "metabolism,biology,constraint-based,linear programming,mixed-integer,optimization,flux-balance analysis,reconstruction",
    "author": "The cobrapy core development team.",
    "author_email": "cobra-pie@googlegroups.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/08/e1a47215d7c8b92a55bc5c1368bcf87ac02155e148e20027d160b4b1b36c/cobra-0.29.0.tar.gz",
    "platform": null,
    "description": "================================================================\nCOBRApy - Constraint-Based Reconstruction and Analysis in Python\n================================================================\n\n.. image:: https://img.shields.io/pypi/v/cobra.svg\n   :target: https://pypi.org/project/cobra/\n   :alt: Current PyPI Version\n\n.. image:: https://img.shields.io/pypi/pyversions/cobra.svg\n   :target: https://pypi.org/project/cobra/\n   :alt: Supported Python Versions\n\n.. image:: https://img.shields.io/pypi/l/cobra.svg\n   :target: https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html\n   :alt: GNU Lesser General Public License 2 or later\n\n.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\n   :target: https://github.com/opencobra/cobrapy/blob/devel/.github/CODE_OF_CONDUCT.md\n   :alt: Code of Conduct\n\n.. image:: https://github.com/opencobra/cobrapy/workflows/CI-CD/badge.svg\n   :target: https://github.com/opencobra/cobrapy/workflows/CI-CD\n   :alt: GitHub Actions CI/CD Status\n\n.. image:: https://codecov.io/gh/opencobra/cobrapy/branch/master/graph/badge.svg\n   :target: https://codecov.io/gh/opencobra/cobrapy\n   :alt: Codecov\n\n.. image:: https://readthedocs.org/projects/cobrapy/badge/?version=latest\n   :target: https://cobrapy.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. image:: https://badges.gitter.im/opencobra/cobrapy.svg\n   :target: https://gitter.im/opencobra/cobrapy\n   :alt: Gitter Chat Room\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/ambv/black\n   :alt: Black\n\n.. image:: https://zenodo.org/badge/6510063.svg\n   :target: https://zenodo.org/badge/latestdoi/6510063\n   :alt: Zenodo DOI\n\nWhat is COBRApy?\n================\n\nCOBRA methods are widely used for genome-scale modeling of metabolic networks in\nboth prokaryotes and eukaryotes. **COBRApy** is a constraint-based modeling\npackage that is designed to accommodate the biological complexity of the next\ngeneration of COBRA models and provides access to commonly used COBRA methods,\nsuch as flux balance analysis, flux variability analysis, and gene deletion\nanalyses.\n\nOur aim with COBRApy is to provide useful, efficient infrastructure for:\n\n- creating and managing metabolic models\n- accessing popular solvers\n- analyzing models with methods such as FVA, FBA, pFBA, MOMA etc.\n- inspecting models and drawing conclusions on gene essentiality, testing\n  consequences of knock-outs etc.\n\nOur goal with COBRApy is for it to be useful on its own, and for it to be the\nnatural choice of infrastructure for developers that want to build new COBRA\nrelated python packages for e.g. visualization, strain-design and data driven\nanalysis. By re-using the same classes and design principles, we can make new\nmethods both easier to implement and easier to use, thereby bringing the power\nof COBRA to more researchers.\n\nThe documentation is browseable online at `readthedocs\n<https://cobrapy.readthedocs.org/en/stable/>`_ and can also be `downloaded\n<https://readthedocs.org/projects/cobrapy/downloads/>`_.\n\nPlease use the `Google Group <http://groups.google.com/group/cobra-pie>`_ for\nhelp. By writing a well formulated question, with sufficient detail, you are\nmuch more likely to quickly receive a good answer! Please refer to these\n`StackOverflow guidelines <https://stackoverflow.com/help/how-to-ask>`_ on how\nto ask questions.  Alternatively, you can use `gitter.im\n<https://gitter.im/opencobra/cobrapy>`_ for quick questions and discussions\nabout COBRApy (faster response times). Please keep in mind that answers are\nprovided on a volunteer basis.\n\nMore information about opencobra is available at the `website\n<http://opencobra.github.io/>`_.\n\nIf you use COBRApy in a scientific publication, please cite\n`doi:10.1186/1752-0509-7-74 <http://dx.doi.org/doi:10.1186/1752-0509-7-74>`_\n\nInstallation\n============\n\nUse pip to `install COBRApy from PyPI <https://pypi.org/project/cobra/>`_ (we\nrecommend doing this inside a `virtual environment\n<http://docs.python-guide.org/en/latest/dev/virtualenvs/>`_)::\n\n    pip install cobra\n\nIf you want to load MATLAB models, you will need additional dependencies. Please\ninstall::\n\n    pip install cobra[array]\n\nFor further information, please follow the `detailed installation instructions\n<INSTALL.rst>`_.\n\nContributing\n============\n\nContributions are always welcome! Please read the `contributing guidelines\n<https://github.com/opencobra/cobrapy/blob/devel/.github/CONTRIBUTING.rst>`_ to\nget started.\n\nLicense\n=======\n\nThe COBRApy source is released under both the GPL and LGPL licenses version 2 or\nlater. You may choose which license you choose to use the software under.\n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU General Public License or the GNU Lesser General Public\nLicense as published by the Free Software Foundation, either version 2 of the\nLicense, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n=======================\nInstallation of COBRApy\n=======================\n\nFor installation help, please use the `Google Group\n<http://groups.google.com/group/cobra-pie>`_. For usage instructions, please see\nthe `documentation <https://cobrapy.readthedocs.org/en/latest/>`_.\n\nWe only test against Python 3.7+, however, Python 3.4 or higher work mostly. \nFor Windows users and possibly also Mac OS users, we recommend using the \n`Anaconda Python <https://www.anaconda.com/>`_ distribution.\n\nStable version installation\n===========================\n\nCOBRApy can be installed with any recent installation of pip.  Instructions for\nseveral operating systems are below:\n\nMac OS X or Linux\n-----------------\n\n1. We highly recommend that you create a `Python virtual environment\n   <https://realpython.com/python-virtual-environments-a-primer>`_.\n2. Install COBRApy when an environment is active by running ``pip install\n   cobra`` in the terminal.\n\nMicrosoft Windows\n-----------------\n\nIf you heed our recommendation to use Anaconda, you can open an Anaconda shell\nand install COBRApy from the ``conda-forge`` channel.\n\n.. code-block:: console\n\n    conda install -c conda-forge cobra\n\nInstallation for development\n============================\n\nGet the `detailed contribution instructions <.github/CONTRIBUTING.rst>`_ for\ncontributing to COBRApy.\n\nSolvers\n=======\n\nCOBRApy uses `optlang <http://optlang.readthedocs.io>`_ to interface the\nmathematical solvers used to optimize the created COBRA models.  At the time of\nwriting the supported solvers are:\n\n- ILOG/CPLEX (available with `Academic\n  <https://www.ibm.com/developerworks/university/academicinitiative/>`_ and\n  `Commercial\n  <http://www.ibm.com/software/integration/optimization/cplex-optimizer/>`_\n  licenses)\n- `Gurobi <http://gurobi.com>`_\n- `GLPK <http://www.gnu.org/software/glpk/>`_ which is automatically installed\n  as swiglpk\n",
    "bugtrack_url": null,
    "license": "LGPL-2.0-or-later OR GPL-2.0-or-later",
    "summary": "COBRApy is a package for constraint-based modeling of metabolic networks.",
    "version": "0.29.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/opencobra/cobrapy/issues",
        "Documentation": "https://cobrapy.readthedocs.io",
        "Download": "https://pypi.org/project/cobra",
        "Homepage": "https://opencobra.github.io/cobrapy",
        "Source Code": "https://github.com/opencobra/cobrapy"
    },
    "split_keywords": [
        "metabolism",
        "biology",
        "constraint-based",
        "linear programming",
        "mixed-integer",
        "optimization",
        "flux-balance analysis",
        "reconstruction"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a82758f8a4be7d951c21533bc20d61ad4bfcaef58084f45c045ef069c9fb96c",
                "md5": "5967796db97414c138ca7183dc1b9ae8",
                "sha256": "9a9bc4ed1a027c22c5fd4fed111cce7606cda3cdfc44587483c35714ba4dd9f0"
            },
            "downloads": -1,
            "filename": "cobra-0.29.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5967796db97414c138ca7183dc1b9ae8",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 1192063,
            "upload_time": "2023-10-31T18:34:42",
            "upload_time_iso_8601": "2023-10-31T18:34:42.643851Z",
            "url": "https://files.pythonhosted.org/packages/8a/82/758f8a4be7d951c21533bc20d61ad4bfcaef58084f45c045ef069c9fb96c/cobra-0.29.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c208e1a47215d7c8b92a55bc5c1368bcf87ac02155e148e20027d160b4b1b36c",
                "md5": "c6f1e10c8057de2363b6268eb6073390",
                "sha256": "56d2b832aa86b1f3853647e0eb24aaeac25908fd147737edb23313934485e863"
            },
            "downloads": -1,
            "filename": "cobra-0.29.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c6f1e10c8057de2363b6268eb6073390",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 1164699,
            "upload_time": "2023-10-31T18:34:46",
            "upload_time_iso_8601": "2023-10-31T18:34:46.048817Z",
            "url": "https://files.pythonhosted.org/packages/c2/08/e1a47215d7c8b92a55bc5c1368bcf87ac02155e148e20027d160b4b1b36c/cobra-0.29.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-31 18:34:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "opencobra",
    "github_project": "cobrapy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "cobra"
}
        
Elapsed time: 0.13266s