Fix some issues in onsite#634
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 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 |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
There was a problem hiding this comment.
Pull request overview
This PR refactors the ONSITE module to improve code maintainability and fixes a YAML formatting issue. The changes consolidate repeated optional flag handling into a cleaner, DRY (Don't Repeat Yourself) implementation that also fixes a subtle bug where empty flag strings would create malformed command lines with unnecessary backslash continuations.
Key changes:
- Consolidated optional flags handling across all three algorithms (ascore, phosphors, lucxor) using
findAll { it }to filter empty strings - Fixed missing
output:section header in meta.yml that was causing improper YAML structure - Updated module dependency git_sha reference
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| modules/bigbio/onsite/main.nf | Refactored optional flags handling to consolidate repeated code patterns and fix potential issues with empty flag strings; simplified command execution formatting |
| modules/bigbio/onsite/meta.yml | Added missing output: section header to fix YAML structure |
| modules.json | Updated git_sha for onsite module dependency to latest version |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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, Enhancement
Description
Refactored optional flags handling in ONSITE module
Updated git_sha for onsite module dependency
Fixed meta.yml output section formatting
Diagram Walkthrough
File Walkthrough
modules.json
Update onsite module git_shamodules.json
git_shafor bigbio/onsite module frome4f16df2acb2c084a5043840212d0fb52f69fbbctoffe3c99ee867c4d7d6400f95d0b5658eccf16212main.nf
Refactor optional flags handling in algorithmsmodules/bigbio/onsite/main.nf
consolidating
add_decoys,compute_all_scores, anddebuginto singleoptional_flagsvariabledisable_split_by_charge,compute_all_scores, anddebugflagsremoving unnecessary backslash continuation
meta.yml
Fix meta.yml output section formattingmodules/bigbio/onsite/meta.yml
output:section header before meta output description