Repository navigation
Fix: OSW, pass im_range to scoreIdentification method - #7885
Conversation
…-initializing it within the method
WalkthroughThe changes introduce an additional parameter, Changes
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
CHANGELOG(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
- 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: build-and-test (windows-2022, cl.exe, default)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
| * the chromatograms were extracted. Use empty map if no | ||
| * data is available. | ||
| * @param drift_target The target drift value | ||
| * @param im_range Ion mobility subrange to consider (used as filter); can be empty (i.e. no IM filtering) |
There was a problem hiding this comment.
Does this require some python binding updates?
Maybe this can provide more information. What happens if non IM data is scored and a user sets im_range? What if the user has IM data but the range is empty?
Should there be a default (e.g. the empty range?)
There was a problem hiding this comment.
No python binding updates required, this method is not wrapped.
I updated the doc to clarify that it should be empty for non-IM data. If the use does have IM data, and it's empty, then we assume the user does not want to use the ion mobility information. The IM range is set from the library, so we assume/depend that the library was generated with IM information coordinates.
- Add more information to clarify when scoring non-IMS data, it should be empty.
… into fix/osw_scoreident_imrange
Description
This addresses issue #7883
I now pass the im_range to
scoreIdentification_instead of recomputing it within the function, which results in an im_range with (-1,-1) if there is no drift time set in the library (i.e. non-ion mobility data).Not sure why it was initially done that way, I'm assuming we wouldn't want to recompute it in the scoreIdentifiation method since these traces will have have the same library drift time as the detecting transitions.
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
im_rangehandling by requiring it to be passed directly to the scoring method.