Repository navigation
Pass correct flag to ProteinQuantifier - #581
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 WalkthroughUpdated the ProteinQuantifier process to pass "-consensus:fix_peptides" instead of "-fix_peptides" when params.fix_peptides is true. No other arguments or control flow were changed. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5–10 minutes Poem
✨ 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. Comment |
This PR is against the
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
modules/local/openms/protein_quantifier/main.nf (1)
29-45: Quote file paths to be robust to spaces.Safer to quote path expansions to avoid breakage when filenames contain spaces.
- -in ${epi_filt_resolve} \ - -design ${pro_quant_exp} \ - -out ${pro_quant_exp.baseName}_protein_openms.csv \ - ${export_mztab} \ - -peptide_out ${pro_quant_exp.baseName}_peptide_openms.csv \ + -in "${epi_filt_resolve}" \ + -design "${pro_quant_exp}" \ + -out "${pro_quant_exp.baseName}_protein_openms.csv" \ + ${export_mztab:+-mztab "${pro_quant_exp.baseName}_openms.mzTab"} \ + -peptide_out "${pro_quant_exp.baseName}_peptide_openms.csv" \
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
modules/local/openms/protein_quantifier/main.nf(1 hunks)
🔇 Additional comments (3)
modules/local/openms/protein_quantifier/main.nf (3)
25-25: Correct flag: use -consensus:fix_peptides (matches OpenMS CLI).OpenMS exposes this boolean under the consensus namespace; there is no top-level -fix_peptides flag. Change aligns with docs. (openms.de, openms.org)
24-27: Confirm semantics with top:N/include_all.fix_peptides interacts with top:N and -top:include_all (e.g., top:0 + fix_peptides => “peptides present in every sample”). Please confirm current defaults produce the intended behavior for your datasets. (openms.de)
29-45: No remaining-fix_peptidesreferences detected
Refined searches confirmed there are no literal uses of the deprecated-fix_peptidesflag elsewhere in the codebase.
|
@johnne can you do the PR against |
|
Thank you very much! You are absolutely correct. One question: why did you need to comment out the container for sdrf-parsing? |
|
Commenting out the sdrf-pipelines is not needed for this specifically. My intention was to make that change in another branch and use it for internal purposes only and I accidentally pushed it to devel instead. Commenting it out was to use a personal fork that fixed another issue with sdrf-pipelines (See bigbio/sdrf-pipelines#237) |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes an incorrect parameter flag format for the fix_peptides parameter in the ProteinQuantifier module. The change corrects the flag from -fix_peptides to -consensus:fix_peptides to match the expected OpenMS tool parameter format.
- Update parameter flag format to use proper OpenMS consensus namespace
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Thanks @johnne for changing the PR to dev. Let's wait for the tests to happen. |
|
Looks like everything is good, then I will go and merge. Thanks @johnne for your contribution, and I hope this one is a first in multiple ones, welcome to #quantms project. |
User description
This PR modifies how the
fix_peptidesparameter is passed toProteinQuantifier.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
Fix incorrect flag format for
fix_peptidesparameter in ProteinQuantifierChange from
-fix_peptidesto-consensus:fix_peptidesDiagram Walkthrough
File Walkthrough
main.nf
Fix parameter flag format for consensusmodules/local/openms/protein_quantifier/main.nf
fix_peptidesparameter flag from-fix_peptidesto-consensus:fix_peptides