add IsobaricWorkflow to TMT workflow#604
add IsobaricWorkflow to TMT workflow#604ypriverol merged 10 commits intobigbio:dev_IsobaricWorkflowfrom
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 ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
Co-authored-by: Julianus Pfeuffer <8102638+jpfeuffer@users.noreply.github.com>
|
This tool is not merged into dev yet. |
|
I merged it now. You still need new containers. |
|
I need to build the container, give me the weekend. |
Co-authored-by: Julianus Pfeuffer <8102638+jpfeuffer@users.noreply.github.com>
… into isobaric_workflow
Review Summary by QodoIntegrate IsobaricWorkflow into TMT quantification pipeline
WalkthroughsDescription• Replace TMT workflow with IsobaricWorkflow module • Simplify quantification pipeline by removing intermediate steps • Add IsobaricWorkflow configuration parameters • Update module configuration for result publishing Diagramflowchart LR
ID["ID subworkflow"]
ISO["ISOBARIC_WORKFLOW module"]
CONV["MSSTATS_CONVERTER module"]
MSSTATS["MSSTATS_TMT module"]
ID -- "id_results" --> ISO
ISO -- "consensusXML" --> CONV
CONV -- "msstats output" --> MSSTATS
File Changes1. conf/modules/modules.config
|
Code Review by Qodo
1. Wrong label type source
|
| -exp_design ${expdes} \\ | ||
| -type ${params.type} \\ | ||
| -inference_method ${params.protein_inference_method} \\ |
There was a problem hiding this comment.
1. Wrong label type source 🐞 Bug ≡ Correctness
ISOBARIC_WORKFLOW passes the IsobaricWorkflow “-type” argument from params.type (default itraq4plex), which is disconnected from the pipeline’s existing experiment label type (meta.labelling_type / params.labelling_type), so TMT runs can be processed with the wrong plex setting and yield incorrect quantification.
Agent Prompt
## Issue description
`ISOBARIC_WORKFLOW` passes `-type` from `params.type` (new, defaults to `itraq4plex`), but the pipeline already tracks the experiment label type as `labelling_type` (in `meta.labelling_type`, derived from SDRF or `params.labelling_type`). This can cause TMT experiments to run with the wrong `-type` value.
## Issue Context
- `meta.labelling_type` is the pipeline’s current source-of-truth for label type.
- `params.labelling_type` is already a top-level parameter.
- Introducing a separate `params.type` makes the behavior diverge from the rest of the pipeline.
## Fix Focus Areas
- modules/local/openms/isobaric_workflow/main.nf[41-57]
- workflows/tmt.nf[41-60]
- subworkflows/local/create_input_channel/main.nf[102-114]
- subworkflows/local/create_input_channel/main.nf[144-152]
- nextflow.config[69-75]
- nextflow.config[181-183]
## Suggested fix
1. Remove the new `params.type` (or at least stop using it).
2. Plumb the experiment’s labeling type into `ISOBARIC_WORKFLOW` and pass that to the tool:
- Option A (preferred): add a `val labelling_type` input to the `ISOBARIC_WORKFLOW` process and compute it in `workflows/tmt.nf` from `ch_file_preparation_results` metadata (e.g., extract `it[0].labelling_type`, ensure it’s unique, then pass it).
- Option B: use `params.labelling_type` if you also ensure it is populated for SDRF runs (currently SDRF sets `meta.labelling_type`, not necessarily `params.labelling_type`).
3. Update the IsobaricWorkflow invocation to `-type ${labelling_type}` (or `${meta.labelling_type}` if you decide to pass `meta`).
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
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).