Skip to content

OpenMS run/identity recovery, scan_format, and identified-without-quantity semantics - #337

Merged
ypriverol merged 14 commits into
bigbio:devfrom
Shen-YuFei:dev
Oct 3, 2026
Merged

ypriverol merged 14 commits into
bigbio:devfrom
Shen-YuFei:dev

Conversation

@Shen-YuFei

Copy link
Copy Markdown
Collaborator

Summary

Follow-up fixes from the issue sweep (#280, #308, #259, #157 and related), synced with the latest dev (includes #335 and #336).

OpenMS (qpxc convert openms)

  • Restore per-PSM run_file_name from the companion consensusXML using exact spectrum evidence (peptidoform, charge, scan, rt, observed_mz); missing or ambiguous matches fail before existing outputs are replaced (OpenMS#9872).
  • Normalize run references to the SDRF basename convention and keep producer-supplied feature IDs.
  • Keep duplicate identities as warnings instead of discarding rows; qpxc validate --strict still reports them as errors (OpenMS#9871).
  • Preserve existing SILAC light/heavy labels instead of relabeling them as LFQ (Issue representing SILAC #308).

Scan identifiers (#259)

  • Keep every numeric native-ID component (e.g. Sciex [sample, period, cycle, experiment], Bruker [frame, scan]), as docs/spec/scan.md already specifies.
  • The openms-consensus converter declares the PSM scan_format footer key only when all spectrum references share one recognized format; validation checks the declared cardinality.
  • Spectra mapping looks up multi-component scans by the complete native ID.

Protein groups (#280)

  • Keep identified protein groups that have no quantity as rows with the known label and intensity = null (MaxQuant, FragPipe, Spectronaut); never add rows for units without evidence. Spec updated in pg.md / pg.yaml.
  • Design matrices keep null intensities instead of turning them into 0.

Other

  • Ontology: write ontology_version only for terms mapped to the PSI-MS CV, and never write "unknown" (Discussion: Ontology versioning? #157).
  • Summary/docs: describe missing feature→pg links accurately; separate proposed collection APIs from supported ones.

Behaviour changes

  • With --consensusxml and PSM input, convert openms now streams the whole consensusXML (PXD001385: 7 s → 16 s) and fails on any unmatched PSM.
  • SDRFs with SILAC labels are now classified as SILAC; the quantms-msstats path therefore requires a Channel column for them instead of treating them as LFQ.
  • psm/feature scan arrays for non-Thermo vendors now contain all native-ID components.

Validation

  • pytest: 1607 passed; pre-commit and mkdocs build --strict pass.
  • PXD001385 (OpenMS, 12 runs): convert openms --consensusxml now spreads PSMs across all 12 runs instead of the first one, and every psm_id is unique. convert openms-consensus gives the same row counts and pg values as dev and declares scan_format=scan.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4ebd8155-0f36-45f2-adba-e1145f38f135

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 130 complexity · -2 duplication

Metric Results
Complexity 130
Duplication -2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@Shen-YuFei
Shen-YuFei marked this pull request as ready for review October 2, 2026 13:53
Copilot AI balanced review requested due to automatic review settings October 2, 2026 13:53
@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Shen-YuFei
Shen-YuFei requested a review from ypriverol October 3, 2026 08:37
@ypriverol
ypriverol merged commit 22d2eb9 into bigbio:dev Oct 3, 2026
9 checks passed
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