Skip to contents

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).

Usage

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 xiaotao.shen@outlook.com

Examples

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