Skip to content

Rename FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages → max_nr_labelled_aas - #8911

Merged
timosachsenberg merged 2 commits into
developfrom
copilot/rename-missed-cleavages-parameter
Mar 16, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
copilot/rename-missed-cleavages-parameter

Conversation

Copilot AI commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

-missed_cleavages was a misnomer: the parameter controls the maximum number of labelled amino acids searched per peptide, not missed cleavages per se. The missed-cleavages interpretation only holds for SILAC+trypsin; for other enzyme/label combinations (e.g. Lys-C, 18O), the mapping breaks down.

Changes

  • MultiplexDeltaMassesGenerator (header + source): rename constructor parameter and member variable missed_cleavages_ → max_nr_labelled_aas_
  • FeatureFinderMultiplexAlgorithm.cpp: rename algorithm:missed_cleavages → algorithm:max_nr_labelled_aas; update description
  • MultiplexResolver.cpp: rename algorithm:missed_cleavages → algorithm:max_nr_labelled_aas; update description
  • Test .ini files (15 total across src/tests/topp/ and src/tests/class_tests/): parameter name + description updated
  • MultiplexDeltaMassesGenerator_test.cpp: variable and START_SECTION name updated
  • CHANGELOG_PARAMS: entries added for both tools

Description clarification

The internal implementation uses max_nr_labelled_aas_ + 1 as the actual ceiling, so the description is explicit:

Maximum number of labelled amino acids per peptide, minus one. The algorithm searches for peptides with up to (this value + 1) labelled amino acids. For SILAC with trypsin digestion, this parameter corresponds to the maximum number of missed cleavages.

This preserves existing behaviour and default values — only the parameter name and description change.

Original prompt

This section details on the original issue you should resolve

<issue_title>Rename FeatureFinderMultiplex parameter -missed_cleavages</issue_title>
<issue_description>FeatureFinderMultiplex has a parameter -missed_cleavages. I think it would better be renamed to something like -labelled_aa. The parameter allows searching for features with more than one labelled amino acid. However, only when using (KR-)SILAC or dimethyl-labelling in combination with trypsin digestion this actually corresponds to the number of missed cleavages. For other enzymes (e.g. Lys-C) or labels (e.g. 18O) the number of labelled AAs is higher than the number of missed cleavages.</issue_description>

<agent_instructions>Use -nr_labelled_aas or -max_nr_labelled_aas depending on if it searches for exactly that amount or up to.
Make sure to adapt all tests also.
Do not build or test, it will take too long. Review yourself instead.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Rename FeatureFinderMultiplex parameter -missed_cleavages Rename FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages → max_nr_labelled_aas Mar 16, 2026
Copilot AI requested a review from jpfeuffer March 16, 2026 08:39
@timosachsenberg

Copy link
Copy Markdown
Contributor

please double check what copilot does. I don't trust it for even moderately complex tasks...

@jpfeuffer

Copy link
Copy Markdown
Contributor

It is a find-replace 😄

@timosachsenberg

Copy link
Copy Markdown
Contributor

borderline difficult for copilot :)

@timosachsenberg
timosachsenberg marked this pull request as ready for review March 16, 2026 12:50
@timosachsenberg
timosachsenberg merged commit b29ee41 into develop Mar 16, 2026
18 of 19 checks passed
@timosachsenberg
timosachsenberg deleted the copilot/rename-missed-cleavages-parameter branch March 16, 2026 12:50
github-actions Bot pushed a commit that referenced this pull request Mar 17, 2026
Add missing changelog entries for changes merged in the past 7 days:

- PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543)
- PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857)
- TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911)
- TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864)
- TOPP: MetaboliteAdductDecharger adds multimer detection (#8888)
- OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857)
- Build: CMake 4.x compat fix for Windows packaging (#8880)
- Build: Fix pyOpenMS dev build RPATH (#8892)
- Build: Correctly locate locally installed nanobind (#8874)

Co-authored-by: Copilot <[email protected]>
timosachsenberg pushed a commit that referenced this pull request Mar 17, 2026
Add missing changelog entries for changes merged in the past 7 days:

- PyOpenMS: PeptideAndProteinQuant.getPeptideResults/getProteinResults exposed (#8543)
- PyOpenMS BREAKING: zero-copy _mv methods renamed to _view (#8857)
- TOPP BREAKING: FeatureFinderMultiplex/MultiplexResolver parameter missed_cleavages renamed to max_nr_labelled_aas (#8911)
- TOPP: MaRaClusterAdapter annotates consensus spectra with native IDs and cluster metadata (#8864)
- TOPP: MetaboliteAdductDecharger adds multimer detection (#8888)
- OpenMS Library BREAKING: ChromatogramPeak::IntensityType changed double -> float (#8857)
- Build: CMake 4.x compat fix for Windows packaging (#8880)
- Build: Fix pyOpenMS dev build RPATH (#8892)
- Build: Correctly locate locally installed nanobind (#8874)

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[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.

Rename FeatureFinderMultiplex parameter -missed_cleavages

3 participants