Repository navigation
Description
Description of feature
Hi quantms team! I'm Chunxu, a Research Assistant in the Isoform Analysis Group at DTU HealthTech. We're using quantms for isoform-level proteomics analysis and I really like this fantastic and well-maintainted tool! :) Now we are looking to scale up to larger cohorts, which led us to profile where wall-clock time actually goes.
The bottleneck: In our own timing breakdown of a 96-file LFQ run, ProteomicsLFQ was the single largest non-parallelized cost — it does real per-file work (feature detection, mzML reloading) for every input file, but inside one serial process, unlike the per-file search/rescoring steps upstream which Nextflow already parallelizes across tasks. Looking at modules/local/openms/proteomicslfq/main.nf on master, this is because it joins every file into one invocation: -in ${mzml_sorted.join(' ')} -ids ${id_sorted.join(' ')}
Potential opportunity: I was trying to figure out if it's possible to parallelize then found out OpenMS 3.6.0 (released Sept 30) added exactly the mechanism needed to split this, via PR #9989 ("resumable and distributable feature detection via -feat_dir"), merged Aug 29 into develop. It adds:
▎ - -detect_only : run per-file feature detection as an independent invocation, one per raw file
▎ - -feat_dir: a checkpoint directory those per-file runs write into
▎ - A final combination invocation with no -in/-ids at all just -design, -fasta, and -feat_dir — that reads the checkpoints and does alignment/linking/protein inference/quantification across the whole study
I have to say I'm new to this area and not quite familiar with the Nextflow, but it seems like a close match for exactly what a Nextflow-based pipeline wants: one -detect_only task per file (parallel, like the existing search/rescoring steps), then one lightweight combination task. Ideally it will saves lots of compute time at this step.
I would appreciate if you could look into and assess the feasibility when you have time. Happy to help test this against our own dataset once there's something to try, or to discuss the design if useful. :)
Activity
jpfeuffer commentedon Oct 7, 2026
Hi!
Yes, this should now be possible with the current version of OpenMS. OpenMS/OpenMS#9989
There are a lot of optimizations that could be done with the newest version. We plan to do a larger overhaul with the new features in the near future.
But we are also happy to accept a PR (even AI-supported if tested locally) from you if you want to dive in right now.
jpfeuffer commentedon Oct 7, 2026
And I think your intutition is right. That is roughly what the workflow would need to do.
Here another summary of what an LLM suggested:
How the split works
-designstill lists every run. When-inis given, the code filters the design down to those basenames (design_.filterByBasenames) and warns about the rows it dropped. The tests do this:detect_atakes 3 runs anddetect_btakes the other 3, both with the full design.<mzML stem>_fg<FractionGroup>_f<Fraction>.featureParquet. Because it comes from the design row and not from the task, different tasks never collide on a name, and the final combine finds each run by that name.-in[i]with-ids[i]. The lists must be the same length and are matched by file basename.Granularity options
-in a.mzML -ids a.idXML. In Nextflow it is simplymzml_ids_ch.map { ... }into a-detect_onlyprocess.-threadsapplies within a run.Duplicate or overlapping assignments are safe
What you do need to guarantee
.collect()before the final process.-in, the combine run uses the whole design as its roster. To combine a subset, pass a reduced-design. This changes the design row only if you also change the fraction group, sample or fraction values, so keep those values unchanged.jpfeuffer commentedon Oct 7, 2026
Note that in the final step they will still need to be merged and refined, therefore I think the overall peak RAM usage will not decrease significantly for the final merging step if that was expected.
chunxubioinfor commentedon Oct 8, 2026
Yes @jpfeuffer ! I'll give a try! Thank you again for your quick and super detailed answers! ❤️
feat: direct vendor input, ProSE default search, in-process Percolato…