gMCSpy is a python package for the calculation of Genetic Minimal Cut sets (GMCS). In simple terms, the idea is to take a metabolic model and calculate the genetic vulnerabilities that will render the biomass production impossible. This is done through a Mixed-Integer Linear problem (MILP) formulation and the use of a linear solver.
Project description
gMCSpy
gMCSpy is a python package for the calculation of Genetic Minimal Cut sets (GMCS). In simple terms the idea is to take a metabolic model and calculate the genetic vulnerabilities that will render the biomass production impossible. This is done through a Mixed-Integer Linear problem (MILP) formultion and the use of a linear solver.
The models must come from the cobrapy package and a linear solver must be installed. The package has been design to be used with Gurobi, CPLEX and SCIP.
Documentation
Installation
Install gmcspy from pip
pip install gmcspy
Quick Start
Calculating Genetic Minimal Interventions
Genetic Minimal Intervention Sets
E. coli core
#Read the model
from pathlib import Path
from cobra.io import load_model
model = load_model("textbook")
To calculate all the GMCS of length 3 or less; using gurobi as solver
#Calculate the genetic minimal cut sets
from gMCSpy import calculateGeneMCS
calculateGeneMCS(
cobraModel=model,
maxKOLength=3,
solver='gurobi'
)
### Using CPLEX
calculateGeneMCS(
cobraModel=model,
maxKOLength=3,
solver='cplex'
)
Human-GEM (*Requires License Activation: CPLEX and Gurobi)
Using HUMAN GEM (v16) from here.
mkdir data
curl -o data/Human-GEM16.mat --location --remote-header-name https://github.com/SysBioChalmers/Human-GEM/raw/v1.16.0/model/Human-GEM.mat
#Read the model
from pathlib import Path
from cobra.io import load_matlab_model
mini_mat_path = Path(".") / "./data/Human-GEM16.mat"
model = load_matlab_model(str(mini_mat_path.resolve()))
To calculate all the GMCS of length 3 or less; using gurobi as solver
#Calculate the genetic minimal cut sets
from gMCSpy import calculateGeneMCS
calculateGeneMCS(
cobraModel=model,
maxKOLength=3,
solver='gurobi'
)
Table with the results:
| Order | Solution |
|---|---|
| order1_0 | frozenset({'ENSG00000106105'}) |
| order1_1 | frozenset({'ENSG00000084774'}) |
| ... | ... |
| order3_159 | frozenset({'ENSG00000156471', 'ENSG00000185813', 'ENSG00000213930'}) |
Authors
- Carlos J. Rodriguez
- Naroa Barrena
- Danel Olaverri-Mendizabal
- Idoia Ochoa
- Luis V. Valcárcel
- Francisco J. Planes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gmcspy-1.1.5.tar.gz.
File metadata
- Download URL: gmcspy-1.1.5.tar.gz
- Upload date:
- Size: 60.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b1657b37d27fbcbb163f327149c5e10bfbaa255a81094a08d0db291e7cbba4d
|
|
| MD5 |
bb925e7cccd14e7896899c0d330d64bd
|
|
| BLAKE2b-256 |
457e8520c07af89c4397c93f332570fc840f1181e76d80367ddbd9f30d7bf908
|
File details
Details for the file gmcspy-1.1.5-py3-none-any.whl.
File metadata
- Download URL: gmcspy-1.1.5-py3-none-any.whl
- Upload date:
- Size: 67.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a1c2d6119071fc883932b56788123441f228ed15bf95dfe393415c5a1cbdea9
|
|
| MD5 |
7a48a1b9c196fffcbb6cd22292140a88
|
|
| BLAKE2b-256 |
45abd4286f70c90805f01cb94cc6e95126d66acda745c2a4142a29c07a1de8ee
|