-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Dear Devlin,
When I try to use Macaw, most of my reactions are flagged as "always blocked." I am questioning if this could be related to an unexpected behaviour of the code:
import cobra
from macaw.main import run_all_tests
model = cobra.io.read_sbml_model("test_model.sbml")
model.optimize() model.optimize() <Solution 62.084 at 0x7fae212c7da0>
Then, after:
(test_results, edge_list) = run_all_tests(model)Starting dead-end test...
- Found 766 dead-end metabolites.
- Found 674 reactions incapable of sustaining steady-state fluxes in either direction due to these dead-ends.
- Found 90 reversible reactions that can only carry steady-state fluxes in a single direction due to dead-ends.
Starting duplicate test...
- Skipping redox duplicates because no redox_pairs and/or proton_ids were provided.
- Found 4 reactions that were some type of duplicate:
- 0 were completely identical to at least one other reaction.
- 2 involve the same metabolites but go in the opposite direction or have the opposite reversibility as at least one other reaction.
- 4 involve the same metabolites but with different coefficients as at least one other reaction.
Skipping diphosphate test because IDs for mono- and diphosphate ions were not provided.
Starting loop test...
/home/drgarza/metabolic_modelling/lib/python3.12/site-packages/macaw/flux_based.py:78: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
solutions = solutions.applymap(lambda x: 0 if abs(x) < zero_thresh else x)
- Found 212 reactions involved in infinite loops.
Starting dilution test...
- Found 106 metabolites for which adding a dilution constraint prevented fluxes through all associated reactions.
- Found 224 reactions that are blocked by one or more dilution constraints.
1105 of the 1105 reactions in the given GSMM were flagged by at least one of the tests.
and,
model.optimize()
now returns,
<Solution 0.000 at 0x7fae1ef64d10>
Is this the expected behavior? Could the fact that my source model changes during the execution cause such a high number of "always blocked" reactions?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels