Skip to content

Conversation

@faesslerd
Copy link

Previously, species names (e.g., panFirmicutes_bacterium_CAG_176) could be prefixes of longer model names (e.g., panFirmicutes_bacterium_CAG_176_63_11), which caused extra reactions to be selected and resulted in a dimension mismatch.

Fix applied:

Select all reactions beginning with bacteriumID + "_".

Identify any "child" IDs that also start with this prefix.

Exclude reactions beginning with any childID + "_".

This ensures that only reactions belonging to the intended bacterium are selected, correctly matching the dimensions of the coupling matrix.

I hereby confirm that I have:

  • Tested my code on my own machine
  • Followed the guidelines in the Contributing Guide
  • Selected develop as a target branch (top left drop-down menu)

(Note: You may replace [ ] with [X] to check the box)

@github-actions
Copy link
Contributor

Summary:

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️
251 198 0 53

Failed Tests:

No failed tests ✨

Github Test Reporter by CTRF 💚

@rmtfleming rmtfleming merged commit b31eb45 into opencobra:develop Jan 10, 2026
1 check passed
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