cobra.io.web.cobrapy_repository

cobra.io.web.cobrapy_repository#

Provide functions for loading metabolic models from local package data.

Classes#

Cobrapy

Define a concrete implementation of the cobrapy (local package) repository.

Module Contents#

class cobra.io.web.cobrapy_repository.Cobrapy(**kwargs)[source]#

Bases: cobra.io.web.abstract_model_repository.AbstractModelRepository

Define a concrete implementation of the cobrapy (local package) repository.

Attributes

name: str = 'Cobrapy'#
get_sbml(model_id: str) bytes[source]#

Attempt to open an SBML document from the local repository.

Parameters:

model_id (str) – The identifier of the desired metabolic model. This is typically repository specific.

Returns:

A gzip-compressed, UTF-8 encoded SBML document.

Return type:

bytes