gemcat


Namegemcat JSON
Version 1.2.0 PyPI version JSON
download
home_pageNone
SummaryA toolbox for gene expression-based prediction of metabolic alterations
upload_time2024-04-01 13:47:52
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords python bioinformatics modeling metabolites omics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GEMCAT: Gene Expression-based Metabolite Centrality Analyses Tool
A computational toolbox associated with the manuscript entitled "GEMCAT - A new algorithm for gene expression-based prediction of metabolic alterations". 
Cite using: https://www.biorxiv.org/content/10.1101/2024.01.15.575710v1

## Compatibility
The package is tested for compatibility with Python >= 3.10 on Ubuntu and Windows.

## Installation
Install from pip:

```pip install gemcat```

Or clone the repository and install GEMCAT from there using:  

```pip install .```


## Usage

### Standard workflow from the Command-Line Interface (CLI)

Use a single file containing per-gene fold-changes to calculate the resulting differential centralities:
``` gemcat ./expression_file.csv ./model_file.xml -e column_name -o <result_file.csv>```
Make sure the .csv file is either comma- or tab-delimited.
`column_name` is the name of the column in the file containing the fold-change.

Alternatively, use two files (or one file) with expression values for condition and baseline:
``` gemcat <./condition_file.csv> <./model_file.xml> -e <condition_column_name> -b <./baseline_file> -c <baseline_column_name> -o <result_file.csv>```

Currently only models in XML/SBML format are supported in the CLI.
Further models can be used from the Python library.
Support will come to the CLI soon.

Important points to remember:
Your gene or protein identifiers should be the first column of the expression file.
Make sure the gene or protein identifiers in your expression data file exactly match those in the model.
A results list of all 1.0 is a sure sign of no identifier matching.

positional arguments:
- expression file path
- model file path

All parameters:
`-e --expressioncolumn` name of column containing condition expression data
`-b BASELINE, --baseline` file containing baseline expression data
`-c BASELINECOLUMN, --baselinecolumn` name of column containing baseline expression data
`-v VERBOSE, --verbose` enables verbose output
`-o OUTFILE, --outfile` write output to this file
`-l LOGFILE, --logfile` write logs to this file


### Standard workflow in Python using a CobraPy model
```
import gemcat as gc
results = gc.workflows.workflow_standard(
  cobra_model: cobra.Model,
  mapped_genes_baseline: pd.Series,
  mapped_genes_comparison: pd.Series,
  adjacency = gc.adjacency_transformation.ATPureAdjacency,
  ranking = gc.ranking.PagerankNX,
  gene_fill = 1.0
)
```
This will return the changes in centrality relative to the baseline in a Pandas Series.
When using fold-changes as the mapped expression, use a vector of all ones as a comparison.

## Modularity and Configuration
GEMCAT is designed to be modular, and its central components can easily be swapped out or appended by other components 
adhering to the specifications laid out in the module base classes (primarily adjacency transformation, expression integration, and ranking components).
All classes inheriting from the abstract base classes laid out in the modules are swappable.

## Core modules
### Model
The core of the package is the GEMCAT model structure that contains the model data, integrates the workflow, and calculates the results.
### Adjacency
Different approaches can be used to calculate adjacency in the networks.
We offer alternatives and a platform to create custom algorithms for the model.
### Expression
Module covering the mapping of gene values onto reactions in the model via gene product rules.
Providing different algorithms along with a platform to create alternatives.
### Pagerank
Module providing ranking algorithms for the models along with a platform to include custom algorithms.
### workflows
The workflow module contains example workflows.
To customize the workflow to your needs simply copy the provided functions and switch out the desired steps.
### io
Input and output functions that create GEMCAT models from different sources.
## utils
Contains common utility functions used throughout the package.
## verification
Functions to verify data integrity.


## Development
You can run all local tests with `pytest .`. Default behavior is to also run integration tests, which takes time.
You can exclude slow running tests by using `pytest . -m "not slow"`.
These slow running tests are integration tests with "real world data" and will take 10-30s each according to your hardware.

