Vendor Formats¶
OpenMS reads three vendor formats directly, without a conversion to mzML first: Thermo
Fisher .raw files, Bruker timsTOF .d directories and SCIEX TripleTOF SWATH .wiff files. The
OpenMS installers and the pyOpenMS wheels include these readers. For all other vendor formats,
convert the data to mzML first, for example with ProteoWizard’s msconvert.
Thermo Fisher .raw¶
OpenMS reads .raw files with Thermo’s RawFileReader library, which runs on .NET. It needs
the .NET 8 runtime (or newer). How to install it, and how to point OpenMS to a runtime in a
non-standard location with DOTNET_ROOT, is described in Reading Thermo Fisher RAW files on
the installation page for Linux,
macOS and
Windows.
RawFileReader reading tool. Copyright © 2016 by Thermo Fisher Scientific, Inc. All rights reserved.
Converting with FileConverter¶
FileConverter
converts .raw files with one of two readers, chosen with -RawToMzML:reader:
|
|
|
|---|---|---|
Default on |
Linux and macOS |
Windows |
Reader |
built into OpenMS |
ThermoRawFileParser, run as a separate program |
Needs |
.NET 8 |
on Windows the .NET Framework that Windows includes; on Linux and macOS mono, which the OpenMS packages do not include |
Output |
every format FileConverter writes |
mzML only |
The Windows installer puts ThermoRawFileParser on the PATH, so the external reader works
there without further setup. Elsewhere, give its location with -RawToMzML:ThermoRaw_executable
and the mono executable with -RawToMzML:NET_executable.
Both readers apply Thermo’s peak picking by default, so the output holds centroided spectra.
-RawToMzML:no_peak_picking keeps the spectra as they were acquired, and
-RawToMzML:include_noise adds the noise data.
FileConverter -in sample.raw -out sample.mzML
Reading .raw in other tools¶
These tools also accept .raw files as input:
CometAdapter, FeatureFinderCentroided, FeatureFinderIdentification, FeatureFinderLFQ,
FeatureFinderMetabo, FeatureFinderMetaboIdent, FeatureFinderMultiplex, FLASHDeconv,
IsobaricAnalyzer, MassTraceExtractor, MetaboliteSpectralMatcher, MS1LabeledWorkflow,
NucleicAcidSearchEngine, OpenPepXL, OpenSwathPeakMapExtractor, OpenSwathWorkflow, ProSE,
ProteomicsLFQ, SageAdapter and SimpleSearchEngine.
They read with the built-in reader, on every platform, so they need the .NET 8 runtime on
Windows as well. Like FileConverter, they apply Thermo’s peak picking, so they process
centroided spectra. To process the spectra as they were acquired, which for most Orbitrap
methods means profile MS1 spectra, convert the .raw file with
FileConverter -RawToMzML:no_peak_picking first and use the mzML.
Note
OpenNuXL also accepts .raw files. It converts them with ThermoRawFileParser, like the
external reader of FileConverter, so on Linux and macOS it needs mono.
Bruker timsTOF .d¶
OpenMS reads the .d directories of timsTOF instruments (TDF format, with an analysis.tdf
file) with the opentims library. A .d directory
packed into a ZIP archive (.d.zip) can be given instead; it is unpacked into a temporary
directory while the tool runs, so that directory needs space for the unpacked data.
Other Bruker data in .d directories cannot be read, and the tools say so: TSF data
(analysis.tsf, timsTOF without ion mobility separation, e.g. most MALDI imaging runs), BAF
data (analysis.baf, QTOF instruments), and TDF data of early timsTOF software whose frames
are not zstd-compressed. Convert such runs to mzML with another tool first.
Bruker’s SDK is not needed: OpenMS computes m/z and ion mobility (1/K0) from the calibration
stored in the file. If Bruker’s SDK library (timsdata.dll or libtimsdata.so) is
installed, set the environment variable OPENMS_BRUKER_SDK_PATH to the library’s path to
convert ion mobility with Bruker’s own code instead.
These tools accept .d and .d.zip input:
CometAdapter, FeatureFinderIdentification, FeatureFinderLFQ, FeatureFinderMetaboIdent,
FileConverter, IonMobilityBinning, MetaboliteSpectralMatcher, NucleicAcidSearchEngine,
OpenSwathPeakMapExtractor, OpenSwathWorkflow, PeakPickerIM, ProSE, ProteomicsLFQ,
SageAdapter, SimpleSearchEngine and TransitionListEvidenceFilter.
The acquisition type is detected from the file:
DDA-PASEF: one MS1 spectrum per frame, which stores the ion mobility of every peak, and one MS2 spectrum per precursor with a single ion mobility value.
DIA-PASEF: MS1 as above, and one MS2 spectrum per frame and isolation window, which stores the ion mobility of every peak.
Without PASEF precursors or isolation windows (e.g. MS1-only MALDI runs): MS1 as above.
MALDI imaging runs (.d or .d.zip) are not read by these tools: as a list of spectra they
would lose their pixel positions. (Only PeakPickerIM, which reads raw frames by default, reads
their frames, without the positions.) In the library and in pyOpenMS,
FileHandler::loadImagingExperiment loads them into an MSImagingExperiment.
FileConverter, CometAdapter and PeakPickerIM have bruker: options to change this, for
example -bruker:export_mode to force the per-precursor layout (spectrum) or raw frames
(frame). FileConverter can also skip the MS1 or the MS2 spectra (-bruker:load_ms1 false,
-bruker:load_ms2 false),
recalibrate m/z, aggregate neighbouring frames and centroid along the ion mobility axis; see
its documentation. ProteomicsLFQ
centroids the MS1 frames along the ion mobility axis before feature detection. The other
tools read with the default settings.
To convert a .d directory to mzML:
FileConverter -in sample.d -out sample.mzML
A whole run in memory takes a multiple of the size of the .d directory. With
-process_lowmemory FileConverter writes the spectra as it reads them, and gives the same
mzML file:
FileConverter -in sample.d -out sample.mzML -process_lowmemory
This works for cachedMzML output (-out sample.cachedMzML) as well.
SCIEX .wiff (TripleTOF SWATH)¶
OpenMS reads the .wiff files of SCIEX TripleTOF instruments that were acquired in SWATH (DIA)
mode. The reader is a port of the one of the andes project and
needs no SCIEX software or runtime. The spectra are stored in a second file, the .wiff.scan,
which must lie next to the .wiff file under the same name (sample.wiff and
sample.wiff.scan). Give the .wiff file to the tools.
These tools accept .wiff input:
DIAuditor, FileConverter, OpenSwathPeakMapExtractor, OpenSwathWorkflow and
TransitionListEvidenceFilter.
The run is read as MS1 and SWATH MS2 spectra in acquisition order. The precursor of each MS2
spectrum is the centre of its SWATH window, with the isolation window as it was acquired, and the
activation is beam-type collision-induced dissociation (as msconvert writes it). The native IDs
have the form sample=1 period=1 cycle=<c> experiment=<e>, as with msconvert.
The time-of-flight profile data are always centroided, with the centroider of andes. The
intensity of a centroid is the area of its profile peak, so it differs from the intensities that
SCIEX software (and msconvert with vendor peak picking) report. The total ion current of a
spectrum (meta value total ion current) is the one the instrument recorded, not the sum of the
centroid intensities, so the two are on different scales: on a PXD030304 run the recorded value
was a few hundred times the sum of the centroid intensities. An isolated profile sample, a single
time-of-flight bin with no other signal next to it (mostly a single ion), gives no centroid, as in
andes. On a PXD030304 run such samples hold about 42% of the MS2 and 5% of the MS1 detector counts,
which no peak of the output represents, so very weak fragments can be missing.
To convert a .wiff file to mzML:
FileConverter -in sample.wiff -out sample.mzML
The spectra are read one by one, so with -process_lowmemory FileConverter writes them as it
reads them (mzML or cachedMzML output).
OpenSWATH¶
OpenSwathWorkflow, OpenSwathPeakMapExtractor and TransitionListEvidenceFilter take the SWATH
windows from the acquisition method. SCIEX SWATH methods usually let neighbouring windows overlap,
typically by about 1 Th, which the window check of these tools refuses by default (“Extraction
windows overlap”). When all neighbouring windows overlap by the same amount, set
-min_upper_edge_dist to that overlap (e.g. -min_upper_edge_dist 1 for the TripleTOF runs of
PXD030304); the extraction of each window then ends that far below its upper edge, where the next
window begins. Precursors within that distance of the upper edge of the highest window are then
not extracted at all. When that matters, or when the overlaps differ, give non-overlapping
extraction windows with -swath_windows_file instead. -force also overrides the check, but then
the transitions in an overlap are extracted twice. -readOptions onDisc is not supported for
.wiff input.
OpenSwathWorkflow -in sample.wiff -tr library.pqp -min_upper_edge_dist 1 -out_features sample.osw
Limitations¶
Only single-sample, single-period .wiff files are read. A .wiff file that holds several
samples (or several acquisition periods), or whose .wiff.scan holds data beyond its scan index,
is refused with an error instead of being converted with only its first sample; convert it with
msconvert, which writes each sample to its own mzML file. The scan index of a .wiff file does not
say which SWATH window a scan belongs to, only the position in the acquisition cycle does, so a
scan index that is detected not to match the .wiff.scan file or the acquisition cycle (a sign of a
missing entry, after which every scan would land in the wrong window) is refused as well. A missing entry
of a non-empty scan, or any missing entry of a run that stores a TOF calibration per scan (as the
PXD030304 runs do), is always detected. In a run without per-scan calibrations, a missing entry of
an empty scan can only be seen in the retention-time pattern and may go undetected, in particular
with fewer than five experiments per cycle (one to three SWATH windows) or after the last MS1 scan.
Data-dependent (IDA) runs, triple quadrupole and QTRAP data, ZenoTOF .wiff2 files and compressed .wiff files are not supported;
convert them with msconvert.
A build of OpenMS from source includes the reader if it was configured with WITH_SCIEX_WIFF
(the default; the reader has no third-party dependencies).
pyOpenMS¶
pyOpenMS reads these formats as well; see Vendor formats in the pyOpenMS user guide.