Skip to main content

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

Project description

GEMsembler

Documentation

drawing

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

THIS IS A BETA VERSION! BUGS CAN BE EXPECTED

Version 0.9.0 is incompatible with previous versions

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")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemsembler-0.11.14.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemsembler-0.11.14-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

Details for the file gemsembler-0.11.14.tar.gz.

File metadata

  • Download URL: gemsembler-0.11.14.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gemsembler-0.11.14.tar.gz
Algorithm Hash digest
SHA256 ca1aa7f481b117dbf0ec021ebf9cdeb6007f37ed8adb1a98354b1ba548e040fe
MD5 d9df7a6e79af4bd3ea36234cc4296eaf
BLAKE2b-256 58733f1e8d429bc78f616fd71513183324ef9bf5ec687b9b7bd9b2f9cd4e9d6c

See more details on using hashes here.

File details

Details for the file gemsembler-0.11.14-py3-none-any.whl.

File metadata

  • Download URL: gemsembler-0.11.14-py3-none-any.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for gemsembler-0.11.14-py3-none-any.whl
Algorithm Hash digest
SHA256 b7c28575822b17a9b547a71a7d1299bfae3bf0b044d98cd3eb1b0f89b21f3e50
MD5 474587880f64fd82f897ab800e89df96
BLAKE2b-256 96a2d2be6320bc4c63b3f2f55784867446b546420445596e05e4d85916c09ba8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page