Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ym2877 committed Jul 6, 2023
1 parent ab0ce92 commit 99073ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pymgpipe/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def solve_model(
flux_threshold (float): Any flux below this threshold value will be set to 0
Notes:
`presolve` and `method` are both solver-specific parameters. Please refer to [optlang documentation](https://optlang.readthedocs.io/en/latest/) for more info.
`presolve` and `method` are both solver-specific parameters. Please refer to https://optlang.readthedocs.io/en/latest/ for more info.
"""

model = load_model(model, solver)
Expand Down Expand Up @@ -159,9 +159,8 @@ def constrain_reactions(model, flux_map, threshold=0.0):
threshold (float): Fixed value defining flexibility threshold (not a percentage!)
Example:
Passing in the following dictionary {'EX_reactionA': 400, 'EX_reactionB': 100} with a threshold of 50 will set the bounds for these reactions like so-
`350 <= EX_reactionA <= 450`
`50 <= EX_reactionB <= 150`
Passing in the following dictionary {'EX_reactionA': 400} with a threshold of 50 will set the bounds for this reaction to `350 <= EX_reactionA <= 450`
"""
model = load_model(model)
if isinstance(flux_map, pd.Series):
Expand Down

0 comments on commit 99073ec

Please sign in to comment.