OpenMS
Loading...
Searching...
No Matches
OpenSwathWorkflow

Complete workflow to run OpenSWATH.

This implements the OpenSWATH workflow as described in Rost and Rosenberger et al. (Nature Biotechnology, 2014) and provides a complete, integrated analysis tool without the need to run multiple tools consecutively. See also http://openswath.org/ for additional documentation.

It executes the following steps in order, which is implemented in OpenSwathWorkflow:

  • Reading of input SRM/MRM/PRM/DIA(PASEF) mzML files or Bruker .d (TDF) directories (requires WITH_OPENTIMS)
  • Computing the retention time transformation, mass-to-charge and ion mobility correction using calibrant peptides
  • Reading of the transition list
  • Extracting the specified transitions
  • Scoring the peak groups in the extracted ion chromatograms (XIC)
  • Reporting the peak groups and the chromatograms

See below or have a look at the INI file (via "OpenSwathWorkflow -write_ini myini.ini") for available parameters and more functionality.

Input

DIA (including diaPASEF)

DIA data (commonly referred to as SWATH) can be provided as full-scan mzML files produced by the instrument. In single-file mode the tool expects the acquisition to contain consistent cycles of MS1 and MS2 spectra (for example: MS1, MS2 [400-425], MS2 [425-450], MS1, MS2 [400-425], MS2 [425-450]). Each MS2 window is identified by its isolation lower/upper bounds. OpenSwathWorkflow will attempt to read the SWATH windows from the file; if this is not possible please supply a tab-separated SWATH windows file via the -swath_windows_file parameter. Note: extraction windows must not overlap — overlapping windows lead to peptides being extracted from more than one window and produce ambiguous assignments.

Split-file input is supported via the -split_file_input flag: in this mode each SWATH window (and optionally the MS1 map) may be provided as a separate mzML file (n+1 files). This is useful for very large datasets or when the instrument exports individual window files.

Since files can be large, it is recommended to avoid loading whole datasets into memory; use the -readOptions (for example cacheWorkingInMemory) to cache or reduce data in advance.

Bruker .d (diaPASEF, requires WITH_OPENTIMS)

Bruker TimsTOF .d directories containing DIA-PASEF data can be passed directly without prior mzML conversion when OpenMS is built with the WITH_OPENTIMS option. The tool automatically discovers SWATH windows from the TDF metadata and partitions spectra accordingly. Ion mobility lower/upper limits are attached as spectrum meta values so that PASEF windows sharing the same m/z range but differing in ion mobility are correctly distinguished.

PRM

PRM (parallel reaction monitoring) is a targeted MS2 acquisition mode. PRM data typically contains MS2 traces targeted to specific precursors and may have windows that overlap or differ in ordering from classic SWATH runs. When analyzing PRM-like data consider using the -matching_window_only option to restrict extraction to the best-matching window for each assay. PRM datasets can be provided as single-file mzMLs or as split files as described above.

SRM / MRM (targeted chromatogram input)

SRM/MRM are supported as targeted chromatogram input. These inputs often consist of chromatogram-only mzMLfiles (exported XICs) rather than full spectra. The targeted data loader in OpenMS will read chromatogram-only mzMLs and attempt to map chromatograms to assays using the supplied transition list. When providing pre-extracted chromatograms, note that MS1 extraction (-enable_ms1) does not apply — the tool will operate on the supplied chromatograms and use the mapping logic to associate traces with transitions.

The assay library (transition list) is provided through the -tr parameter and can be in one of the following formats:

  • OpenSWATH PQP SQLite files (Recommended)
  • OpenSWATH TSV transition lists
  • OpenSWATH Parquet library (.oswpq)
  • TraML
  • SpectraST MRM transition lists
  • Skyline transition lists
  • Spectronaut transition lists

Parameters

The current parameters are optimized for 2 hour gradients on SCIEX 5600 / 6600 TripleTOF instruments with a peak width of around 30 seconds using iRT peptides. If your chromatography differs, please consider adjusting -Scoring:TransitionGroupPicker:min_peak_width to allow for smaller or larger peaks and adjust the -rt_extraction_window to use a different extraction window for the retention time. In m/z domain, consider adjusting -mz_extraction_window to your instrument resolution, which can be in Th or ppm.

Furthermore, if you wish to use MS1 information, use the -enable_ms1 flag and provide an MS1 map in addition to the SWATH data.

If you encounter issues with peak picking, try to disable peak filtering by setting -Scoring:TransitionGroupPicker:compute_peak_quality false which will disable the filtering of peaks by chromatographic quality. Furthermore, you can adjust the smoothing parameters for the peak picking, by adjusting -Scoring:TransitionGroupPicker:PeakPickerChromatogram:sgolay_frame_length or using a Gaussian smoothing based on your estimated peak width. Adjusting the signal to noise threshold will make the peaks wider or smaller.

Output: Feature list, chromatograms, and ion mobilograms

The output of the OpenSwathWorkflow is a feature list, either as FeatureXML, a OpenSWATH SQLite file, or an OpenSWATH Parquet output (use -out_features) while the SQLite output is more memory friendly and can be directly used as input to other tools such as pyProphet (a Python re-implementation of mProphet) software tool, see Reiter et al (2011, Nature Methods). If you analyze large datasets, it is recommended to only use the OSWFile format. For downstream analysis (e.g. using pyProphet) the OSWFile format is recommended.

In addition, the extracted chromatograms can be written out using the -out_chrom parameter.

When processing ion mobility (diaPASEF) data, the extracted ion mobilograms (XIMs) can optionally be saved to a Parquet file using the -out_mobilogram parameter. The output file must have the .xim extension. The resulting file can be read back using the XIMParquetFile class.

Feature list output format

For more information on the feature tables in the OpenSWATH SQLite file output, see the OpenSwathOSWWriter class.

Execution flow:

The overall execution flow for this tool is implemented in OpenSwathWorkflow.

The command line parameters of this tool are:

INI file documentation of this tool: