export_mass_dataset4metdna: Export mass_dataset Object for MetDNA Analysis

View source: R/mass_dataset_metdna.R

export_mass_dataset4metdnaR Documentation

Export mass_dataset Object for MetDNA Analysis

Description

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.

Usage

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

Xiaotao Shen shenxt1990@outlook.com

Examples

## 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)


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