8000 Add canonical cell-type pseudobulk collection by maggiecam · Pull Request #111 · NIDAP-Community/OMIX · GitHub
[go: up one dir, main page]

Skip to content

Add canonical cell-type pseudobulk collection - #111

Merged
maggiecam merged 6 commits into
mainfrom
helix/multicell-pseudobulk-limma
Oct 23, 2026
Merged

maggiecam merged 6 commits into
mainfrom
helix/multicell-pseudobulk-limma

Conversation

@maggiecam
Copy link
Copy Markdown
Member

Closes #110

Outcome

Adds an opt-in canonical collection mode for one, selected, or all post-filter cell-type labels. Existing one-cell-type output behavior remains unchanged.

Scope

  • OmixSeurat post-filter label enumeration API
  • Nested per-cell-type pseudobulk bundles and profile eligibility/provenance catalog
  • Selected-label table validation and deterministic all-label ordering
  • No Limma, L2P, adapter, runtime, or release changes

Validation

  • Direct collection helper/module/layout tests passed
  • Bridge tests and Seurat-to-pseudobulk integration passed from an isolated temporary R library
  • Exact public CLI equivalence was not run: the local environment lacks Seurat and sctransform required by the declared runtime test

@maggiecam
Copy link
Copy Markdown
Member Author

Remediated the module-catalog CI failure in 5297617 by updating only the matching root README row to the module.yml description. Passed: python3 tests/test_module_catalog.py; Pseudobulk collection helper/layout tests; and Rscript tests/test-monorepo-layout.R. The separate NIDAP-projects failure remains an external organization GitHub App JWT credential failure and was not remediated.

@maggiecam
Copy link
Copy Markdown
Member Author

Compass pathway-semantic review: APPROVE (commit 5297617).

  • The collection preserves ordered selected labels and deterministic radix ordering for all mode; its hashed stable IDs prevent readable-slug collisions and its catalog maps each ID back to the exact CellType label.
  • It writes one nested ordinary bundle per cell type and records donor, group, cells, eligibility, aggregation method, assay/layer, source RDS, and relative matrix/metadata/manifest paths in Cell_Type_Profile_Catalog.csv.
  • The implementation and README explicitly preserve donor-level replicates, reject insufficient/unknown/duplicate selections, do not pool cells, do not fit Limma, and do not claim a cell-type interaction or L2P result.
  • The README correctly defers L2P Multi use to a separate canonical step that validates a common tested-gene universe. This preserves the current L2P Multi gate: it has a single global universe and cannot safely consume a union-collated, per-cell-type-filtered table.

Evidence: bridges/seurat/R/seurat-bridge.R:138-213; modules/OMIX-Seurat-Pseudobulk/R/Seurat_Pseudobulk.R:484-675; README.md Multiple cell types section; modules/OMIX-L2P-Multi/R/analysis_functions.R:1454-1522. The final catalog check is green. I did not run a fresh checkout of the PR integration tests; exact-runtime equivalence and other CI checks were still in progress at review time.

@maggiecam
Copy link
Copy Markdown
Member Author

Beacon independent review — APPROVE for Phase-2A canonical source scope at 5297617910de264f9abd304875fe8dc7c3e7552d (draft PR #111).

Verified:

  • Scope is limited to bridges/seurat/**, modules/OMIX-Seurat-Pseudobulk/**, and the required root catalog correction. No Limma, L2P, adapter, runtime, or release files changed.
  • Legacy omix_seurat_pseudobulk() implementation is preserved; CLI default cell_type_mode=one dispatches to it with the established root-level bundle layout. Selected/all are explicit opt-in collection modes with empty/new-output-directory protection and nested per-label bundles.
  • Schema, CLI, README, changelog, module catalog, and versions agree: OMIX-Seurat-Pseudobulk is 0.5.0/interface 1; the optional new controls and additional collection outputs do not invalidate existing callers. OmixSeurat is 0.4.0.
  • Exact labels, selected order, radix-sorted all mode, stable hash-qualified IDs, collision detection, unknown/duplicate/empty selection errors, per-profile eligibility cataloging, drop/error semantics, and a separate collection manifest are implemented. The README correctly prohibits pooling and defers common-feature-universe validation to the later canonical collection/L2P phase.
  • Catalog and nested paths provide the needed routing/provenance without overwriting a non-empty collection destination.

Independent local validation passed:
git diff --check 3ec0389...5297617
python3 tests/test_module_catalog.py
Rscript modules/OMIX-Seurat-Pseudobulk/tests/test-module-layout.R
Rscript tests/test-monorepo-layout.R
Rscript modules/OMIX-Seurat-Pseudobulk/tests/test-cell-type-collection.R
Rscript modules/OMIX-Seurat-Pseudobulk/tests/test-seurat-pseudobulk.R

GitHub: module-catalog and the existing exact-runtime-equivalence check succeeded for this head, preserving the established single-mode cross-runtime baseline. I could not independently rerun bridge/integration or full collection execution locally because this environment lacks OmixSeurat, Seurat, and sctransform; the PR truthfully records that limitation and reports those tests from an isolated temporary R library. The exact-runtime workflow currently exercises the established one-mode fixture, not the new collection fixture—so it is baseline evidence, not final multi-cell collection cross-environment evidence. No adapter, runtime, platform, or release validation is implied.

At review time the unrelated Starter Environments build check remains in progress; no runtime definition or lockfile is in this PR.

@maggiecam
maggiecam marked this pull request as ready for review October 22, 2026 20:52
…runtime-candidate

Validate r-seurat-conversion collection candidate
@maggiecam
maggiecam merged commit f31f7aa into main Oct 23, 2026
8 checks passed
@maggiecam
maggiecam deleted the helix/multicell-pseudobulk-limma branch October 23, 2026 18:49
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.

Add selected/all-cell-type pseudobulk-to-Limma handoff for L2P Multi

1 participant

0