-
Notifications
You must be signed in to change notification settings - Fork 218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User defined constraints #996
base: devel
Are you sure you want to change the base?
User defined constraints #996
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #996 +/- ##
==========================================
- Coverage 84.45% 81.84% -2.61%
==========================================
Files 58 65 +7
Lines 5036 6220 +1184
Branches 1092 1372 +280
==========================================
+ Hits 4253 5091 +838
- Misses 508 755 +247
- Partials 275 374 +99
Continue to review full report at Codecov.
|
It's almost impossible to tell what this PR adds because it includes all of the changes of the other branch. @matthiaskoenig can you open a branch on this repository, please, for the other work and then make a pull request from this branch targetting that new branch? |
Description of feature
User Defined Constraint: This new feature from fbc-v3 has been added to COBRApy as well as to JSON and other formats also. A user can now add his own constraints to the model. He can do this even more easily by just passing the constraint expression (for eg. "2v1 - 3v2*v2 +0.4 * v3" where v1, v2 and v3 are either reaction ids to define fluxes or some variable) along with the lower and upper bounds.
Tests
Tests for the functionality has been added along with a new example model.
Note: