Exports the contents of a mass_dataset object to files. The files can be in CSV or XLSX format. Additionally, MS2 data can be exported in MSP or MGF format.

export_mass_dataset(
  object,
  file_type = c("csv", "xlsx"),
  ms2_file_type = c("msp", "mgf"),
  path = "."
)

Arguments

object

A mass_dataset object to be exported.

file_type

The type of file to export the data to. Options are "csv" or "xlsx". Default is "csv".

ms2_file_type

The type of file to export the MS2 data to. Options are "msp" or "mgf". Default is "msp".

path

The directory where the exported files will be saved. Default is the current directory.

Value

No return value. The function writes files to disk.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) { # \dontrun{
# Assuming 'data' is a mass_dataset object
export_mass_dataset(data, file_type = "csv", path = "output/")
} # }