View source: R/convert_mass_dataset2mztab.R
convert_mass_dataset2mztab | R Documentation |
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 = ".")
object |
A |
path |
A string specifying the directory where the mzTab file will be saved. Default is the current 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.
Writes an mzTab file to the specified directory.
Xiaotao Shen shenxt1990@outlook.com
## Not run:
# Assuming 'dataset' is a mass_dataset object
convert_mass_dataset2mztab(dataset, path = "./mzTabFiles/")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.