Converts a 'Thermo' .raw file to mzML with the ThermoRawFileParser and reads the result with
read_mzml.
read_thermoraw(
path,
path_out = NULL,
format_out = c("matrix", "data.frame", "data.table"),
read_metadata = TRUE,
metadata_format = c("chromconverter", "raw"),
centroid = TRUE,
verbose = getOption("verbose")
)A list of chromatograms, as returned by read_mzml, in the format
specified by format_out.
Path to 'Thermo' .raw file.
Path to directory to export mzML files. If path_out isn't
specified, a temporary directory is used and deleted afterwards.
Class of output. Either matrix, data.frame, or
data.table.
Logical. Whether to attach metadata. Defaults to TRUE.
Format to output metadata. Either chromconverter
(standardized field names) or raw (vendor field names, unmapped).
Logical. Whether to centroid profile spectra with the vendor's
peak picking. Defaults to TRUE. Set it to FALSE to keep profile spectra
as acquired, which are about ten times larger. Spectra acquired in centroid
mode stay centroided either way.
Logical. Whether to print output from ThermoRawFileParser to the console.
If path_out is specified, the mzML file (and,
if read_metadata is TRUE, a metadata .txt file) is left there.
Ethan Bass
The ThermoRawFileParser must be installed separately.
Hulstaert Niels, Jim Shofstahl, Timo Sachsenberg, Mathias Walzer, Harald Barsnes, Lennart Martens, and Yasset Perez-Riverol. ThermoRawFileParser: Modular, Scalable, and Cross-Platform RAW File Conversion. Journal of Proteome Research 19, no. 1 (January 3, 2020): 537–42. tools:::Rd_expr_doi("10.1021/acs.jproteome.9b00328").
Other external parsers:
call_entab(),
call_openchrom(),
call_rainbow(),
sp_converter(),
uv_converter()
if (FALSE) {
read_thermoraw(path)
}
Run the code above in your browser using DataLab