Skip to content

RAVEN 2.11.3#671

Merged
edkerk merged 3 commits into
mainfrom
develop
Jul 7, 2026
Merged

RAVEN 2.11.3#671
edkerk merged 3 commits into
mainfrom
develop

Conversation

@edkerk

@edkerk edkerk commented Jul 7, 2026

Copy link
Copy Markdown
Member

Main improvements in this PR:

Instructions on merging this PR:

  • This PR has develop as target branch, and will be resolved with a squash-merge.
  • This PR has main as target branch, and will be resolved as descriped here.

edkerk added 3 commits June 8, 2026 23:34
Multi-threaded Gurobi can non-deterministically report the ftINIT MILP as
infeasible, causing reconstruction to fail for some cell types (e.g.
vascularSmoothMuscleCells, pericyte) with Human-GEM v2.0.0 while succeeding
with v1.19.0. The existing single-thread safeguard in optimizeProb only
applies inside parallel workers (getCurrentTask), not in serial runs.

Default Threads=1 for the ftINIT MILP (overridable via the step MILPParams)
in both the main reconstruction loop (ftINIT.m) and the gap-filling MILP
(ftINITFillGapsMILP.m).

Resolves #607
exportModel failed with 'Dimensions of arrays being concatenated are not consistent' when reactions had differing numbers of subsystems (a valid nested cell-of-cells subSystems field, e.g. produced by importModel when some reactions belong to multiple SBML groups). The flattening step used vertcat on row cell entries of unequal length (1x1 vs 1xN), which errors.

Each subSystems entry is now reshaped to a column cell array before flattening, so reactions with any number of subsystems concatenate correctly. Added a regression test (testSBMLExportNestedSubSystems) that exports and re-imports a model with mixed-length nested subSystems.
* fix: gene field alignment in removeLowScoreGenes

removeLowScoreGenes regenerated model.genes from getGenesFromGrRules,
which returns a sorted list, but trimmed the gene-associated fields
(geneShortNames, proteins, geneMiriams, geneFrom, geneComps) using a
mask in the original gene order. When model.genes was not already
sorted, this left every annotation field shifted relative to
model.genes, corrupting the gene ID to gene symbol mapping in
ftINIT-reconstructed models (removeGenes=true).

Retain the remaining genes in their original order and reorder the
rxnGeneMat columns to match, so the trimmed annotation fields stay
aligned.

Fixes #669

* chore: updateDocumentation
@edkerk edkerk merged commit 0e26f3b into main Jul 7, 2026
1 check failed
@edkerk edkerk changed the title v2.11.3 RAVEN 2.11.3 Jul 7, 2026
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.

1 participant