feat: emit merged DEG table for OMIX compatibility - #9
Conversation
|
Code Ocean validation update:
The three downstream OMIX capsules currently fail:
These failures appear to be downstream adapter issues. The OMIX capsules likely still need to be updated to discover and consume the new merged DEG table emitted by MOSuite-diff-counts. I have left the Code Ocean checklist item unchecked because the complete connected workflow does not yet run successfully. I suggest keeping this PR focused on adding the merged DEG output to MOSuite-diff-counts. I will confirm with Phil and Kelly whether the three OMIX capsule updates should be tracked as separate Issues and PRs before beginning that downstream work. |
that item refers to this capsule rather than the workflow, so if the capsule rr succeeds then that should be checked. |
Changes
Adds a merged, contrast-prefixed DEG table output to the
MOSuite-diff-countscapsule so that downstream tools expecting a flat table (e.g. OMIX-GSEA-Preranked-Legacy) can consume DEG results without needing to parse amultiOmicDataSet.Changes include:
code/main.R: afterdiff_counts()runs, derive a merged table frommoo@analyses$diffusing MOSuite's existingjoin_dfs_wide()helper, and write it toresults/deg/DEG_Analysis.csvalongside the existingresults/moo/moo-diff.rdsoutput..codeocean/app-panel.json: declaredeg/DEG_Analysis.csvas an additional result file.tests/testthat/helper-cli.R: extendsetup_cli_workspace()andexpect_outputs_created()to create thedegresults directory and assert that the merged CSV exists, is non-empty, and contains contrast-prefixed columns (e.g.B-A_logFC,B-A_pval,B-A_adjpval).CHANGELOG.md: add an entry for this user-facing output change.Design notes:
moo@analyses$diffstructure in the MOSuite package is unchanged. MOSuite-aware downstream nodes (Volcano Summary, Volcano Enhanced, Venn Diagram, Filter Diff) continue to consume the MOO exactly as before.Combined_diffentry to the package MOO, consistent with the discussion on the linked issue.<contrast>_FC,<contrast>_logFC,<contrast>_tstat,<contrast>_pval,<contrast>_adjpval) matches what OMIX-GSEA-Preranked-Legacy expects for its DEG file discovery and ranking-column detection.Issues
Resolves CCBR/MOSuite#262
PR Checklist
(
Strikethroughany points that are not applicable.)CHANGELOG.mdwith a short description of any user-facing changes and reference the PR number. Follow the style described in https://style.tidyverse.org/news.htmltestsworkflow succeeds on the latest commit.