Repository navigation
fixing of bug in msstats_tmt.R (Issue: Error in the msstats_tmt.R function parse_contrasts #577) - #578
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ 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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| if (length(unique(input$Label)) > 1) { | ||
| stop('** Cannnot generate all volcano plots in a screen. Please set one comparison at a time.') | ||
| stop("** Cannnot generate all volcano plots in a screen. Please set one comparison at a time.") | ||
| } | ||
| } else if (length(which.Comparison) > 1) { | ||
| stop( '** Cannnot generate multiple volcano plots in a screen. Please set one comparison at a time.' ) | ||
| stop("** Cannnot generate multiple volcano plots in a screen. Please set one comparison at a time.") | ||
| } |
There was a problem hiding this comment.
Suggestion: Fix typo in user errors
| if (length(unique(input$Label)) > 1) { | |
| stop('** Cannnot generate all volcano plots in a screen. Please set one comparison at a time.') | |
| stop("** Cannnot generate all volcano plots in a screen. Please set one comparison at a time.") | |
| } | |
| } else if (length(which.Comparison) > 1) { | |
| stop( '** Cannnot generate multiple volcano plots in a screen. Please set one comparison at a time.' ) | |
| stop("** Cannnot generate multiple volcano plots in a screen. Please set one comparison at a time.") | |
| } | |
| if (length(unique(input$Label)) > 1) { | |
| stop("** Cannot generate all volcano plots on screen. Please set one comparison at a time.") | |
| } | |
| } else if (length(which.Comparison) > 1) { | |
| stop("** Cannot generate multiple volcano plots on screen. Please set one comparison at a time.") | |
| } |
User description
PR checklist
nf-core pipelines lint).nextflow run . -profile test,docker --outdir <OUTDIR>).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).PR Type
Bug fix
Description
Fixed critical bug in contrast parsing logic
Corrected variable references in control condition handling
Applied consistent code formatting throughout R script
Diagram Walkthrough
File Walkthrough
msstats_tmt.R
Fix contrast parsing bug and code formattingbin/msstats_tmt.R
comparison[i]was incorrectly used instead ofcomparison[control]j vs. controlinstead ofi vs. j