fix(msstats+): Fix lookup of protein IDs for profile plots#136
fix(msstats+): Fix lookup of protein IDs for profile plots#136tonywu1999 merged 4 commits intodevelfrom
Conversation
WalkthroughReplaced protein-choice source in QC server UI to use Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
|
Failed to generate code suggestions for PR |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/testthat/test-utils.R (1)
995-995: Tests now correctly drive the TMP summarization path in QC flowsSetting
mock_input$summaryMethod = "TMP"in these preprocessData QC tests matches the updated summarization behavior and the documented example; the stubbing pattern remains sound.If you want stronger regression protection later, you could additionally assert that the returned QC object’s
SummaryMethod(where present) is actually"TMP", not just that the name exists.Also applies to: 1026-1026, 1087-1087
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
R/main_calculations.R(1 hunks)man/lf_summarization_loop.Rd(1 hunks)tests/testthat/test-utils.R(5 hunks)
✅ Files skipped from review due to trivial changes (1)
- R/main_calculations.R
🔇 Additional comments (2)
man/lf_summarization_loop.Rd (1)
50-50: Doc example correctly exposessummaryMethodusageAdding
qc_input$summaryMethod = "TMP"to the example keeps docs in sync with the QC pipeline and tests; no issues spotted.tests/testthat/test-utils.R (1)
1221-1221: dataComparison tests consistently aligned with TMP summary methodUsing
mock_input$summaryMethod = "TMP"in these dataComparison tests keeps the modeling flows consistent with the updated label-free summarization method; no functional or mocking issues detected.Also applies to: 1325-1325
Fix: Replace index-based column lookup with name-based lookup
Processing the run order file reorders the in-memory data, shifting the 'ProteinName' column. The dropdown logic relied on a fixed index, leading to data mismatches.
Updated the code to target the column by name ('ProteinName') to ensure stability regardless of column order.
Summary by CodeRabbit
Bug Fixes
Documentation
Tests
✏️ Tip: You can customize this high-level summary in your review settings.