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 = ".")
An object of class mass_dataset
.
A character string indicating the directory where the exported files will be saved. Default is the current directory.
This function writes the Peak_Table.csv, sample_info.csv, and MS2 data files to the specified directory.
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/")
}