Skip to main content

Acquire SABIO-RK Kinetics Data for an arbitrary BiGG model

License

Reaction kinetics data is a pillar of biochemical research, and particularly computational biology. Sources of this data, however, are infrequently accessible to programmatic workflows, such as Dynamic Flux Balance Analysis (dFBA), which hinders research progress. The BiGG_SABIO library attempts to bridge this gab by scraping SABIO-RK kinetics data from any BiGG model-formatted JSON file, which is a powerful ability metabolic and dFBA researchers. SABIO-RK supports this use of this website in its statement of webservices. Examples Notebook are available in the examples directory of the BiGG_SABIO GitHub repository. Please submit errors, inquiries, or suggestions as GitHub issues where they can be addressed.


Installation

BiGG_SABIO is installed in a command prompt, Powershell, Terminal, or Anaconda Command Prompt via pip:

pip install bigg_sabio

__init__()

The scraping is initiated through four arguments:

import bigg_sabio
bgsb = bigg_sabio.SABIO_scraping(bigg_model_path, bigg_model_name = None, export_model_content = False, verbose = False)
  • bigg_model_path str: specifies the path to the JSON file of the BiGG model that will be parsed.

  • bigg_model_name str: specifies the name of the BiGG model, which will be used to identify the model and name the output folder directory, where None defaults the name of the file from the bigg_model_path parameter.

  • export_model_content bool: specifies where parsed information about the BiGG model will be of the SBML file for the BiGG model that will be simulated.

  • verbose & printing bool: specifies whether simulation details (which is valuable for trobuleshooting) and results, respectively, will be printed.

complete()

The complete scraping process is concisely conducted through a single function, which references the object variables that are defined through the __init__() function:

import bigg_sabio
bgsb = bigg_sabio.SABIO_scraping(bigg_model_path, bigg_model_name = None, export_model_content = False, verbose = False)
bgsb.complete()

Individual functions

The steps of acquiring and processing SABIO data into input files of kinetic data for dFBA simulations can be individual executed on demand. These steps and functions are detailed in the following sections.

scrape_bigg_xls()

This function is the first step in BiGG_SABIO workflow, where a Selenium WebDriver is directed through the advanced search options of SABIO and proceeds to download all of the search results that match annotations from the BiGG model. These numerous XLS files, at the end of the scraping process, are concatenated into a spreadsheet with the duplicate rows are removed to yield a complete CSV file of the SABIO kinetics data for the respective BiGG model. The identities and values for each parameter are subsequently scraped, and assembled and downloaded as a separate JSON file.

to_fba()

This is the final step in BiGG_SABIO workflow, where the complete assemblage of SABIO kinetics data is refined into a structure that is amenable with the dFBAy module.

Executing the individual functions

The individual functions can be executed through the following sequence:

import bigg_sabio
bgsb = bigg_sabio.SABIO_scraping(bigg_model_path, bigg_model_name = None, export_model_content = False, verbose = False)
bgsb.scrape_bigg_xls()
bgsb.to_fba()

Accessible content

A multitude of values are stored within the SABIO_scraping object that can be subsequently referenced and used in a workflow. The complete list of content within the SABIO_scraping object can be printed through the built-in dir() function:

# Scrape data for a BiGG model
from bigg_sabio import SABIO_scraping
bgsb = SABIO_scraping(bigg_model_path, bigg_model_name = None, export_model_content = False, verbose = False)
print(dir(bgsb))

The following list highlights stored content in the SABIO_scraping object after a simulation:

  • model & model_contents dict: The loaded BiGG model and a parsed form of the model, respectively, that are interpreted and guide the scraping of reaction enzymes.

  • sabio_df Pandas.DataFrame: A concatenated DataFrame that embodies all of the downloaded XLS files from the model enzymes.

  • paths, parameters, & variables dict: Dictionaries of 1) the essential paths from the scraping, which may be useful to locate and programmatically access each file; 2) important parameters that were parameterized; and 3) the variable values or files that derived from the scraping, respectively.

  • bigg_to_sabio_metabolites, sabio_to_bigg_metabolites, & bigg_reactions dict: Comprehensive dictionaries for the ID codes of BiGG metabolites and reactions, respectively. The bigg_to_sabio_metabolites dictionary is indexed with keys of BiGG ID and values of metabolite names that are recognized by SABIO and BiGG, whereas the bigg_to_sabio_metabolites dictionary is indexed with keys of SABIO metabolite names and values of the corresponding BiGG IDs.

  • driver & fp Selenium.Webdriver: The Firefox browser driver and profile, respectively, that are used programmatically by Selenium functions to access and navigate the SABIO-RK database website.

  • step_number int: An indication of the progression within the scraping workflow, which is enumerated in the main() function of the script.

Metadata

Release files for BiGG-SABIO 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BiGG-SABIO 0.0.1
File Size Uploaded Provenance
BiGG_SABIO-0.0.1.tar.gz 2.5 MB Without provenance Details

Release files / BiGG_SABIO-0.0.1.tar.gz

Download URL BiGG_SABIO-0.0.1.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
3722f9178d05cb534b665bbc4b18e38715d9e39aa67020a8e35402fde895b2ae
BLAKE2b-256 checksum
How to use checksums
7a5f84840aaab9759899a218a3f1df9667b4a6aff02906878725ea1c3cd5da48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.10

Security for BiGG-SABIO 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page