cobra.io.web.bigg_models_repository#

Provide a concrete implementation of the BioModels repository interface.

Classes#

BiGGModels

Define a concrete implementation of the BiGG Models repository.

Module Contents#

class cobra.io.web.bigg_models_repository.BiGGModels(**kwargs)[source]#

Bases: cobra.io.web.abstract_model_repository.AbstractModelRepository

Define a concrete implementation of the BiGG Models repository.

name#

The name of the BiGG Models repository.

Type:

str

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

Attempt to download an SBML document from the 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

Raises:

httpx.HTTPError – In case there are any connection problems.