Repository navigation
removed features extract and idscoreswitcher - #554
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Pull Request Overview
This PR removes deprecated features and associated modules, streamlining the workflows by eliminating the extract_psm_features and id_score_switcher components while updating downstream processes accordingly.
- Removed the extract_psm_features process and its usage in multiple subworkflows.
- Replaced id_score_switcher calls with direct processing via ID_FILTER, introducing the use of dynamic score type values.
- Adjusted related module interfaces and input tuples to reflect these removals.
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| subworkflows/local/psm_rescoring/main.nf | Removed extract_psm_features include and branching; updated PSM_CLEAN call accordingly. |
| subworkflows/local/psm_fdr_control/main.nf | Eliminated id_score_switcher usage; transitioned to using ID_FILTER with a score type argument. |
| subworkflows/local/protein_inference/main.nf | Updated ID_FILTER call to include protein score filtering. |
| subworkflows/local/phospho_scoring/main.nf | Modified branching based on search engines and updated channel input for phospho scoring. |
| subworkflows/local/dda_id/main.nf | Removed extract_psm_features dependency; added conditional phospho localization handling. |
| modules/local/openms/percolator/main.nf | Removed the constant output “MS:1001491” from the output tuple. |
| modules/local/openms/id_filter/main.nf | Updated input tuple to include a score_type argument and modified the process script accordingly. |
| modules/local/openms/extract_psm_features/{meta.yml, main.nf} | Removed entirely as part of the feature extraction removal. |
| modules/local/openms/consensusid/main.nf | Adjusted input tuple to drop an unused parameter. |
Comments suppressed due to low confidence (2)
subworkflows/local/phospho_scoring/main.nf:16
- Verify whether the extra escaped quotes in the string literal for Channel.value are intentional, as they may lead to an incorrect score type being passed.
ID_SCORE_SWITCHER(ch_id_files.combine(Channel.value("\"Posterior Error Probability_score\"")))
modules/local/openms/percolator/main.nf:14
- Confirm that the removal of the constant value 'MS:1001491' from the output tuple does not affect downstream consumers that might rely on it.
tuple val(meta), path("*_perc.idXML"), emit: id_files_perc
|
Can you check if we can remove sage clean? |
|
Thanks @jpfeuffer. We use |
There was a problem hiding this comment.
Pull Request Overview
This PR removes the legacy EXTRACT_PSM_FEATURES and ID_SCORE_SWITCHER modules, introduces a new psm_clean flag, and updates downstream workflows and processes to use PSM_CLEAN, ID_FILTER, and updated input/output signatures throughout.
- Introduce
psm_cleanparameter and adjust PSM rescoring flow to usePSM_CLEANwhen set - Replace single-engine FDR switching with
ID_FILTER, update protein-level and phospho-scoring branches - Remove hardcoded CV term in Percolator output, add
-FDR:PSMoption, and clean up module configurations
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| subworkflows/local/psm_rescoring/main.nf | Drop EXTRACT_PSM_FEATURES branch, add psm_clean conditional and default passthrough |
| subworkflows/local/psm_fdr_control/main.nf | Remove ID_SCORE_SWITCHER, use ID_FILTER for single-engine control |
| subworkflows/local/protein_inference/main.nf | Add Channel.value("-score:type_protein q-value") to ID_FILTER call |
| subworkflows/local/phospho_scoring/main.nf | Refactor ID_SCORE_SWITCHER usage inside multi-engine guard, inline quoting tweak |
| subworkflows/local/dda_id/main.nf | Simplify PSM feature extraction, add optional PHOSPHO_SCORING branch |
| nextflow_schema.json | Add new boolean psm_clean parameter to schema |
| nextflow.config | Introduce default psm_clean parameter |
| modules/local/openms/percolator/main.nf | Remove val("MS:1001491") from PERCOLATOR output tuple |
| modules/local/openms/id_filter/main.nf | Update ID_FILTER to accept val(score_type) in inputs |
| modules/local/openms/false_discovery_rate/main.nf | Add -FDR:PSM ${params.run_fdr_cutoff} to process arguments |
| modules/local/openms/consensusid/main.nf | Drop unused qval_score input from CONSENSUSID |
| conf/modules/modules.config | Update withName patterns for FDR and ID_SCORE_SWITCHER processes |
Comments suppressed due to low confidence (2)
subworkflows/local/phospho_scoring/main.nf:16
- The string passed to
Channel.valueincludes escaped quotes, resulting in the literal"Posterior Error Probability_score"rather than the intended score type. Remove the extra quotes so the value isPosterior Error Probability_score.
ID_SCORE_SWITCHER(ch_id_files.combine(Channel.value("\"Posterior Error Probability_score\"")))
modules/local/openms/percolator/main.nf:14
- The
PERCOLATORprocess output tuple was changed from three elements to two by removingval("MS:1001491"). Downstream steps expecting the CV term will break. Please update downstream tuple unpacking or restore the missing CV value if still required.
tuple val(meta), path("*_perc.idXML"), emit: id_files_perc
| ch_id_files_feats = PSM_CLEAN.out.idxml | ||
| ch_software_versions = ch_software_versions.mix(PSM_CLEAN.out.versions) | ||
| } else { | ||
| ch_id_files_feats = ch_id_files |
There was a problem hiding this comment.
[nitpick] In the fallback branch where neither ms2rescore nor psm_clean is true, ch_software_versions is not updated. If version tracking is needed here, consider mixing in the original ID/XML producer’s versions or explicitly documenting that no new versions apply.
| ch_id_files_feats = ch_id_files | |
| ch_id_files_feats = ch_id_files | |
| ch_software_versions = ch_software_versions.mix(ch_file_preparation_results.versions) |
| } | ||
|
|
||
| withName: '.*:DDA_ID:ID_SCORE_SWITCHER' { | ||
| withName: '.*:DDA_ID:PHOSPHO_SCORING:ID_SCORE_SWITCHER' { |
There was a problem hiding this comment.
[nitpick] The regex pattern for ID_SCORE_SWITCHER is scoped only to the DDA_ID:PHOSPHO_SCORING context, which may not cover other invocation paths. Consider generalizing this pattern or adding additional blocks for other workflows if needed.
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).