Repository navigation
refactor: move basename member out of PeptideIdentification into MetaValues - #7981
Conversation
WalkthroughA new constant, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant PeptideIdentification
participant MetaValueStore
User->>PeptideIdentification: setBaseName("foo")
PeptideIdentification->>MetaValueStore: setMetaValue(BASE_NAME, "foo")
User->>PeptideIdentification: getBaseName()
PeptideIdentification->>MetaValueStore: getMetaValue(BASE_NAME, "")
MetaValueStore-->>PeptideIdentification: "foo"
PeptideIdentification-->>User: "foo"
User->>PeptideIdentification: setBaseName("")
PeptideIdentification->>MetaValueStore: removeMetaValue(BASE_NAME)
Poem
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (6)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (5)
⏰ Context from checks skipped due to timeout of 90000ms (6)
🪧 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 (
|
Description
This pull request includes several changes to the
PeptideIdentificationclass in the OpenMS project. The main focus is on modifying how the base name, which links to the underlying peak map, is handled. The most important changes include adding a new constant for the base name, updating the getter and setter methods for the base name, and modifying the relevant tests to ensure proper functionality.This value is mainly set from code that parses pepXML files.
Modifications to
PeptideIdentificationclass:src/openms/include/OpenMS/METADATA/PeptideIdentification.h: Changed the return type ofgetBaseNamefromconst String&toString. Removed thebase_name_member variable. [1] [2]src/openms/source/METADATA/PeptideIdentification.cpp: Updated thegetBaseNamemethod to retrieve the base name from meta values and thesetBaseNamemethod to store the base name as a meta value. [1] [2] [3] [4]Addition of new constant:
src/openms/include/OpenMS/CONCEPT/Constants.h: Added a new constantBASE_NAMEfor the base name user parameter.Test updates:
src/tests/class_tests/openms/source/PeptideIdentification_test.cpp: Added new test sections forgetBaseNameandsetBaseNameto ensure the base name is correctly handled as a meta value.Additional includes:
src/openms/source/METADATA/PeptideIdentification.cppandsrc/tests/class_tests/openms/source/PeptideIdentification_test.cpp: IncludedConstants.hto access the newBASE_NAMEconstant. [1] [2]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
Summary by CodeRabbit
New Features
Refactor
Tests