gemsembler


Namegemsembler JSON
Version 0.7.0 PyPI version JSON
download
home_pageNone
SummaryA tool for assembling and comparing several types of Genome-Scale Metabolic Models.
upload_time2024-05-17 09:12:06
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Zimmermann-Kogadeeva Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords genome scale metabolic models metabolism biology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GEMsembler

<img src="gemsembler_long.gif" alt="drawing" width="150"/>

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gemsembler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "genome scale metabolic models, metabolism, biology",
    "author": null,
    "author_email": "Elena Matveishina <elena.matveishina@embl.de>, Bartosz Bartmanski <bartosz.bartmanski@embl.de>",
    "download_url": "https://files.pythonhosted.org/packages/db/9e/39880f7d5bc84752e917afc7f46965ce04505d8b4e6bb019e723cb3432cc/gemsembler-0.7.0.tar.gz",
    "platform": null,
    "description": "# GEMsembler\n\n<img src=\"gemsembler_long.gif\" alt=\"drawing\" width=\"150\"/>\n\nGEMsembler tool for assembling and comparing several types of Genome-Scale Metabolic\nModels. \n\n**THIS IS A BETA VERSION! BUGS CAN BE EXPECTED**\n\n## Installation\n\nInstall with the following command:\n```\npip install gemsembler\n```\n\n**Note:** you also have to install BLAST in advance.\n\n## Usage\n\nInput models have to be COBRApy readable files. And models need to be\nparticular type. Currently models made by CarveMe (carveme), ModelSEED\n(modelseed), gapseq (gapseq) and models downloaded from AGORA VMH database\n(agora) are supported. Custom type is coming soon. Genomes, from which the\nmodels are built will allow to convert and assemble genes as well.\nFirst, we import gemsembler and get the path to data files:\n```\nfrom gemsembler import GatheredModels, lp_example, get_model_of_interest\n```\nlp_example is a list with input models and related inforamtion such as model type, corresponding genome and so on.\n```\nlp_example = [\n    dict(\n        model_id=\"curated_LP\",\n        path_to_model=files(LP) / \"LP_iLP728_revision_data_met_C_c.xml.gz\",\n        model_type=\"carveme\",\n        path_to_genome=files(LP) / \"LP_protein_fasta.faa.gz\",\n    ),\n    dict(\n        model_id=\"cauniv_LP\",\n        path_to_model=files(LP) / \"LP_CA1.xml.gz\",\n        model_type=\"carveme\",\n        path_to_genome=files(LP) / \"LP_protein_fasta.faa.gz\",\n    ),\n    dict(\n        model_id=\"cagram_LP\",\n        path_to_model=files(LP) / \"LP_CA2.xml.gz\",\n        model_type=\"carveme\",\n        path_to_genome=files(LP) / \"LP_protein_fasta.faa.gz\",\n    ),\n    dict(\n        model_id=\"msgram_LP\",\n        path_to_model=files(LP) / \"LP_MS2.sbml.gz\",\n        model_type=\"modelseed\",\n        path_to_genome=files(LP) / \"LP_protein_fasta.faa.gz\",\n    ),\n    dict(\n        model_id=\"agora_LP\",\n        path_to_model=files(LP) / \"LP_WCFS1_agora.xml.gz\",\n        model_type=\"agora\",\n        path_to_genome=files(LP) / \"LP_WCFS1.fasta.gz\",\n    ),\n]\n```\n\nFirst stage is the creation of gathered models, a class, that performs\nconversion and contains results of all stages:\n```\ngathered = GatheredModels()\nfor model in lp_example:\n    gathered.add_model(**model)\ngathered.run()\n```\nSecond stage is actual assembly of supermodel from the in formation in gathered\nmodels. User has to provide output folder. And for gene conversion user hast\nprovide either final genes in fasta. Then all gene will be converted to ids in\nthese files. Or if user provides NCBI assembly ID for his organism of interest,\ncorresponding genome will be downloaded automatically and all genes will be\nconverted to the locus tags of the organism.\n```\nsupermodel_lp = gathered.assemble_supermodel(\"./gemsembler_output/\", assembly_id = \"GCF_000203855.3\")\n```\nAfter supermodel is assembled different comparison methods can be run\n```\nsupermodel_lp.at_least_in(2)\n```\nAnd results of comparison can be extracted as typical COBRApy models\n```\ncore2 = get_model_of_interest(supermodel_lp, \"core2\", \"./gemsembler_output/LP_core2_output_model.xml\")\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Zimmermann-Kogadeeva Group  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "A tool for assembling and comparing several types of Genome-Scale Metabolic Models.",
    "version": "0.7.0",
    "project_urls": {
        "Bug tracker": "https://git.embl.de/grp-zimmermann-kogadeeva/GEMsembler/issues",
        "Homepage": "https://git.embl.de/grp-zimmermann-kogadeeva/GEMsembler"
    },
    "split_keywords": [
        "genome scale metabolic models",
        " metabolism",
        " biology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5eef43b56caf9cae4c1bb4cd5d5daa7452b305cdbca847e7ba170e8f6362d227",
                "md5": "4835d46d3dd9d49ad97e4a5bcffea83b",
                "sha256": "4fc0e82e7dd19cd162ac752e99bbe930d2448d044e727e3ae501ef86a1364211"
            },
            "downloads": -1,
            "filename": "gemsembler-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4835d46d3dd9d49ad97e4a5bcffea83b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 3097666,
            "upload_time": "2024-05-17T09:12:03",
            "upload_time_iso_8601": "2024-05-17T09:12:03.632948Z",
            "url": "https://files.pythonhosted.org/packages/5e/ef/43b56caf9cae4c1bb4cd5d5daa7452b305cdbca847e7ba170e8f6362d227/gemsembler-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db9e39880f7d5bc84752e917afc7f46965ce04505d8b4e6bb019e723cb3432cc",
                "md5": "a51c95988cd776b4c2e52d60ce0c54eb",
                "sha256": "18f25267dc1772c6408c633303712046a4047ee69dcf8a617ad6ab2b8b44f323"
            },
            "downloads": -1,
            "filename": "gemsembler-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a51c95988cd776b4c2e52d60ce0c54eb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 3100037,
            "upload_time": "2024-05-17T09:12:06",
            "upload_time_iso_8601": "2024-05-17T09:12:06.882483Z",
            "url": "https://files.pythonhosted.org/packages/db/9e/39880f7d5bc84752e917afc7f46965ce04505d8b4e6bb019e723cb3432cc/gemsembler-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-17 09:12:06",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gemsembler"
}
        
Elapsed time: 0.25563s