Repository navigation
Description
Checked against dev @ 149493c.
While tracing how multi-engine results are combined (for OpenMS#9871) I found that the
ConsensusID / IDMerger / PSMFeatureExtractor steps are gone from the workflow but their
modules, parameters, config selectors and docs are all still in the repo. The docs part is the
one that actually costs something — see the last section.
1. Modules included by nothing
Collected every include { … } from '…' across all .nf files and diffed against
find modules -name main.nf. These five are on disk but referenced by no workflow or
subworkflow:
| module | tool |
|---|---|
modules/local/openms/id_merger |
IDMerger |
modules/local/openms/file_merge |
FileMerger |
modules/local/openms/index_peptides |
PeptideIndexer |
modules/local/preprocess_expdesign |
— |
modules/nf-core/multiqc |
superseded by modules/local/pmultiqc |
2. Parameters declared but never read
Declared in nextflow.config, referenced by no .nf file:
| param | nextflow.config |
in nextflow_schema.json? |
|---|---|---|
consensusid_algorithm |
:141 |
yes |
min_consensus_support |
:142 |
yes |
consensusid_considered_top_hits |
:143 |
yes |
consensusid_debug |
:46 |
yes |
extractpsmfeature_debug |
:40 |
yes |
idmerger_debug |
— | no |
indexpeptides_debug |
— | no |
The five that are in the schema show up in --help and on the pipeline's parameter page, so a
user can set --consensusid_algorithm PEPMatrix today and nothing happens — no warning, no
effect.
ConsensusID itself is no longer run at all: subworkflows/local/id/main.nf:39 sets
ch_consensus_results = channel.empty() and never fills it.
3. Stale process selectors
conf/modules/verbose_modules.config:79 and :87 carry withName: '.*:CONSENSUSID' and
withName: '.*.FDR_CONSENSUSID:*' for processes that no longer exist.
4. Docs describe an algorithm that is not run
This is the one worth fixing first.
docs/output.md:20:
- If multiple search engines were chosen, the results are combined with OpenMS' ConsensusID
That is no longer how it works. Multi-engine results are combined by quantms-rescoring's
psm_feature_clean, which merges on spectrum_reference + peptidoform
(quantmsrescore/idparquet_reader.py:467, a dict key — a second engine updates the record
rather than appending) and builds a union Percolator feature table with worst-case imputation
and engine-source indicators. Percolator then rescores. ConsensusID is not involved.
docs/output.md:138-139 also still document consensusid/ and fdr_consensusid/ output
directories that are never produced.
Why it matters beyond tidiness: OpenMS#9871 was filed against ProteomicsLFQ -out_qpx
diagnosing "one PSM row per search engine". Tracing it showed the pipeline cannot produce that
shape — the Python merge collapses agreeing engines to one PSM, Percolator's
--post-processing-tdc keeps one match per scan, and applyPostFilters_ with
run_fdr_cutoff = 0.10 deletes the rest. The documented ConsensusID step is a plausible-looking
explanation for a symptom it cannot cause, and it sent the diagnosis down the wrong path.
Suggestion
Delete 1–3, and update docs/output.md to describe the psm_feature_clean + Percolator merge.
If any of the modules are staged for a workflow that is coming back, a one-line comment saying so
would be enough.
Happy to open a PR for the deletions and the docs update if that is useful — say the word and
whether you want the modules removed or kept with a note.
Activity