# pymCADRE
[![License (LGPL version 3)](https://img.shields.io/badge/license-LGPLv3.0-blue.svg?style=plastic)](http://opensource.org/licenses/LGPL-3.0)
[![Latest version](https://img.shields.io/badge/Latest_version-0.9-brightgreen.svg?style=plastic)](https://github.com/draeger-lab/pymCADRE/releases/)
![Code Size](https://img.shields.io/github/languages/code-size/draeger-lab/pymCADRE.svg?style=plastic)
![Downloads of all releases](https://img.shields.io/github/downloads/draeger-lab/pymCADRE/total.svg?style=plastic)
<img align="right" src="pymCADRE_logo.png" alt="drawing" width="170"/>
*Authors* : [Nantia Leonidou](https://github.com/NantiaL)
### Publication
When using pymCADRE in a research work, please cite the following work:
Leonidou, N., Renz, A., Mostolizadeh, R., & Dräger, A. (2023). New workflow predicts drug targets against SARS-CoV-2 via metabolic changes in infected cells. PLOS Computational Biology, 19(3), e1010903.
[![DOI](https://img.shields.io/badge/DOI-10.1093%2Fbioinformatics%2Fbtab669-blue.svg?style=plastic)](https://doi.org/10.1371/journal.pcbi.1010903)
### Overview.
The **pymCADRE** tool is an advanced re-implementation of the metabolic Context-specificity Assessed by Deterministic Reaction Evaluation ([mCADRE](https://github.com/jaeddy/mcadre)) algorithm in Python. It constructs tissue-specific metabolic models by leveraging gene expression data and literature-based evidence, along with network topology information.
The reactions within the generic global model are being ranked, and the ones with the lowest supporting evidence for the tissue
of interest are given the highest priority for removal:
```
GM, C, NC, P, Z, model_C = rank_reactions(model, G, U, confidence_scores, C_H_genes, method)
```
If the generic functionality test is passed, the model undergoes pruning, which results in a context-specific reconstruction:
```
PM, cRes = prune_model(GM, P, C, Z, eta, precursorMets, salvage_check, C_H_genes, method)
```
### Installation
```
pip install pymcadre
```
### Prerequisites
This tool has the following dependencies:
python >=3.8.5
Packages:
* pandas
* numpy
* cobra
* requests
* os
### Input data
+ `model`: COBRA model structure for the metabolic model of interest
+ `precursorMets`: list of precursor, key, metabolites in form of .txt file
+ `confidence_scores`: literature/experimental-based confidence assigned to reactions in `model`
Tissue-specific expression evidence:
+ `G`: list of Entrez IDs for all genes in `model`
+ `U`: list of ubiquity scores calculated for all genes in `model`
##### Optional Inputs
+ `salvageCheck`: flag whether to perform a functional check for the nucleotide salvage pathway (1) or not (0)
+ `C_H_genes`: list with Entrez IDs for genes with particularly strong evidence of activity in the tissue of interest
+ `method`: method to use internal optimizations, (1) flux variability analysis or (2) fastcc
### Outputs
+ `PM`: pruned COBRA tissue-specific model
+ `GM`: COBRA model after removing blocked reactions from the input global model
+ `C`: core reactions in `GM`
+ `NC`: non-core reactions in `GM`
+ `Z`: reactions with zero expression across all samples after binarization
+ `model_C`: core reactions in the generic model (including blocked reactions)
+ `pruneTime`: total reaction pruning time
+ `cRes`: result of model checks (consistency/function) during pruning
### Usage
To run pymCADRE, execute the notebook named main_pymcadre.ipynb or the python script named pymcadre.py. The scripts can be modified to the preferred parameters and input files. Jupyter notebooks with test runs and test scripts are also provided as reference points.
### Additional material
#### PREDICATE (<ins>**Predic**</ins>tion of <ins>**A**</ins>ntiviral <ins>**T**</ins>arg<ins>**e**</ins>ts):
<img align="center" src="PREDICATE_overview.png" width="570"/>
Steps:
- introduction of mutations in the reference sequence based on the protein sequences
- calculation of the necessary stoichiometric coefficients for the final virus biomass functions
- target detection using two approaches: reaction knock-outs and the host-derived enforcement
- visualizations that could give insights into the dataset and a better understanding of the results.
The tool can be applied to either one or more nucleotide sequences and all existing RNA viruses. This makes it particularly advantageous and time-saving when studying multiple variants of a single virus. The number of genomic input sequences equals the number of the calculated VBOF.
To run the tool, set the constant variables to the file pathways where the desired files are stored.
Raw data
{
"_id": null,
"home_page": "https://github.com/draeger-lab/pymCADRE",
"name": "pymCADRE",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "pymCADRE,systems biology,tissue-specific metabolic models",
"author": "Nantia Leonidou",
"author_email": "nantia.leonidou@uni-tuebingen.de",
"download_url": "https://files.pythonhosted.org/packages/3d/eb/0ad6ae26af9e35227c3893bb4f2c02a17082db8b890736cbb79865de21f0/pymCADRE-1.2.5.tar.gz",
"platform": null,
"description": "# pymCADRE \n\n[![License (LGPL version 3)](https://img.shields.io/badge/license-LGPLv3.0-blue.svg?style=plastic)](http://opensource.org/licenses/LGPL-3.0)\n[![Latest version](https://img.shields.io/badge/Latest_version-0.9-brightgreen.svg?style=plastic)](https://github.com/draeger-lab/pymCADRE/releases/)\n![Code Size](https://img.shields.io/github/languages/code-size/draeger-lab/pymCADRE.svg?style=plastic)\n![Downloads of all releases](https://img.shields.io/github/downloads/draeger-lab/pymCADRE/total.svg?style=plastic)\n\n<img align=\"right\" src=\"pymCADRE_logo.png\" alt=\"drawing\" width=\"170\"/> \n\n*Authors* : [Nantia Leonidou](https://github.com/NantiaL)\n\n### Publication\n\nWhen using pymCADRE in a research work, please cite the following work:\n\nLeonidou, N., Renz, A., Mostolizadeh, R., & Dr\u00e4ger, A. (2023). New workflow predicts drug targets against SARS-CoV-2 via metabolic changes in infected cells. PLOS Computational Biology, 19(3), e1010903.\n[![DOI](https://img.shields.io/badge/DOI-10.1093%2Fbioinformatics%2Fbtab669-blue.svg?style=plastic)](https://doi.org/10.1371/journal.pcbi.1010903)\n\n### Overview. \n\nThe **pymCADRE** tool is an advanced re-implementation of the metabolic Context-specificity Assessed by Deterministic Reaction Evaluation ([mCADRE](https://github.com/jaeddy/mcadre)) algorithm in Python. It constructs tissue-specific metabolic models by leveraging gene expression data and literature-based evidence, along with network topology information.\n\nThe reactions within the generic global model are being ranked, and the ones with the lowest supporting evidence for the tissue\nof interest are given the highest priority for removal:\n```\nGM, C, NC, P, Z, model_C = rank_reactions(model, G, U, confidence_scores, C_H_genes, method)\n```\nIf the generic functionality test is passed, the model undergoes pruning, which results in a context-specific reconstruction:\n```\nPM, cRes = prune_model(GM, P, C, Z, eta, precursorMets, salvage_check, C_H_genes, method)\n```\n\n### Installation\n```\npip install pymcadre\n```\n\n### Prerequisites\n\nThis tool has the following dependencies:\n\npython >=3.8.5\n\nPackages:\n* pandas\n* numpy\n* cobra\n* requests\n* os\n\n### Input data\n+ `model`: COBRA model structure for the metabolic model of interest\n+ `precursorMets`: list of precursor, key, metabolites in form of .txt file\n+ `confidence_scores`: literature/experimental-based confidence assigned to reactions in `model`\n\nTissue-specific expression evidence: \n+ `G`: list of Entrez IDs for all genes in `model`\n+ `U`: list of ubiquity scores calculated for all genes in `model`\n\n##### Optional Inputs\n+ `salvageCheck`: flag whether to perform a functional check for the nucleotide salvage pathway (1) or not (0)\n+ `C_H_genes`: list with Entrez IDs for genes with particularly strong evidence of activity in the tissue of interest\n+ `method`: method to use internal optimizations, (1) flux variability analysis or (2) fastcc\n\n### Outputs\n+ `PM`: pruned COBRA tissue-specific model\n+ `GM`: COBRA model after removing blocked reactions from the input global model\n+ `C`: core reactions in `GM`\n+ `NC`: non-core reactions in `GM` \n+ `Z`: reactions with zero expression across all samples after binarization\n+ `model_C`: core reactions in the generic model (including blocked reactions)\n+ `pruneTime`: total reaction pruning time \n+ `cRes`: result of model checks (consistency/function) during pruning\n \n\n### Usage\nTo run pymCADRE, execute the notebook named main_pymcadre.ipynb or the python script named pymcadre.py. The scripts can be modified to the preferred parameters and input files. Jupyter notebooks with test runs and test scripts are also provided as reference points.\n\n\n### Additional material\n#### PREDICATE (<ins>**Predic**</ins>tion of <ins>**A**</ins>ntiviral <ins>**T**</ins>arg<ins>**e**</ins>ts): \n<img align=\"center\" src=\"PREDICATE_overview.png\" width=\"570\"/>\n\nSteps: \n- introduction of mutations in the reference sequence based on the protein sequences \n- calculation of the necessary stoichiometric coefficients for the final virus biomass functions\n- target detection using two approaches: reaction knock-outs and the host-derived enforcement\n- visualizations that could give insights into the dataset and a better understanding of the results. \n\nThe tool can be applied to either one or more nucleotide sequences and all existing RNA viruses. This makes it particularly advantageous and time-saving when studying multiple variants of a single virus. The number of genomic input sequences equals the number of the calculated VBOF.\n\nTo run the tool, set the constant variables to the file pathways where the desired files are stored.\n\n\n",
"bugtrack_url": null,
"license": "GPL-3.0",
"summary": "The pymCADRE tool is an advanced re-implementation of the metabolic Context-specificity Assessed by Deterministic Reaction Evaluation (mCADRE) algorithm in Python. It constructs tissue-specific metabolic models by leveraging gene expression data and literature-based evidence, along with network topology information.",
"version": "1.2.5",
"split_keywords": [
"pymcadre",
"systems biology",
"tissue-specific metabolic models"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "337932786945957725912f3cc062f7fdd2e9530b47dea667855eb8af725a5a33",
"md5": "00b59b4ebbfb29292bd5acbd7d4c5210",
"sha256": "993914f9950c41f9390d0cbf4490f1de7adf05456c1fe326e86a44a87917a140"
},
"downloads": -1,
"filename": "pymCADRE-1.2.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "00b59b4ebbfb29292bd5acbd7d4c5210",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 77254,
"upload_time": "2023-04-20T06:13:57",
"upload_time_iso_8601": "2023-04-20T06:13:57.481267Z",
"url": "https://files.pythonhosted.org/packages/33/79/32786945957725912f3cc062f7fdd2e9530b47dea667855eb8af725a5a33/pymCADRE-1.2.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3deb0ad6ae26af9e35227c3893bb4f2c02a17082db8b890736cbb79865de21f0",
"md5": "8428c759a3aabdf978bbea34e3944409",
"sha256": "64fdd6b78d1fd6d7b83701f98dc3e1bc4ba492cf21c99efa47d2ccb9b6f8572a"
},
"downloads": -1,
"filename": "pymCADRE-1.2.5.tar.gz",
"has_sig": false,
"md5_digest": "8428c759a3aabdf978bbea34e3944409",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 37984,
"upload_time": "2023-04-20T06:14:00",
"upload_time_iso_8601": "2023-04-20T06:14:00.404551Z",
"url": "https://files.pythonhosted.org/packages/3d/eb/0ad6ae26af9e35227c3893bb4f2c02a17082db8b890736cbb79865de21f0/pymCADRE-1.2.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-20 06:14:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "draeger-lab",
"github_project": "pymCADRE",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pymcadre"
}