This function reads an mzTab data file and returns a list containing various tables such as Metadata (MTD), Small Molecule (SML), Small Molecule Feature (SMF), and Small Molecule Evidence (SME).

read_mztab(file, path = ".")

Arguments

file

The name of the mzTab file to be read.

path

The directory where the mzTab file is located. Default is the current directory.

Value

A list containing the following elements:

  • mtd_table: Metadata table

  • sml_table: Small Molecule table

  • smf_table: Small Molecule Feature table

  • sme_table: Small Molecule Evidence table

Details

The function reads an mzTab file and extracts various tables such as MTD, SML, SMF, and SME. It performs necessary data transformations and type conversions.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
# Assuming 'mztab_file' is the name of the mzTab file
mztab_data <- read_mztab(file = mztab_file)
}