View source: R/mass_dataset_metdna.R
export_mass_dataset4metdna | R Documentation |
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 = ".")
object |
An object of class |
path |
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.
Xiaotao Shen shenxt1990@outlook.com
## Not run:
# 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/")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.