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
Metadata
Release files for gMCSpy 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gmcspy-1.1.5.tar.gz | 60.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gmcspy-1.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 127.6 kB
Release files / gmcspy-1.1.5.tar.gz
| Download URL | gmcspy-1.1.5.tar.gz |
|---|---|
| Size | 60.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b1657b37d27fbcbb163f327149c5e10bfbaa255a81094a08d0db291e7cbba4d
|
|
BLAKE2b-256 checksum How to use checksums |
457e8520c07af89c4397c93f332570fc840f1181e76d80367ddbd9f30d7bf908
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.18
|
Release files / gmcspy-1.1.5-py3-none-any.whl
| Download URL | gmcspy-1.1.5-py3-none-any.whl |
|---|---|
| Size | 67.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a1c2d6119071fc883932b56788123441f228ed15bf95dfe393415c5a1cbdea9
|
|
BLAKE2b-256 checksum How to use checksums |
45abd4286f70c90805f01cb94cc6e95126d66acda745c2a4142a29c07a1de8ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.18
|