Skip to content

feat: export model.ec to Excel (ENZYMES and ENZRXNS sheets)#641

Merged
edkerk merged 1 commit into
develop3from
feat/excel-ec-export
Jun 15, 2026
Merged

feat: export model.ec to Excel (ENZYMES and ENZRXNS sheets)#641
edkerk merged 1 commit into
develop3from
feat/excel-ec-export

Conversation

@edkerk

@edkerk edkerk commented Jun 15, 2026

Copy link
Copy Markdown
Member

Main improvements in this PR:

  • feat:
    • exportToExcelFormat now writes the contents of the model.ec structure of enzyme-constrained (GECKO) models to two additional sheets:
      • ENZYMES — one row per enzyme: ID (UniProt), GENE, MW, SEQUENCE, CONC
      • ENZRXNS — one row per ec-reaction: ID, KCAT, SOURCE, NOTE, EC-NUMBER, ENZYMES
    • writeSheet gains column widths for the two new sheets.

The ENZRXNS ENZYMES column encodes the subunit stoichiometry from model.ec.rxnEnzMat as enzyme:count pairs (e.g. P12345:1;P67890:2), capturing the enzyme-reaction coupling in readable per-row form rather than as a separate matrix.

These sheets are export-only: importExcelModel does not read them back. The YAML format (writeYAMLmodel/readYAMLmodel) remains the round-trippable format for ecModels. NaN molecular weights / concentrations are written as empty cells; the kcat == 0 "unassigned" sentinel is kept.

A test (tIO/exportToExcelFormatWritesEcSheets) attaches a minimal model.ec to the e. coli test model, exports it, and verifies the two sheets exist and carry the expected content (including the enzyme:count ENZYMES column).

The Python counterpart (raven-toolbox export_to_excel) is SysBioChalmers/raven-toolbox#38, and the ecModel-build fix that motivated this is SysBioChalmers/geckopy#32.

Instructions on merging this PR:

  • This PR has develop3 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.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Function test results

202 tests   178 ✅  36s ⏱️
 22 suites   24 💤
  1 files      0 ❌

Results for commit dc92276.

♻️ This comment has been updated with latest results.

@edkerk edkerk changed the base branch from develop3 to develop June 15, 2026 19:30
@edkerk edkerk changed the base branch from develop to develop3 June 15, 2026 19:33
@edkerk edkerk force-pushed the feat/excel-ec-export branch 2 times, most recently from 347116b to 8640c4f Compare June 15, 2026 20:10
exportToExcelFormat now writes the contents of the model.ec structure of enzyme-constrained (GECKO) models to two additional sheets: ENZYMES (one row per enzyme: ID, GENE, MW, SEQUENCE, CONC) and ENZRXNS (one row per ec-reaction: ID, KCAT, SOURCE, NOTE, EC-NUMBER, ENZYMES). The ENZRXNS ENZYMES column encodes the subunit stoichiometry from model.ec.rxnEnzMat as 'enzyme:count' pairs (e.g. 'P12345:1;P67890:2').

Export-only: importExcelModel does not read these sheets back; the YAML format remains the round-trippable format for ecModels. NaN molecular weights/concentrations are written as empty cells. writeSheet gains column widths for the two new sheets.
@edkerk edkerk force-pushed the feat/excel-ec-export branch from 8640c4f to dc92276 Compare June 15, 2026 20:26
@edkerk edkerk merged commit a0cf12d into develop3 Jun 15, 2026
2 checks passed
@edkerk edkerk deleted the feat/excel-ec-export branch June 15, 2026 21:08
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