Skip to content

Default deltaGCSV missingValue to the yeast-GEM sentinel for parity - #705

Merged
edkerk merged 1 commit into
develop3from
fix/deltagcsv-default-missing-value
Aug 28, 2026
Merged

Default deltaGCSV missingValue to the yeast-GEM sentinel for parity#705
edkerk merged 1 commit into
develop3from
fix/deltagcsv-default-missing-value

Conversation

@edkerk

@edkerk edkerk commented Aug 28, 2026

Copy link
Copy Markdown
Member

Follow-up to #702, resolving the remaining half of SysBioChalmers/raven-gecko-parity#16.

#702 added an optional missingValue argument to deltaGCSV but defaulted it to [] (disabled), while raven-toolbox's load_delta_g_csv defaults missing_value to DELTA_G_MISSING (1e7). So with defaults, the two disagreed: loading yeast-GEM's own ΔG CSVs, RAVEN stamped the 777 sentinel rows as literal 1e7 measurements while raven-toolbox left them unset.

This defaults missingValue to 1e7, so both implementations drop the sentinel out of the box. No real ΔG (in kJ/mol) takes this value, so the default is safe. Passing [] disables it and stores every value literally, mirroring missing_value=None. The comparison tolerance already matched (math.isclose rel_tol=1e-9).

Tests: adds deltaGCsvDropsSentinelByDefault and deltaGCsvKeepsSentinelWhenDisabled to tAnnotation.

deltaGCSV gained an optional missingValue argument in #702, but defaulted it
to [] (disabled), while raven-toolbox's load_delta_g_csv defaults
missing_value to DELTA_G_MISSING (1e7). The two implementations therefore
disagreed on default behaviour: loading yeast-GEM's own deltaG CSVs, RAVEN
stamped the 777 sentinel rows as literal 1e7 measurements while raven-toolbox
left them unset. That is the exact discrepancy the parity issue tracks.

Default missingValue to 1e7 so both sides drop the sentinel out of the box.
No real deltaG in kJ/mol takes this value, so the default is safe; passing []
disables it and stores every value literally, mirroring missing_value=None.
The comparison tolerance already matched (math.isclose rel_tol=1e-9).

Resolves the default half of SysBioChalmers/raven-gecko-parity#16.
@github-actions

Copy link
Copy Markdown

Function test results

302 tests   276 ✅  1m 7s ⏱️
 25 suites   26 💤
  1 files      0 ❌

Results for commit 04739b0.

@edkerk
edkerk merged commit 2d74aa2 into develop3 Aug 28, 2026
4 checks passed
@edkerk
edkerk deleted the fix/deltagcsv-default-missing-value branch August 28, 2026 07:29
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