R/convert_mass_dataset2mztab.R
convert_mass_dataset2mztab.Rd
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 = ".")
A mass_dataset
object containing the expression_data
, sample_info
, and other_files
.
A string specifying the directory where the mzTab file will be saved. Default is the current directory.
Writes an mzTab file to the specified directory.
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.
if (FALSE) {
# Assuming 'dataset' is a mass_dataset object
convert_mass_dataset2mztab(dataset, path = "./mzTabFiles/")
}