8000 Add OMIX PCA 3D module by maggiecam · Pull Request #133 · NIDAP-Community/OMIX · GitHub
[go: up one dir, main page]

Skip to content

Add OMIX PCA 3D module - #133

Merged
maggiecam merged 3 commits into
mainfrom
atlas-pca-3d
Oct 28, 2026
Merged

maggiecam merged 3 commits into
mainfrom
atlas-pca-3d

Conversation

@maggiecam
Copy link
Copy Markdown
Member

Summary

  • Adds canonical OMIX PCA 3D v0.1.0, interface 1, lifecycle review.
  • Preserves the released CCBR v43 PCA sequence and companion-JSON defaults while replacing Code Ocean output handling with explicit paths.
  • Adds a portable CLI, complete schema, README, synthetic fixture, and direct tests.
  • Uses standard Plotly HTML plus pca_3d_files by default because the published visualization image has no Pandoc; self-contained HTML remains an explicit opt-in.

Validation

  • Rscript modules/OMIX-PCA-3D/tests/test-module-layout.R
  • Rscript modules/OMIX-PCA-3D/tests/test-pca-preparation.R
  • python3 tests/test_module_catalog.py
  • Rscript tests/test-monorepo-layout.R
  • git diff --check
  • Exact published r-visualization v3 CLI fixture at sha256:d0c00bf328a6a4897c243472db742860d20f7f700d7aab3bbe44dd96a7d5a842

Boundaries and remaining gate

No Code Ocean adapter, shared-runtime rebuild, runtime publication, tag, or release action is included. Independent review is required before merge; active status is not proposed.

@maggiecam
maggiecam requested review from huaitian1129 and a balanced review from Copilot October 28, 2026 15:43
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Palette generation is not reproducible because RGB candidates are created before seeding, and metadata parsing alters numeric-looking sample IDs, breaking sample matching.

2 open issues
What changed in this PR

Adds OMIX PCA 3D as a platform-neutral visualization module in review status, using the existing r-visualization runtime with an edgeR overlay.

Changes:

  • Implements template-derived PCA preparation and interactive Plotly rendering.
  • Adds an explicit-path CLI, interface schema, and HTML output with companion assets by default.
  • Documents provenance and usage, registers the module, and adds synthetic fixtures and direct tests.
File Description
README.md Registers the module and its runtime profile.
modules/​OMIX-PCA-3D/​tests/​test-pca-preparation.R Checks sample selection, labels, colors, PCA statistics, and optional CPM.
modules/​OMIX-PCA-3D/​tests/​test-pca-cli.R Checks CLI outputs and run-summary contents.
modules/​OMIX-PCA-3D/​tests/​test-module-layout.R Checks module structure, parsing, and overlay declaration.
modules/​OMIX-PCA-3D/​tests/​fixtures/​sample_metadata.csv Supplies synthetic sample labels and groups.
modules/​OMIX-PCA-3D/​tests/​fixtures/​feature_matrix.csv Supplies synthetic expression values.
modules/​OMIX-PCA-3D/​scripts/​run_pca_3d.R Provides input parsing, controls, and explicit output handling.
modules/​OMIX-PCA-3D/​schemas/​interface.yml Defines inputs, parameters, and output contracts.
modules/​OMIX-PCA-3D/​README.md Documents usage, method constraints, outputs, and review status.
modules/​OMIX-PCA-3D/​R/​OMIX_PCA_3D.R Implements PCA preparation, plotting, and output writing.
modules/​OMIX-PCA-3D/​module.yml Declares version, lifecycle, runtime, and entrypoint.
modules/​OMIX-PCA-3D/​CHANGELOG.md Records module introduction, validation status, and template provenance.

Review effort: Balanced

8000
Comment thread modules/OMIX-PCA-3D/R/OMIX_PCA_3D.R Resolved
maggiecam and others added 2 commits October 28, 2026 11:50
Removed duplicate set.seed call and ensured color space conversion.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Add colClasses parameter to read.delim for sample_metadata.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@huaitian1129 huaitian1129 left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review passed.

@maggiecam
maggiecam merged commit 09a0d69 into main Oct 28, 2026
4 checks passed
@maggiecam
maggiecam deleted the atlas-pca-3d branch October 28, 2026 19:18
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.

3 participants

0