read_mztab: Read mzTab Data File

View source: R/convert_mztab2mass_dataset.R

read_mztabR Documentation

Read mzTab Data File

Description

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.

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.

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

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
# Assuming 'mztab_file' is the name of the mzTab file
mztab_data <- read_mztab(file = mztab_file)

## End(Not run)


tidymass/massdataset documentation built on Sept. 14, 2024, 4:41 p.m.