Skip to contents

The function collects spectral data and metadata from an mzML file with mzR package. Data are transformed to data.table and saved in a sample_dataset object. Metadata are arranged as a data.frame and passed to sample_metadata slot.

Usage

mzml_to_sample_dataset(filename, chunksize = 10000)

Arguments

filename

Path name of the netCDF, mzXML or mzML file to read/write.

chunksize

size (number of scans) for each chunk to be retrieved from the mzML file.

Value

A sample_dataset object containing the sample spectra and sample metadata datatables.

See also

convert_mzml_to_parquet to directly save converted data to Parquet file.