Repository navigation
[TEST] IDFilter: cover the ConsensusMap removeDanglingProteinReferences overloads - #9558
Conversation
…es overloads IDFilter_test covered removeDanglingProteinReferences only for the PeptideIdentificationList overload. The two ConsensusMap overloads (per-run and ref_run) -- the ones the ProteomicsLFQ/consensusXML lane relies on to drop dangling DECOY_ references (OpenMS#9460) -- had no coverage. Adds sections for both: - ConsensusMap overload: an assigned PSM keeps its valid PROT1 evidence while the dangling DECOY_PROT1 reference is removed; a PSM referencing only a dangling protein ends up with zero evidences (and is dropped when remove_peptides_without_reference=true); an unassigned PSM is filtered too (include_unassigned defaults to true). - ref_run overload: filtering against a single reference run that knows only PROT1 makes PROT2 dangling everywhere, independent of the per-run protein identifications stored on the map. Part of the OpenMS 3.6.0 pre-release testing plan (OpenMS#9460). Tests only; no production code changes. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds three OpenMS include headers ( ChangesIDFilter ConsensusMap test coverage
Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-06-16 00:07:48.391898240 +0000
+++ AUTHORS.new 2026-06-16 00:07:53.559808536 +0000
@@ -23,8 +23,8 @@
- Chirag Dave
- Chris Bauer
- Chris Bielow
- - Christie Mathews
- Christian Ehrlich
+ - Christie Mathews
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
Adversarial review result: I did not find a blocking issue in this test-only change. The added IDFilter coverage for ConsensusMap dangling protein references looks consistent with the existing cleanup semantics. No source/test comments with tracker-style issue references stood out in this diff. I did not run the tests locally. |
Context
Part of the OpenMS 3.6.0 pre-release testing plan (#9460), §5 — the dangling-
DECOY_-reference concern: "no danglingDECOY_PeptideEvidenceremains (IDFilter::removeDanglingProteinReferences)."IDFilter_testcoveredremoveDanglingProteinReferencesonly for thePeptideIdentificationListoverload. The twoConsensusMapoverloads — the ones the ProteomicsLFQ / consensusXML lane relies on — had no coverage.Change
Adds a dedicated section for each ConsensusMap overload (self-contained map, no fixtures):
removeDanglingProteinReferences(ConsensusMap&, bool)— runrun1knowsPROT1/PROT2but not the decoys:PROT1evidence while the danglingDECOY_PROT1reference is removed;remove_peptides_without_reference=true);include_unassigneddefaults to true).removeDanglingProteinReferences(ConsensusMap&, const ProteinIdentification& ref_run, bool)— filtering against a single reference run that knows onlyPROT1makesPROT2dangling everywhere, independent of the per-run protein identifications stored on the map.Notes
🤖 Generated with Claude Code
Summary by CodeRabbit