R/mass_dataset_metdna.R
export_mass_dataset4metdna.Rd
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 = ".")
This function writes the Peak_Table.csv, sample_info.csv, and MS2 data files to the specified directory.
if (FALSE) { # \dontrun{
# 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/")
} # }