refactor(groupComparisonLiP): Use ptm_label_type and protein_label_type for groupComparisonPTM dependency#47
Conversation
…pe for groupComparisonPTM dependency
📝 WalkthroughWalkthroughRefactored Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@R/groupComparisonLiP.R`:
- Around line 95-108: The package calls groupComparisonPTM() with the
ptm_label_type and protein_label_type arguments (used in lines where
groupComparisonPTM is invoked), which require MSstatsPTM >= 2.12.0; update the
DESCRIPTION Imports entry for MSstatsPTM to "MSstatsPTM (>= 2.12.0)" so older
MSstatsPTM releases won't cause unused argument runtime errors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 70ae1018-7313-4f93-a4bd-b1b5269e259e
📒 Files selected for processing (1)
R/groupComparisonLiP.R
Motivation and Context
The refactor makes the internal call from groupComparisonLiP to MSstatsPTM::groupComparisonPTM explicit and more maintainable by passing all parameters as named arguments and by specifying label types for PTM and protein data. This clarifies that both PTM and protein data are label-free (ptm_label_type = "LF", protein_label_type = "LF") and reduces reliance on positional argument ordering when delegating to groupComparisonPTM.
Detailed Changes
R/groupComparisonLiP.R
DESCRIPTION
Unit Tests
Coding Guidelines Violations