Skip to content

Conversation

@djinnome
Copy link

@djinnome djinnome commented Jun 27, 2025

  • adds feature request from [Feature] Fast Gapfill #1449
  • Added a boolean parameter fast_gapfill to cobra.flux_analysis.gapfilling.gapfill() that, when True, changes the indicator variable types to be continuous instead of binary, enabling fast gapfilling
  • Added test_fast_gapfilling test in tests/test_flux_analysis/test_gapfilling.py and it passes
  • added an entry to the next release
  • passes flake8 tests.

@djinnome
Copy link
Author

djinnome commented Aug 2, 2025

Hey folks, apologies for the slow turnaround. I finally got around to fixing the linting errors. Please rerun the workflow and it should hopefully pass all the tests, now.

@djinnome
Copy link
Author

djinnome commented Aug 3, 2025

Hmm... the unit tests failed because the Biomodels.net website was down. Reported this issue #1455 and suggested a fix.

The threshold at which a value is considered non-zero (aka
integrality threshold). If gapfilled models fail to validate,
you may want to lower this value (default 1E-6).
fast_gapfill : bool, optional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because this is already a gapfill function I think having it in the argument name is redundant. Just calling it "fast" should be enough. Or call it "method" and make it a string to allow for other algorithms in the future.

iterations pathways including 10 steps will eventually be reported
even if the shortest pathway is a single reaction (default 1).
fast_gapfill : bool, optional
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before.

The total number of reactions in the model having ID `model_id`.
"""
if os.getenv("CI") == "true":
Copy link
Member

@cdiener cdiener Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better remove this here and let's solve this in a separate PR which we can then rebase on. Right now this is also missing the os import which is making the CI fail. Thx

@cdiener
Copy link
Member

cdiener commented Oct 9, 2025

Looking great. I will start a separate PR for the Biomodels tests issue we might need to merge beforehand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants