OpenMS
Loading...
Searching...
No Matches
ProteomicsLFQ

Performs label-free quantification of peptides and proteins.

Input:

  • Spectra in mzML format, Bruker .d directories (TimsTOF PASEF) or Thermo .raw files (read as acquired, without vendor peak picking; see Vendor formats)
  • Identifications in idXML or mzIdentML format with posterior error probabilities as score type. To generate those we suggest to run:

    1. PeptideIndexer to annotate target and decoy information.
    2. PSMFeatureExtractor to annotate percolator features.
    3. PercolatorAdapter tool (score_type = 'q-value', -post_processing_tdc)
    4. IDFilter (pep:score = 0.01) to filter PSMs at 1% FDR

    Exactly one identification run per ID file is required, and merged ID runs are not supported. One identification per spectrum is expected as well: ProteomicsLFQ measures one value per (spectrum, peptidoform, charge), so where several identifications of one spectrum agree on all three, only the best-scoring one is kept and the reduction is reported. The others would otherwise count the same measurement more than once, in the PSM-level FDR and in every output. Results from several search engines must therefore be combined - with ConsensusID (-algorithm best -keep_old_scores, which preserves each engine's score) - rather than simply concatenated. Identifications of one spectrum that name different peptidoforms are left alone: a chimeric spectrum yields two distinct measurements.

  • An experimental design file:
    (see ExperimentalDesign for details)
  • A protein database in with appended decoy sequences in FASTA format
    (e.g., generated by the OpenMS DecoyDatabase tool)
    Processing:
    ProteomicsLFQ has different methods to extract features: ID-based (targeted only), or both ID-based and untargeted.
  1. The first method uses targeted feature dectection using RT and m/z information derived from identification data to extract features. Note: only identifications found in a particular MS run are used to extract features in the same run. No transfer of IDs (match between runs) is performed.
  2. The second method adds untargeted feature detection to obtain quantities from unidentified features. Transfer of Ids (match between runs) is performed by transfering feature identifications to coeluting, unidentified features with similar mass and RT in other runs.

Match between runs with PIP-ECHO (-pip_echo true):
By default, the second method links the features across runs by QT clustering on their RT and m/z (Linking:*), without estimating the error rate of the transferred identifications. With -pip_echo true, PIP-ECHO links the features instead and controls the false discovery rate of the transfers. Decoy transfers, which look for a peptide at the retention time of an unrelated peptide, estimate the error rate. A support vector machine scores each transfer (on intensity, mass error, RT agreement, isotope envelope and, if every run has ion mobility data, ion mobility), and the transfers up to PipEcho:fdr (default 0.05) are kept. -pip_echo requires -targeted_only false (the default).

  • The RT window in which a transfer is searched is local by default: for each peptide, it is predicted from nearby peptides identified in both runs and sized from their RT scatter (PipEcho:local_rt:*), and it is widened if there are too few decoys to resolve the FDR. PipEcho:local_rt:enabled false uses one global window instead, which ProteomicsLFQ sizes from the alignment error and the chromatographic peak width.
  • If there are fewer decoy transfers than PipEcho:min_decoys (default 20), or too few to resolve the requested FDR, no transfer is kept, and only the direct identifications remain. PipEcho:fdr 1.0 keeps all transfers.
  • PipEcho:random_seed selects the decoys; with the same seed (default 0), results are reproducible.
  • PipEcho:max_training_points limits how many transfers the support vector machine is trained on in each cross-validation fold (default 50000, 0 = no limit), which bounds the run time on large data sets. All transfers are scored.

Resuming and distributing feature detection (-feat_dir):
Feature detection is the expensive part of the workflow and each MS run is detected independently of every other; alignment, linking, inference and quantification need all runs at once. -feat_dir names a directory of per-run feature checkpoints and applies one rule to every row of the experimental design: reuse its checkpoint if a valid one is there, otherwise detect the run from -in / -ids and write one, otherwise fail.

Everything follows from that rule:

// one machine, resumable -- interrupt it, run it again, it continues
ProteomicsLFQ -design d.tsv -in *.mzML -ids *.idXML -fasta db.fasta -feat_dir ckpt/ -out r.mzTab
// many machines: one detect-only invocation per run, in any order, no coordination
ProteomicsLFQ -design d.tsv -in a.mzML -ids a.idXML -fasta db.fasta -feat_dir ckpt/ -detect_only
// then combine, reading no mzML, no idXML and no run-level FASTA content at all
ProteomicsLFQ -design d.tsv -fasta db.fasta -feat_dir ckpt/ -out r.mzTab
if none is it is fetched and built automatically from source via CMake FetchContent Adds< code > ProteomicsLFQ
Definition common-cmake-parameters.doxygen:76

A checkpoint records the parameters, OpenMS build, experimental-design row and input files it was produced from, and is refused if any of those disagree with the run trying to use it - naming the setting that differs. This is what makes reuse safe rather than merely convenient: nothing else would stop half a study being detected with one setting and half with another. There is no way to combine checkpoints that disagree: -force_recompute detects the affected runs again and rewrites their checkpoints.

-feat_dir requires an explicit -design (a generated one would label every separately detected run as the first) and -fasta (a checkpoint has to carry the peptide-indexing results, which a combining run cannot reconstruct), and does not apply to spectral_counting.

Note on scale: the combining step holds every run's features of a fraction in memory at once, so its ceiling is set by features per run rather than by run count. Measured on a 7-run dataset averaging about 10,000 features per run, the marginal cost is roughly 2 kB per feature plus 10 MB per run, so 200 such runs in one fraction need about 9 GB; a deep-proteome experiment at ~60,000 features per run would need several times that.

FAIMS (Field Asymmetric Ion Mobility Spectrometry):
FAIMS data is automatically detected based on compensation voltage (CV) annotations in the mzML file. The data is split by CV and processed separately for each voltage group during feature detection. Features representing the same analyte detected at different CV values are merged automatically. The merged features are then aligned and linked across runs based on RT and m/z. No special preparation of the input mzML file is required.

Bruker .d (TimsTOF PASEF):
Bruker .d directories containing DDA-PASEF data are supported directly. When .d input is detected, the tool automatically:

  • Skips centroiding (PeakPickerHiRes) to preserve per-peak ion mobility data
  • Skips precursor mass correction (not IM-aware)
  • Forces Biosaur2Algorithm for seed generation (FeatureFinderMultiplex does not support IM_PEAK)
  • Estimates chromatographic FWHM from Biosaur2 feature extents Identification files should be generated with SageAdapter, which annotates ion mobility values in the idXML output. FeatureFinderIdentificationAlgorithm uses these IM annotations for targeted 2D chromatogram extraction (m/z + IM windowing). MS1 frames are IM-centroided during loading using BrukerTimsFile's built-in Sage algorithm, collapsing ~245k raw peaks/frame into ~10k centroided peaks with summed intensity. Biosaur2 defaults are tuned for ProteomicsLFQ (mini=500, minlh=3, pasefminlh=2). On HeLa 50ng 5-min timsTOF gradient: 34k seeds, 80% model fit success, 2,809 peptides quantified (Spearman r=0.62 vs Sage LFQ), 75s runtime, 1.3 GB memory.

Normalization:

  • ProteomicsLFQ does NOT normalize. Every output - mzTab, consensusXML, QPX Parquet and MSstats - reports the same un-normalized abundances, whatever combination of output files is requested. Earlier versions applied median scaling to the consensus features unless -out_msstats was given, which made the meaning of an intensity depend on which other output file happened to be requested, and recorded nothing about the transform in any of them.
  • Choosing a normalization is a separate, explicit step. Three routes, in increasing distance from this tool:
    • ConsensusMapNormalizer on -out_cxml (median, quantile, robust regression or thresholded scaling);
    • the ProteinQuantification:consensus:normalize parameter, which scales peptide abundances so that the median of each (fraction group, label) assay matches the overall median - i.e. it normalizes at the assay level rather than per fraction;
    • the downstream tool itself. MSstats and comparable consumers normalize their input by design.

Output (at least one required; each output is optional individually):

  • mzTab file with analysis results (out)
  • MSstats file with analysis results for statistical downstream analysis in MSstats (out_msstats)
  • consensusXML file for visualization and further processing in OpenMS (out_cxml)
  • QPX Parquet collection (out_qpx)

The command line parameters of this tool are:

INI file documentation of this tool: