OpenMS
Loading...
Searching...
No Matches
DIAuditor

Quality metrics for data-independent acquisition (DIA) runs, per run and per isolation window.

This tool re-implements DIAuditor by David L. Tabb. It reads one or more mzML files and reports how each run was acquired: the MS1 sampling, the DIA isolation windows (count, m/z range, widths, ion mobility, how often each window was measured and how fast) and how ion current and peak counts are distributed over the run and over the windows. This helps to develop DIA methods and to recover the method of DIA data acquired elsewhere.

Inputs: mzML files are read spectrum by spectrum, so their size does not matter. Depending on the build, Thermo .raw files (the OpenMS Thermo reader, which needs a .NET 8 runtime) and Bruker timsTOF .d directories or .d.zip archives (diaPASEF frames are split into their isolation windows) can be given directly. These readers load a whole run into memory, so large runs need correspondingly much memory; converting them to mzML first avoids that. mzML spectra are used as they are stored, profile or centroided, which matters for the peak counts; .raw files are read with Thermo's peak picking, as FileConverter does by default. Values an input does not provide are NA, e.g. the mass resolving power (MS1Resolution, MassResolvingPower) for .d input, which has none, and for mzML from converters that do not write it (MS:1000800), such as ThermoRawFileParser.

MS2 spectra are grouped into isolation windows by the isolation window of their precursor (target m/z, lower and upper offset) and by their ion mobility settings (see ion_mobility): the FAIMS compensation voltage, and the ion mobility range of the window as it is written for diaPASEF frames ('ion mobility lower/upper limit', e.g. by msconvert –combineIonMobilitySpectra or the OpenMS timsTOF reader). These values are matched with an absolute tolerance of 1e-6 (as in OpenSWATH). TIMSCONVERT writes no ion mobility range of a window, only the ion mobility of each peak, so the windows of its diaPASEF output are told apart by m/z only. Windows are listed in the order in which they are first acquired. MS2 spectra without an isolation window (no precursor, or no isolation window offsets) are not a DIA isolation window: they are listed together in the last row of a run in out_windows, without m/z values, and left out of the window count and of all other window metrics. Spectra of MS level 3 and higher, and spectra without retention time, are counted but not assigned to windows.

Peak count quartiles are taken as in DIAuditor: the values at positions n/4, n/2 and n/4 + n/2 (integer division) of the n sorted counts.

The tool warns about data it cannot describe well: MS2 spectra that are single ion mobility scans (e.g. diaPASEF converted without combining the scans of a frame; every scan then counts as a measurement of its window), MS2 spectra with more than one isolation window (several precursor elements, as in multiplexed acquisition such as MSX; only the first window is used, so such data should be demultiplexed first), MS2 spectra with an ion mobility array but no ion mobility range of their window (with ion_mobility 'auto'), MS2 spectra without an isolation window, and runs without isolation windows or whose windows are mostly measured once (e.g. DDA).

Outputs (at least one is required)

  • out: one row per run, with the columns of DIAuditor's DIAuditor-byRun.tsv, followed by run-level MS2 statistics.
  • out_windows: one row per isolation window of each run, with the columns of DIAuditor's DIAuditor-byIsolationWindow.tsv (IonMobility is the FAIMS compensation voltage), followed by the ion mobility range of the window and the isolation target m/z. MS2 spectra without an isolation window follow in one row with NA m/z values.
  • out_mzqc: an mzQC file with one runQuality per run. It contains only metrics defined in the PSI-MS vocabulary (e.g. MS:4000190 to MS:4000199 for DIA), with the units the vocabulary defines. Per-window values are not part of it, because the vocabulary has no term for them. The DIA window metrics are written only for runs with isolation windows. MS:4000069 'm/z acquisition range' is the range of the precursor m/z values of the MSn spectra (as the vocabulary defines it); the run table's MZRangeMin/MZRangeMax is the m/z range the isolation windows cover.

In the tables, retention times are given in minutes, cycle times in seconds; values that are undefined (e.g. the cycle time of a window measured only once) are written as NA.

Differences to the original DIAuditor

  • Input files are given explicitly (in) instead of all mzML files in the current directory, and may also be Thermo .raw files or Bruker .d directories.
  • Scan start times are converted from any unit the mzML reader supports; DIAuditor treats times written in seconds as minutes.
  • A FAIMS compensation voltage is attributed to its own spectrum; DIAuditor can attribute the value of an MS1 spectrum to the MS2 spectrum before it.
  • Windows are also separated by their isolation offsets and by the ion mobility range of diaPASEF frames (unless ion_mobility is set to 'faims' or 'none'); DIAuditor uses the isolation target and the FAIMS voltage only.
  • Only MS2 spectra form windows; DIAuditor also puts MS3 and higher spectra into them.
  • MS2 spectra without an isolation window are not a window; DIAuditor puts them into a window at m/z 0, which also extends its m/z range down to 0.
  • Spectra without a 'total ion current' value get the sum of their intensities (see tic), and the instrument model is recognised from the whole PSI-MS vocabulary.
  • Values that define a window are matched with a tolerance of 1e-6; DIAuditor requires exact equality.
  • Medians of times (cycle times) are the usual median, i.e. the mean of the two middle values for an even count; DIAuditor takes the value at position n/2 of the n - 1 sorted time differences. MS1Resolution and a window's MassResolvingPower are the median over the respective spectra; DIAuditor takes the last MS1 spectrum and the first spectrum of the window.
  • The sum of intensities (see tic) is accumulated in double precision.
  • RTDuration is the retention time of the last spectrum of any MS level; DIAuditor uses the last MSn spectrum.
  • The column header 'IsolationWidowWidthMax' of DIAuditor is spelled 'IsolationWindowWidthMax'.
  • Runs and windows with very few spectra do not stop the tool; undefined values are reported as NA.
  • mzQC values follow the definitions and units of the vocabulary: e.g. the run duration is reported as MS:4000067 'MS run duration' (last minus first scan, in seconds), and each metric appears once per run.
  • Runs are labelled by their file name, which therefore has to be unique among the inputs.

The command line parameters of this tool are:

INI file documentation of this tool: