recipe cobra

COBRApy is a package for constraint-based modeling of biological networks.



GNU Lesser General Public License v2 or later (LGPLv2+) or GNU General Public License v2 or later (GPLv2+)



package cobra

(downloads) docker_cobra



depends appdirs:


depends depinfo:


depends diskcache:


depends future:

depends httpx:


depends numpy:


depends optlang:


depends pandas:


depends pydantic:


depends python:

depends python-libsbml:


depends rich:


depends ruamel.yaml:


depends six:

depends swiglpk:


depends tabulate:



You need a conda-compatible package manager (currently either micromamba, mamba, or conda) and the Bioconda channel already activated (see set-up-channels).

While any of above package managers is fine, it is currently recommended to use either micromamba or mamba (see here for installation instructions). We will show all commands using mamba below, but the arguments are the same for the two others.

Given that you already have a conda environment in which you want to have this package, install with:

   mamba install cobra

and update with::

   mamba update cobra

To create a new environment, run:

mamba create --name myenvname cobra

with myenvname being a reasonable name for the environment (see e.g. the mamba docs for details and further options).

Alternatively, use the docker container:

   docker pull<tag>

(see `cobra/tags`_ for valid values for ``<tag>``)

Download stats