Skip to content

add MSGF+ allowDenseCentroidedPeaks parameter - #6606

Closed
bernt-matthias wants to merge 10 commits into
OpenMS:developfrom
bernt-matthias:msgf-allow_dense_centroided_peaks
Closed

bernt-matthias wants to merge 10 commits into
OpenMS:developfrom
bernt-matthias:msgf-allow_dense_centroided_peaks

Conversation

@bernt-matthias

Copy link
Copy Markdown
Contributor

Description

  • add MSGF+ -allowDenseCentroidedPeaks parameter
  • add test
  • always output MSGF+ commandline, stdout and stderr in case of error?

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

@bernt-matthias
bernt-matthias marked this pull request as draft January 18, 2023 13:27
Comment thread src/topp/MSGFPlusAdapter.cpp Resolved
Co-authored-by: Julianus Pfeuffer <[email protected]>
@jpfeuffer

Copy link
Copy Markdown
Contributor

You have to decide if you want the param with underscores or camelCase. But it needs to be consistent!

@jpfeuffer

Copy link
Copy Markdown
Contributor

I think you made the right choice with underscores but it needs to be with underscores in the test as well.

@bernt-matthias

Copy link
Copy Markdown
Contributor Author

@jpfeuffer user provided me a ~3MB test file that could not be parsed before. Would this be fine?

Is there a way to get the binaries that are generated by the CI for this PR? Could you remind me where I find the compilation instructions if not.

@jpfeuffer

jpfeuffer commented Jan 20, 2023 •

Copy link
Copy Markdown
Contributor

If possible, try to run a FileFilter and remove any MS1 spectra and filter for a few MS2 spectra that would fail without the flag. It is on the high end.

Just develop on https://gitpod.io#github.com/OpenMS/OpenMS/pull/6606 . It will be (mostly) precompiled.
Change back the files to separate files (i.e. just copy MSGFPlus_1_out)! Otherwise, you will overwrite. Run ctest -R MSGFPlusAdapter_2 to check. And ./tools/overwriteTOPPtests.sh MSGFPlusAdapter_2 to overwrite the "groundtruth test files" with the output from the current test run.

@github-actions github-actions Bot added the Stale label Nov 25, 2025
@github-actions github-actions Bot closed this Dec 11, 2025
@jpfeuffer jpfeuffer reopened this Dec 11, 2025
@github-actions github-actions Bot removed the Stale label Jan 10, 2026
timosachsenberg added a commit that referenced this pull request Feb 13, 2026
Adds a new flag `-allow_dense_centroided_peaks` that passes
`-allowDenseCentroidedPeaks 1` to MSGF+, allowing MS/MS spectra with
median distance of consecutive peaks less than 50ppm. Without this flag,
MSGF+ treats such spectra as profile spectra and may reject them.

Also adds a dedicated test (MSGFPlusAdapter_2) exercising the new flag
and updates the reference idXML with the new parameter.

Based on PR #6606 by @bernt-matthias, rebased and cleaned up.

Co-Authored-By: bernt-matthias <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@timosachsenberg

Copy link
Copy Markdown
Contributor

Superseded by #9461, which rebases this onto current develop, ports it to the refactored std::vector<String> argument handling, and fixes the flag passing (-allowDenseCentroidedPeaks and 1 are now separate argv tokens) plus the test reference. Thanks @bernt-matthias — you're credited as co-author on the new commit. Closing in favor of #9461.

timosachsenberg added a commit that referenced this pull request Jun 9, 2026
Expose MS-GF+'s -allowDenseCentroidedPeaks option so that high-resolution
centroided MS2 spectra whose median consecutive-peak distance is below
~50 ppm are searched instead of being misclassified as profile spectra and
silently skipped.

Squashed/rebased revival of PR #6606 (originally by Matthias Bernt), ported
onto the refactored std::vector<String> process_params. The flag is passed
as two separate argv tokens ("-allowDenseCentroidedPeaks" "1") rather than a
single space-joined token, so MS-GF+ actually parses it (boost::process maps
each vector element to one argv entry, with no whitespace splitting).

- register the flag in MSGFPlusAdapter
- record the new parameter in the MSGFPlusAdapter_1 reference idXML (it is
  written to SearchParameters for every run via writeParametersToMetaValues)
- add TOPP_MSGFPlusAdapter_2 smoke test that enables the flag
- update the PSMFeatureExtractor_1/2/3 references, which consume
  MSGFPlusAdapter_1_out.idXML as input fixture, so the new (positionally
  significant) UserParam line stays aligned in their idXML/mzid output

Note: the new MSGFPlus test only verifies the flag is accepted and recorded;
a dedicated dense-centroided fixture that fails without the flag is still TODO.

Co-authored-by: Matthias Bernt <[email protected]>
Co-authored-by: Julianus Pfeuffer <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
timosachsenberg added a commit that referenced this pull request Jun 9, 2026
Expose MS-GF+'s -allowDenseCentroidedPeaks option so that high-resolution
centroided MS2 spectra whose median consecutive-peak distance is below
~50 ppm are searched instead of being misclassified as profile spectra and
silently skipped.

Squashed/rebased revival of PR #6606 (originally by Matthias Bernt), ported
onto the refactored std::vector<String> process_params. The flag is passed
as two separate argv tokens ("-allowDenseCentroidedPeaks" "1") rather than a
single space-joined token, so MS-GF+ actually parses it (boost::process maps
each vector element to one argv entry, with no whitespace splitting).

- register the flag in MSGFPlusAdapter
- record the new parameter in the MSGFPlusAdapter_1 reference idXML (it is
  written to SearchParameters for every run via writeParametersToMetaValues)
- add TOPP_MSGFPlusAdapter_2 smoke test that enables the flag
- update the PSMFeatureExtractor_1/2/3 references, which consume
  MSGFPlusAdapter_1_out.idXML as input fixture, so the new (positionally
  significant) UserParam line stays aligned in their idXML/mzid output

Note: the new MSGFPlus test only verifies the flag is accepted and recorded;
a dedicated dense-centroided fixture that fails without the flag is still TODO.

Co-authored-by: Matthias Bernt <[email protected]>
Co-authored-by: Julianus Pfeuffer <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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