Repository navigation
fix docs for IDMapper::annotate() - #8141
Conversation
WalkthroughThe changes update documentation comments and parameter names for Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ 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)
✨ 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 (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🔭 Outside diff range comments (2)
src/pyOpenMS/pxds/IDMapper.pxd (2)
24-30: Parameter name mismatch:mapMS1vsmap_ms1The C++ header and the updated docs use
map_ms1, but the function signature here still exposesbool mapMS1.
Renaming for consistency avoids user confusion when consulting Python‐side help.- bool mapMS1) except + nogil + bool map_ms1) except + nogil(Be sure to update every overload and the docstring parameter list.)
45-63: Same mismatch for the FeatureMap-based overload
mapMS1in the Cython signature vsmap_ms1in the docs – please rename as above for consistency.
🧹 Nitpick comments (4)
src/openms/include/OpenMS/ANALYSIS/ID/IDMapper.h (2)
103-105: Grammar: “allows add” → “allows adding”Minor wording nit – the sentence currently reads a bit clunky.
-@param spectra [Optional] Provide the underlying mass spectra, which allows add an empty PeptideIdentification object containing the MS2 scan index +@param spectra [Optional] Provide the underlying mass spectra, which allows adding an empty PeptideIdentification object containing the MS2 scan index
121-123: Duplicate wording / same nitpick for ConsensusMap overloadPlease mirror the wording fix here as well to stay consistent.
-@param spectra [Optional] Provide the underlying mass spectra, which allows add an empty PeptideIdentification object containing the MS2 scan index +@param spectra [Optional] Provide the underlying mass spectra, which allows adding an empty PeptideIdentification object containing the MS2 scan indexsrc/pyOpenMS/pxds/IDMapper.pxd (2)
161-166: Inconsistent description forspectraThe new sentence is crystal-clear – great!
However, the earlier overload (lines 80-85) still states “:param spectra: Whether precursors not contained …”, which is less precise and uses “Whether” (boolean phrasing) instead of “Optional”.
Recommend aligning the wording across overloads.
176-182: ConsensusMap overload: keep wording in syncSame comment as above – please update the earlier docstring and keep the “allows adding …” wording identical to the FeatureMap version.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
src/openms/include/OpenMS/ANALYSIS/ID/IDMapper.h(2 hunks)src/pyOpenMS/pxds/IDMapper.pxd(3 hunks)
🧰 Additional context used
🧠 Learnings (2)
src/openms/include/OpenMS/ANALYSIS/ID/IDMapper.h (1)
Learnt from: poshul
PR: #8133
File: src/openms/include/OpenMS/ANALYSIS/TARGETED/TargetedExperimentHelper.h:0-0
Timestamp: 2025-07-29T10:05:48.139Z
Learning: In the Nuctide class in TargetedExperimentHelper.h, the Modification struct is intentionally defined but not used (no mods_ member or related methods). This is by design and should be documented with a comment to avoid confusion.
src/pyOpenMS/pxds/IDMapper.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.
🔇 Additional comments (1)
src/pyOpenMS/pxds/IDMapper.pxd (1)
137-150: Docstring usesmap_ms1, but preceding overloads still exposemapMS1If the renaming is intentional to deprecate the camel-case variant, consider:
- Mark the old overloads as deprecated in the docstring.
- Or convert them all to the new snake-case name and provide a thin backwards-compatibility shim at the Python layer.
Right now, users will see two different spellings in the same module.
Description
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsSummary by CodeRabbit
spectra,ids, andprotein_idsparameters.