convert_mass_dataset2mztab: Convert mass_dataset to mzTab Format

View source: R/convert_mass_dataset2mztab.R

convert_mass_dataset2mztabR Documentation

Convert mass_dataset to mzTab Format

Description

This function converts a mass_dataset object to mzTab format. The function creates mzTab-compatible tables including metadata (MTD), small molecule (SML), small molecule feature (SMF), and small molecule evidence (SME) tables.

Usage

convert_mass_dataset2mztab(object, path = ".")

Arguments

object

A mass_dataset object containing the expression_data, sample_info, and other_files.

path

A string specifying the directory where the mzTab file will be saved. Default is the current directory.

Details

The function first checks if the mass_dataset object contains the necessary mzTab tables (MTD, SML, SMF, SME). If not, it generates these tables based on the expression_data and sample_info in the mass_dataset object. The function then writes these tables to an mzTab file in the specified directory.

Value

Writes an mzTab file to the specified directory.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
# Assuming 'dataset' is a mass_dataset object
convert_mass_dataset2mztab(dataset, path = "./mzTabFiles/")

## End(Not run)


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