This function exports a mass_dataset object into a format suitable for MetDNA analysis. It generates a Peak_Table.csv, sample_info.csv, and MS2 data in MGF format.

export_mass_dataset4metdna(object, path = ".")

Arguments

object

An object of class mass_dataset.

path

A character string indicating the directory where the exported files will be saved. Default is the current directory.

Value

This function writes the Peak_Table.csv, sample_info.csv, and MS2 data files to the specified directory.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
# Create a new mass_dataset object
new_data <- create_mass_dataset(
  expression_data = data.frame(),
  sample_info = data.frame(),
  variable_info = data.frame(),
  sample_info_note = data.frame(),
  variable_info_note = data.frame()
)

# Export the data for MetDNA analysis
export_mass_dataset4metdna(new_data, path = "MetDNA_data/")
}