opencobra / cobrapy

COBRApy is a package for constraint-based modeling of metabolic networks.
http://opencobra.github.io/cobrapy/
GNU General Public License v2.0
455 stars 211 forks source link

Flux-Samplig: Cannot escape sampling region, model seems to be numerically unstable. Reporting the model #1344

Closed brunorbqi closed 1 month ago

brunorbqi commented 11 months ago

Checklist

Question

I gave tried to make a flux samplig for my model as following: mfg_bruc = cobra.io.read_sbml_model("iRAW-iBP.xml")

pfba_solution = cobra.flux_analysis.pfba(mfg_bruc) opt_value = pfba_solution["biomass_BA"]

with mfg_bruc:

mfg_bruc.reactions.get_by_id("biomass_BA").lower_bound = opt_value*.95

%time mfg_bruc_samples = sample(mfg_bruc, 10000, processes=4)

At the end, I got the following error : RuntimeError: Cannot escape sampling region, model seems to be numerically unstable. Reporting the model.

How can I fix this error ?! Best regards

cdiener commented 11 months ago

Hi thanks for the report. Can you share your model, so we can take a look what is going on?

cdiener commented 1 month ago

Closing because no response received.