Skip to main content

GEMsembler

drawing

GEMsembler tool for assembling and comparing several types of Genome-Scale Metabolic Models.

THIS IS A BETA VERSION! BUGS CAN BE EXPECTED

Installation

Install with the following command:

pip install gemsembler

Note: you also have to install BLAST in advance.

Usage

Input models have to be COBRApy readable files. And models need to be particular type. Currently models made by CarveMe (carveme), ModelSEED (modelseed), gapseq (gapseq) and models downloaded from AGORA VMH database (agora) are supported. Custom type is coming soon. Genomes, from which the models are built will allow to convert and assemble genes as well. First, we import gemsembler and get the path to data files:

from gemsembler import GatheredModels, lp_example, get_model_of_interest

lp_example is a list with input models and related inforamtion such as model type, corresponding genome and so on.

lp_example = [
    dict(
        model_id="curated_LP",
        path_to_model=files(LP) / "LP_iLP728_revision_data_met_C_c.xml.gz",
        model_type="carveme",
        path_to_genome=files(LP) / "LP_protein_fasta.faa.gz",
    ),
    dict(
        model_id="cauniv_LP",
        path_to_model=files(LP) / "LP_CA1.xml.gz",
        model_type="carveme",
        path_to_genome=files(LP) / "LP_protein_fasta.faa.gz",
    ),
    dict(
        model_id="cagram_LP",
        path_to_model=files(LP) / "LP_CA2.xml.gz",
        model_type="carveme",
        path_to_genome=files(LP) / "LP_protein_fasta.faa.gz",
    ),
    dict(
        model_id="msgram_LP",
        path_to_model=files(LP) / "LP_MS2.sbml.gz",
        model_type="modelseed",
        path_to_genome=files(LP) / "LP_protein_fasta.faa.gz",
    ),
    dict(
        model_id="agora_LP",
        path_to_model=files(LP) / "LP_WCFS1_agora.xml.gz",
        model_type="agora",
        path_to_genome=files(LP) / "LP_WCFS1.fasta.gz",
    ),
]

First stage is the creation of gathered models, a class, that performs conversion and contains results of all stages:

gathered = GatheredModels()
for model in lp_example:
    gathered.add_model(**model)
gathered.run()

Second stage is actual assembly of supermodel from the in formation in gathered models. User has to provide output folder. And for gene conversion user hast provide either final genes in fasta. Then all gene will be converted to ids in these files. Or if user provides NCBI assembly ID for his organism of interest, corresponding genome will be downloaded automatically and all genes will be converted to the locus tags of the organism.

supermodel_lp = gathered.assemble_supermodel("./gemsembler_output/", assembly_id = "GCF_000203855.3")

After supermodel is assembled different comparison methods can be run

supermodel_lp.at_least_in(2)

And results of comparison can be extracted as typical COBRApy models

core2 = get_model_of_interest(supermodel_lp, "core2", "./gemsembler_output/LP_core2_output_model.xml")

Metadata

Release files for gemsembler 0.8.7

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

Source distribution (sdist)

Source distribution for gemsembler 0.8.7
File Size Uploaded Provenance Actions
gemsembler-0.8.7.tar.gz 3.1 MB Without provenance Details for gemsembler-0.8.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gemsembler 0.8.7
File Interpreter ABI Platform Actions
gemsembler-0.8.7-py3-none-any.whl Python 3 none any Details for gemsembler-0.8.7-py3-none-any.whl

Total release size: 6.2 MB

Release files / gemsembler-0.8.7.tar.gz

Download URL gemsembler-0.8.7.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
59d5fa0434e728f3ec203a4e269e39fe697d6199e09f38d91db03f4bf59ca867
BLAKE2b-256 checksum
How to use checksums
e9ae0cfc6acfaf4f1f2d36523651a927db6c87446717454a58a5f0db56c66f88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release files / gemsembler-0.8.7-py3-none-any.whl

Download URL gemsembler-0.8.7-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
77d818a9832f31bbc8a53621b51be57f3d44994e5d19c587f0aa0e8e53750ca9
BLAKE2b-256 checksum
How to use checksums
99d157baa16f6789e8549969cc3e84dfc088d9b6f798b48d9434a6bbae6bfda8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Security for gemsembler 0.8.7

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.8.7 This release

2 release files 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