To run tests, make sure you have [git lfs](https://git-lfs.com/) installed and all the Tests are running.
Make sure to run `isort` and `black` to have properly formatted code.

The CI pipeline in Github will check with isort, black, and pytest.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "gemcat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": "python, bioinformatics, modeling, metabolites, omics",
    "author": null,
    "author_email": "Roland Sauter <roland.sauter@uit.no>",
    "download_url": "https://files.pythonhosted.org/packages/82/cf/b9e2d32a2aa3562e4224ec8480df79e119df3edef5b19069558ade329130/gemcat-1.2.0.tar.gz",
    "platform": null,
    "description": "# GEMCAT: Gene Expression-based Metabolite Centrality Analyses Tool\nA computational toolbox associated with the manuscript entitled \"GEMCAT - A new algorithm for gene expression-based prediction of metabolic alterations\". \nCite using: https://www.biorxiv.org/content/10.1101/2024.01.15.575710v1\n\n## Compatibility\nThe package is tested for compatibility with Python >= 3.10 on Ubuntu and Windows.\n\n## Installation\nInstall from pip:\n\n```pip install gemcat```\n\nOr clone the repository and install GEMCAT from there using:  \n\n```pip install .```\n\n\n## Usage\n\n### Standard workflow from the Command-Line Interface (CLI)\n\nUse a single file containing per-gene fold-changes to calculate the resulting differential centralities:\n``` gemcat ./expression_file.csv ./model_file.xml -e column_name -o <result_file.csv>```\nMake sure the .csv file is either comma- or tab-delimited.\n`column_name` is the name of the column in the file containing the fold-change.\n\nAlternatively, use two files (or one file) with expression values for condition and baseline:\n``` gemcat <./condition_file.csv> <./model_file.xml> -e <condition_column_name> -b <./baseline_file> -c <baseline_column_name> -o <result_file.csv>```\n\nCurrently only models in XML/SBML format are supported in the CLI.\nFurther models can be used from the Python library.\nSupport will come to the CLI soon.\n\nImportant points to remember:\nYour gene or protein identifiers should be the first column of the expression file.\nMake sure the gene or protein identifiers in your expression data file exactly match those in the model.\nA results list of all 1.0 is a sure sign of no identifier matching.\n\npositional arguments:\n- expression file path\n- model file path\n\nAll parameters:\n`-e --expressioncolumn` name of column containing condition expression data\n`-b BASELINE, --baseline` file containing baseline expression data\n`-c BASELINECOLUMN, --baselinecolumn` name of column containing baseline expression data\n`-v VERBOSE, --verbose` enables verbose output\n`-o OUTFILE, --outfile` write output to this file\n`-l LOGFILE, --logfile` write logs to this file\n\n\n### Standard workflow in Python using a CobraPy model\n```\nimport gemcat as gc\nresults = gc.workflows.workflow_standard(\n  cobra_model: cobra.Model,\n  mapped_genes_baseline: pd.Series,\n  mapped_genes_comparison: pd.Series,\n  adjacency = gc.adjacency_transformation.ATPureAdjacency,\n  ranking = gc.ranking.PagerankNX,\n  gene_fill = 1.0\n)\n```\nThis will return the changes in centrality relative to the baseline in a Pandas Series.\nWhen using fold-changes as the mapped expression, use a vector of all ones as a comparison.\n\n## Modularity and Configuration\nGEMCAT is designed to be modular, and its central components can easily be swapped out or appended by other components \nadhering to the specifications laid out in the module base classes (primarily adjacency transformation, expression integration, and ranking components).\nAll classes inheriting from the abstract base classes laid out in the modules are swappable.\n\n## Core modules\n### Model\nThe core of the package is the GEMCAT model structure that contains the model data, integrates the workflow, and calculates the results.\n### Adjacency\nDifferent approaches can be used to calculate adjacency in the networks.\nWe offer alternatives and a platform to create custom algorithms for the model.\n### Expression\nModule covering the mapping of gene values onto reactions in the model via gene product rules.\nProviding different algorithms along with a platform to create alternatives.\n### Pagerank\nModule providing ranking algorithms for the models along with a platform to include custom algorithms.\n### workflows\nThe workflow module contains example workflows.\nTo customize the workflow to your needs simply copy the provided functions and switch out the desired steps.\n### io\nInput and output functions that create GEMCAT models from different sources.\n## utils\nContains common utility functions used throughout the package.\n## verification\nFunctions to verify data integrity.\n\n\n## Development\nYou can run all local tests with `pytest .`. Default behavior is to also run integration tests, which takes time.\nYou can exclude slow running tests by using `pytest . -m \"not slow\"`.\nThese slow running tests are integration tests with \"real world data\" and will take 10-30s each according to your hardware.\n\nTo run tests, make sure you have [git lfs](https://git-lfs.com/) installed and all the Tests are running.\nMake sure to run `isort` and `black` to have properly formatted code.\n\nThe CI pipeline in Github will check with isort, black, and pytest.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A toolbox for gene expression-based prediction of metabolic alterations",
    "version": "1.2.0",
    "project_urls": null,
    "split_keywords": [
        "python",
        " bioinformatics",
        " modeling",
        " metabolites",
        " omics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "85862a6259a727e057e2e0048fbb93dda19b03094c56a800bc7197cc220f0802",
                "md5": "e515bd4ebb4ba73575a0394f8e4e0aa2",
                "sha256": "bb274cf80c5f413ef924367ccbb3ede0ac1be64e4f859d95c7f22bd72cd4216b"
            },
            "downloads": -1,
            "filename": "gemcat-1.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e515bd4ebb4ba73575a0394f8e4e0aa2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 21102,
            "upload_time": "2024-04-01T13:47:51",
            "upload_time_iso_8601": "2024-04-01T13:47:51.174461Z",
            "url": "https://files.pythonhosted.org/packages/85/86/2a6259a727e057e2e0048fbb93dda19b03094c56a800bc7197cc220f0802/gemcat-1.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "82cfb9e2d32a2aa3562e4224ec8480df79e119df3edef5b19069558ade329130",
                "md5": "691af1ab408dfdf967276d02779f1010",
                "sha256": "3f10131a12242ab7836b678311f31caa82bec820c7a99df376627e622c6776e9"
            },
            "downloads": -1,
            "filename": "gemcat-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "691af1ab408dfdf967276d02779f1010",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 137396,
            "upload_time": "2024-04-01T13:47:52",
            "upload_time_iso_8601": "2024-04-01T13:47:52.883491Z",
            "url": "https://files.pythonhosted.org/packages/82/cf/b9e2d32a2aa3562e4224ec8480df79e119df3edef5b19069558ade329130/gemcat-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-01 13:47:52",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "gemcat"
}
        
Elapsed time: 0.22315s