You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The supported languages are: C (veryfastFVA.c) with wrappers in MATLAB (VFFVA.m) and Python (VFFVA.py)
13
+
The supported languages are: C (veryfastFVA.c) with wrappers in MATLAB (VFFVA.m) and Python (VFFVA.py). IBM CPLEX has stopped its support for MATLAB since version 12.10, therefore VFFVA can be an alternative to access new CPLEX versions through its C API.
14
14
15
15
Please refer to the [documentation](https://vffva.readthedocs.io/en/latest/) and the [UserGuide](UserGuide.md) for veryfastFVA (VFFVA) usage.
16
16
17
17
In MATLAB, add the project folder to your MATLAB path and save it, then use `VFFVA()`. In Python, `import VFFA` to use `VFFVA()`.
18
18
19
19
For the comparison with fastFVA (FFVA), you can install FFVA [here](http://wwwen.uni.lu/lcsb/research/mol_systems_physiology/fastfva).
20
20
21
-
### Quick installation
22
-
This is a standard installation recipe, if this does not work, please install each dependency separately as specified in the [documentation](https://vffva.readthedocs.io/en/latest/).
23
-
```
24
-
cd lib
25
-
source ./install.sh
26
-
make
27
-
```
21
+
### Installation
22
+
Please install each of the 3 dependencies separately as specified in the [documentation](https://vffva.readthedocs.io/en/latest/).
23
+
- IBM ILOG CPLEX [free academic version](https://www.ibm.com/products/ilog-cplex-optimization-studio)
24
+
-[MPI](www.open-mpi.org)
25
+
- OpenMP is installed by default on most platforms except recent MacOS versions that require a dedicated installation.
28
26
29
27
### Motivation
30
28
FVA³ is the workhorse of metabolic modeling. It allows to characterize the boundaries of the solution space of a metabolic model and delineates the bounds
Replace the following variables with your own parameters:
14
14
@@ -18,13 +18,14 @@ Replace the following variables with your own parameters:
18
18
19
19
+ model.mps: the metabolic model in `.mps` format. To convert a model in `.mat` format to `.mps`, you can use the provided converter `convertProblem.m`
20
20
21
-
+ OPTPERC: Optimization percentage of the objective value (0-100). The default is 90, where VFFVa will be computed with the objective value set to 90% of the optimal
21
+
+ OPTPERC: Optimization percentage of the objective value (0-100). The default is 90, where VFFVA will be computed with the objective value set to 90% of the optimal
22
22
objective.
23
23
24
-
25
-
+ SCAIND: (optional) corresponds to the scaling CPLEX parameter SCAIND and can take the values 0 (equilibration scaling: default), 1(aggressive scaling), -1 (no scaling).
24
+
+ SCAIND: (optional) corresponds to the scaling CPLEX parameter SCAIND and can take the values 0 (equilibration scaling: default), 1 (aggressive scaling), -1 (no scaling).
26
25
scaling is usually desactivated with tightly constrained metabolic model such as coupled models to avoid numerical instabilities and large solution times.
27
26
27
+
+ ex: .csv file containing 0-based indices of reactions to optimize e.g., 0,1,2,3,4,5 or check `rxns.csv` in the repository.
Then, make sure that the CPLEXDIR path in `lib/Makefile` corresponds to the installation folder of CPLEX (~/CPLEX_Studio1210 in the previous example).
62
75
63
76
+ Once the required dependencies installed, `cd VFFVA/lib` then `make` at the root of `lib`.
64
77
@@ -79,11 +92,38 @@ VFFVA.m is the MATLAB implementation that consists of a wrapper around the C ver
79
92
80
93
+ MPI through the OpenMPI 1.10.3 implementation.
81
94
82
-
### Quick install
95
+
### Installation
96
+
97
+
First, istall the C version, then add the path of the installed C version to your MATLAB path.
83
98
84
99
```
85
-
cd lib
86
-
source ./install.sh
87
-
make
100
+
addpath(genpath('VFFVA'))
88
101
```
89
102
103
+
## Python
104
+
105
+
VFFVA.py is the Python3 implementation that consists of a wrapper around the C version.
106
+
107
+
### Requirements
108
+
+ Linux-based system.
109
+
110
+
+ Python 3
111
+
112
+
+ IBM CPLEX 12.6.3. and above [Free academic version.](http://www.ibm.com/academic)
113
+
114
+
+ OpenMP comes be default in the latest gcc version.
115
+
116
+
+ MPI through the OpenMPI 1.10.3 implementation.
117
+
118
+
### Installation
119
+
120
+
First, istall the C version, then add the path of the installed C version to your Python path.
121
+
122
+
## FAQ
123
+
124
+
- In MacOS, I get the error “Clang: Error: Unsupported Option ‘-Fopenmp’” Error
125
+
-> In MacOS, OpenMP is not provided by default, therefore you need to install it by updating to the latest version of llvm.
126
+
127
+
- Too many output arguments with function BuildMPS
128
+
-> The version of BuildMPS function provided with VFFVA gives 2 outputs, if you have the COBRAtoolbox in your path, you might be using another version that gives 1 output.
129
+
Therefore, make sure that VFFVA path supersedes COBRAtoolbox path in MATLAB path.
0 commit comments