export_mass_dataset: Export mass_dataset Object to Files

View source: R/export_mass_dataset.R

export_mass_datasetR Documentation

Export mass_dataset Object to Files

Description

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.

Usage

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(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
# Assuming 'data' is a mass_dataset object
export_mass_dataset(data, file_type = "csv", path = "output/")

## End(Not run)


tidymass/massdataset documentation built on Sept. 14, 2024, 4:41 p.m.