Skip to content

Conversation

daichengxin
Copy link
Collaborator

@daichengxin daichengxin commented Sep 14, 2025

User description

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the bigbio/quantms branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

PR Type

Bug fix


Description

  • Remove hardcoded qval_score parameter from ID_RIPPER module

  • Fix channel mapping in rescoring workflows

  • Simplify data flow by removing unnecessary score parameter


Diagram Walkthrough

flowchart LR
  A["ID_RIPPER module"] --> B["Remove qval_score input/output"]
  B --> C["Update channel mapping"]
  C --> D["Fix DDA_ID workflow"]
  C --> E["Fix PSM_RESCORING workflow"]
Loading

File Walkthrough

Relevant files
Bug fix
main.nf
Remove qval_score parameter from ID_RIPPER                             

modules/local/openms/id_ripper/main.nf

  • Remove qval_score parameter from input tuple
  • Remove qval_score output emission
  • Simplify module interface
+1/-2     
main.nf
Fix channel mapping in DDA_ID workflow                                     

subworkflows/local/dda_id/main.nf

  • Remove hardcoded "MS:1001491" from channel mapping
  • Fix tuple structure in consensus input channel
  • Apply changes to both rescoring range conditions
+2/-2     
main.nf
Fix channel mapping in PSM_RESCORING workflow                       

subworkflows/local/psm_rescoring/main.nf

  • Remove hardcoded "MS:1001491" from channel mapping
  • Fix tuple structure in consensus input channel
  • Apply changes to both rescoring range conditions
+2/-2     

Copy link
Contributor

coderabbitai bot commented Sep 14, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Interface Change

The ID_RIPPER input tuple now expects only (meta, id_file). Validate that upstream channels (e.g., PERCOLATOR outputs) provide exactly two elements to avoid arity mismatches at runtime.

tuple val(meta), path(id_file)
Channel Tuple Shape

ch_consensus_input now carries two items ([meta, id_file]). Confirm that all downstream consumers in DDA_ID expect a pair and not the previous triple, across all branches of the workflow.

.map{ [it[1], it[2]]}
.set{ ch_consensus_input }
Channel Tuple Shape

ch_consensus_input was reduced to two items. Ensure any subsequent processes in PSM_RESCORING that consume this channel are updated accordingly.

.map{ [it[1], it[2]]}
.set{ ch_consensus_input }

Copy link

PR Code Suggestions ✨

No code suggestions found for the PR.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes bugs related to channel mapping and parameter handling in the rescoring workflows. The changes remove a hardcoded qval_score parameter that was causing issues in the data flow between modules.

  • Remove hardcoded qval_score parameter from ID_RIPPER module interface
  • Fix channel mapping by removing hardcoded "MS:1001491" score parameter from consensus input channels
  • Simplify data flow in both DDA_ID and PSM_RESCORING workflows

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
modules/local/openms/id_ripper/main.nf Removes qval_score parameter from input/output to simplify module interface
subworkflows/local/dda_id/main.nf Fixes channel mapping by removing hardcoded score parameter in both rescoring conditions
subworkflows/local/psm_rescoring/main.nf Fixes channel mapping by removing hardcoded score parameter in both rescoring conditions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ypriverol ypriverol requested a review from jpfeuffer September 14, 2025 19:36
@ypriverol ypriverol merged commit d6176ac into bigbio:dev Sep 15, 2025
31 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants