File Format Overview

An mzTab-M file is a plain-text, tab-delimited file; UTF-8 is the preferred encoding. Each line begins with a three-letter prefix that says what kind of line it is, followed by tab-separated fields. Comment lines begin with the prefix COM and can appear anywhere in the file; most parsers ignore them, as they ignore empty lines.

This page gives a short overview. For a walk through a complete example file, see the anatomy page of the Hitchhiker’s Guide; its File basics section lists all line prefixes and the basic rules (encoding, delimiters, decimal separator). For the complete field-level specification, see mzTab-M 2.1 Specification.

Metadata Section (MTD)

The metadata section opens the file and is present in every file. It describes the experimental design (samples, assays, MS runs and study variables), the software and databases used, and the controlled vocabularies that the file refers to.

The first metadata lines identify the file: mzTab-version and mzTab-ID are required, and mzTab-profile declares which tables follow. See Mandatory metadata for these and the other required fields.

Which Tables Follow: the Profile

After the metadata, a file contains up to three tables, always in the order SML, SMF, SME. Which of them are present depends on the file’s profile, declared in mzTab-profile: a file can, for example, contain only features (M+F) or all three tables (M+S+F+E). Tables that the profile does not include are left out completely. To find the profile that matches your data, see the decision table on the profiles page; the rules are in the Profiles section of the specification.

Small Molecule Summary (SML)

The SML table, present in profiles with S, contains one row per reported small molecule. Each row summarises the evidence across features and assays.

Columns include identifiers (chemical_name, inchi, smiles), database cross-references, the reliability of the identification, and abundance values per assay and study variable. The SMF_ID_REFS column links a summary row to the features it was quantified from.

Small Molecule Feature (SMF)

The SMF table, present in profiles with F, captures individual detected features: m/z, retention time, charge, adduct and abundance per assay. The SME_ID_REFS column links a feature to the evidence rows that identify it.

Small Molecule Evidence (SME)

The SME table, present in profiles with E, records each individual identification evidence entry. It captures the database match, the identification method, the MS level, the rank, and the associated scores.