Repository navigation
MapAlignmentAlgorithmIdentification: setReference() reads all its parameters - #10568
Merged
Merged
Conversation
…ameters
setReference() read 'use_feature_rt', 'score_cutoff' and 'score_type'
itself, because checkParameters_() runs only in align(), but not
'min_score' and 'use_adducts'. A reference set before the first align()
call (MapAlignerIdentification -reference:file) was therefore filtered with
the member defaults instead of the parameters:
- 'min_score' was 0: with 'score_cutoff', a reference with lower-is-better
scores (e.g. PEPs) kept no identifications and setReference() threw
MissingInformation ("Could not extract retention time information from
the reference file").
- 'use_adducts' was false, its parameter default "true": adducted
identifications of the reference (.oms input) were keyed without their
adduct, those of the inputs with it, so they shared no sequences and the
alignment had no data points.
Tests cover both with a reference set before align(); both fail without
the fix.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Contributor
Author
|
Generated by Claude Code |
3 of 5 tasks
jpfeuffer
approved these changes
Oct 14, 2026
timosachsenberg
pushed a commit
that referenced
this pull request
Oct 14, 2026
… regex, #10567 negative-mode ion mobility) #10568 adds a test that a reference set before align() keys adducted oligonucleotide matches with their adduct; it is ported to the owning model (an oligonucleotide run whose matches carry the sodium adduct of the ion, as NucleicAcidSearchEngine stores it). Without the fix it fails here too (0 instead of 5 alignment points). Conflict: CHANGELOG (both entries kept; the #10568 entry speaks of identification data input instead of .oms, which this branch removes). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
timosachsenberg
pushed a commit
that referenced
this pull request
Oct 15, 2026
#10547) Conflicts: - FileConverter: develop no longer converts peaks to consensus maps (#10561); the native marking of unassigned identifications stays. - ConversionHelper_test: develop's PeakMap conversion tests go with the conversion; this branch's identification section stays. - MapAlignmentAlgorithmIdentification: #10576 removed better_. The map path takes the score direction from the run's primary score definition, and with use_feature_rt a feature without a passing identification is no alignment point (as #10576 does for peptide identifications). - MapAlignmentAlgorithmIdentification_test: the #10576 section and the #10568 setReference() section build native map identifications. A map cannot mix score directions (the import rejects it), so the test expects that rejection and checks both directions separately, with an unidentified first feature. MapAlignmentAlgorithmPoseClustering: develop's selectFeatures_() (#10561) copied only the legacy identifications, while StablePairFinder here reads the native ones through the feature links. It now uses the new MapConversion::convert() overload for selected features, which keeps the identification data of the selected features like the first-n overload. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
MapAlignmentAlgorithmIdentification::setReference()readsuse_feature_rt,score_cutoffandscore_typeitself, becausecheckParameters_()only runs inalign(). It did not readmin_scoreanduse_adducts. A reference set before the firstalign()call (this is whatMapAlignerIdentification -reference:filedoes) was therefore filtered with the member defaults instead of the parameters:min_scorefell back to the constructor default of 0. Withscore_cutoff, a reference with lower-is-better scores (e.g. PEPs) kept no identifications, andsetReference()threwMissingInformation("Could not extract retention time information from the reference file").use_adductsfell back to the member defaultfalse, while the parameter default is"true". In.omsinput, adducted identifications of the reference were keyed without their adduct and those of the inputs with it. They shared no sequences, so the alignment had no data points ("No reference RT information left after filtering!").Fix
setReference()now also readsmin_scoreanduse_adductsfrom the parameters, the same waycheckParameters_()does.Tests
[EXTRA]sections inMapAlignmentAlgorithmIdentification_test, each with a reference set beforealign():score_cutoffandmin_score0.05;IdentificationDatareference whose oligo matches carry a sodium adduct.MissingInformation; 0 instead of 5 data points) and pass with it.MapAlignerIdentification|MapAlignerTreeGuided|MapAlignmentAlgorithm*|ProteomicsLFQpass. Outputs are unchanged: the existing-reference:filetests leavescore_cutoffoff and use featureXML, which has no adducts.🤖 Generated with Claude Code
https://claude.ai/code/session_01B51nRFoHvZuVXD7cT8XZav
Generated by Claude Code
Summary by CodeRabbit