Skip to contents

Read MGF files and extract precursor metadata together with fragment peaks.

Usage

read_mgf(file)

Arguments

file

A character vector of MGF file paths.

Value

A list of spectra. Each element contains info, a named numeric vector with precursor mz and rt, and spec, a numeric matrix with mz and intensity columns.