17.1.1.3.1.1.1.2. cobra.io.web.bigg_models_repository

Provide a concrete implementation of the BioModels repository interface.

17.1.1.3.1.1.1.2.1. Module Contents

17.1.1.3.1.1.1.2.1.1. Classes

BiGGModels

Define a concrete implementation of the BiGG Models repository.

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[source]

The name of the BiGG Models repository.

Type

str

name :str = BiGG Models[source]
get_sbml(self, 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.