Exports the MS2 data contained in a mass_dataset
object to files.
The files can be in MGF or MSP format.
export_ms2_data(object, file_type = c("mgf", "msp"), path = ".")
No return value. The function writes MS2 data files to disk. Returns NULL and a warning if no MS2 data is present in the object.
if (FALSE) { # \dontrun{
# Assuming 'data' is a mass_dataset object with MS2 data
export_ms2_data(data, file_type = "mgf", path = "output/")
} # }