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.

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.

Value

Writes an mzTab file to the specified 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.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
# Assuming 'dataset' is a mass_dataset object
convert_mass_dataset2mztab(dataset, path = "./mzTabFiles/")
}