Repository navigation
Conversation
… AASequence. Add tests to validate. Add several helper functions to NASequence to unify interface with AASequence
… and implement CRTP interface. Add tests for PolymerSpectrumGenerator functionality.
…OpenSWATH on nucleotide data. Add tests to test the new functionality.
…enerator and implement CRTP interface. Add tests for PolymerSpectrumGenerator functionality." This reverts commit cb5474f.
WalkthroughThis change set introduces comprehensive support for nucleotide (nucleic acid) data handling in OpenSWATH and related modules, generalizing peptide-centric structures and APIs to accommodate nucleotides and oligos. It includes new constructors, enums, accessors, and data models, refactors references and metadata keys, updates file formats and schemas, and extends test coverage and Python bindings accordingly. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant OpenSWATH
participant TargetedExperiment
participant TransitionTSVFile
participant DIAHelpers
participant DIAScoring
User->>OpenSWATH: Provide TraML/TSV with peptides/nucleotides
OpenSWATH->>TransitionTSVFile: Parse transitions (peptide/nucleotide/oligo)
TransitionTSVFile->>TargetedExperiment: Add peptides, nucleotides, oligos
OpenSWATH->>DIAHelpers: Generate theoretical spectra (AA/NA)
OpenSWATH->>DIAScoring: Score spectra (AASequence/NASequence)
DIAScoring-->>OpenSWATH: Return scores for peptide/nucleotide
OpenSWATH-->>User: Output results (with unified transition group refs)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45–60 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…r NASequence and AASequence. Add tests to validate. Add several helper functions to NASequence to unify interface with AASequence" This reverts commit b50bdc9.
| // Data array is present if Sequence is not empty | ||
| const PeakSpectrum::StringDataArray& ion_name = spec.getStringDataArrays()[0]; | ||
|
|
||
| // TODO is it faster to just pass two generators, one for prefix and one for suffix? |
There was a problem hiding this comment.
With the generators that Eugen developed for XL mass spec I would say yes (they have a FAST version). I am also not sure if it is strictly ideal to provide the TheoreticalSpectrumGenerator here because it could be wrongly configured (e.g. to generate only a and z ions, etc.).
There was a problem hiding this comment.
What about running OpenSWATH on ETD data? That produced C and Z ions.
There was a problem hiding this comment.
not sure. I think b and y is hardcoded all around OpenSWATH. Not sure if ETD DIA is a thing in proteomics
There was a problem hiding this comment.
When I did some speed benchmarks a while ago TheoreticalSpectrumGenerator is one of the speed bottlenecks for OpenSWATH so optimizing it would be good.
I don't think OpenSWATH or DIA is being run on ETD data.
Co-authored-by: Timo Sachsenberg <[email protected]>
| const double mannmass) | ||
| { | ||
| charge = std::abs(charge); | ||
| typedef OpenMS::FeatureFinderAlgorithmPickedHelperStructs::TheoreticalIsotopePattern TheoreticalIsotopePattern; |
There was a problem hiding this comment.
strange that this type needs to be taken from this algorithm class. should probably life somewhere else
…backwards. reverting
…mber, mutliple transitions per nuctide, ion mobility.
There was a problem hiding this comment.
Actionable comments posted: 28
🔭 Outside diff range comments (5)
src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
278-278: Remove debug code that disables MS1 isotope handlingThe condition
&& falsedisables MS1 isotope chromatogram generation. This appears to be debug code that should be removed.-if (ms1 && ms1_isotopes > 0 && false) +if (ms1 && ms1_isotopes > 0)src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (4)
50-56: Incomplete initialization of oligo reference map dirty flag.The constructor initializes dirty flags for protein, peptide, nuctide, and compound reference maps, but is missing
oligo_reference_map_dirty_. This should be initialized totruefor consistency.TargetedExperiment::TargetedExperiment() : protein_reference_map_dirty_(true), peptide_reference_map_dirty_(true), nuctide_reference_map_dirty_(true), - compound_reference_map_dirty_(true) + compound_reference_map_dirty_(true), + oligo_reference_map_dirty_(true) { }
57-79: Missing oligo_reference_map_dirty_ in copy and move constructors.Both constructors are missing initialization of
oligo_reference_map_dirty_. Add it to maintain consistency with other reference map dirty flags.nuctide_reference_map_dirty_(true), - compound_reference_map_dirty_(true) + compound_reference_map_dirty_(true), + oligo_reference_map_dirty_(true)Also applies to: 80-102
105-131: Missing oligo_reference_map_dirty_ in assignment operators.Both assignment operators need to set
oligo_reference_map_dirty_ = trueto maintain consistency.Also applies to: 132-158
282-314: Missing oligo_reference_map_dirty_ reset in clear method.The
clearmethod should also resetoligo_reference_map_dirty_to true:protein_reference_map_dirty_ = true; peptide_reference_map_dirty_ = true; nuctide_reference_map_dirty_ = true; - compound_reference_map_dirty_ = true; + compound_reference_map_dirty_ = true; + oligo_reference_map_dirty_ = true;
♻️ Duplicate comments (15)
src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_1_boost58.TraML (8)
41-42: Duplicate of the CV-accession/name-mismatch highlighted above.
52-53: Duplicate of the CV-accession/name-mismatch highlighted above.
66-67: Duplicate of the CV-accession/name-mismatch highlighted above.
80-81: Duplicate of the CV-accession/name-mismatch highlighted above.
91-92: Duplicate of the CV-accession/name-mismatch highlighted above.
102-103: Duplicate of the CV-accession/name-mismatch highlighted above.
113-114: Duplicate of the CV-accession/name-mismatch highlighted above.
127-128: Duplicate of the CV-accession/name-mismatch highlighted above.src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (2)
65-65: Fix test signature to follow OpenMS conventions.The test signature should follow the established pattern in OpenMS test files.
74-74: Fix test signature to follow OpenMS conventions.The test signature should follow the established pattern in OpenMS test files.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h (1)
142-142: Consistent use of non-standard "nuctide" terminologyAs discussed in previous reviews, "nuctide" is a non-standard portmanteau. While you've indicated this is intentional pending standardization discussions, consider adding a comment explaining this terminology choice for future maintainers.
Also applies to: 149-149, 155-155
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (1)
114-114: Consider applying rule of zero.The destructor could be defaulted or removed entirely since the struct only contains standard members.
src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (2)
267-285: Complete the implementation of ambiguous entity type validation.The TODO comment indicates this validation breaks tests. Based on past review comments, this validation was deemed reasonable by the team. Please complete the implementation and fix the breaking tests.
1648-1652: Verify impact on downstream tools.As mentioned in past reviews, adding these new columns could affect downstream tools like pyprophet. Please ensure downstream tool compatibility has been verified.
src/openms/include/OpenMS/ANALYSIS/MRM/ReactionMonitoringTransition.h (1)
82-83: Good implementation of the unified reference setter.The
setTransGroupRefmethod appropriately replaces the separate peptide/compound setters, implementing the naming suggestion from the previous review.
🧹 Nitpick comments (22)
src/pyOpenMS/pyTOPP/pyTOPPExample.py (1)
49-52: ImportparseCTDCommandLineexplicitly to silence F405 and make provenance clearStatic analysis (ruff F405) warns that the identifier might come from the
*import.
Declare it explicitly and drop the wildcard import to avoid namespace pollution.-from CTDsupport import * +from CTDsupport import parseCTDCommandLine, addParamToCTDoptssrc/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py (2)
23-29: Remove unusedpepmapdictionary
pepmapis populated but never referenced afterwards, introducing dead code and unnecessary iterations over all peptides.
Consider deleting the variable (and the associated loop) to reduce cognitive load and runtime overhead.- pepmap = {} - ... - for i, pep in enumerate(targeted.getPeptides() ): - pepmap[ pep.id ] = i
34-36: Drop noisy debugThe unconditional
print(key, value)can flood stdout for large assays.
Use theloggingmodule or an explicit--verboseCLI flag instead.- print(key, value) + # logger.debug("Transition group %s contains %s transitions", key, value)src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_1.TraML (1)
139-141: Trim excessive floating-point precisionValues such as
658.843900000000076exceed the instrument precision and inflate diffs & file size.
Rounding to ≤ 6 decimals (e.g.658.8439) is usually sufficient and improves readability without impacting quantitation.src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp (1)
87-87: Fix typo and parameter naming inconsistency.The method name contains a typo ("Nuctide" should be "Nucleotide") and the parameter name uses inconsistent capitalization.
Apply this diff:
- void IncludeExcludeTarget::setNuctideRef(const String & Nuctide_ref) + void IncludeExcludeTarget::setNucleotideRef(const String & nucleotide_ref) { - nuctide_ref_ = Nuctide_ref; + nucleotide_ref_ = nucleotide_ref; }Also update the getter method:
- const String & IncludeExcludeTarget::getNuctideRef() const + const String & IncludeExcludeTarget::getNucleotideRef() const { - return nuctide_ref_; + return nucleotide_ref_; }Note: This will require corresponding updates to the header file and member variable declaration.
CHANGELOG (1)
44-45: Align bullet-point style with surrounding entriesOther bullets in the “Library” section start with a capitalized imperative (“Added”, “Removed”, “Remove”). For consistency, capitalize this new bullet as well.
- - added library support for storing and processing nucleotide data in OpenSWATH + - Added library support for storing and processing nucleotide data in OpenSWATHsrc/pyOpenMS/pyTOPP/OpenSwathChromatogramExtractor.py (1)
20-20: Remove unused variable.The
empty_swathvariable is assigned but never used, as indicated by static analysis.- empty_swath = pyopenms.MSExperiment()src/openms/include/OpenMS/FORMAT/HANDLERS/TraMLHandler.h (1)
100-100: Verify naming convention for nucleotide member variable.The addition of nucleotide support is good, but the naming uses
actual_Nuctide_with a capital "N", which differs from the lowercase convention used by other members (e.g.,actual_peptide_,actual_compound_). Please verify if this capitalization is intentional and consistent with theTargetedExperiment::Nuctidetype definition.src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_2.TraML (1)
140-141: Excessive decimal precision inisolation window target m/zvalues may cause brittle tests.The new values contain up to 15 decimal places (e.g.
658.843900000000076).
Many readers round to ~1 ppm anyway, so this precision is unnecessary noise and risks false-negative diffs on other platforms / compilers.Consider rounding to a reasonable 6-7 decimals before serialisation.
Also applies to: 160-161, 178-180, 198-200, 218-219
src/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd (1)
38-38: LGTM: Nucleotide support extension with minor naming suggestionThe new
convertTargetedNuctidemethod properly extends the helper functionality to support nucleotides, following the same signature pattern and documentation style as the peptide method.Consider renaming the parameter from
peptonucornuctidefor better clarity, though this follows the existing pattern.src/tests/topp/CMakeLists.txt (1)
3122-3123: Consider splitting the longadd_testline for readabilityThe primary
add_testcall now spans well over the typical 120-character guideline, making future edits error-prone.
Breaking long argument lists over multiple lines (using CMake’s backslash line-continuation or separateCOMMANDarguments) keeps the file maintainable.src/pyOpenMS/pyTOPP/MRMMapper.py (1)
59-59: Fix PEP 8 style violation.Line 59 has multiple statements on one line.
- if not allow_unmapped: raise Exception("No mapping") + if not allow_unmapped: + raise Exception("No mapping")src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp (1)
540-540: TODO indicates incomplete nucleotide support.The comment
//SPWTOD add nuc versuggests that nucleotide support needs to be added togenerateTargetAssays_. This should be tracked as a follow-up task.Would you like me to open an issue to track the implementation of nucleotide support in
generateTargetAssays_and related methods?src/openms/source/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.cpp (1)
869-869: TODO indicates incomplete nucleotide support.The comment
//SPWTODO add nuc versionsuggests thatconstructTransitionsListneeds to be extended to support nucleotides.Would you like me to open an issue to track the implementation of nucleotide support in
constructTransitionsList?src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (1)
171-172: Use proper floating point comparison instead of string matching.Instead of checking for substring matches with floating point values, consider reading the TSV data back into a structured format and using
TEST_REAL_SIMILARfor proper floating point comparison.- // Check for ProductMZ value with floating point tolerance - TEST_EQUAL(line.hasSubstring("400.14") || line.hasSubstring("400.15"), true) + // Parse the line and compare the ProductMZ value with proper tolerance + // This would require parsing the TSV line into fields and using TEST_REAL_SIMILARsrc/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
66-66: TODO: Complete nucleotide supportThe
SPWTODO add Nuccomments indicate that full nucleotide support is not yet implemented in these helper functions. Consider tracking this as a follow-up task.Would you like me to create an issue to track the completion of nucleotide support in these helper functions?
Also applies to: 83-83
src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (1)
785-785: Fix incorrect comment.The comment says "proteins" but should say "oligos":
- // Check that each nuctide has only valid proteins + // Check that each nuctide has only valid oligossrc/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (2)
239-246: Inconsistent error handling needs to be addressed.The error handling differs between single spectrum (throws exception) and spectrum sequence (logs warning). The TODO comment acknowledges this needs fixing. Consider creating an issue to track this inconsistency.
The past review comment explains this was to handle ion mobility experiments with mixed spectra, but a more robust solution would be beneficial.
Would you like me to create an issue to track the proper fix for this error handling inconsistency?
Also applies to: 284-293
385-401: Update outdated comments in getTheorMasses functions.Both functions have outdated comments:
- Line 385: "get the theoretical b and y series masses" - this is too specific as the function returns all theoretical masses
- Line 410: Precondition message says "For peptides" but this is the NA version
- // for SWATH -- get the theoretical b and y series masses for a sequence + // for SWATH -- get the theoretical masses for a sequence- OPENMS_PRECONDITION(charge > 0, "For peptides Charge is a positive integer"); + OPENMS_PRECONDITION(charge > 0, "Charge must be a positive integer");Also applies to: 403-419
src/openms/source/ANALYSIS/OPENSWATH/MRMFeatureFinderScoring.cpp (2)
1140-1140: LGTM! Consider renaming PeptideRefMap_ for clarity.The change to use
getTransGroupRef()is correct and consistent with the unified reference system. However, consider renamingPeptideRefMap_toTransitionGroupRefMap_or similar to better reflect its new purpose of handling all transition group types (peptides, nucleotides, compounds).
1140-1140: Consider renamingPeptideRefMap_for clarity.The functional change from
getPeptideRef()togetTransGroupRef()is correct, but the map variablePeptideRefMap_now stores transition group references that include nucleotides and compounds, not just peptides. Consider renaming it to something likeTransitionGroupRefMap_for better clarity.src/openms/source/FORMAT/HANDLERS/TraMLHandler.cpp (1)
1031-1092: Appropriate handling of transition type-specific interpretations.The code correctly differentiates between peptide and nucleotide transitions. The warning for missing nucleotide CV params indicates a known limitation to be addressed in future updates.
Would you like me to help create CV terms for nucleotide ion types or open an issue to track this enhancement?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (13)
src/tests/topp/AssayGeneratorMetaboSirius_output_1.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetaboSirius_output_2.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetaboSirius_output_3.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetabo_ams_output.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetabo_ams_output_consensus.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetabo_ams_uku_output_consensus.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetabo_ffm_output.tsvis excluded by!**/*.tsvsrc/tests/topp/AssayGeneratorMetabo_ffm_output_consensus.tsvis excluded by!**/*.tsvsrc/tests/topp/ConvertTraMLToTSV_output.tsvis excluded by!**/*.tsvsrc/tests/topp/ConvertTraMLToTSV_output_2.tsvis excluded by!**/*.tsvsrc/tests/topp/NucleicAcidSearchEngine_14_out.tsvis excluded by!**/*.tsvsrc/tests/topp/TargetedFileConverter_10_output.tsvis excluded by!**/*.tsvsrc/tests/topp/TargetedFileConverter_8_input.tsvis excluded by!**/*.tsv
📒 Files selected for processing (107)
CHANGELOG(1 hunks)share/OpenMS/SCHEMAS/protXML_v6.xsd(1 hunks)src/openms/include/OpenMS/ANALYSIS/MRM/ReactionMonitoringTransition.h(4 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ChromatogramExtractor.h(3 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ConfidenceScoring.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h(2 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h(2 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAScoring.h(3 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionPQPFile.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h(8 hunks)src/openms/include/OpenMS/ANALYSIS/TARGETED/IncludeExcludeTarget.h(2 hunks)src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h(9 hunks)src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h(11 hunks)src/openms/include/OpenMS/CHEMISTRY/NASequence.h(2 hunks)src/openms/include/OpenMS/FORMAT/HANDLERS/TraMLHandler.h(1 hunks)src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp(9 hunks)src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp(7 hunks)src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp(7 hunks)src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp(9 hunks)src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp(3 hunks)src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp(14 hunks)src/openms/source/ANALYSIS/OPENSWATH/MRMDecoy.cpp(14 hunks)src/openms/source/ANALYSIS/OPENSWATH/MRMFeatureFinderScoring.cpp(3 hunks)src/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp(4 hunks)src/openms/source/ANALYSIS/OPENSWATH/OpenSwathWorkflow.cpp(4 hunks)src/openms/source/ANALYSIS/OPENSWATH/SwathMapMassCorrection.cpp(5 hunks)src/openms/source/ANALYSIS/OPENSWATH/SwathQC.cpp(2 hunks)src/openms/source/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.cpp(4 hunks)src/openms/source/ANALYSIS/OPENSWATH/TransitionPQPFile.cpp(1 hunks)src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp(22 hunks)src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp(1 hunks)src/openms/source/ANALYSIS/TARGETED/MRMMapping.cpp(1 hunks)src/openms/source/ANALYSIS/TARGETED/MetaboTargetedAssay.cpp(3 hunks)src/openms/source/ANALYSIS/TARGETED/MetaboTargetedTargetDecoy.cpp(5 hunks)src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp(21 hunks)src/openms/source/ANALYSIS/TARGETED/TargetedExperimentHelper.cpp(2 hunks)src/openms/source/CHEMISTRY/NASequence.cpp(2 hunks)src/openms/source/FEATUREFINDER/FeatureFinderAlgorithmMetaboIdent.cpp(1 hunks)src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp(7 hunks)src/openms/source/FEATUREFINDER/FeatureFindingMetabo.cpp(1 hunks)src/openms/source/FORMAT/HANDLERS/MzMLSqliteHandler.cpp(4 hunks)src/openms/source/FORMAT/HANDLERS/TraMLHandler.cpp(15 hunks)src/openms/source/FORMAT/ProtXMLFile.cpp(1 hunks)src/openms/source/QC/DBSuitability.cpp(1 hunks)src/openms_gui/include/OpenMS/VISUAL/TOPPASVertex.h(1 hunks)src/openms_gui/source/VISUAL/Plot1DCanvas.cpp(1 hunks)src/openms_gui/source/VISUAL/Plot2DCanvas.cpp(1 hunks)src/openms_gui/source/VISUAL/SpectraTreeTab.cpp(1 hunks)src/openms_gui/source/VISUAL/TOPPASOutputVertex.cpp(1 hunks)src/openms_gui/source/VISUAL/TOPPASVertex.cpp(1 hunks)src/openms_gui/source/VISUAL/TVSpectraViewController.cpp(1 hunks)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h(11 hunks)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionHelper.h(1 hunks)src/openswathalgo/source/OPENSWATHALGO/DATAACCESS/TransitionHelper.cpp(2 hunks)src/pyOpenMS/pxds/IncludeExcludeTarget.pxd(1 hunks)src/pyOpenMS/pxds/LightTargetedExperiment.pxd(2 hunks)src/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd(1 hunks)src/pyOpenMS/pxds/ReactionMonitoringTransition.pxd(2 hunks)src/pyOpenMS/pxds/TargetedExperimentHelper.pxd(3 hunks)src/pyOpenMS/pyTOPP/FeatureLinkerUnlabeledQT.py(1 hunks)src/pyOpenMS/pyTOPP/MRMMapper.py(3 hunks)src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py(2 hunks)src/pyOpenMS/pyTOPP/MRMTransitionGroupScorer.py(4 hunks)src/pyOpenMS/pyTOPP/OpenSwathChromatogramExtractor.py(3 hunks)src/pyOpenMS/pyTOPP/OpenSwathRTNormalizer.py(4 hunks)src/pyOpenMS/pyTOPP/pyTOPPExample.py(1 hunks)src/pyOpenMS/tests/unittests/test000.py(3 hunks)src/pyOpenMS/tests/unittests/testLightTargetedExperiment.py(2 hunks)src/pyOpenMS/tests/unittests/test_TraML.py(2 hunks)src/pyOpenMS/tests/unittests/test_tutorial.py(1 hunks)src/tests/class_tests/openms/data/Deisotoper_output1.mzML(3 hunks)src/tests/class_tests/openms/data/Deisotoper_output2.mzML(3 hunks)src/tests/class_tests/openms/data/MRMAssay_detectingTransitions_output.TraML(60 hunks)src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_1.TraML(46 hunks)src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_2.TraML(155 hunks)src/tests/class_tests/openms/data/MRMAssay_restrictTransitions_output.TraML(39 hunks)src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_1_boost58.TraML(9 hunks)src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_2_boost58.TraML(9 hunks)src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_3_boost58.TraML(9 hunks)src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_4_boost58.TraML(9 hunks)src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_5_boost58.TraML(9 hunks)src/tests/class_tests/openms/data/ProtXMLFile_input_1.protXML(4 hunks)src/tests/class_tests/openms/source/ChromatogramExtractor_test.cpp(1 hunks)src/tests/class_tests/openms/source/ConfidenceScoring_test.cpp(4 hunks)src/tests/class_tests/openms/source/DIAHelper_test.cpp(1 hunks)src/tests/class_tests/openms/source/DIAScoring_test.cpp(4 hunks)src/tests/class_tests/openms/source/MRMDecoy_test.cpp(10 hunks)src/tests/class_tests/openms/source/MRMFeatureFilter_test.cpp(7 hunks)src/tests/class_tests/openms/source/MRMIonSeries_test.cpp(1 hunks)src/tests/class_tests/openms/source/NASequence_test.cpp(1 hunks)src/tests/class_tests/openms/source/OpenSwathDataAccessHelper_test.cpp(3 hunks)src/tests/class_tests/openms/source/ReactionMonitoringTransition_test.cpp(3 hunks)src/tests/class_tests/openms/source/Residue_test.cpp(1 hunks)src/tests/class_tests/openms/source/SqMassFile_test.cpp(6 hunks)src/tests/class_tests/openms/source/SwathMapMassCorrection_test.cpp(6 hunks)src/tests/class_tests/openms/source/TargetedExperimentHelper_test.cpp(2 hunks)src/tests/class_tests/openms/source/TargetedExperiment_test.cpp(5 hunks)src/tests/class_tests/openms/source/TargetedSpectraExtractor_test.cpp(1 hunks)src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp(2 hunks)src/tests/topp/CMakeLists.txt(1 hunks)src/tests/topp/ConvertTSVToTraML_output.TraML(21 hunks)src/tests/topp/FileMerger_9_output.traML(9 hunks)src/tests/topp/IDFileConverter_3_input.protXML(4 hunks)src/tests/topp/IDRipper_2_input_0_0.idXML(1 hunks)src/tests/topp/IDRipper_2_input_1_0.idXML(1 hunks)src/tests/topp/IDRipper_2_input_2_1.idXML(1 hunks)src/tests/topp/MRMMapping_output.chrom.mzML(7 hunks)
⛔ Files not processed due to max files limit (28)
- src/tests/topp/MRMMapping_output_2.chrom.mzML
- src/tests/topp/OpenSwathAssayGenerator_output.TraML
- src/tests/topp/OpenSwathAssayGenerator_output_2.TraML
- src/tests/topp/OpenSwathAssayGenerator_output_3.TraML
- src/tests/topp/OpenSwathChromatogramExtractor_4_output.mzML
- src/tests/topp/OpenSwathChromatogramExtractor_5_output.mzML
- src/tests/topp/OpenSwathChromatogramExtractor_output.mzML
- src/tests/topp/OpenSwathChromatogramExtractor_output_2.mzML
- src/tests/topp/OpenSwathChromatogramExtractor_output_3.mzML
- src/tests/topp/OpenSwathDecoyGenerator_output.TraML
- src/tests/topp/OpenSwathDecoyGenerator_output_2.TraML
- src/tests/topp/OpenSwathDecoyGenerator_output_3.TraML
- src/tests/topp/OpenSwathDecoyGenerator_output_4.TraML
- src/tests/topp/OpenSwathDecoyGenerator_output_5.TraML
- src/tests/topp/OpenSwathWorkflow_13_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_14_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_15_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_16_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_17_b_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_17_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_1_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_22_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_23_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_2_output.chrom.mzML
- src/tests/topp/OpenSwathWorkflow_3_output.chrom.mzML
- src/tests/topp/TargetedFileConverter_9_input.TraML
- src/topp/DecoyDatabase.cpp
- src/topp/MRMTransitionGroupPicker.cpp
🧰 Additional context used
🧠 Learnings (27)
src/openms/source/FEATUREFINDER/FeatureFindingMetabo.cpp (1)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:38-38
Timestamp: 2025-04-07T21:15:07.674Z
Learning: In mass spectrometry data, precursor charges can be negative, so signed integer types (like np.int16) should be used instead of unsigned integers (like np.uint16) when storing charge values.
src/openms/source/ANALYSIS/OPENSWATH/SwathQC.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/pyOpenMS/pyTOPP/MRMTransitionGroupScorer.py (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/openms/source/FORMAT/ProtXMLFile.cpp (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionPQPFile.h (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/openms/source/ANALYSIS/OPENSWATH/SwathMapMassCorrection.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/pyOpenMS/pxds/LightTargetedExperiment.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/openms/source/ANALYSIS/OPENSWATH/MRMDecoy.cpp (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (3)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/tests/class_tests/openms/source/MRMDecoy_test.cpp (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/pyOpenMS/pxds/IncludeExcludeTarget.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/pyOpenMS/pxds/ReactionMonitoringTransition.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/tests/class_tests/openms/data/Deisotoper_output1.mzML (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (3)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/pyOpenMS/tests/unittests/test000.py (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAScoring.h (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/tests/class_tests/openms/data/Deisotoper_output2.mzML (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h (1)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/tests/class_tests/openms/source/DIAScoring_test.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/pyOpenMS/pxds/TargetedExperimentHelper.pxd (4)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (4)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:38-38
Timestamp: 2025-04-07T21:15:07.674Z
Learning: In mass spectrometry data, precursor charges can be negative, so signed integer types (like np.int16) should be used instead of unsigned integers (like np.uint16) when storing charge values.
🧬 Code Graph Analysis (19)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ConfidenceScoring.h (1)
src/topp/OpenSwathConfidenceScoring.cpp (1)
library_(132-180)
src/pyOpenMS/pyTOPP/MRMTransitionGroupScorer.py (2)
src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py (2)
getTransitionGroup(5-15)algorithm(18-48)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
LightTargetedExperiment(210-243)
src/openms_gui/source/VISUAL/TVSpectraViewController.cpp (1)
src/openms_gui/include/OpenMS/VISUAL/LayerDataBase.h (1)
String(320-405)
src/tests/class_tests/openms/source/NASequence_test.cpp (1)
src/openms/source/CHEMISTRY/NASequence.cpp (4)
fromString(292-297)fromString(292-292)fromString(299-304)fromString(299-299)
src/openms_gui/include/OpenMS/VISUAL/TOPPASVertex.h (2)
src/openms_gui/source/VISUAL/TOPPASVertex.cpp (4)
incomingEdgesCount(511-514)incomingEdgesCount(511-511)outgoingEdgesCount(516-519)outgoingEdgesCount(516-516)src/openms/include/OpenMS/DATASTRUCTURES/KDTree.h (1)
const(48-74)
src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionHelper.h (1)
src/openswathalgo/source/OPENSWATHALGO/DATAACCESS/TransitionHelper.cpp (2)
findCompound(45-61)findCompound(45-47)
src/openms/include/OpenMS/ANALYSIS/TARGETED/IncludeExcludeTarget.h (2)
src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp (4)
setNuctideRef(87-90)setNuctideRef(87-87)getNuctideRef(92-95)getNuctideRef(92-92)src/openms/include/OpenMS/DATASTRUCTURES/KDTree.h (1)
const(48-74)
src/openms/source/ANALYSIS/OPENSWATH/MRMDecoy.cpp (1)
src/tests/class_tests/openms/source/MRMDecoy_test.cpp (9)
AASequenceIdentity(318-318)peptide(31-35)peptide(31-32)peptide(36-40)peptide(36-37)sequence(41-41)sequence(41-41)sequence(42-42)sequence(42-42)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (2)
src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (10)
convertTargetedPeptide(194-270)convertTargetedPeptide(194-194)convertTargetedNuctide(272-308)convertTargetedNuctide(272-272)convertTargetedCompound(310-333)convertTargetedCompound(310-310)convertPeptideToAASequence(335-349)convertPeptideToAASequence(335-335)convertNuctideToNASequence(351-356)convertNuctideToNASequence(351-351)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
LightCompound(135-188)
src/openms/include/OpenMS/CHEMISTRY/NASequence.h (1)
src/openms/source/CHEMISTRY/NASequence.cpp (5)
NASequence(24-29)NASequence(31-34)NASequence(36-39)toString(306-356)toString(306-306)
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (1)
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (10)
getPrefixSuffixSeries(323-351)getPrefixSuffixSeries(323-327)getPrefixSuffixSeries(355-383)getPrefixSuffixSeries(355-359)createMZRangePPM(592-605)createMZRangePPM(592-592)integrateWindow(227-265)integrateWindow(227-233)integrateWindow(267-320)integrateWindow(267-273)
src/pyOpenMS/tests/unittests/test000.py (3)
src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp (6)
setTransGroupRef(195-199)setTransGroupRef(195-195)getTransGroupRef(201-204)getTransGroupRef(201-201)getTransGroupType(211-214)getTransGroupType(211-211)src/tests/class_tests/openms/source/ReactionMonitoringTransition_test.cpp (2)
setTransGroupRef(175-175)getTransGroupType(159-159)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
TransType(19-196)
src/tests/class_tests/openms/source/DIAScoring_test.cpp (5)
src/tests/class_tests/openms/source/OpenSwathDataAccessHelper_test.cpp (3)
START_SECTION(30-34)START_SECTION(41-74)START_SECTION(43-43)src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (4)
getPrefixSuffixSeries(323-351)getPrefixSuffixSeries(323-327)getPrefixSuffixSeries(355-383)getPrefixSuffixSeries(355-359)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h (2)
OpenMS(17-210)DIAHelpers(22-207)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h (1)
OpenMS(18-21)src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (2)
DIAScoring(38-75)DIAScoring(77-79)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h (1)
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (16)
getPrefixSuffixSeries(323-351)getPrefixSuffixSeries(323-327)getPrefixSuffixSeries(355-383)getPrefixSuffixSeries(355-359)getTheorMasses(386-401)getTheorMasses(386-389)getTheorMasses(404-419)getTheorMasses(404-407)getAveragineIsotopeDistribution(422-442)getAveragineIsotopeDistribution(422-426)getAveragosineIsotopeDistribution(445-465)getAveragosineIsotopeDistribution(445-449)simulateSpectrumFromSequence(468-479)simulateSpectrumFromSequence(468-471)simulateSpectrumFromSequence(481-492)simulateSpectrumFromSequence(481-484)
src/openms/include/OpenMS/ANALYSIS/MRM/ReactionMonitoringTransition.h (3)
src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp (10)
setTransGroupRef(195-199)setTransGroupRef(195-195)getTransGroupRef(201-204)getTransGroupRef(201-201)setTransGroupType(206-209)setTransGroupType(206-206)getTransGroupType(211-214)getTransGroupType(211-211)setProductChargeState(267-270)setProductChargeState(267-267)src/tests/class_tests/openms/source/ReactionMonitoringTransition_test.cpp (2)
setTransGroupRef(175-175)getTransGroupType(159-159)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
TransType(19-196)
src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (5)
src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp (8)
rhs(90-123)rhs(90-90)rhs(125-151)rhs(125-125)rhs(153-168)rhs(153-153)rhs(170-173)rhs(170-170)src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp (6)
rhs(26-44)rhs(26-26)rhs(46-60)rhs(46-46)rhs(62-65)rhs(62-62)src/topp/NucleicAcidSearchEngine.cpp (2)
s(323-323)s(323-323)src/tests/class_tests/openms/source/TargetedExperiment_test.cpp (4)
setOligos(230-230)hasOligo(249-249)setNuctides(307-307)addNuctide(326-326)src/openms/source/FORMAT/OSWFile.cpp (1)
tr(647-651)
src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (2)
src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp (2)
getTransGroupRef(201-204)getTransGroupRef(201-201)src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (2)
getOligos(463-466)getOligos(463-463)
src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (3)
src/openms/source/CONCEPT/Exception.cpp (2)
IllegalArgument(247-250)MissingInformation(257-260)src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (4)
convertTargetedPeptide(194-270)convertTargetedPeptide(194-194)convertTargetedNuctide(272-308)convertTargetedNuctide(272-272)src/openms/source/ANALYSIS/TARGETED/TargetedExperimentHelper.cpp (4)
getAASequence(38-84)getAASequence(38-38)getNASequence(86-89)getNASequence(86-86)
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h (2)
src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (62)
setOligos(453-456)setOligos(453-453)setOligos(458-461)setOligos(458-458)getOligos(463-466)getOligos(463-463)getOligoByRef(468-476)getOligoByRef(468-468)hasOligo(478-485)hasOligo(478-478)addOligo(487-490)addOligo(487-487)setCompounds(492-495)setCompounds(492-492)rhs(105-130)rhs(105-105)rhs(132-157)rhs(132-132)rhs(159-164)rhs(159-159)rhs(166-201)rhs(166-166)rhs(203-239)rhs(203-203)rhs(241-258)rhs(241-241)rhs(260-263)rhs(260-260)getCompounds(497-500)getCompounds(497-497)getCompoundByRef(534-542)getCompoundByRef(534-534)hasCompound(553-560)hasCompound(553-553)addCompound(502-505)addCompound(502-502)setPeptides(507-511)setPeptides(507-507)setPeptides(513-517)setPeptides(513-513)addPeptide(562-566)addPeptide(562-562)setNuctides(568-572)setNuctides(568-568)setNuctides(574-578)setNuctides(574-574)getNuctides(580-583)getNuctides(580-580)hasNuctide(585-592)hasNuctide(585-585)getNuctideByRef(594-602)getNuctideByRef(594-594)addNuctide(604-608)addNuctide(604-604)setTransitions(610-613)setTransitions(610-610)setTransitions(615-618)setTransitions(615-615)createOligoReferenceMap_(863-869)createOligoReferenceMap_(863-863)createNuctideReferenceMap_(871-878)createNuctideReferenceMap_(871-871)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
getCompoundByRef(271-278)
🪛 Ruff (0.12.2)
src/pyOpenMS/pyTOPP/pyTOPPExample.py
51-51: parseCTDCommandLine may be undefined, or defined from star imports
(F405)
src/pyOpenMS/pyTOPP/OpenSwathChromatogramExtractor.py
20-20: Local variable empty_swath is assigned to but never used
Remove assignment to unused variable empty_swath
(F841)
src/pyOpenMS/pyTOPP/MRMMapper.py
40-40: Multiple statements on one line (colon)
(E701)
45-48: Combine if branches using logical or operator
Combine if branches
(SIM114)
59-59: Multiple statements on one line (colon)
(E701)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: cppcheck-test
🔇 Additional comments (236)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionPQPFile.h (1)
101-101: LGTM! Documentation terminology updated for consistency.The change from "peptide label group" to "peptidoform group" improves precision and aligns with the broader terminology standardization across the codebase mentioned in the PR objectives.
src/openms_gui/source/VISUAL/TOPPASVertex.cpp (1)
511-519: LGTM! Excellent const correctness improvement.Making
incomingEdgesCount()andoutgoingEdgesCount()const methods correctly reflects that these are read-only operations that don't modify the object state. This allows the methods to be called on const instances and better expresses the interface contract.src/tests/topp/IDRipper_2_input_2_1.idXML (1)
11-11: LGTM! Test data standardization for consistency.Changing
significance_thresholdfrom "0" to "0.0" standardizes the numeric representation to floating-point format across test files, improving data consistency without affecting functionality.src/tests/topp/IDRipper_2_input_1_0.idXML (1)
9-9: LGTM! Consistent with other test file updates.The floating-point representation of
significance_thresholdmaintains consistency with similar changes in related test files.src/tests/topp/IDRipper_2_input_0_0.idXML (1)
11-11: LGTM! Systematic test data standardization completed.This change completes the consistent update of
significance_thresholdto floating-point representation across all three related IDRipper test input files, demonstrating good test maintenance practices.src/tests/class_tests/openms/source/Residue_test.cpp (1)
742-745: Type-correct loop index – nice catchSwitching the counter from
inttosize_taligns with the container’s size type and removes an implicit conversion. Change looks good.src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_2_boost58.TraML (1)
30-30: No changes needed: “peptidoform group label” is the current PSI-MS nameI verified that in the latest PSI-MS OBO (MS:1000893) the
name:is indeedpeptidoform group labelso the entries in
src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_2_boost58.TraMLare already correct. You can safely ignore the original suggestion.Likely an incorrect or invalid review comment.
src/pyOpenMS/tests/unittests/test_tutorial.py (1)
349-349: LGTM! Consistent renaming aligns with transition group refactoring.The metadata key change from
"peptide_sequence"to"transition_group_name"correctly reflects the broader architectural shift to unified transition group references that support peptides, nucleotides, and compounds.src/openms/source/FORMAT/ProtXMLFile.cpp (1)
149-149: LGTM! XML parsing updated to match schema changes.The attribute name change from
"peptide_sequence"to"transition_group_name"correctly aligns with the updated protXML v6.0 schema, ensuring consistent parsing of the renamed attribute.src/openms_gui/source/VISUAL/SpectraTreeTab.cpp (1)
512-514: LGTM! GUI metadata access updated for consistency.The metadata key changes from
"peptide_sequence"to"transition_group_name"in the precursor metadata checks ensure the GUI displays the correct transition group information under the new unified naming convention.src/pyOpenMS/tests/unittests/testLightTargetedExperiment.py (2)
13-13: LGTM! Test setup updated for new API.The attribute change from
peptide_reftotransition_refcorrectly reflects the unified transition reference system that generalizes beyond peptide-specific references.
53-53: LGTM! Test assertion updated for consistency.The assertion correctly validates the
transition_refattribute, maintaining test coverage for the new unified reference system.src/openms/source/ANALYSIS/OPENSWATH/TransitionPQPFile.cpp (1)
501-501: LGTM! Improved encapsulation with getter method.The change from direct
protein_refsmember access togetProteinRefs()method call follows good encapsulation practices while maintaining the same functionality for iterating over protein references.src/openms/source/FEATUREFINDER/FeatureFindingMetabo.cpp (1)
107-107: LGTM! Metadata key updated to align with unified transition group concept.The change from
"peptide_sequence"to"transition_group_name"correctly aligns with the broader refactoring to generalize transition group references beyond peptides to include nucleotides and compounds.src/openms_gui/source/VISUAL/TVSpectraViewController.cpp (1)
77-79: LGTM! GUI metadata key updated consistently.The change from
"peptide_sequence"to"transition_group_name"in both the existence check and value retrieval is consistent with the unified transition group concept. The GUI layer naming logic remains intact with just the metadata key updated.src/tests/class_tests/openms/source/ChromatogramExtractor_test.cpp (1)
143-143: LGTM! Test updated to reflect new metadata key.The test assertion correctly updated to check for
"transition_group_name"instead of"peptide_sequence", ensuring the test validates the new unified transition group metadata key.src/tests/topp/IDFileConverter_3_input.protXML (1)
42-114: LGTM! Test data systematically updated to reflect schema changes.All
peptide_sequenceattributes have been consistently renamed totransition_group_nameacross all peptide elements in the XML file. The peptide sequence values remain unchanged, ensuring test data integrity while aligning with the updated protXML schema and unified transition group concept.src/tests/class_tests/openms/source/NASequence_test.cpp (1)
65-72: LGTM! Well-structured test for new string constructor.The test appropriately validates the new
NASequence(const String& s)constructor by verifying both the sequence size and string representation. The test follows existing patterns in the file and provides good coverage for the new functionality.src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_5_boost58.TraML (4)
52-52: No action required: CV term name matches official entry
The PSI-MS ontology (MS:1000893) defines the term as “peptidoform group label,” which exactly matches the existingcvParamname. The suggested change to “peptide group label” would diverge from the official CV.
- File: src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_5_boost58.TraML, line 52 — leave
name="peptidoform group label"as is.Likely an incorrect or invalid review comment.
66-66: Ignore name change for MS:1000893
The suggested replacement of “peptidoform group label” with “peptide group label” is incorrect. According to the PSI-MS CV, accession MS:1000893 is officially named “peptidoform group label.” No edits are needed here.Likely an incorrect or invalid review comment.
41-41: Ignore incorrect CV term suggestionThe controlled‐vocabulary term for MS:1000893 is officially “peptidoform group label” (as used in TraMLHandler.cpp and the PSI-MS CV), so the test file is already correct. No change is needed here.
Likely an incorrect or invalid review comment.
30-30: Accession name is correct per PSI-MS CVThe PSI-MS ontology (psi-ms.obo) defines MS:1000893 with the name “peptidoform group label” (see lines 6343–6345), so the updated cvParam is valid and no change is needed.
Likely an incorrect or invalid review comment.
src/openms/source/FEATUREFINDER/FeatureFinderAlgorithmMetaboIdent.cpp (1)
503-503: LGTM! Correct migration to unified transition group reference API.The change from
setCompoundRef(target_id)tosetTransGroupRef(target_id, OpenSwath::TransType::COMPOUND)properly follows the codebase-wide refactoring to unify transition references. The explicit transition type enhances type safety while maintaining identical functionality.src/tests/class_tests/openms/source/MRMIonSeries_test.cpp (1)
238-238: LGTM! Proper encapsulation improvement.The change from direct member access
peptide.sequence = "PEPTIDEK";to the setter methodpeptide.setSequence("PEPTIDEK");follows C++ best practices for encapsulation. This allows the class to enforce invariants and provides a consistent interface for sequence handling.src/openms_gui/source/VISUAL/Plot2DCanvas.cpp (1)
1125-1127: LGTM! Consistent update to generalized metadata keys.The changes from
"peptide_sequence"to"transition_group_name"correctly align with the codebase-wide refactoring to unify transition group references. This supports the generalized handling of peptides, nucleotides, and compounds while maintaining identical GUI functionality.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ConfidenceScoring.h (1)
154-154: LGTM! Correct migration to unified transition group reference API.The change from
getPeptideRef()togetTransGroupRef()properly follows the codebase-wide refactoring to generalize transition references. This maintains identical functionality for building the transition map while supporting the unified handling of peptides, nucleotides, and compounds.src/tests/topp/MRMMapping_output.chrom.mzML (2)
96-96: LGTM! Systematic attribute renaming is consistent with the broader refactoring.The change from
peptide_sequencetotransition_group_namein all<userParam>elements within<activation>sections is consistent with the generalization to support oligonucleotides alongside peptides. The attribute values remain unchanged, ensuring data integrity.Also applies to: 133-133, 170-170, 207-207, 244-244, 281-281
310-314: LGTM! Offset adjustments reflect the increased XML size.The offset values have been correctly adjusted (+30 bytes) to account for the longer attribute name
transition_group_namecompared topeptide_sequence. The indexListOffset is also properly updated.Also applies to: 317-317
src/pyOpenMS/pyTOPP/OpenSwathRTNormalizer.py (2)
16-16: LGTM! Correct modernization to Python 3 syntax.The replacement of deprecated
has_key()with the idiomatickey in dictsyntax is correct and aligns with Python 3 standards.
37-37: LGTM! Proper removal of trailing semicolons.The systematic removal of trailing semicolons aligns with Python 3 style guidelines and maintains code functionality.
Also applies to: 42-44, 55-59, 70-73, 76-76
src/pyOpenMS/pyTOPP/MRMTransitionGroupScorer.py (3)
38-38: LGTM! Correct Python 3 modernization.The replacement of
iteritems()withitems()is the correct way to iterate over dictionary items in Python 3.
42-42: LGTM! Proper print function conversion.Converting the print statement to use function syntax with parentheses is correct for Python 3 compatibility.
44-45: LGTM! Systematic semicolon removal.The removal of trailing semicolons throughout the file aligns with Python 3 style guidelines and maintains functionality.
Also applies to: 64-64, 77-77, 81-81, 86-88, 97-97, 100-102, 104-104
src/tests/class_tests/openms/data/ProtXMLFile_input_1.protXML (1)
42-42: LGTM! Systematic attribute renaming aligns with schema changes.The consistent renaming of
peptide_sequencetotransition_group_nameacross all<peptide>elements maintains data integrity while supporting the generalized transition group concept that includes oligonucleotides alongside peptides.Also applies to: 44-44, 46-46, 51-51, 53-53, 60-60, 62-62, 64-64, 66-66, 68-68, 75-75, 77-77, 87-87, 97-97, 107-107, 114-114
src/tests/class_tests/openms/source/SwathMapMassCorrection_test.cpp (1)
42-42: LGTM! Correct alignment with API changes.The systematic replacement of
peptide_refwithtransition_refin allTransitionTypeinstances correctly reflects the API refactoring that unified peptide and compound references under a single transition reference concept. This ensures the tests validate the updated interface properly.Also applies to: 54-54, 66-66, 78-78, 99-99, 116-116
src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py (1)
65-68: Add basic error handling for TraML/MzML loading
FileHandler().loadExperimentandTraMLFile().loadsilently fail by leaving the target objects empty if the path is wrong or the file is malformed.
Wrap the calls intry/exceptblocks and emit a helpful message or propagate an exception to avoid puzzling downstream errors.src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_1.TraML (1)
28-33: Verify CV term rename consistencyThe element now uses
name="peptidoform group label"while retaining accessionMS:1000893(“peptide group label” in the PSI-MS ontology).
Double-check that the ontology was updated; otherwise the file may fail validation against the official schema or confuse downstream tools relying on the term name.src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_3_boost58.TraML (1)
30-30: Accession MS:1000893 correctly maps to “peptidoform group label” in the PSI-MS CVThe PSI-MS CV (psi-ms.obo) defines term MS:1000893 as “peptidoform group label,” so the
<cvParam>entries in your TraML are already using the correct name. No edits are required.Likely an incorrect or invalid review comment.
src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_1_boost58.TraML (1)
30-31: No action needed: MS:1000893 is correctly defined as “peptidoform group label”
The PSI-MS OBO term for MS:1000893 is officially named “peptidoform group label” (see currentpsi-ms.obo), so your<cvParam>is CV-compliant. Please disregard the original suggestion.Likely an incorrect or invalid review comment.
src/openms/source/ANALYSIS/OPENSWATH/SwathQC.cpp (2)
13-13: LGTM! Necessary include for logging functionality.The addition of the LogStream header is required to support the new warning log messages added later in the file.
85-85: LGTM! Excellent addition of warning logs for error conditions.These warning messages improve observability by providing clear feedback when spectrum processing encounters issues:
- Line 85: Warns when spectrum type is unknown and cannot be processed
- Line 91: Warns when peak picking results in an empty spectrum
The logging helps with debugging and monitoring data processing workflows without affecting existing control flow.
Also applies to: 91-91
src/tests/class_tests/openms/source/TargetedSpectraExtractor_test.cpp (1)
1176-1176: LGTM! Consistent with transition reference unification.The change from
getPeptideRef()togetTransGroupRef()aligns with the broader API unification where transition references are being generalized from peptide-specific to a unified transition group concept that supports peptides, nucleotides, and compounds.src/pyOpenMS/pyTOPP/OpenSwathChromatogramExtractor.py (1)
16-17: LGTM! Good cleanup of unnecessary semicolons.Removing trailing semicolons from Python statements improves code style and follows Python best practices. The changes are purely stylistic and don't affect functionality.
Also applies to: 22-22, 29-29, 39-39, 50-50, 56-56, 58-58
src/tests/class_tests/openms/data/Deisotoper_output2.mzML (1)
155-155: LGTM! Consistent test data adjustments.The changes reduce the spectrum array length from 279 to 267 and update corresponding:
- Binary data encoded lengths (lines 199, 205, 211)
- Index offsets (lines 312, 315, 318)
These adjustments appear necessary to maintain consistency with the updated processing pipelines and are properly coordinated across all related fields in the mzML format.
Also applies to: 199-199, 205-205, 211-211, 312-312, 315-315, 318-318
src/openms/include/OpenMS/ANALYSIS/TARGETED/IncludeExcludeTarget.h (2)
62-64: LGTM! Consistent API extension for nucleotide support.The addition of
setNuctideRef()andgetNuctideRef()methods follows the established pattern used for peptide and compound references, maintaining API consistency while extending support for nucleotides.
144-144: LGTM! Proper member variable addition.The
nuctide_ref_member variable is appropriately placed in the protected section alongside the existingpeptide_ref_andcompound_ref_members, maintaining consistency in the class design.src/openms_gui/source/VISUAL/Plot1DCanvas.cpp (1)
83-86: LGTM! Metadata key generalization aligns with PR objectives.The change from
"peptide_sequence"to"transition_group_name"is part of the systematic refactoring to support oligonucleotides and generalize beyond peptide-specific terminology. The logic remains identical, only the metadata key name is updated to be more inclusive of different sequence types.src/pyOpenMS/pyTOPP/FeatureLinkerUnlabeledQT.py (1)
71-74: LGTM! Python 3 compatibility update.Converting print statements to print function calls is a necessary modernization for Python 3 compatibility. The functionality remains identical - only the syntax is updated from Python 2 style to Python 3 style.
src/tests/class_tests/openms/source/ConfidenceScoring_test.cpp (4)
92-92: LGTM! Test updated for unified transition group reference API.The change from
setPeptideRef(p.id)tosetTransGroupRef(p.id, OpenSwath::TransType::PEPTIDE)aligns with the broader refactoring to unify peptide and compound references into a single transition group interface. The test maintains the same functionality by explicitly specifying the PEPTIDE type.
107-107: LGTM! Consistent API update.Same beneficial change as above - updating to use the unified transition group reference API with explicit type specification.
182-182: LGTM! Test exception handling updated consistently.The API change is consistently applied in the exception testing section, maintaining test coverage for the new unified interface.
196-196: LGTM! Complete test coverage maintained.All instances of the old API have been updated to use the new unified transition group reference interface, ensuring comprehensive test coverage.
src/tests/class_tests/openms/data/MRMAssay_restrictTransitions_output.TraML (2)
30-30: LGTM! Terminology update aligns with broader refactoring.The systematic change from "peptide group label" to "peptidoform group label" in the test data correctly reflects the codebase's evolution to support oligonucleotides alongside peptides. This terminology update maintains consistency with the API changes.
Also applies to: 41-41, 52-52, 66-66, 80-80, 91-91, 102-102, 113-113, 127-127
140-140: LGTM! Enhanced precision for mass-to-charge values.The systematic update to provide more precise decimal representations for "isolation window target m/z" values improves the accuracy of test data. This aligns with enhanced precision in mass spectrometry calculations throughout the codebase.
Also applies to: 160-160, 181-181, 202-202, 223-223, 244-244, 264-264, 284-284, 305-305, 325-325, 346-346, 366-366, 386-386, 406-406, 426-426, 446-446, 467-467, 488-488, 509-509, 529-529, 550-550, 571-571, 592-592, 613-613, 633-633, 653-653, 673-673, 694-694, 714-714, 734-734
src/pyOpenMS/pxds/IncludeExcludeTarget.pxd (1)
17-18: LGTM! Nucleotide reference methods follow established patterns.The new
setNuctideRefandgetNuctideRefmethods correctly complement the existing peptide and compound reference functionality. The method signatures are consistent with the established API patterns in the file, using appropriate String references and exception handling.src/openms_gui/include/OpenMS/VISUAL/TOPPASVertex.h (1)
193-193: LGTM! Excellent const-correctness improvement.Adding const qualification to
incomingEdgesCount()andoutgoingEdgesCount()is appropriate since these methods only return container sizes without modifying object state. The corresponding implementation inTOPPASVertex.cppcorrectly supports this const qualification.Also applies to: 195-195
src/pyOpenMS/tests/unittests/test_TraML.py (2)
27-27: LGTM! Test updates align with unified transition group API.The change from
getPeptideRef()togetTransGroupRef()correctly reflects the API evolution to a unified transition group reference system that supports peptides, nucleotides, and compounds. This maintains test compatibility with the refactored codebase.Also applies to: 46-46
47-47: LGTM! Improved encapsulation with getter method.The change from direct
protein_refsattribute access to thegetProteinRefs()method call improves encapsulation and follows modern API practices. This aligns with the broader API refactoring in this PR.src/tests/class_tests/openms/source/SqMassFile_test.cpp (2)
255-255: LGTM! Meta value key update reflects generalized naming.The change from
"peptide_sequence"to"transition_group_name"in meta value keys reflects the evolution to a more general system that supports oligonucleotides alongside peptides. This naming convention is more inclusive and aligns with the unified transition group reference framework.Also applies to: 370-370
308-309: LGTM! Test assertions updated for new meta value naming.The systematic update of test assertions to check for
"transition_group_name"instead of"peptide_sequence"ensures test compatibility with the updated meta value naming conventions. This maintains comprehensive test coverage for the refactored system.Also applies to: 324-325, 423-424, 439-440
src/tests/class_tests/openms/data/MRMAssay_detectingTransitions_output.TraML (2)
30-30: LGTM: Terminology update aligns with generalized transition group concept.The systematic renaming from "peptide group label" to "peptidoform group label" is consistent with the PR's objective to generalize transition handling beyond peptides to include oligonucleotides. The controlled vocabulary accession MS:1000893 remains unchanged while updating the name attribute appropriately.
Also applies to: 41-41, 52-52, 66-66, 80-80, 91-91, 102-102, 113-113, 127-127
140-140: LGTM: Enhanced precision for m/z values.The floating-point values for "isolation window target m/z" have been updated with extended decimal precision (e.g.,
658.843899999999962instead of658.8439). This precision enhancement ensures more accurate representation of mass spectrometry data and aligns with similar updates across other TraML test files in this PR.Also applies to: 161-161, 181-181, 202-202, 222-222, 243-243, 263-263, 284-284, 304-304, 324-324, 345-345
src/tests/topp/FileMerger_9_output.traML (3)
48-48: LGTM: Software version reflects development branch.The FileMerger version update to "3.5.0-pre-nuc-dia-2025-07-25" appropriately reflects the development branch for nucleotide/oligonucleotide support in OpenSWATH, consistent with the PR's objectives.
70-70: LGTM: Consistent terminology update.The change from "peptide group label" to "peptidoform group label" maintains consistency with the transition group generalization approach adopted throughout the codebase, while preserving the controlled vocabulary accession MS:1000893.
129-129: LGTM: Enhanced numerical precision for m/z values.The isolation window target m/z values have been updated with extended decimal precision (e.g.,
862.946699999999964instead of862.9467). This enhancement ensures more accurate representation of mass spectrometry data and maintains consistency with similar precision improvements across the test suite.Also applies to: 184-184, 232-232, 243-243, 254-254, 265-265, 276-276
src/openms/source/QC/DBSuitability.cpp (1)
546-548: LGTM: Proper encapsulation of peptide sequence access.The changes replace direct member access with appropriate getter and setter method calls, improving encapsulation while maintaining the same functionality. This aligns well with the broader refactoring goals mentioned in the PR objectives.
src/tests/class_tests/openms/data/Deisotoper_output1.mzML (3)
155-155: LGTM: Consistent test data array length reduction.The default array length has been appropriately reduced from 483 to 452, which is the core change driving all other updates in this test file.
199-211: LGTM: Binary data array lengths updated consistently.The encoded lengths for the m/z, intensity, and charge arrays have been updated to match the reduced array size. The values are consistent with the expected data types (64-bit for m/z and charge, 32-bit for intensity).
256-259: LGTM: Index offsets correctly adjusted for smaller file size.The chromatogram offset and indexListOffset have been appropriately updated to reflect the reduced file size after the array length modification.
src/openms/include/OpenMS/FORMAT/HANDLERS/TraMLHandler.h (1)
94-94: LGTM: Oligonucleotide support added consistently.The addition of
actual_oligo_member variable follows the established naming convention and properly extends the TraMLHandler to support oligonucleotide data processing.src/tests/class_tests/openms/source/MRMFeatureFilter_test.cpp (1)
320-356: API migration looks correct but watch out for stale"PeptideRef"meta-keysAll patched lines correctly switch from
setPeptideRef()→setTransGroupRef(<id>, OpenSwath::TransType::PEPTIDE)and therefore compile against the new interface.However, the surrounding test code still writes
component_1.setMetaValue("PeptideRef", "component_group1");(and analogously for group2) while the transition objects now carry their reference in
trans_group_ref.
If the production code was refactored in the same spirit (i.e. it now expects the parentFeatureto store something like"TransGroupRef"or similar), these tests will silently exercise an outdated path and give false-positive results.Please confirm that
MRMFeatureFilterstill resolves component groups via the"PeptideRef"meta-value; otherwise adjust the tests accordingly.No other functional issues spotted in the migrated calls.
Also applies to: 439-471, 649-666, 1189-1213, 1396-1413, 1619-1654, 1891-1914
src/openms_gui/source/VISUAL/TOPPASOutputVertex.cpp (1)
73-84: LGTM: Improved error handling and safety.The addition of the incoming edge count check prevents potential null pointer dereferences and provides a clear, actionable error message when no input edges are available. This defensive programming approach improves robustness.
src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionHelper.h (1)
31-34: LGTM: Consistent refactoring to unified compound references.The method rename from
findPeptidetofindCompoundand parameter updates align well with the broader PR objective of unifying peptide, nucleotide, and compound handling under a common transition group system.src/openms/source/FORMAT/HANDLERS/MzMLSqliteHandler.cpp (3)
747-747: Consistent meta value key update.The change maintains consistency with the chromatogram handling code above.
1093-1095: LGTM: Consistent transition group meta value handling.The updated meta value checking and retrieval logic correctly uses the new
"transition_group_name"key.
1304-1306: Consistent chromatogram precursor meta value handling.The change mirrors the spectrum handling logic and maintains consistency across the codebase.
src/openms/source/ANALYSIS/OPENSWATH/SwathMapMassCorrection.cpp (5)
236-237: LGTM: Consistent transition group reference usage.The change from
getPeptideRef()togetTransGroupRef()aligns with the unified transition group system. Variable naming updated appropriately frompepreftocpdref.
248-248: Consistent debug message update.The debug message correctly uses the updated variable name
cpdrefinstead of the old peptide-specific reference.
289-290: Consistent MS1 calibration logic update.The MS1 ion mobility calibration code correctly uses the unified transition group reference system.
299-299: Updated debug output for MS1 calibration.Debug message consistently uses the new transition group reference variable naming.
410-411: Consistent m/z correction logic update.The mass correction functionality correctly adopts the unified transition group reference system while maintaining the same calibration logic.
src/openms/source/CHEMISTRY/NASequence.cpp (2)
31-39: LGTM: Convenient string constructors added.The new constructors provide convenient initialization from
Stringandconst char*, both correctly delegating to the existingparseString_method. This maintains consistency with the existing parsing logic while improving usability.
306-308: Consistent string type usage.The change from
std::stringtoOpenMS::Stringfor the return type and local variable aligns with OpenMS conventions and maintains consistency across the codebase.src/openms/source/ANALYSIS/OPENSWATH/MRMFeatureFinderScoring.cpp (8)
1116-1123: LGTM! Consistent transition to unified reference system.The replacement of
getPeptideRef()withgetTransGroupRef()in error messages and exceptions correctly implements the architectural shift to support unified handling of peptides, nucleotides, and compounds under the transition group abstraction.
1140-1140: LGTM! Correct adaptation to transition group reference system.The change from
getPeptideRef()togetTransGroupRef()for the expected retention time lookup correctly adapts to the unified reference system while maintaining the same functionality.
1172-1177: LGTM! Proper transition group map handling.The systematic replacement of peptide references with transition group references in map operations (lookup, creation, and insertion) correctly implements the unified transition group abstraction while preserving the original logic.
1180-1180: LGTM! Consistent transition group reference usage.The use of
getTransGroupRef()for accessing the transition group correctly aligns with the unified reference system implemented throughout the method.
1117-1117: LGTM! Consistent transition group reference usage.The replacement of
getPeptideRef()withgetTransGroupRef()correctly aligns with the broader refactoring to unify peptide, nucleotide, and compound references under a single transition group abstraction.Also applies to: 1122-1122
1172-1172: LGTM! Consistent transition group management refactoring.The systematic replacement of
getPeptideRef()withgetTransGroupRef()correctly maintains the transition group creation and management logic while supporting the unified reference system for peptides, nucleotides, and compounds.Also applies to: 1175-1176, 1180-1180
1117-1117: LGTM! Consistent transition group reference usage in error handling.The replacement of
getPeptideRef()withgetTransGroupRef()in error logging and exception messages aligns perfectly with the unified transition group abstraction. This ensures error messages work correctly for peptides, nucleotides, and compounds.Also applies to: 1122-1122
1172-1172: Excellent implementation of unified transition group logic.The systematic replacement of
getPeptideRef()withgetTransGroupRef()in the transition group creation and lookup logic is well-executed. The changes correctly:
- Check for existing transition groups using the new reference system (line 1172)
- Set transition group IDs consistently (line 1175)
- Insert transition groups with the proper key (line 1176)
- Retrieve transition groups using the correct reference (line 1180)
This implementation properly supports the unified handling of peptides, nucleotides, and compounds.
Also applies to: 1175-1175, 1176-1176, 1180-1180
src/openms/source/ANALYSIS/TARGETED/TargetedExperimentHelper.cpp (9)
13-13: LGTM! Necessary include for NASequence support.The addition of the
NASequence.hinclude is required for the newgetNASequencefunction and extends the file's capability to handle nucleotide sequences.
45-82: LGTM! Improved encapsulation with accessor methods.The systematic replacement of direct member access (
peptide.sequence,peptide.mods) with accessor methods (getSequence(),getMods()) improves encapsulation and aligns with modern C++ best practices. The changes are consistent throughout the function and maintain the same functionality.
86-89: LGTM! Well-designed nucleotide sequence conversion function.The new
getNASequencefunction correctly extends the helper functionality to support nucleotide sequences, providing a clean parallel to the existinggetAASequencefunction. The implementation follows the established pattern and uses appropriate accessor methods.
13-13: LGTM! Necessary include for nucleotide support.The addition of the NASequence header is required for the new
getNASequencefunction that converts nucleotide sequences to NASequence objects.
45-45: LGTM! Improved encapsulation with accessor methods.The systematic replacement of direct member access (
peptide.sequence,peptide.mods) with accessor methods (peptide.getSequence(),peptide.getMods()) improves encapsulation and follows good software engineering practices.Also applies to: 49-51, 56-56, 61-61, 69-69, 72-72, 78-78
86-89: LGTM! Consistent nucleotide sequence support.The new
getNASequencefunction provides nucleotide sequence conversion functionality that parallels the existing peptide support, correctly using the accessor methodgetSequence()and the appropriateNASequence::fromStringconversion.
13-13: LGTM! Necessary include for nucleotide support.The addition of
#include <OpenMS/CHEMISTRY/NASequence.h>is required to support the newgetNASequencefunction for handling nucleotide sequences.
45-45: Excellent encapsulation improvement using accessor methods.The systematic replacement of direct member access (
peptide.sequence,peptide.mods) with accessor methods (peptide.getSequence(),peptide.getMods()) is a great improvement that:
- Enhances encapsulation and follows OOP best practices
- Provides a consistent interface for accessing peptide data
- Allows for future changes to internal representation without breaking client code
- Aligns with the updated
Peptideclass interfaceAll changes are consistent and correctly implemented.
Also applies to: 49-50, 56-56, 61-61, 69-69, 72-72, 78-78
86-89: Well-implemented nucleotide sequence conversion function.The new
getNASequencefunction is a clean and appropriate addition that:
- Mirrors the existing
getAASequencefunction for peptides- Uses proper accessor methods (
nuctide.getSequence())- Leverages the existing
NASequence::fromStringstatic method- Extends the targeted experiment helper functionality to support nucleotides
The implementation is simple, consistent, and correctly follows established patterns.
src/openms/include/OpenMS/CHEMISTRY/NASequence.h (6)
335-339: LGTM! Convenient constructors enhance usability.The addition of constructors from
Stringandconst char*provides convenient ways to initializeNASequenceobjects from string representations. The clear documentation indicates support for both simple sequences and modified sequences with bracketed modifications, which aligns with typical usage patterns.
503-503: LGTM! Consistent return type with OpenMS conventions.The change from
std::stringtoOpenMS::Stringfor thetoString()method return type aligns with OpenMS coding conventions and maintains consistency with the broader codebase.
335-339: LGTM! Convenient constructors for string-based initialization.The addition of constructors from
Stringandconst char*provides convenient ways to createNASequenceobjects directly from string representations, supporting both simple sequences and those with modifications in brackets.
503-503: LGTM! Consistent return type with OpenMS conventions.Changing the return type from
std::stringtoString(OpenMS::String) aligns with OpenMS codebase conventions and provides consistency across the API.
335-336: Excellent addition of convenient string constructors.The new constructors for
NASequenceare well-designed and provide valuable functionality:
- String constructor (lines 335-336): Enables direct creation from
OpenMS::String, supporting sequences like"AAA"or modified sequences like"A[mod1]G[mod2]C"- C-string constructor (lines 338-339): Provides compatibility with C-style strings for convenience
These constructors:
- Follow established patterns in OpenMS (similar to
AASequence)- Are properly documented with clear examples
- Enhance usability by eliminating the need to call
fromString()explicitly- Support the nucleotide functionality additions across the codebase
Also applies to: 338-339
503-503: Good alignment with OpenMS conventions.Changing the
toString()return type fromstd::stringtoOpenMS::Stringis a positive improvement that:
- Aligns with OpenMS codebase conventions
- Provides consistency with other chemistry classes
- Gives access to additional
Stringutility methods- Complements the new
Stringconstructor nicelysrc/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp (9)
19-20: LGTM! Proper extension for oligonucleotide and nucleotide support.The addition of
setOligos()andsetNuctides()calls correctly extends the transition selection functionality to support the new entity types while following the established pattern used for peptides and proteins.
126-126: LGTM! Consistent transition to unified reference system.The replacement of
getPeptideRef()withgetTransGroupRef()correctly implements the architectural shift to support unified handling of peptides, nucleotides, and compounds under the transition group abstraction.
197-198: LGTM! Correct transition to unified reference system.The replacement of peptide reference with
getTransGroupRef()correctly adapts the feature finding functionality to work with the unified transition group abstraction while maintaining the same logic.
19-20: LGTM! Consistent extension for oligonucleotide and nucleotide support.The addition of
setOligos()andsetNuctides()calls follows the same pattern as the existingsetPeptides()andsetProteins()calls, ensuring complete data preservation when selecting SWATH transitions.
126-126: LGTM! Consistent transition group reference usage.The replacement of
getPeptideRef()withgetTransGroupRef()correctly aligns with the unified reference system for tracking matching transition groups of all types.
197-198: LGTM! Correct transition to unified reference system.The replacement of
getPeptideRef()withgetTransGroupRef()and the variable name change frompepreftocpdrefcorrectly reflects the transition to a unified reference system that handles all transition group types.
19-20: Proper extension for oligonucleotide and nucleotide support.The addition of
setOligos()andsetNuctides()calls correctly extends the function to handle oligonucleotides and nucleotides alongside peptides and proteins. The implementation follows the established pattern and ensures all entity types are properly copied to the output experiment.
126-126: Consistent use of unified transition group reference.The replacement of
tr.getPeptideRef()withtr.getTransGroupRef()correctly implements the unified transition group abstraction, allowing the matching compounds logic to work with peptides, nucleotides, and compounds consistently.
197-198: Correct implementation of unified transition group reference in feature finding.The replacement of peptide reference with
getTransGroupRef()correctly implements the unified reference system for finding the best feature per transition group. This ensures the function works consistently for peptides, nucleotides, and compounds.src/tests/class_tests/openms/source/MRMDecoy_test.cpp (8)
95-95: LGTM! Proper encapsulation using setter method.The change from direct member assignment to using
setSequence()method properly encapsulates the peptide sequence field.
100-100: LGTM! Proper encapsulation for modification handling.The change from direct manipulation of the
modsvector to usingaddMod()method provides better encapsulation and validation.
107-109: LGTM! Consistent use of accessor methods.All sequence and modification accesses are now properly using getter methods (
getSequence(),getMods()) instead of direct member access, maintaining consistent encapsulation.
112-118: LGTM! Systematic API modernization.All test cases consistently use the new setter/getter API methods (
setSequence(),getSequence()) instead of direct member access, maintaining test logic while improving encapsulation.Also applies to: 120-126, 128-134, 136-142, 144-150, 152-158, 160-166
169-175: LGTM! Proper handling of C-terminal residue preservation.The tests correctly use
getSequence()to access the sequence for both character-level access and full sequence comparison, ensuring C-terminal K and R preservation logic is properly validated.Also applies to: 180-186
194-206: LGTM! Comprehensive modification handling.The tests properly use
setSequence(),setMods(), andgetMods()to handle peptides with modifications, ensuring proper encapsulation of both sequence and modification data.Also applies to: 214-226
240-266: LGTM! Consistent API usage in peptide shuffling tests.All peptide shuffling tests consistently use the new API methods for sequence and modification handling, maintaining test correctness while adopting proper encapsulation patterns.
Also applies to: 280-302, 310-314
338-386: LGTM! Complete API modernization in reverse peptide tests.All reverse peptide generation tests consistently use the new getter/setter methods (
setSequence(),getSequence(),addMod(),getMods()) instead of direct member access, maintaining test functionality while improving code quality.Also applies to: 395-417, 425-447
share/OpenMS/SCHEMAS/protXML_v6.xsd (1)
413-413: LGTM! Schema update aligns with transition group unification.The renaming from
peptide_sequencetotransition_group_namein both theindistinguishable_peptidecomplex type and thepeptideelement correctly reflects the broader refactoring to support a generalized transition group reference system that encompasses peptides, nucleotides, and compounds.The attribute remains required and maintains the same documentation context ("unmodified aa sequence"), which is appropriate for the transition group concept.
Also applies to: 417-421
src/tests/topp/ConvertTSVToTraML_output.TraML (3)
20-20: LGTM! Terminology updated to reflect transition group unification.The consistent change from "peptide group label" to "peptidoform group label" in all
cvParamelements aligns with the broader refactoring to support a generalized transition group reference system. The term "peptidoform" is more precise and encompasses the various forms of peptides, nucleotides, and compounds supported by the new architecture.Also applies to: 33-33, 51-51, 73-73, 88-88, 109-109
129-129: LGTM! Improved numerical precision for m/z values.The updates to isolation window target m/z values provide more precise floating-point representations, which is consistent with improved calculation accuracy or standardization across the test suite. The high precision values (e.g., "722.684999999999945", "510.008268999999984") likely reflect more accurate mass calculations.
Also applies to: 149-149, 169-169, 189-189, 209-209, 229-229, 248-248, 268-268, 288-288, 308-308, 328-328, 348-348, 368-368, 388-388
142-142: LGTM! Standardized collision energy values.The consistent standardization of collision energy values to "1.0" across all transitions provides uniformity in the test data, which is appropriate for validation and regression testing purposes.
Also applies to: 162-162, 182-182, 202-202, 222-222, 261-261, 281-281, 301-301, 321-321, 341-341, 361-361, 381-381, 401-401
src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp (5)
855-855: LGTM: Proper encapsulation with setter methodsThe changes from direct member access to
setSequence()method calls correctly implement encapsulation while maintaining the same functionality - empty sequences for seeds and converted AASequence strings for regular peptides.Also applies to: 910-910
877-877: LGTM: Consistent protein reference encapsulationThe transition to
setProteinRefs()method calls properly encapsulates protein reference management. The initializer list syntax for single values and vector construction from iterators are both appropriate implementations.Also applies to: 929-930
874-874: LGTM: Proper sequence access encapsulationThe changes to use
getSequence()method calls instead of direct member access correctly implement encapsulation for read-only sequence access in string construction and debug logging.Also applies to: 953-953, 955-955
1079-1079: Verify nucleotide support implementation statusThe TODO comment suggests nucleotide support needs to be added to transition generation. Given that this PR introduces oligonucleotide support according to the description, please verify if this functionality should be implemented as part of this PR or if the TODO remains valid for future work.
1100-1100: LGTM: Unified transition reference implementationThe change to
setTransGroupRef(peptide_id, OpenSwath::TransType::PEPTIDE)correctly implements the new unified transition group reference system, explicitly specifying the peptide type while maintaining the same reference ID.src/tests/class_tests/openms/source/DIAHelper_test.cpp (3)
490-490: LGTM: Test name reflects generalized functionalityThe rename from "getBYSeries_test" to "getPrefixSuffixSeries_test" appropriately reflects the generalization of the function to handle both peptide and nucleotide sequences.
492-492: LGTM: Modern C++ practices and updated API usageThe changes demonstrate excellent modern C++ practices:
- Using
std::make_uniquefor automatic memory management- Proper smart pointer usage with direct passing and
.get()for raw pointer APIs- Updated function calls using the renamed
getPrefixSuffixSeriesmethodAlso applies to: 496-496, 501-501, 503-503
505-514: LGTM: Comprehensive nucleotide testing coverageThe addition of nucleotide-specific testing demonstrates excellent coverage:
- Proper use of
NucleicAcidSpectrumGeneratorfor nucleotides- Testing with modified nucleotide sequences (
AUCG[Cm])- Consistent API usage pattern matching the peptide tests
- Validates the generalized
getPrefixSuffixSeriesandgetTheorMassesfunctions work for both sequence typessrc/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd (1)
36-36: LGTM: Method rename improves API clarityThe rename from
convertTargetedCompoundtoconvertTargetedPeptidemakes the method's purpose more explicit while maintaining the same signature and proper documentation.src/pyOpenMS/pxds/LightTargetedExperiment.pxd (2)
11-11: LGTM: Unified transition reference implementationThe rename from
peptide_reftotransition_refcorrectly implements the unified transition reference system, making the member variable more generic and suitable for handling peptides, compounds, and nucleotides.
25-25: LGTM: Consistent method rename for unified APIThe rename from
getPeptideRef()togetTransGroupRef()properly aligns with the unified transition reference system and the corresponding member variable rename, maintaining consistency in the API.src/openms/source/ANALYSIS/TARGETED/MetaboTargetedAssay.cpp (3)
392-392: LGTM! Correct API migration to unified transition references.The migration from
setCompoundReftosetTransGroupRefwith explicitOpenSwath::TransType::COMPOUNDtyping is consistent with the broader refactoring to support multiple molecule types (peptides, compounds, nucleotides) through a unified interface.
619-619: LGTM! Consistent API migration.This change follows the same pattern as line 392, correctly migrating from
setCompoundReftosetTransGroupRefwith explicit compound typing. The use ofcmp.idas the reference is appropriate in this context.
604-604: Comment formatting - no functional changes.This appears to be a minor formatting change to the comment explaining the fragment m/z filtering logic. No functional impact.
src/pyOpenMS/tests/unittests/test000.py (2)
3703-3761: LGTM! API updates align with unified transition group reference system.The test updates correctly reflect the new unified API where:
getPeptideRef/setPeptideRefare replaced bygetTransGroupRef/setTransGroupRefsetTransGroupRefnow requires both a reference string andTransTypeenumgetTransGroupTypeprovides access to the transition typeThis is consistent with the broader refactoring to unify peptide and compound references into a single transition group reference system with explicit typing.
3937-3950: LGTM! Good encapsulation improvements and nucleotide support addition.The changes demonstrate two positive improvements:
Better encapsulation: Replacing direct attribute access (
p.protein_refs) with getter methods (p.getProteinRefs()) follows proper object-oriented principles.Nucleotide support: The new
Nuctideclass test block shows the successful addition of oligonucleotide support, withgetOligoRefs()being the nucleic acid equivalent ofgetProteinRefs()for peptides.This aligns perfectly with the PR's main objective of enabling oligonucleotide processing within OpenSWATH.
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathWorkflow.cpp (3)
333-333: LGTM! Consistent with unified transition group reference system.The change from
getPeptideRef()togetTransGroupRef()correctly implements the unified reference system that supports peptides, nucleotides, and compounds.
631-631: LGTM! Consistent transition group reference usage.The change correctly applies the unified transition group reference in the PRM/PASEF context.
931-931: LGTM! Proper transition grouping with unified reference.The transition-to-assay mapping correctly uses the transition group reference, enabling uniform handling of peptides, nucleotides, and compounds in the scoring workflow.
src/openms/source/ANALYSIS/TARGETED/MRMMapping.cpp (1)
90-107: LGTM! Proper handling of peptide transition groups.The code correctly:
- Retrieves the transition group reference
- Sets the appropriate meta value key for peptides
- Attempts to resolve the actual peptide sequence when available
src/openms/source/ANALYSIS/TARGETED/MetaboTargetedTargetDecoy.cpp (1)
22-22: LGTM! Consistent transition group reference usage throughout.All changes correctly migrate from compound-specific references to the unified transition group reference system. The explicit COMPOUND type specification at line 226 is appropriate for the metabolomics context.
Also applies to: 56-56, 69-69, 117-117, 226-226
src/openswathalgo/source/OPENSWATHALGO/DATAACCESS/TransitionHelper.cpp (1)
29-29: LGTM! Proper generalization to compound terminology.The changes correctly:
- Use the unified transition group reference for grouping transitions
- Rename the method and parameters to reflect the broader compound concept
- Maintain the same search logic while supporting all compound types
Also applies to: 45-62
src/tests/class_tests/openms/source/OpenSwathDataAccessHelper_test.cpp (3)
151-160: LGTM! Consistent API usage for encapsulation.The replacement of direct member access with setter/adder methods (
addProteinRef(),setSequence(),addMod()) properly reflects the encapsulation improvements in the main codebase.
167-167: LGTM! Proper transition to unified reference system.The use of
setTransGroupRef()with explicit transition type and testing oftransition_refcorrectly validates the new unified transition group reference system.Also applies to: 211-211
252-252: LGTM! Method naming reflects semantic clarity.The rename from
convertTargetedCompoundtoconvertTargetedPeptidebetter reflects that this method specifically handles peptide conversions, aligning with the addition of separate nucleotide conversion methods.src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp (2)
813-829: LGTM! Robust handling of peptide and nucleotide transitions.The extended logic properly handles both peptide and nucleotide transition types with appropriate fallback for unrecognized types. The use of a local
target_sequencevariable for consistent logging is a good practice.
881-881: Documentation properly updated.The comment correctly reflects that the map now handles both peptides and nucleotides ("nuctides").
src/tests/class_tests/openms/source/TargetedExperiment_test.cpp (3)
230-267: LGTM! Comprehensive test coverage for Oligo entity type.The new test sections properly cover all CRUD operations for the Oligo entity type, maintaining consistency with existing test patterns for other entity types.
307-345: LGTM! Complete test coverage for Nuctide entity type.The test sections for Nuctide follow the same pattern as other entity types, ensuring consistent API behavior across all supported sequence types.
456-456: LGTM! Tests properly validate the unified reference system.The tests correctly use
addProteinRef()andsetTransGroupRef()with explicit transition types, properly validating the new API design.Also applies to: 471-476
src/openms/source/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.cpp (2)
379-397: LGTM! Proper handling of peptide and nucleotide retention times.The extended logic correctly handles both transition types with appropriate retention time unit conversion. The implementation maintains consistency between peptide and nucleotide handling.
901-901: LGTM! Consistent use of encapsulated API.The use of
addProteinRef()andsetTransGroupRef()with explicit type properly follows the new API design patterns.Also applies to: 926-926
src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (1)
78-79: Fix typos in TSV header columns.The column names have typos:
NuctideSequenceshould beNuctideSequenceFullNuctideNameshould beFullNuctideNameThese typos may cause parsing issues or test failures.
- "PrecursorMz\tProductMz\tLibraryIntensity\tNormalizedRetentionTime\tNuctideSequence\tFullNuctideName\tOligoName\tTransitionGroupId\tTransitionId\n" + "PrecursorMz\tProductMz\tLibraryIntensity\tNormalizedRetentionTime\tNuctideSequence\tFullNuctideName\tOligoName\tTransitionGroupId\tTransitionId\n"Likely an incorrect or invalid review comment.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ChromatogramExtractor.h (2)
213-213: Consistent generalization of meta value naming.The change from
"peptide_sequence"to"transition_group_name"appropriately generalizes the meta value to support peptides, nucleotides, and compounds uniformly.Also applies to: 240-240
312-312: Good encapsulation practice.Using
getSequence()instead of direct member access improves encapsulation and allows for future implementation changes.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (2)
52-52: Accurate method naming improves clarity.Renaming from
convertTargetedCompoundtoconvertTargetedPeptidecorrectly reflects that this method convertsTargetedExperiment::Peptideobjects, not generic compounds.
54-55: Well-designed nucleotide support.The new methods
convertTargetedNuctideandconvertNuctideToNASequencefollow the established pattern and provide parallel functionality for nucleotides alongside peptides.Also applies to: 63-64
src/tests/class_tests/openms/source/ReactionMonitoringTransition_test.cpp (2)
159-164: Proper testing of default transition type.Good practice to verify that the default transition type is
UNKNOWNat construction, ensuring predictable behavior.
175-183: Comprehensive testing of unified reference system.The test properly verifies that both the reference string and type are set correctly when using
setTransGroupRef, ensuring the unified system works as expected.src/openms/source/ANALYSIS/OPENSWATH/MRMDecoy.cpp (2)
130-131: Excellent encapsulation improvements throughout.The consistent use of getter and setter methods (
getSequence(),setSequence(),getMods(),getMutableMods(),getProteinRefs(),setProteinRefs()) instead of direct member access improves maintainability and allows for future implementation changes without breaking the interface.Also applies to: 183-184, 239-239, 253-253, 286-286, 312-312, 326-327, 342-342, 365-366, 508-513
524-524: Proper adoption of unified transition group reference system.The code correctly uses
getTransGroupRef()andsetTransGroupRef()with the appropriate transition type, aligning with the new unified reference design.Also applies to: 587-587, 596-597, 608-608
src/pyOpenMS/pxds/ReactionMonitoringTransition.pxd (2)
24-28: LGTM! API generalization for multi-molecule support.The replacement of peptide-specific methods with unified transition group methods (
getTransGroupRef(),setTransGroupRef(),getTransGroupType()) correctly generalizes the API to support peptides, nucleotides, and compounds. The addition of theTransTypeparameter to the setter ensures type safety.
85-89: LGTM! Proper enum import for transition types.The
TransTypeenum is correctly imported from the OpenSwath namespace, providing the necessary type definitions (PEPTIDE, NUCTIDE, COMPOUND, UNKNOWN) for the new transition group type system.src/tests/class_tests/openms/source/TargetedExperimentHelper_test.cpp (2)
72-82: LGTM! Test section renamed to reflect unified base class.The renaming from
PeptideCompoundtoPeptideNuctideCompoundcorrectly reflects the refactored class hierarchy that unifies peptides and nucleotides under a common base class.
291-384: LGTM! Comprehensive test coverage for new nucleotide classes.The new test sections for
NuctideandOligoclasses provide thorough coverage:
- Proper noexcept move constructor verification for std::vector efficiency
- Complete testing of nucleotide-specific properties (sequence, oligo references)
- Retention time and charge state handling consistent with peptide tests
- Well-structured test cases with clear assertions
The tests ensure the new nucleotide data structures are correctly implemented and integrated.
src/tests/class_tests/openms/source/DIAScoring_test.cpp (3)
223-278: LGTM! Test renamed to reflect generalized ion series method.The renaming from
getBYSeriestogetPrefixSuffixSeriescorrectly reflects the generalization of the method to support both amino acid sequences (b/y ions) and nucleic acid sequences (various ion types). The function calls are properly updated throughout the test.
281-313: LGTM! Well-structured test for nucleotide prefix/suffix series.The new test section properly validates the
getPrefixSuffixSeriesfunctionality for nucleic acid sequences:
- Uses a realistic test sequence with methylated cytosine modification
- Validates both prefix and suffix ion series with expected m/z values
- Follows the same testing pattern as the amino acid version
- Tests with negative charge state (-1) appropriate for nucleic acids
838-877: LGTM! Proper test coverage for nucleotide DIA scoring.The new test validates the
dia_by_ion_scoreoverload forNASequence:
- Uses consistent test data with the prefix/suffix series test
- Properly sets up a test spectrum with nucleotide fragment ions
- Validates scoring results for both prefix and suffix ion series
- Correctly uses negative charge state for nucleic acid analysis
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAScoring.h (3)
12-13: LGTM! Proper includes for spectrum generators.The addition of direct includes for both
TheoreticalSpectrumGeneratorandNucleicAcidSpectrumGeneratorreplaces the forward declaration and enables the use ofunique_ptrmembers.
124-131: LGTM! Proper method overloading for dual sequence type support.The changes correctly extend
dia_by_ion_scoreto support both sequence types:
- AASequence parameter changed to const reference for efficiency
- New NASequence overload with appropriate documentation
- Clear distinction in comments between b/y ions (amino acids) and prefix/suffix ions (nucleic acids)
232-233: LGTM! Proper resource management with unique_ptr.The addition of
unique_ptrmembers for both amino acid and nucleic acid spectrum generators ensures proper resource management and clear separation of concerns between the two sequence types.src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (5)
117-117: LGTM! Function renamed for clarity.The renaming from
convertTargetedCompoundtoconvertTargetedPeptidemore accurately reflects that this function specifically handlesTargetedExperiment::Peptideobjects, improving code clarity.Also applies to: 194-194
137-144: LGTM! Proper implementation of unified transition references.The code correctly uses the new unified transition group reference system:
- Replaces peptide-specific references with
getTransGroupRef()- Properly retrieves compound information using the transition reference
- Maintains ion mobility data access through the compound lookup
214-236: LGTM! Improved encapsulation with getter methods.The replacement of direct member access with getter methods (
getSequence(),getProteinRefs()) improves encapsulation and aligns with the refactored class design.
272-308: LGTM! Complete implementation of nucleotide conversion.The
convertTargetedNuctidefunction properly handles all aspects of nucleotide conversion:
- Correct retention time handling with unit conversion
- Drift time and charge state management
- Sequence and nucleotide group label assignment
- Proper handling of oligo references instead of protein references
351-357: LGTM! Type-safe nucleotide to NASequence conversion.The
convertNuctideToNASequencefunction includes a proper precondition check to ensure type safety and follows the same pattern as the peptide conversion function.src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (1)
66-74: Good approach for supporting both amino acid and nucleic acid sequencesThe use of separate unique pointers for
TheoreticalSpectrumGeneratorandNucleicAcidSpectrumGeneratoris appropriate for handling different sequence types.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h (2)
233-234: LGTM! Well-structured additionsThe new typedefs and helper functions follow the existing patterns consistently. The update to
createProtein_to takeprotein_nameby const reference is a good improvement.Also applies to: 299-305, 314-316
60-60: Good terminology standardizationThe update to use "peptidoform group" terminology aligns with the MS:1000893 standard, improving clarity and consistency.
Also applies to: 280-280
src/pyOpenMS/pxds/TargetedExperimentHelper.pxd (3)
9-38: Well-designed unified ion type enumerationThe unified
IonTypeenum elegantly combines peptide and nucleic acid fragmentation patterns, supporting the broader goal of handling both molecule types in OpenSWATH.
176-189: Proper encapsulation for Peptide classThe added setter/getter/adder methods provide appropriate access control for the Peptide class members, following consistent OpenMS patterns.
190-227: Well-structured Nuctide class implementationThe
Nuctideclass appropriately mirrors thePeptideclass structure with nucleotide-specific adaptations (oligo_refs instead of protein_refs, etc.). The implementation maintains consistency with the existing codebase patterns.src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
108-179: Clean refactoring to support multiple compound typesThe changes successfully generalize the coordinate preparation logic from peptide-specific to compound-agnostic code while maintaining the same algorithmic flow.
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h (5)
46-48: Consistent extension of data structuresThe additions to
SummaryStatisticsand new typedefs properly extend the existing patterns to support oligonucleotides and nucleotides.Also applies to: 57-62, 68-75
191-203: Complete and consistent Oligo APIThe Oligo-related methods follow the established pattern perfectly, providing a complete API for oligo management.
232-244: Complete and consistent Nuctide APIThe Nuctide-related methods provide a complete API following the established patterns.
109-109: Good operator support with move semanticsThe documentation update and addition of move assignment operator improve efficiency for large data transfers.
Also applies to: 118-120
313-316: Well-designed internal state managementThe protected members and helper methods follow the established lazy initialization pattern with dirty flags, ensuring efficient reference map creation.
Also applies to: 332-339, 350-361
src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (4)
19-26: Excellent type-safe generalizationThe
TransTypeenum and updatedLightTransitionstructure provide a clean, type-safe way to handle different molecule types while maintaining backwards compatibility through the transition reference system.Also applies to: 30-30, 40-40, 62-65, 122-126
134-134: Correct molecule type discrimination logicThe updated
isPeptide()and newisNuctide()methods properly distinguish between different molecule types based on their characteristic fields.Also applies to: 158-173
204-209: Appropriate LightOligo structureThe
LightOligostruct appropriately mirrors theLightProteinpattern with minimal required fields.
216-218: Complete integration of oligonucleotide supportThe
LightTargetedExperimentchanges properly integrate oligos while maintaining the generalized compound reference system. The renamedcreateReferenceMap_better reflects its multi-type purpose.Also applies to: 224-264, 282-293
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (6)
18-23: LGTM! Well-structured includes for nucleic acid support.The addition of
NASequence.handTransitionExperiment.hproperly extends the functionality to support nucleic acids while maintaining the existing peptide support.
39-74: Well-designed unified ion type enum.The unified
IonTypeenum effectively supports both peptide and nucleic acid fragment types with clear documentation explaining the context-dependent interpretation. The organization with peptide-specific types first, followed by nucleic acid-specific types, provides good readability.
214-318: Excellent base class design for shared functionality.The
PeptideNuctideCompoundbase class effectively extracts common properties (retention times, charge, drift time) from peptides, compounds, and nucleotides. The implementation follows best practices with:
- Proper encapsulation using protected members
- Const-correct public interfaces
- Defaulted special member functions (rule of zero)
- Clear preconditions with informative error messages
422-502: Excellent encapsulation improvements for Peptide class.The refactoring properly addresses the previous review comment by making members private and providing comprehensive accessor methods. The implementation includes:
- Const getters for safe read access
- Setters for controlled modification
- Mutable getters for cases requiring direct modification (e.g., back() access)
- Consistent naming conventions throughout
702-730: Good integration of unified ion types and transition types.The
Interpretationstruct properly integrates the new unifiedIonTypeandOpenSwath::TransType, with sensible defaults for backwards compatibility (defaulting toPEPTIDEtransition type). The equality operator is correctly updated to include the new member.
815-817: LGTM! Helper function follows established pattern.The
getNASequencefunction declaration properly mirrors the existinggetAASequencepattern, providing a consistent interface for nucleic acid sequence conversion.src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (1)
798-834: Excellent transition validation using unified reference system.The validation logic properly uses the new unified transition group reference system with explicit type checking for PEPTIDE, NUCTIDE, and COMPOUND types. The error messages are clear and informative.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h (4)
13-15: LGTM! Clean separation of spectrum generators.The addition of separate includes for
TheoreticalSpectrumGeneratorandNucleicAcidSpectrumGeneratorprovides clear type safety and separation of concerns for peptide vs nucleic acid spectrum generation.
97-113: Well-designed function generalization for dual sequence support.The renaming from
getBYSeriestogetPrefixSuffixSeriesimproves clarity and future-proofs the API for different dissociation methods. The consistent overloading pattern for bothAASequenceandNASequencewith their respective generators provides a clean, type-safe interface.
133-139: Clever naming for RNA isotope distribution.The
getAveragosineIsotopeDistributionfunction name cleverly parallels "averagine" (average amino acid) with "averagosine" for RNA, making the relationship between the two functions immediately clear.
140-152: Consistent API for spectrum simulation.The renaming to
simulateSpectrumFromSequenceand consistent overloading for both sequence types creates a unified interface. Each overload correctly uses the appropriate spectrum generator and isotope distribution function.src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (3)
11-11: LGTM! Required include for nucleic acid support.
322-383: Well-implemented prefix/suffix series extraction for both sequence types.The implementations correctly handle the different ion naming conventions:
- Peptides: 'b' ions for prefix, 'y' ions for suffix
- Nucleic acids: 'a','b','c','d' for prefix, 'w','x','y','z' for suffix
The comment noting that a-B ions are included is helpful for understanding the behavior.
444-493: Correct implementation of RNA-specific isotope distribution.The
getAveragosineIsotopeDistributionfunction properly usesestimateFromRNAWeightfor RNA-specific isotope patterns, and the NA version ofsimulateSpectrumFromSequencecorrectly calls this RNA-specific function. The implementations maintain good parallelism with their peptide counterparts.src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (1)
1352-1369: Excellent refactoring with constants and efficient lookup.The use of constants and unordered_map for fragment type lookup improves code maintainability and performance. This is a good improvement over the previous switch-based approach.
src/openms/include/OpenMS/ANALYSIS/MRM/ReactionMonitoringTransition.h (4)
14-14: LGTM! Necessary include for TransType enum.The inclusion of
TransitionExperiment.his required to access theOpenSwath::TransTypeenum used in the new unified transition reference system.
85-92: Well-designed interface for transition group management.The new getter and type management methods provide a complete and flexible API for the unified transition reference system.
119-120: LGTM! Completes the product charge state interface.Adding the setter provides symmetry with the existing getter and enables full control over product charge state.
298-300: Clean refactoring of member variables.The unified
transition_ref_withtrans_type_enum provides a cleaner and more type-safe design than the previous separate reference members.src/openms/source/FORMAT/HANDLERS/TraMLHandler.cpp (10)
166-166: Good encapsulation of peptide sequence access.Using the setter method instead of direct member access improves maintainability and allows for future validation logic.
178-178: Consistent use of encapsulation for modifications.The
addMod()method provides a cleaner interface than direct vector manipulation.
211-225: Proper implementation of unified transition references.The code correctly handles all three transition types (peptide, compound, nucleotide) and sets the appropriate
TransTypeenum value for each.
252-252: Consistent encapsulation for protein references.Using
addProteinRef()maintains the encapsulation pattern throughout the code.
272-276: LGTM! Nucleotide reference support for targets.The addition properly extends target elements to support nucleotide references alongside peptide and compound references.
612-612: Consistent getter usage in XML writing.The use of
getSequence()maintains encapsulation consistency in the XML output logic.
757-773: Well-structured transition reference writing.The code properly handles all transition types with appropriate XML attributes and includes defensive error handling for unknown types.
690-695: Appropriate use of mutable getters for nested objects.The pattern of using
getEvidence()and mutable getters maintains encapsulation while allowing necessary modifications to nested structures.
959-966: Complete nucleotide support in target writing.The code properly outputs nucleotide references for targets, maintaining consistency with the input parsing logic.
619-619: Correct CVParam term applied for MS:1000893The change from
"peptide group label"to"peptidoform group label"insrc/openms/source/FORMAT/HANDLERS/TraMLHandler.cpp(line 619) aligns with the PSI-MS controlled vocabulary for accession MS:1000893 and can be approved.src/openms/source/ANALYSIS/MRM/ReactionMonitoringTransition.cpp (8)
12-12: LGTM! Required for OPENMS_PRECONDITION macros.The Exception.h include is needed for the precondition check macros used in the getter methods.
25-25: Proper default initialization of transition type.Initializing
trans_type_toUNKNOWNprovides a safe default state.
42-43: Correct copy constructor implementation.The new members are properly copied in the copy constructor.
68-69: Correct move constructor implementation.The new members are properly moved in the move constructor.
96-97: Proper assignment operator updates.Both copy and move assignment operators correctly handle the new unified reference members.
Also applies to: 131-132
157-158: Complete equality comparison.The equality operator properly includes the new unified reference members in the comparison.
195-214: Well-implemented unified reference methods.The methods correctly implement the unified reference system with atomic updates of both reference and type in the setter.
267-271: Correct implementation of product charge state setter.The setter properly delegates to the product's
setChargeStatemethod, maintaining consistency with the existing pattern.
|
This still needs a bit of polish to fix the test names and some minor bugs. But the major feature additions that i think i can fit into a single pr are done. Currently NASE can generate transitions tsv files, and openswath can parse those and generate the correct datastructures. I plan to circle back around with a later PR for the algorithm support when i can get some actual experimental data. |
There was a problem hiding this comment.
Actionable comments posted: 11
♻️ Duplicate comments (38)
src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_4_boost58.TraML (1)
30-30: CV accession still mismatched for “peptidoform group label”.All nine
<cvParam>elements keep accessionMS:1000893while the name is now “peptidoform group label”. The correct PSI-MS accession for that term isMS:1003050; please update to maintain CV integrity and avoid validation failures.Also applies to: 41-41, 52-52, 66-66, 80-80, 91-91, 102-102, 113-113, 127-127
src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py (1)
57-61: Address the existing type conversion issue for boolean parameter.The existing issue with passing a string instead of a boolean to
setValuefor "PeakPickerChromatogram:remove_overlapping_peaks" still needs to be addressed to prevent warnings in recent PyOpenMS versions.src/tests/class_tests/openms/source/MRMFeatureFilter_test.cpp (5)
440-470: Same observation as above – repeated hard-codedPEPTIDEusage.
650-666: Same observation as above – repeated hard-codedPEPTIDEusage.
1190-1210: Same observation as above – repeated hard-codedPEPTIDEusage.
1396-1429: Same observation as above – repeated hard-codedPEPTIDEusage.
1895-1913: Same observation as above – repeated hard-codedPEPTIDEusage.src/tests/class_tests/openms/data/MRMAssay_uisTransitions_output_3_boost58.TraML (8)
41-42: Same CV-term mismatch as aboveRepeat of the mismatch for accession MS:1000893. Apply the same correction here and to every occurrence in this file.
52-53: Same CV-term mismatchUpdate
nameto “peptide group label” or switch touserParam.
66-67: Same issueEnsure consistency between
accessionandname.
80-81: Same issueSee earlier comment.
91-92: Same issueSee earlier comment.
102-103: Same issueSee earlier comment.
113-114: Same issueSee earlier comment.
127-128: Same issueSee earlier comment.
src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_2.TraML (2)
30-30: CV term name change already identified in previous reviews.This change from "peptide group label" to "peptidoform group label" aligns with the broader refactoring to support nucleotide data, but the propagation to other files was already identified in previous reviews.
Also applies to: 41-41, 52-52, 66-66, 80-80, 91-91, 102-102, 113-113, 127-127
150-151: Negative fragment neutral loss values violate PSI specification.Fragment neutral loss values should be positive to represent the mass lost, but multiple transitions show negative values (e.g., "-17.026549095699998"). This was already identified in previous reviews with specific remediation steps.
Also applies to: 189-190, 228-229, 267-268, 325-326, 345-346, 403-404, 594-595, 614-615, 789-790, 808-809, 828-829, 848-849, 1043-1044, 1178-1179, 1198-1199, 1218-1219, 1258-1259, 1278-1279, 1355-1356, 1375-1376, 1490-1491, 1624-1625, 1663-1664, 1702-1703, 1741-1742, 1761-1762, 1857-1858, 1991-1992, 2030-2031, 2050-2051, 2089-2092, 2108-2109, 2128-2129, 2148-2149
src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp (2)
87-95: New nucleotide reference methods implemented correctly.The
setNuctideRefandgetNuctideRefmethods follow the established pattern and are correctly implemented.However, as noted in previous reviews, the
nuctide_ref_member variable is still missing from the copy assignment operator (lines 26-44) and equality operator (lines 46-60), which will cause incorrect behavior when copying or comparing objects.
87-95: Verify thatnuctide_ref_is handled in assignment and equality operators.Based on past review comments, the
nuctide_ref_member variable appears to be missing from the copy assignment operator and equality operator in this class. Please ensure that this member is properly handled in both operators to maintain correct copying and comparison behavior.Run the following script to verify the assignment and equality operator implementations:
#!/bin/bash # Check if nuctide_ref_ is handled in assignment and equality operators rg -A 20 "IncludeExcludeTarget.*operator=" src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp rg -A 20 "IncludeExcludeTarget.*operator==" src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cppsrc/openms/source/FORMAT/HANDLERS/MzMLSqliteHandler.cpp (1)
633-633: Address backward compatibility for meta value key change.The consistent replacement of
"peptide_sequence"with"transition_group_name"aligns with the unified transition group approach but could break existing SQLite databases. The previous reviewer's concern about backward compatibility remains valid.Consider implementing fallback logic to read the old key when the new one is absent:
-if (Sql::extractValue(&tmp, stmt, 7)) precursor.setMetaValue("transition_group_name", tmp); +if (Sql::extractValue(&tmp, stmt, 7)) +{ + precursor.setMetaValue("transition_group_name", tmp); +} +// Fallback for backward compatibility +else if (/* check for old peptide_sequence column */) +{ + // Read old key and set as new key + precursor.setMetaValue("transition_group_name", /* old value */); +}Apply similar fallback patterns in all read/write locations and document the migration path for users.
Also applies to: 747-747, 1093-1093, 1095-1095, 1304-1304, 747-747, 1093-1093, 1095-1095, 1304-1304, 1306-1306
src/pyOpenMS/pyTOPP/MRMMapper.py (1)
25-40: Refactor duplicated logic and fix style issue.The peptide/nucleotide checking logic is duplicated. Also, line 40 violates PEP 8 by having multiple statements on one line.
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathWorkflow.cpp (1)
1067-1067: Fix incorrect member access - use getter method.The code incorrectly accesses
transition_refdirectly instead of usinggetTransGroupRef(). This is inconsistent with the rest of the codebase and may cause compilation errors if the member is private.src/tests/topp/CMakeLists.txt (1)
3126-3128: Missing dependency forTOPP_NucleicAcidSearchEngine_14_outtest
TOPP_NucleicAcidSearchEngine_14_outconsumes the TSV generated byTOPP_NucleicAcidSearchEngine_1, yet noset_tests_properties(... DEPENDS ...)line is declared. Parallelctest -jNruns can therefore launch the diff test before the generator finished, yielding sporadic failures.Apply the following patch immediately after the existing dependency lines:
set_tests_properties("TOPP_NucleicAcidSearchEngine_11_out" PROPERTIES DEPENDS "TOPP_NucleicAcidSearchEngine_1") set_tests_properties("TOPP_NucleicAcidSearchEngine_12_out" PROPERTIES DEPENDS "TOPP_NucleicAcidSearchEngine_1") +# ensure TSV diff waits for generator test +set_tests_properties("TOPP_NucleicAcidSearchEngine_14_out" PROPERTIES DEPENDS "TOPP_NucleicAcidSearchEngine_1")src/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp (1)
146-148: Fix critical array access bug in oligo processing.The code incorrectly accesses
targeted_exp.compounds[i].oligo_refswhen it should access properties fromtargeted_exp.oligos[i]. This will cause runtime errors.Apply this fix:
- for (Size j = 0; j < targeted_exp.compounds[i].oligo_refs.size(); j++) - { - matching_proteins.insert(targeted_exp.compounds[i].oligo_refs[j]); - } + for (Size j = 0; j < targeted_exp.oligos[i].protein_refs.size(); j++) + { + matching_proteins.insert(targeted_exp.oligos[i].protein_refs[j]); + }src/openms/source/ANALYSIS/TARGETED/MRMMapping.cpp (1)
110-120: Fix typo and indentation issues.The meta value key "nuctide_sequence" should be "nucleotide_sequence" for consistency. Also, line 115 has incorrect indentation.
Apply this fix:
- precursor.setMetaValue("nuctide_sequence", transref); + precursor.setMetaValue("nucleotide_sequence", transref); for (Size nuc_idx = 0; nuc_idx < targeted_exp.getNuctides().size(); nuc_idx++) { const OpenMS::TargetedExperiment::Nuctide * nuc = &targeted_exp.getNuctides()[nuc_idx]; - if (nuc->id == transref) + if (nuc->id == transref) { if (!nuc->getSequence().empty()) { - precursor.setMetaValue("nuctide_sequence", nuc->getSequence()); + precursor.setMetaValue("nucleotide_sequence", nuc->getSequence()); } break;src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (2)
65-65: Fix the test section name to follow proper signature format.The test section name should follow the standard OpenMS pattern like other sections in this file (e.g., use parentheses around the method signature).
74-74: Fix the test section name to follow proper signature format.Similar to the previous test section, this should follow the standard OpenMS test naming pattern with proper parentheses.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAScoring.h (1)
124-125: LGTM! Comment clarification implemented.The comment now correctly specifies "(AASequence)" as suggested in the past review.
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (2)
238-261: Fix parameter order in getPrefixSuffixSeries callThe parameters are passed in the wrong order. Based on the function signature in
DIAHelper.cpp, the correct order should be:- OpenMS::DIAHelpers::getPrefixSuffixSeries(sequence, suffix_series, prefix_series, AAgenerator, charge); + OpenMS::DIAHelpers::getPrefixSuffixSeries(sequence, prefix_series, suffix_series, AAgenerator, charge);This parameter swap causes the loops to process the wrong ion series:
- Lines 240-250: Currently iterating over prefix ions while incrementing
prefix_score(which seems correct by coincidence)- Lines 251-261: Currently iterating over suffix ions while incrementing
suffix_score(which also seems correct by coincidence)The variable names in the loops should also be updated to match what they actually contain.
274-297: Fix parameter order in NASequence overloadThe same parameter order issue exists here:
- OpenMS::DIAHelpers::getPrefixSuffixSeries(sequence, suffix_series, prefix_series, NAgenerator, charge); + OpenMS::DIAHelpers::getPrefixSuffixSeries(sequence, prefix_series, suffix_series, NAgenerator, charge);src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h (1)
169-187: Verify peptide type determination logicThe
getType()method determines a transition is a peptide if bothCompoundNameandFullNuctideNameare empty, but doesn't verify thatFullPeptideNameis actually present. This could incorrectly classify malformed entries as peptides.Consider adding validation that
FullPeptideNameis non-empty for peptide classification:if ((CompoundName.empty() || CompoundName == "NA") && (FullNuctideName.empty() || FullNuctideName == "NA")) // SPWTODO:Can FullPeptideName be empty? &&!FullPeptideName.empty(); { + if (FullPeptideName.empty() || FullPeptideName == "NA") + { + throw Exception::InvalidValue(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Cannot determine transition type: no sequence information found.", ""); + } return OpenSwath::TransType::PEPTIDE; }src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (1)
506-618: Nuctide class design looks good, but modifications support appears to be missingThe
Nuctideclass properly mirrors thePeptideclass structure with appropriate adaptations for nucleic acids. However, theModificationstruct is defined but never used - there's nomods_member or modification-related methods.Is this intentional? If nucleic acid modifications are planned for future support, consider adding a TODO comment. If they're not needed, the
Modificationstruct definition could be removed.src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (2)
468-491: Inconsistent reference map pattern for oligo methodsThe
getOligoByRef,hasOligo, andaddOligomethods don't follow the established pattern:
getOligoByRefandhasOligocheck if the reference exists in the map rather than checking a dirty flagaddOligodoesn't set a dirty flag after modifying the collectionThis is inconsistent with the pattern used by protein/peptide/nuctide methods.
const TargetedExperiment::Oligo & TargetedExperiment::getOligoByRef(const String & ref) const { - if (oligo_reference_map_.find(ref) == oligo_reference_map_.end()) + if (oligo_reference_map_dirty_) { createOligoReferenceMap_(); } OPENMS_PRECONDITION(oligo_reference_map_.find(ref) != oligo_reference_map_.end(), "Could not find oligo in map") return *(oligo_reference_map_[ref]); } bool TargetedExperiment::hasOligo(const String & ref) const { - if (oligo_reference_map_.find(ref) == oligo_reference_map_.end()) + if (oligo_reference_map_dirty_) { createOligoReferenceMap_(); } return oligo_reference_map_.find(ref) != oligo_reference_map_.end(); } void TargetedExperiment::addOligo(const Oligo & oligo) { + oligo_reference_map_dirty_ = true; oligos_.push_back(oligo); }
863-870: Missing dirty flag reset in createOligoReferenceMap_The method should reset the dirty flag after creating the map:
void TargetedExperiment::createOligoReferenceMap_() const { for (Size i = 0; i < getOligos().size(); i++) { oligo_reference_map_[getOligos()[i].id] = &getOligos()[i]; } + oligo_reference_map_dirty_ = false; }src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DIAHelper.h (1)
133-139: LGTM! RNA-specific isotope distribution function.The
getAveragosineIsotopeDistributionfunction appropriately handles RNA isotope patterns, following the same interface as the peptide version.src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (3)
34-34: Remove the SPWFIXME comment as previously discussed.This concern was already addressed - MODOMICS IDs are strictly alphanumeric and don't contain single quotes.
383-389: Remove duplicate ProteinName parsing as previously identified.This code duplicates the ProteinName parsing from lines 350-356.
1269-1270: Fix the field names as previously identified.The code incorrectly uses peptide fields (FullPeptideName, PeptideSequence) instead of nucleotide fields.
🧹 Nitpick comments (29)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionPQPFile.h (1)
101-108: Doc wording updated — consider adjusting the footnote for consistencyChanging “peptide label group” → “peptidoform group” is accurate, but footnote ² (lines 171-178) and several inline comments below still say “peptide label group”.
A quick search-and-replace (doc only) would avoid mixed terminology.src/pyOpenMS/pyTOPP/OpenSwathChromatogramExtractor.py (1)
20-20: Remove unused variable for cleaner code.The variable
empty_swathis assigned but never used in the function. Consider removing this line to eliminate dead code.- empty_swath = pyopenms.MSExperiment()src/tests/class_tests/openms/source/NASequence_test.cpp (1)
65-72: Verify test section title matches the tested functionality.The test section title suggests testing a constructor
NASequence(const String& s), but the actual test uses the static factory methodNASequence::fromString("AAA"). While the test implementation is correct and follows the established pattern, ensure the section title accurately reflects what's being tested—either a constructor or the static factory method.The test logic itself is sound, properly validating both size and round-trip string conversion.
src/openms/source/FEATUREFINDER/FeatureFindingMetabo.cpp (1)
107-107: Hard-code of meta key – move to a shared constant to prevent future typosThe literal
"transition_group_name"is now used here (and in many other places in the refactor). Consider introducing a single constexpr/String constant (e.g. inConstants.horOpenSwathHelper) and using it everywhere.
That eliminates the risk of divergent spellings in future edits and allows quick changes of the tag if the CV term is ever updated.src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_1.TraML (1)
140-141: Precision increase is harmless but inflates diff noiseThe additional floating-point digits in
isolation window target m/zvalues do not affect numerical accuracy at double precision yet make future diffs harder to read.
Unless exact round-tripping is required, consider formatting with a constant precision (e.g.%.6f) when writing TraML to keep files stable.Also applies to: 158-160, 176-179, 196-198, 214-217, 234-236, 254-255, 272-274, 292-293, 310-312, 330-331, 349-350, 368-369, 387-388, 406-407, 425-426, 444-445, 463-464, 482-483, 501-502, 520-521, 539-540, 558-559, 576-577, 596-597, 615-616, 634-635, 653-654, 672-673, 691-692, 710-711, 729-730, 748-749, 767-768, 786-787, 805-806, 824-825
src/pyOpenMS/pyTOPP/FeatureLinkerUnlabeledQT.py (1)
71-75: Modernised prints – consider f-strings for clarityThe move to
print()is 👍 for Py3. While touching the lines, f-strings make them shorter and safer:- print("Number of consensus features:") + print("Number of consensus features:") ... - print(" of size %2d : %6d" % (size, count)) - print(" total : %6d" % out_map.size()) + print(f" of size {size:2d} : {count:6d}") + print(f" total : {out_map.size():6d}")src/tests/class_tests/openms/source/MRMFeatureFilter_test.cpp (1)
320-356: Consider parameterisingTransTypein the test helper to future-proof nucleotide supportAll new calls correctly switch from
setPeptideRef()to
setTransGroupRef("component_groupX", OpenSwath::TransType::PEPTIDE), which compiles against the new API.
However, every occurrence is still hard-coded to thePEPTIDEenum.
Once oligonucleotide (or other) transition groups land, the same tests will have to be duplicated or rewritten.A small helper would keep the test DRY and make it trivial to cover additional
TransTypevalues:+auto makeTransition = []( + const String& native_id, + const String& group_id, + OpenSwath::TransType type, + bool detecting, + bool identifying, + bool quantifying) { + ReactionMonitoringTransition t; + t.setNativeID(native_id); + t.setTransGroupRef(group_id, type); + t.setDetectingTransition(detecting); + t.setIdentifyingTransition(identifying); + t.setQuantifyingTransition(quantifying); + return t; +};Then the five-line blocks here collapse to a single call, and adding nucleotide coverage becomes a one-liner.
src/openms/source/ANALYSIS/OPENSWATH/SwathQC.cpp (1)
91-91: Fix typo in warning messageThe logging addition improves observability, but there's an extra closing parenthesis in the message.
- OPENMS_LOG_WARN << "SwathQC: something went wrong with the spectrum after peak picking. Returned empty spectrum)." << std::endl; + OPENMS_LOG_WARN << "SwathQC: something went wrong with the spectrum after peak picking. Returned empty spectrum." << std::endl;CHANGELOG (1)
44-44: Capitalize and tighten the CHANGELOG bullet for consistencyOther entries in this section start with a capital verb (“Removed”, “Added”, “ProteaseDigestion: add …”, etc.).
Consider aligning with that convention and avoid the redundant “library” wording:- added library support for storing and processing nucleotide data in OpenSWATH + Added support for storing and processing nucleotide data in OpenSWATHsrc/openms/include/OpenMS/FORMAT/HANDLERS/TraMLHandler.h (2)
100-100: Consider naming convention for consistency.The addition of
actual_Nuctide_is functionally correct and follows the established pattern. However, consider whether the capital 'N' in "Nuctide" aligns with your naming conventions - typically member variables use camelCase (e.g.,actual_nuctide_).
94-95: Fix naming inconsistency for nucleotide member variables.The new member variables have inconsistent naming conventions:
actual_oligo_follows the existing snake_case pattern (correct)actual_Nuctide_uses PascalCase, which is inconsistent with other member variablesApply this diff to maintain consistent naming:
- TargetedExperiment::Nuctide actual_Nuctide_; + TargetedExperiment::Nuctide actual_nuctide_;Ensure the corresponding implementation file is also updated to use the corrected naming.
Also applies to: 100-101
src/pyOpenMS/pyTOPP/MRMMapper.py (1)
45-48: Refactor duplicated conditional logic.The peptide and nucleotide checks can be combined since both branches execute the same code.
- if targeted.hasPeptide(transition.getTransGroupRef()): - sequence_entity = targeted.getCompoundByRef(transition.getTransGroupRef()) - elif targeted.hasNucleotide(transition.getTransGroupRef()): - sequence_entity = targeted.getCompoundByRef(transition.getTransGroupRef()) + trans_ref = transition.getTransGroupRef() + if targeted.hasPeptide(trans_ref) or targeted.hasNucleotide(trans_ref): + sequence_entity = targeted.getCompoundByRef(trans_ref)src/openms/source/ANALYSIS/OPENSWATH/TargetedSpectraExtractor.cpp (1)
869-869: Address the TODO for nucleotide support.The TODO comment indicates that nucleotide support needs to be added to the
constructTransitionsListmethod.Would you like me to help implement the nucleotide version of this method or create an issue to track this task?
src/openms/source/FEATUREFINDER/FeatureFinderIdentificationAlgorithm.cpp (2)
877-877: Consider consistent initialization patterns for protein references.While both approaches are functionally correct, consider using the same initialization pattern for consistency. Line 877 uses direct initialization with
{"not_available"}, while lines 929-930 construct a vector from iterators.Also applies to: 929-930
1079-1079: TODO comment indicates missing nucleotide support.The comment suggests that nucleotide RT handling needs to be implemented here, which aligns with the PR's oligonucleotide processing objectives.
Would you like me to help implement the nucleotide RT handling or create an issue to track this TODO?
src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp (1)
540-540: Fix typo in TODO comment.The comment has a typo: "SPWTOD" should be "SPWTODO".
-//SPWTOD add nuc ver +//SPWTODO add nuc verWould you like me to help implement the nucleotide version of generateTargetAssays_ or create an issue to track this TODO?
src/tests/class_tests/openms/source/ReactionMonitoringTransition_test.cpp (1)
166-166: Fix test section name to match actual method.The test section name says "setTransType" but should be "setTransGroupType" to match the actual method being tested.
-START_SECTION((void setTransType(OpenSwath::TransType type))) +START_SECTION((void setTransGroupType(OpenSwath::TransType type)))src/openms/source/FORMAT/HANDLERS/TraMLHandler.cpp (1)
757-773: Well-structured transition type handlingThe refactored code properly handles different transition types and includes appropriate error handling.
Consider making the exception message more informative:
- else throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, - "Can't write Unknown Type reference in TraMLHandler"); + else throw Exception::ConversionError(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, + "Cannot write transition with unknown type (" + String(it->getTransGroupType()) + ") in TraMLHandler");src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
66-82: Good generalization with proper type checkingThe refactoring to use
PeptideNuctideCompoundbase class and the updated preconditions properly enforce type safety.The TODO comment indicates nucleotide support is incomplete. Would you like me to help identify what additional changes are needed for full nucleotide support?
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (1)
225-298: Consider reducing code duplicationThe two
dia_by_ion_scoreoverloads have nearly identical implementations. Consider extracting the common scoring logic:template<typename SequenceType, typename GeneratorType> void scoreIonSeries(const SpectrumSequence& spectrum, const SequenceType& sequence, const std::unique_ptr<GeneratorType>& generator, int charge, const RangeMobility& im_range, double& prefix_score, double& suffix_score) const { // Common implementation here }This would reduce maintenance burden and ensure consistent behavior.
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h (1)
109-109: Update comment to include all entity types.The comment should mention all entity types that are merged: "Proteins, oligos, compounds, peptides, nuctides and transitions are merged".
src/pyOpenMS/pxds/TargetedExperimentHelper.pxd (2)
158-161: Remove commented-out member variables.These member variables are now accessed through getter/setter methods. The commented code should be removed to avoid confusion.
- # libcpp_vector[String] protein_refs - # CVTermList evidence - # String sequence - # libcpp_vector[TargetedExperiment_Modification] mods
203-205: Remove commented-out member variables in Nuctide class.Like in the Peptide class, these member variables are accessed through getter/setter methods and the comments should be removed.
- # libcpp_vector[String] oligo_refs - # CVTermList evidence - # String sequencesrc/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (1)
339-339: Consider tracking the performance optimization suggestion.The TODO raises a valid point about potentially using separate generators for prefix and suffix series to improve performance. Given the past discussions about TheoreticalSpectrumGenerator being a bottleneck, this optimization could be valuable.
Would you like me to create an issue to track this performance optimization opportunity?
src/tests/class_tests/openms/data/Deisotoper_output2.mzML (2)
199-210:encodedLengthfields are manual constants – easy to get out of syncAfter touching the Base64 blobs you updated the
encodedLengthattributes. Good practice is to script this, otherwise the values drift and mzML validators complain (XSDrequires them to match the byte count exactly).Consider removing the attributes during test-data regeneration:
-<binaryDataArray encodedLength="2848"> +<binaryDataArray>Most parsers ignore
encodedLength; eliminating it removes this maintenance foot-gun.
211-216: RedundantarrayLengthattribute only on the charge arrayOnly the third
binaryDataArraycarries an explicitarrayLength="267"while the preceding two rely ondefaultArrayLength. For symmetry – and to avoid reader-specific corner cases – either add the attribute to all three arrays or drop it here.src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp (1)
87-90: Fix parameter naming convention.The parameter name
Nuctide_refuses PascalCase, which is inconsistent with the codebase conventions. It should use snake_case.Apply this diff:
- void IncludeExcludeTarget::setNuctideRef(const String & Nuctide_ref) + void IncludeExcludeTarget::setNuctideRef(const String & nuctide_ref) { - nuctide_ref_ = Nuctide_ref; + nuctide_ref_ = nuctide_ref; }share/OpenMS/SCHEMAS/protXML_v6.xsd (1)
413-413: LGTM! Consider updating the annotation for accuracy.The attribute renaming from
peptide_sequencetotransition_group_nameproperly aligns with the unified transition group reference approach introduced across the codebase.However, consider updating the annotation text on line 419 from "unmodified aa sequence" to something more general like "transition group identifier" since this now supports nucleotides and compounds in addition to amino acid sequences.
<xs:attribute name="transition_group_name" type="xs:string" use="required"> <xs:annotation> - <xs:documentation>unmodified aa sequence</xs:documentation> + <xs:documentation>transition group identifier</xs:documentation> </xs:annotation> </xs:attribute>Also applies to: 417-421
src/tests/topp/ConvertTSVToTraML_output.TraML (1)
229-230: Excessive floating-point precision in reference output – consider rounding.Values such as
722.684999999999945,510.008268999999984,509.014199000000019,730.699199000000022, …
are artefacts of binary-to-decimal conversion and exceed the meaningful mass precision of typical SRM/MRM workflows (≈10-6).Keeping these machine artefacts in golden files increases diff noise and can break comparisons after toolchain upgrades.
Recommendation: round to a sensible number of decimal places (e.g. 6) before serialisation:
- <cvParam ... value="722.684999999999945" .../> + <cvParam ... value="722.685" .../>Apply the same rounding to all
isolation window target m/zand similar numeric CV/user parameters in the test corpus.Also applies to: 248-249, 288-289, 328-329, 348-349, 368-369, 388-389
| if (!range_im.isEmpty() && s->getDriftTimeArray() == nullptr) | ||
| { | ||
| OPENMS_LOG_WARN << "Warning: Trying to integrate where range is not empty but drift time is missing." << std::endl; | ||
| // TODO: Fix handling so we can throw an exception | ||
| //throw Exception::MissingInformation(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Cannot integrate with drift time if no drift time is available"); | ||
| } | ||
| else | ||
| { | ||
| integrateWindow_(s, mz, im, intensity, range_mz, range_im, centroided); | ||
| } |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Inconsistent error handling between overloads.
The single spectrum version throws an exception when drift time is missing (line 241), but the SpectrumSequence version only logs a warning. This inconsistency could lead to unexpected behavior. Consider making both functions handle this case consistently.
To understand why this inconsistency exists, let's check if there are existing callers that depend on this behavior:
🏁 Script executed:
#!/bin/bash
# Search for calls to integrateWindow with SpectrumSequence to understand usage patterns
rg -A 5 "integrateWindow.*SpectrumSequence" --type cppLength of output: 4331
🏁 Script executed:
#!/bin/bash
# Show the context where an exception is thrown for missing drift time in the single‐spectrum overload
rg -n "MissingInformation" -A5 -B5 src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cppLength of output: 1477
🏁 Script executed:
#!/bin/bash
# Extract test cases for integrateWindow(const SpectrumSequence& ...)
rg -n "integrateWindow(const SpectrumSequence" -A20 -B0 src/tests/class_tests/openms/source/DIAHelper_test.cppLength of output: 217
Align error handling for missing drift across both overloads.
The single‐spectrum integrateWindow(...) throws Exception::MissingInformation when range_im is non‐empty but no drift‐time array is present (line 241), whereas the SpectrumSequence overload (lines 284–293) merely logs a warning and continues. This discrepancy can cause silent failures in batch processing. You should make both overloads behave consistently:
• Either throw Exception::MissingInformation in the SpectrumSequence overload by uncommenting the exception and removing the warning.
• Or downgrade the single‐spectrum overload to log a warning instead, if you prefer non‐fatal handling—then update its exception to OPENMS_LOG_WARN.
Affected locations:
- src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp, around line 241
- src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp, around lines 284–288
Please choose the desired strategy and update both implementations (and any tests) accordingly.
🤖 Prompt for AI Agents
In src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp around lines 241 and
284-288, the error handling for missing drift time is inconsistent between the
single-spectrum and SpectrumSequence integrateWindow overloads. To fix this,
choose one approach: either uncomment and throw Exception::MissingInformation in
the SpectrumSequence overload and remove the warning log there, or replace the
exception throw in the single-spectrum overload with a warning log. Then apply
the chosen approach consistently in both overloads and update any related tests
to reflect this unified error handling behavior.
There was a problem hiding this comment.
@jcharkow This is a result of the refactoring, we throw an error if the Precondition for integrateWindow_ is violated and it's the only spectrum, we throw a warning instead and skip that spectrum if it's called in a whole SpectrumSequence. Can you confirm that this the correct behavior?
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
| // Check for ambiguous entity type: more than one of ProteinId, OligoName, CompoundName not empty | ||
| // isPeptide treats both empty and "NA" as not set. | ||
| // TODO: This breaks a number of tests right now. | ||
|
|
||
| int non_empty_count = 0; | ||
| String protein_id, oligo_id, compound_name; | ||
| extractName(protein_id, "FullPeptideName", tmp_line, header_dict); | ||
| extractName(oligo_id, "FullNuctideName", tmp_line, header_dict); | ||
| extractName(compound_name, "CompoundName", tmp_line, header_dict); | ||
|
|
||
| if (!protein_id.empty() && !(protein_id == "NA")) non_empty_count++; | ||
| if (!oligo_id.empty() && !(oligo_id == "NA")) non_empty_count++; | ||
| if (!compound_name.empty() && !(compound_name == "NA")) non_empty_count++; | ||
| if (non_empty_count > 1) | ||
| { | ||
| throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, | ||
| "Ambiguous entity type: more than one of ProteinId, OligoName, and CompoundName is not empty in the same row: " + String(cnt) + " protein_id: " + protein_id + " oligo_id: " + oligo_id + " compound_name: " + compound_name); | ||
| } | ||
|
|
There was a problem hiding this comment.
Address the TODO comment before merging.
The entity type validation logic is good, but the TODO comment indicates this breaks existing tests. Please ensure all tests are updated to comply with this new validation before merging.
🤖 Prompt for AI Agents
In src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp around lines 267
to 285, the TODO comment indicates that the new validation logic for ambiguous
entity types breaks existing tests. To fix this, review and update all affected
test cases to align with the new validation rules that disallow more than one
non-empty entity type per row. Ensure tests reflect the requirement that only
one of ProteinId, OligoName, or CompoundName can be set (not empty or "NA") and
then verify all tests pass before merging.
…ny of the three, and this is consistant with the namine in TargetedExperiment helper. Address review comments
There was a problem hiding this comment.
Actionable comments posted: 3
♻️ Duplicate comments (6)
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp (1)
146-148: Fix incorrect array access in oligo processing.The code is incorrectly accessing
peptideNuctideCompounds[i].oligo_refswhen it should be accessing properties ofoligos[i]. This appears to be a copy-paste error from the peptideNuctideCompounds loop above.Apply this fix:
- for (Size j = 0; j < targeted_exp.peptideNuctideCompounds[i].oligo_refs.size(); j++) + for (Size j = 0; j < targeted_exp.oligos[i].protein_refs.size(); j++) { - matching_proteins.insert(targeted_exp.peptideNuctideCompounds[i].oligo_refs[j]); + matching_proteins.insert(targeted_exp.oligos[i].protein_refs[j]); }Note: The exact field name should match the oligo data structure definition (could be
protein_refsor another appropriate field).src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (1)
518-533: Modification struct defined but not used.The Nuctide class defines a Modification struct but doesn't include any member variables or methods to store/manage modifications, unlike the Peptide class. If nucleic acid modifications are planned for future support, consider adding a TODO comment. If not needed, remove the unused Modification struct to avoid confusion.
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (3)
239-246: Improved error handling but inconsistency remains.The addition of explicit drift time validation with exception throwing is good, but this creates inconsistency with the
SpectrumSequenceoverload (lines 284-293) which only logs a warning for the same condition.As noted in previous reviews, both overloads should handle missing drift time consistently - either both should throw
Exception::MissingInformationor both should log warnings.
284-293: Inconsistent error handling between overloads.This overload logs a warning for missing drift time data while the single spectrum version (lines 239-246) throws an exception for the same condition. This inconsistency can cause unexpected behavior in batch processing scenarios.
Consider aligning both overloads to use the same error handling strategy.
443-463: Function name and code duplication concerns.As noted in previous comments, "Averagosine" is an unusual name. The function logic is correct for nucleic acid isotope distribution calculation, but there's significant code duplication with
getAveragineIsotopeDistribution.Consider:
- A more descriptive name like
getNucleicAcidIsotopeDistribution- Refactoring both functions to share common logic, parameterized by the estimation method:
template<typename EstimationFunc> void getIsotopeDistribution(double product_mz, std::vector<std::pair<double, double>>& isotopes_spec, int charge, int nr_isotopes, double mannmass, EstimationFunc estimator);src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (1)
267-285: TODO comment indicates incomplete workThe entity type validation logic is good implementation, but as indicated in past review comments, the TODO shows this breaks existing tests and needs completion before merging.
🧹 Nitpick comments (6)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/MRMScoring.h (1)
5-5: Fix typo in maintainer comment.There's a stray character at the end of the maintainer name.
-// $Maintainer: Hannes Roest $a +// $Maintainer: Hannes Roest $src/pyOpenMS/pyTOPP/MRMMapper.py (2)
44-44: Remove duplicate comment.Line 44 has a duplicate comment that should be removed for clarity.
- # Handle both peptides and nucleotides - # Handle both peptides and nucleotides + # Handle both peptides and nucleotides
56-56: Fix PEP 8 style violation: separate statements on different lines.Multiple statements on one line violate PEP 8 style guidelines.
- if not allow_unmapped: raise Exception("No mapping") + if not allow_unmapped: + raise Exception("No mapping")src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (1)
66-66: Consider removing outdated TODO comments.The comments "SPWTODO add Nuc" appear to be outdated since nucleotide support has now been implemented. Consider removing these comments or updating them if there's still work to be done.
Also applies to: 83-83
src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
66-66: Remove outdated TODO comments.The "SPWTODO add Nuc" comments appear to be outdated since the functions already handle the unified compound model.
Also applies to: 83-83
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (1)
479-490: LGTM! Correctly implements nucleic acid spectrum simulation.The function correctly uses the nucleic acid-specific generator and isotope distribution function. The logic appropriately mirrors the peptide version while using the correct nucleic acid components.
Consider extracting common logic between this and the AASequence overload to reduce code duplication across the codebase.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (41)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ChromatogramExtractor.h(4 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h(2 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/IonMobilityScoring.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/MRMFeatureFinderScoring.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/MRMScoring.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathScoring.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathWorkflow.h(1 hunks)src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h(8 hunks)src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h(9 hunks)src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h(11 hunks)src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp(7 hunks)src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp(8 hunks)src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp(9 hunks)src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp(3 hunks)src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp(14 hunks)src/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp(3 hunks)src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.cpp(1 hunks)src/openms/source/ANALYSIS/OPENSWATH/OpenSwathWorkflow.cpp(8 hunks)src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp(20 hunks)src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp(2 hunks)src/openms/source/ANALYSIS/TARGETED/MRMMapping.cpp(1 hunks)src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp(21 hunks)src/openms/source/FORMAT/HANDLERS/MzMLSqliteHandler.cpp(7 hunks)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h(10 hunks)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionHelper.h(2 hunks)src/openswathalgo/source/OPENSWATHALGO/DATAACCESS/TransitionHelper.cpp(2 hunks)src/pyOpenMS/pxds/LightTargetedExperiment.pxd(4 hunks)src/pyOpenMS/pxds/MRMScoring.pxd(1 hunks)src/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd(2 hunks)src/pyOpenMS/pxds/OpenSwathOSWWriter.pxd(1 hunks)src/pyOpenMS/pyTOPP/MRMMapper.py(3 hunks)src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py(2 hunks)src/pyOpenMS/tests/unittests/testLightTargetedExperiment.py(5 hunks)src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_2.TraML(154 hunks)src/tests/class_tests/openms/source/MRMScoring_test.cpp(1 hunks)src/tests/class_tests/openms/source/OpenSwathDataAccessHelper_test.cpp(7 hunks)src/tests/class_tests/openms/source/OpenSwathHelper_test.cpp(1 hunks)src/tests/class_tests/openms/source/SwathMapMassCorrection_test.cpp(6 hunks)src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp(2 hunks)src/tests/topp/CMakeLists.txt(1 hunks)
✅ Files skipped from review due to trivial changes (4)
- src/openms/include/OpenMS/ANALYSIS/OPENSWATH/IonMobilityScoring.h
- src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathScoring.h
- src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.cpp
- src/tests/class_tests/openms/data/MRMAssay_reannotateTransitions_output_2.TraML
🚧 Files skipped from review as they are similar to previous changes (17)
- src/tests/class_tests/openms/source/OpenSwathDataAccessHelper_test.cpp
- src/pyOpenMS/pyTOPP/MRMTransitionGroupPicker.py
- src/openms/source/ANALYSIS/OPENSWATH/MRMAssay.cpp
- src/openms/source/ANALYSIS/TARGETED/MRMMapping.cpp
- src/tests/class_tests/openms/source/SwathMapMassCorrection_test.cpp
- src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionHelper.h
- src/openswathalgo/source/OPENSWATHALGO/DATAACCESS/TransitionHelper.cpp
- src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp
- src/pyOpenMS/tests/unittests/testLightTargetedExperiment.py
- src/pyOpenMS/pxds/OpenSwathDataAccessHelper.pxd
- src/openms/source/FORMAT/HANDLERS/MzMLSqliteHandler.cpp
- src/openms/include/OpenMS/ANALYSIS/OPENSWATH/ChromatogramExtractor.h
- src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp
- src/openms/source/ANALYSIS/TARGETED/IncludeExcludeTarget.cpp
- src/openms/include/OpenMS/ANALYSIS/OPENSWATH/TransitionTSVFile.h
- src/tests/topp/CMakeLists.txt
- src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h
🧰 Additional context used
🧠 Learnings (8)
src/pyOpenMS/pxds/OpenSwathOSWWriter.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/pyOpenMS/pxds/MRMScoring.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (2)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (3)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (3)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (4)
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:24-28
Timestamp: 2025-04-07T21:16:06.557Z
Learning: In OpenMS, the proper way to access ion mobility data in MSSpectrum is to use the getIMData() method, which returns a tuple with (position, unit). The position corresponds to the index in the FloatDataArrays where the ion mobility data is stored. Always use this method rather than assuming the first FloatDataArray contains ion mobility data.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
Learnt from: jpfeuffer
PR: #7970
File: src/pyOpenMS/addons/MSSpectrum.pyx:38-38
Timestamp: 2025-04-07T21:15:07.674Z
Learning: In mass spectrometry data, precursor charges can be negative, so signed integer types (like np.int16) should be used instead of unsigned integers (like np.uint16) when storing charge values.
src/pyOpenMS/pxds/LightTargetedExperiment.pxd (2)
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:1-3
Timestamp: 2025-06-16T15:49:26.504Z
Learning: In OpenMS Python bindings (.pxd files), derived quantitation method classes like TMTThirtyTwoPlexQuantitationMethod only need to declare their constructors. All other public methods (getName, getChannelInformation, getNumberOfChannels, getIsotopeCorrectionMatrix, getReferenceChannel) are inherited from the base IsobaricQuantitationMethod class and don't need to be redeclared explicitly.
Learnt from: FreezB11
PR: #7969
File: src/pyOpenMS/pxds/TMTThirtyTwoPlexQuantitationMethod.pxd:4-4
Timestamp: 2025-06-16T15:48:09.667Z
Learning: In OpenMS .pxd files, the established pattern for extern from statements is to include angle brackets inside the string literal, like cdef extern from "<OpenMS/PATH/TO/FILE.h>" namespace "OpenMS":. This is consistent across all existing quantitation method .pxd files and other .pxd files in the OpenMS codebase.
🧬 Code Graph Analysis (5)
src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (1)
src/tests/class_tests/openms/source/OpenSwathHelper_test.cpp (1)
computePrecursorId(44-44)
src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (1)
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (10)
getPrefixSuffixSeries(323-351)getPrefixSuffixSeries(323-327)getPrefixSuffixSeries(355-383)getPrefixSuffixSeries(355-359)createMZRangePPM(590-603)createMZRangePPM(590-590)integrateWindow(227-265)integrateWindow(227-233)integrateWindow(267-320)integrateWindow(267-273)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (2)
src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (10)
convertTargetedPeptide(194-270)convertTargetedPeptide(194-194)convertTargetedNuctide(272-308)convertTargetedNuctide(272-272)convertTargetedCompound(310-333)convertTargetedCompound(310-310)convertPeptideToAASequence(335-349)convertPeptideToAASequence(335-335)convertNuctideToNASequence(351-356)convertNuctideToNASequence(351-351)src/openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/TransitionExperiment.h (1)
LightPeptideNuctideCompound(135-188)
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.h (1)
src/openms/source/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.cpp (2)
prepareLine(226-658)prepareLine(226-229)
src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (4)
src/openms/source/CONCEPT/Exception.cpp (2)
IllegalArgument(247-250)MissingInformation(257-260)src/tests/class_tests/openms/source/TransitionTSVFile_test.cpp (1)
createOligo_(65-65)src/openms/source/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.cpp (6)
convertTargetedPeptide(194-270)convertTargetedPeptide(194-194)convertTargetedNuctide(272-308)convertTargetedNuctide(272-272)convertTargetedCompound(310-333)convertTargetedCompound(310-310)src/openms/source/ANALYSIS/TARGETED/TargetedExperimentHelper.cpp (4)
getAASequence(38-84)getAASequence(38-38)getNASequence(86-89)getNASequence(86-86)
🪛 Ruff (0.12.2)
src/pyOpenMS/pyTOPP/MRMMapper.py
56-56: Multiple statements on one line (colon)
(E701)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
- GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
- GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
- GitHub Check: build-and-test (macos-13, xcode, 14.2)
- GitHub Check: cppcheck-test
🔇 Additional comments (122)
src/pyOpenMS/pxds/LightTargetedExperiment.pxd (1)
11-11: LGTM! Consistent refactoring to support nucleotides.The changes correctly update the Cython interface to reflect the C++ refactoring:
- Transition references are generalized from
peptide_reftotransition_ref- The compound class is renamed to
LightPeptideNuctideCompoundto support both peptides and nucleotides- All related method signatures and member variables are updated consistently
Also applies to: 25-25, 46-48, 81-81, 85-85, 88-88
src/tests/class_tests/openms/source/MRMScoring_test.cpp (1)
632-632: LGTM! Test correctly updated to use new compound type.The type change from
LightCompoundtoLightPeptideNuctideCompoundis consistent with the refactoring throughout the codebase. The test logic remains unchanged, which is appropriate.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/MRMFeatureFinderScoring.h (1)
72-72: LGTM! Typedef correctly updated.The typedef change from
LightCompoundtoLightPeptideNuctideCompoundensures all uses ofPeptideTypethroughout the class now support the unified peptide/nucleotide compound type.src/tests/class_tests/openms/source/OpenSwathHelper_test.cpp (1)
143-145: LGTM! Test properly updated for new compound type.The changes correctly update the test to use:
LightPeptideNuctideCompoundinstead ofLightCompound- The renamed member
peptideNuctideCompoundsinstead ofcompounds- Appropriate vector type for the new compound class
The test logic remains intact while adapting to the refactored type system.
Also applies to: 151-151, 156-156
src/openms/include/OpenMS/ANALYSIS/OPENSWATH/MRMScoring.h (1)
59-59: LGTM! Typedef correctly updated.The typedef change from
LightCompoundtoLightPeptideNuctideCompoundis consistent with the refactoring throughout the codebase.src/pyOpenMS/pxds/MRMScoring.pxd (1)
57-57: LGTM! Type signature correctly updated for nucleotide support.The method signature change from
LightCompoundtoLightPeptideNuctideCompoundaligns with the broader refactoring to support nucleotides alongside peptides in OpenSWATH.src/pyOpenMS/pxds/OpenSwathOSWWriter.pxd (1)
15-15: LGTM! Method signature correctly updated for unified compound handling.The change from
LightCompoundtoLightPeptideNuctideCompoundis consistent with the broader refactoring and matches the implementation in the corresponding C++ source file.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathOSWWriter.h (1)
152-152: LGTM! Method signature correctly updated for unified compound handling.The parameter type change from
LightCompoundtoLightPeptideNuctideCompoundis consistent with the broader refactoring effort and matches the implementation in the source file.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/OpenSwathWorkflow.h (1)
553-553: LGTM! Helper method signature correctly updated for nucleotide support.The parameter type change from
LightCompoundtoLightPeptideNuctideCompoundin the private helper methodcopyBatchTransitions_is consistent with the broader refactoring to support nucleotides alongside peptides.src/pyOpenMS/pyTOPP/MRMMapper.py (2)
25-39: LGTM! Improved nucleotide and peptide handling logic.The refactored logic correctly handles both peptides and nucleotides, eliminates code duplication, and provides clear sequence type identification. The use of
getTransGroupRef()is consistent with the broader refactoring effort.
45-51: LGTM! Correct meta value key assignment for different sequence types.The code correctly sets different meta value keys:
"transition_group_name"for peptides and"nucleotide_sequence"for nucleotides, which aligns with the broader refactoring effort across the codebase.src/openms/source/ANALYSIS/OPENSWATH/OpenSwathHelper.cpp (4)
19-20: LGTM!The additions correctly extend the transition selection to include oligos and nucleotides, maintaining consistency with the existing pattern for peptides and proteins.
126-126: LGTM!The transition from
getPeptideRef()togetTransGroupRef()correctly aligns with the unified transition group reference system.
130-140: Good adaptation to the unified compound model.The code correctly iterates over
peptideNuctideCompoundsinstead of peptides, maintaining the same logic while supporting both peptides and nucleotides.
197-198: LGTM!The update to use
getTransGroupRef()correctly aligns with the unified transition group reference system while maintaining the same functional behavior.src/openms/source/ANALYSIS/OPENSWATH/OpenSwathWorkflow.cpp (7)
333-349: LGTM!The changes correctly adapt the calibration workflow to use the unified transition group references and peptideNuctideCompounds structure while maintaining the same matching logic.
631-654: LGTM!The extraction workflow correctly uses the unified transition group references and compound structures, maintaining the same functional behavior for compound and protein matching.
668-677: Correct adaptation of batch size logic.The batch size calculation now properly accounts for all compound types (peptides and nucleotides) by using
getPeptideNuctideCompounds().
721-721: Good terminology update.The log message correctly reflects that the code now handles both peptides and nucleotides as "compounds".
931-931: LGTM!Correctly uses the unified transition group reference for populating the assay map.
1016-1020: LGTM!The code correctly creates a placeholder
LightPeptideNuctideCompoundfor OSW output preparation, aligning with the unified compound model.
1055-1067: Good update with correct accessor usage.The method signature correctly reflects the unified compound model, and the code properly uses
getTransGroupRef()instead of direct member access, which addresses the concern from the previous review.src/openms/source/ANALYSIS/OPENSWATH/DIAScoring.cpp (3)
66-73: Good improvement using smart pointers.The change from raw pointers to
std::unique_ptrprovides automatic memory management and follows modern C++ best practices, addressing the previous review comment. Having separate generators for amino acid and nucleic acid sequences properly supports the extended functionality.
225-262: Good refactoring to generalized ion series terminology.The refactoring from b/y series to prefix/suffix series makes the code more generic and applicable to both peptides and nucleotides. The parameter order in the
getPrefixSuffixSeriescall is now correct, addressing the concerns from previous reviews.
264-298: Well-structured overload for nucleic acid sequences.The NASequence overload correctly mirrors the AASequence implementation while using the appropriate
NAgenerator. The parameter order ingetPrefixSuffixSeriesis correct, maintaining consistency with the amino acid version.src/openms/source/ANALYSIS/OPENSWATH/ChromatogramExtractor.cpp (4)
67-82: Correct adaptation of helper function.The function now returns the unified
PeptideNuctideCompoundpointer and correctly validates the transition group type in the preconditions.
109-174: Excellent generalization to unified compound model.The function has been properly updated to use compound-generic terminology and correctly uses
getTransGroupRef()for transition grouping. All variable names have been consistently updated.
192-227: Consistent updates for TargetedExperiment overload.The function correctly mirrors the changes made to the LightTargetedExperiment version, using unified compound references and types.
278-278: Verify disabled isotope extraction.The condition
&& falsedisables isotope extraction for MS1. If this is intentional, consider adding a comment explaining why, or remove the dead code if it's no longer needed.src/openms/include/OpenMS/ANALYSIS/OPENSWATH/DATAACCESS/DataAccessHelper.h (1)
15-15: Good API updates for nucleotide support.The header correctly adds the necessary include and updates method signatures to use the unified
LightPeptideNuctideCompoundtype. The more specific method naming (convertTargetedPeptide, convertTargetedNuctide, convertTargetedCompound) improves API clarity.Also applies to: 52-58
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h (9)
18-18: LGTM!The addition of NASequence.h include is appropriate for nucleic acid sequence support.
23-23: LGTM!The TransitionExperiment.h include is needed for the TransType enum used in the Interpretation struct.
39-73: Excellent unified ion type design.The IonType enum effectively unifies peptide and nucleic acid fragment ion types with comprehensive MS ontology documentation. The organization separating peptide-specific and nucleic acid-specific types is clear and logical.
116-122: LGTM!The Oligo struct design appropriately mirrors the Protein struct and provides clear documentation about its role as the nucleic acid equivalent.
422-502: Excellent encapsulation refactoring.The Peptide class now properly encapsulates its members with getter/setter methods while maintaining backward compatibility. The addition of mutable access methods for evidence and modifications supports specific use cases without compromising encapsulation.
535-619: Well-designed Nuctide class with appropriate nucleic acid adaptations.The class properly mirrors the Peptide structure but with nucleic acid-specific adaptations (oligo_refs instead of protein_refs, nuctide_group_label). The encapsulation follows the same pattern as the updated Peptide class.
703-704: Proper unification of ion types and addition of transition type.The changes to use the unified IonType enum and add transition_type field appropriately support both peptide and nucleic acid transitions.
710-711: Appropriate default values for backward compatibility.The constructor defaults (Unannotated for iontype, PEPTIDE for transition_type) maintain backward compatibility while supporting the new unified system.
816-817: LGTM!The getNASequence helper function declaration appropriately mirrors the existing getAASequence function, maintaining consistency in the API design.
src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperiment.h (14)
46-47: LGTM!The addition of oligo_count and nuctide_count to SummaryStatistics is consistent with the existing pattern and necessary for tracking the new entity types.
57-57: LGTM!The Oligo typedef follows the established pattern for entity type aliases.
61-61: LGTM!The Nuctide typedef is consistent with other entity type aliases.
68-68: LGTM!The IonType typedef update properly references the unified enum from TargetedExperimentHelper.
73-74: LGTM!The OligoReferenceMapType and NuctideReferenceMapType follow the established pattern for reference map types used in the lazy loading system.
191-203: Comprehensive oligo management methods.The oligo method declarations are complete and follow the established pattern exactly, providing all necessary operations (setters, getters, existence checks, adders) with proper const-correctness.
232-243: Complete nuctide management interface.The nuctide method declarations provide a comprehensive interface following the established pattern, with all necessary operations and proper const-correctness.
313-315: LGTM!The createOligoReferenceMap_() and createNuctideReferenceMap_() method declarations follow the established pattern for lazy reference map creation.
332-332: LGTM!The oligos_ member variable follows the established naming pattern for entity collections.
338-338: LGTM!The nuctides_ member variable is consistent with the established pattern.
350-350: LGTM!The oligo_reference_map_ follows the established pattern for entity reference maps.
352-352: LGTM!The oligo_reference_map_dirty_ flag is necessary for the lazy loading pattern used throughout the class.
358-358: LGTM!The nuctide_reference_map_ follows the established pattern for reference maps.
362-362: LGTM!The nuctide_reference_map_dirty_ flag completes the lazy loading infrastructure for nuctides.
src/openms/source/ANALYSIS/TARGETED/TargetedExperiment.cpp (47)
50-50: LGTM!The oligo_reference_map_dirty_(true) initialization in the default constructor is consistent with other entity types.
53-53: LGTM!The nuctide_reference_map_dirty_(true) initialization follows the established pattern.
66-66: LGTM!The oligos_(rhs.oligos_) initialization in the copy constructor is correct.
69-69: LGTM!The nuctides_(rhs.nuctides_) initialization is appropriate for the copy constructor.
74-74: LGTM!Dirty flag initialization for oligo_reference_map_dirty_ in copy constructor is correct.
77-77: LGTM!Dirty flag initialization for nuctide_reference_map_dirty_ in copy constructor is consistent.
90-90: LGTM!The std::move(rhs.oligos_) in the move constructor is correct.
93-93: LGTM!The std::move(rhs.nuctides_) in the move constructor follows proper move semantics.
98-98: LGTM!Dirty flag initialization in move constructor for oligos is appropriate.
101-101: LGTM!Dirty flag initialization in move constructor for nuctides is consistent with the pattern.
119-119: LGTM!The oligos_ = rhs.oligos_ assignment is correct in the copy assignment operator.
122-122: LGTM!The nuctides_ = rhs.nuctides_ assignment is appropriate.
129-129: LGTM!Setting nuctide_reference_map_dirty_ = true in copy assignment is correct.
131-131: LGTM!Setting oligo_reference_map_dirty_ = true maintains consistency.
147-147: LGTM!The oligos_ = std::move(rhs.oligos_) in move assignment is correct.
150-150: LGTM!The nuctides_ = std::move(rhs.nuctides_) follows proper move semantics.
157-157: LGTM!Dirty flag update for nuctides in move assignment is appropriate.
159-159: LGTM!Dirty flag update for oligos in move assignment maintains consistency.
175-175: LGTM!Setting nuctide_reference_map_dirty_ = true in operator+= is necessary for cache invalidation.
177-177: LGTM!Setting oligo_reference_map_dirty_ = true maintains consistency with other entity types.
186-186: LGTM!The oligos_.insert() call properly merges oligo collections.
189-189: LGTM!The nuctides_.insert() call correctly merges nuctide collections.
213-213: LGTM!Dirty flag handling in move version of operator+= is correct.
215-215: LGTM!Oligo dirty flag update in move operator+= is consistent.
225-225: LGTM!The appendRVector for oligos in move operator+= is appropriate.
228-228: LGTM!The appendRVector for nuctides completes the move merge operation correctly.
257-257: LGTM!The oligos_ == rhs.oligos_ comparison is necessary for complete equality checking.
260-260: LGTM!The nuctides_ == rhs.nuctides_ comparison maintains consistency in equality operator.
277-278: LGTM!The oligo_count and nuctide_count assignments in getSummary() properly track the new entity types.
302-302: LGTM!The oligos_.clear() call properly clears the oligo collection.
305-305: LGTM!The nuctides_.clear() call is consistent with other entity type clearing.
311-311: LGTM!The oligo_reference_map_.clear() properly clears the reference map.
313-313: LGTM!The nuctide_reference_map_.clear() maintains consistency.
318-318: LGTM!Setting nuctide_reference_map_dirty_ = true after clearing is appropriate.
320-320: LGTM!Setting oligo_reference_map_dirty_ = true completes the proper clearing process.
461-501: Well-implemented oligo management methods.The oligo method implementations follow the established pattern correctly with proper dirty flag handling, lazy map creation, and consistent error checking with OPENMS_PRECONDITION.
579-619: Comprehensive nuctide management implementation.The nuctide method implementations are complete and follow the established pattern with proper dirty flag handling, lazy reference map creation, and appropriate error checking.
699-699: LGTM!The OligoVectorType typedef is consistent with existing type definitions for validation.
701-701: LGTM!The NuctideVectorType typedef follows the established pattern.
718-729: Proper oligo ID uniqueness validation.The oligo ID uniqueness checking follows the same pattern as other entity types with appropriate error logging.
744-755: Consistent nuctide ID uniqueness validation.The nuctide ID validation is implemented consistently with other entity types and provides clear error messages.
786-786: LGTM!Using getProteinRefs() getter method is consistent with the new encapsulation pattern.
796-807: Proper nuctide-oligo reference validation.The validation of nuctide references to oligos follows the same pattern as peptide-protein validation and provides appropriate error messages.
813-836: Updated transition validation using unified reference system.The transition validation properly uses the new getTransGroupType() and getTransGroupRef() methods to handle all entity types (PEPTIDE, NUCTIDE, COMPOUND) consistently.
874-881: LGTM!The createOligoReferenceMap_() implementation follows the established pattern and properly resets the dirty flag.
883-890: LGTM!The createNuctideReferenceMap_() implementation is consistent with other reference map creation methods and includes proper dirty flag management.
914-915: LGTM!The summary statistics output for oligos and nuctides is formatted consistently with existing entity types.
src/openms/source/ANALYSIS/OPENSWATH/DIAHelper.cpp (4)
11-11: LGTM!The include for
NucleicAcidSpectrumGenerator.his necessary for the new nucleic acid support functionality and is appropriately placed with the other chemistry-related includes.
322-351: LGTM! Function appropriately updated for generalization.The function has been appropriately updated to support both peptide and nucleic acid sequences, with the renaming from
getBYSeriestogetPrefixSuffixSeriesreflecting the broader scope.
386-401: LGTM! Precondition appropriately updated.The function correctly maintains existing functionality with an improved precondition message that clarifies this is for peptides specifically.
262-264: LGTM! Improved consistency in return value handling.The explicit setting of
mz = -1,im = -1, andintensity = 0when returning false ensures consistent behavior across both integration function overloads and provides clear indication of integration failure to callers.Also applies to: 316-319
src/openms/source/ANALYSIS/OPENSWATH/TransitionTSVFile.cpp (18)
14-14: LGTM: Necessary include for nucleotide supportThe NASequence include is correctly added to support nucleotide sequence parsing in the new createNuctide_ method.
142-146: LGTM: Header extensions for nucleotide fieldsThe new header fields follow existing naming conventions and provide the necessary columns for nucleotide/oligo support. The commented "Nucleoforms" suggests future extensibility.
247-257: LGTM: Standard debugging codeThe debug output is properly wrapped in preprocessor guards and won't affect production builds.
371-382: LGTM: Consistent nucleotide field parsingThe nucleotide field parsing follows the established patterns for peptide fields and correctly handles "NA" values and semicolon-separated lists.
621-628: LGTM: Proper data structure additions for nucleotidesThe nucleotide and oligo vectors and maps are correctly added following the existing pattern for peptides and compounds.
642-660: LGTM: Type-safe nucleotide creation logicThe nucleotide creation logic correctly uses TransType enum for type safety and follows the established pattern for peptides and compounds.
671-703: LGTM: Correct separation of protein vs oligo creationThe refactored logic correctly creates proteins for peptide transitions and oligos for nucleotide transitions based on TransType, maintaining logical separation.
722-722: LGTM: Correct nucleotide support in light conversionThe nucleotide conversion correctly follows the peptide pattern and the unified transition referencing improves consistency across the codebase.
Also applies to: 732-732, 753-772
1058-1063: LGTM: Simple and correct oligo creationThe createOligo_ method correctly follows the same minimal pattern as createProtein_ for setting the ID.
1102-1102: LGTM: Improved encapsulation and error messagesThe changes to use getter methods instead of direct field access improve encapsulation, and the enhanced error messages aid debugging.
Also applies to: 1167-1167, 1170-1170, 1177-1177, 1208-1213
1215-1284: LGTM: Well-structured nucleotide creation methodThe createNuctide_ method correctly adapts the peptide creation pattern for nucleotides, using NASequence parsing and setting appropriate oligo references. The error handling and structure mirror the peptide method appropriately.
1344-1362: LGTM: Excellent refactoring with performance improvementsThe addition of constants and the fragment type lookup table significantly improves code maintainability and performance by replacing switch statements with O(1) lookups.
1363-1384: LGTM: Proper input validation and initializationThe input validation and safe default value initialization improve robustness and prevent undefined behavior.
1386-1438: LGTM: Well-structured peptide handling with optimizationsThe peptide handling code is well-optimized with efficient vector reservations and clean ternary operators for cleaner conditional assignments.
1439-1484: LGTM: Consistent nucleotide handling implementationThe nucleotide handling correctly mirrors the peptide structure while using appropriate nucleotide-specific fields and references.
1485-1522: LGTM: Complete compound handling with improved error handlingThe compound handling maintains consistency and the improved exception handling provides clearer error messages.
1530-1580: LGTM: Efficient fragment processing and property settingThe fragment interpretation processing uses the efficient lookup table and the property setting is streamlined with appropriate validation.
1640-1644: LGTM: Complete TSV output for nucleotide fieldsThe TSV output correctly includes all nucleotide fields, maintaining consistency with the header additions and ensuring complete round-trip functionality.
…cessHelper.h Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
|
To keep our PR queue easier to manage, we will start closing stale PRs more frequently. This also makes it easier to automate handling of PRs that are still work in progress. Please do not take this personally—closed PRs can always be reopened or continued in a fresh PR when needed. |
Description
Major refactoring to allow processing of Oligonucleotides in OpenSWATH.
Summary by CodeRabbit
New Features
Refactor
Bug Fixes
Tests
Style