sbmlsim.model.model_resources
¶
Model resources.
Interacting with model resources to retrieve models. This currently includes BioModels, but can easily be extended to other models.
Module Contents¶
Classes¶
Class for keeping track of the resolved sources. |
Functions¶
|
Check if urn source. |
|
Check if http source. |
|
Get model string from given URN. |
|
Get model string from given URL. |
|
Parse biomodel id from string. |
|
Get SBML string from given BioModels identifier. |
Attributes¶
- class sbmlsim.model.model_resources.Source[source]¶
Class for keeping track of the resolved sources.
- sbmlsim.model.model_resources.is_urn(source)[source]¶
Check if urn source.
- Parameters
source (str) –
- Return type
bool
- sbmlsim.model.model_resources.is_http(source)[source]¶
Check if http source.
- Parameters
source (str) –
- Return type
bool
- sbmlsim.model.model_resources.model_from_urn(urn)[source]¶
Get model string from given URN.
- Parameters
urn (str) –
- Return type
str
- sbmlsim.model.model_resources.model_from_url(url)[source]¶
Get model string from given URL.
Handles redirects of the download page.
- Parameters
url (str) –
- Returns
- Return type
str