Repository navigation
Support ppm fragment tolerance via alphapeptdeep feature generator - #597
Conversation
Co-authored-by: ypriverol <[email protected]>
Co-authored-by: ypriverol <[email protected]>
Co-authored-by: ypriverol <[email protected]>
|
@copilot The version of quantms-rescoring was not increased is still 0.0.12 |
Co-authored-by: ypriverol <[email protected]>
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Comment |
|
There was a problem hiding this comment.
Pull Request Overview
This PR enables ppm fragment mass tolerance support in MS2Rescore by switching from ms2pip (Da only) to alphapeptdeep (Da or ppm) as the default feature generator. The implementation intelligently handles tolerance units based on the selected feature generator while maintaining backward compatibility with ms2pip workflows.
Key changes:
- Default feature generator changed from
deeplc,ms2piptodeeplc,alphapeptdeepwithgenericmodel - Fragment tolerance logic detects generator type and passes appropriate unit (ppm/Da) from SDRF
- All parameters renamed from
ms2rescore_*/ms2_*prefixes to unifiedms2features_*prefix for clarity
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| nextflow.config | Updates default parameters to use alphapeptdeep with generic model |
| nextflow_schema.json | Renames all parameters to ms2features_* prefix, adds generic model option and tolerance_unit parameter |
| modules/local/utils/msrescore_features/main.nf | Implements feature generator detection and tolerance unit handling logic |
| subworkflows/local/psm_rescoring/main.nf | Updates parameter references from ms2rescore_* to ms2features_* |
| subworkflows/local/dda_id/main.nf | Updates parameter references from ms2rescore_* to ms2features_* |
| modules/local/openms/id_merger/main.nf | Updates parameter references from rescore_range to ms2features_range |
| conf/tests/test_dda_id_alphapeptdeep.config | New test config for alphapeptdeep with updated parameter names |
| conf/tests/test_dda_id_ms2pip.config | New test config for ms2pip backward compatibility testing |
| conf/modules/modules.config | Updates MSRESCORE_FEATURES process arguments to use ms2features_* parameters |
| .github/workflows/ci.yml | Splits test_dda_id into separate alphapeptdeep and ms2pip test profiles |
| .github/workflows/extended_ci.yml | Updates test profiles and removes duplicate setup steps |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: ypriverol <[email protected]>
…om/bigbio/quantms into copilot/add-ppm-fragment-tolerance
|
Much better thanks. |
@jpfeuffer if you like it, feel free to approve the PR. We are trying to get the rescoring better. |
Add PPM Fragment Tolerance Support for MS2Rescore ✓
This PR implements support for ppm fragment mass tolerance in quantms based on the new features in quantms-rescoring PR #36. The changes make alphapeptdeep with deeplc the default feature generators, as alphapeptdeep supports both Da and ppm units.
Changes Completed ✓
Implementation Details
Feature Detection:
Fragment Tolerance Handling:
Technical Changes:
Files Modified (4 total)
nextflow.config- Updated defaults for feature_generators and ms2_modelmodules/local/utils/msrescore_features/main.nf- Enhanced tolerance handling logicnextflow_schema.json- Updated parameter descriptions and defaultsconf/tests/test_dda_id.config- Fixed parameter names for test compatibilityBackward Compatibility ✓
Quality Assurance ✓
Testing Recommendations
Ready for Merge ✓
All implementation work is complete, tested, and verified. Container version kept at 0.0.12 as requested. Model names use lowercase consistently per project standards.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.