Authoring Checklist

This page lists the rules to apply when you write an mzTab-M 2.1 file, whether you build an exporter or are an AI agent that writes or checks files. Each rule restates, in plain words, a rule of the specification or the schema reference, and links to the section it comes from. The rules add no requirements of their own: the specification is normative, and if a rule and the specification seem to disagree, the specification is right (see the guide overview). Where the specification only recommends something, or where a rule is the guide’s advice, the rule says "We recommend". The background to most rules is explained in Anatomy of an mzTab-M 2.1 File, which the rules link to.

How to use the rules

Rule IDs

Every rule has an ID of the form G-<GROUP>-<NN>, for example G-VAL-01, where the group is FILE, MTD, REF, VAL, TAB or OPT. Cite the ID in issues, reviews and validation reports. The IDs are stable: once published, a rule is never renumbered. New rules are added at the end of their group, and the ID of a withdrawn rule is not given to another rule.

Examples

Examples titled "Correct" are copied by a script from the example files, like every other example in the guide. Examples titled "Incorrect" are typed by hand and show the mistake a rule prevents; do not copy them.

Open discussions

The rules describe the current specification. Questions that the working group is still discussing are linked where a rule touches them: #173 (the meaning of 0), #175 (whitespace around |) and #178 (scientific notation).

File (FILE)

How the file is laid out: encoding, separators, line prefixes and the order of sections (see File basics).

G-FILE-01

We recommend writing the file in UTF-8. Specification: format specification

The specification calls UTF-8 "the preferred encoding for mzTab files".

G-FILE-02

Separate fields with one tab character (U+0009), never with spaces or commas. Specification: format specification

This holds for metadata lines too; the schema reference says: "The field name and value MUST be separated by a tab character."

G-FILE-03

Start every line that is not empty with one of the prefixes MTD, SMH, SML, SFH, SMF, SEH, SME or COM, followed by a tab. Specification: format specification

G-FILE-04

Put comments only in lines that start with COM. Specification: format specification

COM lines and empty lines can appear anywhere in the file, and most readers ignore them. We recommend not putting data that a reader needs into a comment.

G-FILE-05

Write the sections in the order MTD, SML, SMF, SME, with a blank line between two sections. Specification: profiles

The specification says: "Sections that ARE present MUST follow the table order MTD → SML → SMF → SME, with a blank line separating each."

G-FILE-06

Start each table with its header line (SMH, SFH or SEH), and write each table, with its header line, only once. Specification: format specification

G-FILE-07

Leave out every table that the declared profile does not contain, including its header line, and never write a header line without rows below it. Specification: profiles

The specification says: "An empty table (header line only, no rows) is NOT a substitute for omitting the section." A tool that found no features therefore declares a profile without F and writes no SFH line (see the decision table).

Incorrect: an empty SMF table (breaks G-FILE-07)
SFH	SMF_ID	SME_ID_REFS	SME_ID_REF_ambiguity_code	adduct_ion	isotopomer	exp_mass_to_charge	charge	…
G-FILE-08

Write the metadata lines in the order of the metadata section of the schema reference. Schema reference: metadata section

The schema reference says: "The fields in the metadata section MUST be reported in the order listed below."

G-FILE-09

Write column labels and field names exactly as the specification spells them, including upper and lower case. Specification: format specification

The specification says: "All column labels and field names are case-sensitive." SML_ID is a column label; sml_id is not.

Metadata (MTD)

Which metadata lines every file needs, and which ones its profile adds (see Mandatory metadata).

G-MTD-01

Write mzTab-version 2.1.0-M in a file that follows mzTab-M 2.1. Schema reference: mzTab-version

The specification says: "an mzTab file MUST report its version".

G-MTD-02

Write an mzTab-ID that identifies the file in its context, such as a repository accession or a laboratory identifier. Schema reference: mzTab-ID

G-MTD-03

We recommend declaring the profile in mzTab-profile; a declared profile names exactly the tables the file contains. Specification: profiles

Choose the profile with the decision table. The field is optional (files written before profiles existed do not have it), but the specification asks new files to set it: "New files SHOULD set mzTab-profile explicitly." Whichever profile is declared, the tables follow it: the specification says that "Sections that are NOT required by the declared profile MUST be omitted entirely", and the schema reference lists the tables each profile requires. A file can declare M+S+F, but it is discouraged: it is meant only for an intermediate file or for a deliberate record of feature finding and alignment without identification evidence (see When M+S+F fits and #177).

Correct (G-MTD-01 to G-MTD-03)
MTD	mzTab-version	2.1.0-M
MTD	mzTab-ID	MINIMAL-ALL-FEATURES-2.1
MTD	mzTab-profile	M+S+F+E
MTD	title	Minimal mzTab-M 2.1.0 example exercising all features
MTD	description	Proline in human liver cells, before and one day after treatment.
G-MTD-04

Write quantification_method when the file has an SML or an SMF table. Specification: metadata fields whose requirement depends on the profile

G-MTD-05

Write small_molecule-quantification_unit when the file has an SML table, and small_molecule_feature-quantification_unit when it has an SMF table. Specification: metadata fields whose requirement depends on the profile

G-MTD-06

Write at least one id_confidence_measure[n] when the file has an SME table. Specification: metadata fields whose requirement depends on the profile

G-MTD-07

Write at least one database[n] when the file reports identifications: when it has an SME table, or when its SML rows carry identifiers. Specification: metadata fields whose requirement depends on the profile

The decision table lists, for each profile, which of the fields in G-MTD-04 to G-MTD-07 it requires.

Correct (G-MTD-04 to G-MTD-06 and G-MTD-13; the colunit-* lines belong to G-OPT-06)
MTD	quantification_method	[MS, MS:1001834, LC-MS label-free quantitation analysis, ]
MTD	small_molecule-quantification_unit	[PRIDE, PRIDE:0000330, Arbitrary quantification unit, ]
MTD	small_molecule_feature-quantification_unit	[MS, MS:1001844, MS1 feature area, ]
MTD	small_molecule-identification_reliability	[MS, MS:1002896, compound identification confidence level, ]
MTD	id_confidence_measure[1]	[MS, MS:1002890, fragmentation score, ]
MTD	colunit-small_molecule	opt_global_cv_MS:1002476_ion_mobility_drift_time=[UO, UO:0000028, millisecond, ]
MTD	colunit-small_molecule_feature	opt_ms_run[1]_cv_MS:1002476_ion_mobility_drift_time=[UO, UO:0000028, millisecond, ]
MTD	colunit-small_molecule_evidence	opt_global_mass_error=[UO, UO:0000169, parts per million, ]
G-MTD-08

Write at least one software[n], ms_run[n] with its location, assay[n] with its ms_run_ref, study_variable[n], study_variable_group[n] and cv[n] with its label, full name, version and URI, whatever the profile. Schema reference: metadata section

The schema reference marks software[n], ms_run[n]-location, assay[n], assay[n]-ms_run_ref, study_variable[n], study_variable_group[n] and the four cv[n] fields (label, full_name, version and uri) as mandatory. For study variable groups, the specification says: "At least one study_variable_group MUST be defined."

G-MTD-09

Write null as ms_run[n]-location when the location of a run’s data file is unknown; never leave the line out. Schema reference: ms_run[n]-location

The schema reference says: "If the location is unknown, null MUST be used: the field cannot be left out, since ms_run[n] is referenced elsewhere in the file."

G-MTD-10

Declare ms_run[n]-id_format for every run that a spectra_ref points into, and we recommend giving ms_run[n]-format with it. Specification: identifiers for input spectra

A spectra_ref is written in the id format of its run (G-REF-04), so a reader needs that format. The introduction to ms_run[n] in the schema reference pairs the two fields: "If ms_run[n]-id_format is present, ms_run[n]-format SHOULD also be present."

G-MTD-11

We recommend a cv[n] entry, with label, full name, version and URI, for every vocabulary label that a parameter in the file uses. Schema reference: cv[n]

The schema reference describes the cv[n] entries as the "labels of the controlled vocabularies/ontologies used in the mzTab file", and a reader can only look up a term if it knows its vocabulary and version. User parameters such as [, , injection order, 1] have no label and need no entry. The all-features example does not declare the MIRIAM label that its database[1] uses; the specification does not say whether registry labels need a cv[n] entry. See Controlled vocabularies and databases.

G-MTD-12

Give every database[n] a prefix, a version and a uri; for the "no database" case, write null as prefix and URI. Schema reference: database[n]-prefix

The prefix is the part before the colon in the identifiers that come from the database (G-REF-10). For the version, the schema reference accepts a version number, a date of access or "Unknown" if there is no suitable version.

G-MTD-13

Declare the scale of the SML reliability column in small_molecule-identification_reliability when it is not the default scale from 1 to 4. Schema reference: small_molecule-identification_reliability

The schema reference says: "The system used for giving reliability / confidence codes to small molecule identifications MUST be specified if not using the default codes."

References (REF)

How lines and rows refer to each other, to spectra and to publications.

G-REF-01

Point every [n] reference in the metadata, such as assay[n]-sample_ref, assay[n]-ms_run_ref, ms_run[n]-instrument_ref, study_variable[n]-assay_refs or study_variable_group[n]-study_variable_refs, to an object that the metadata section defines. Specification: replicates within experimental designs

The schema reference describes each of these fields as a reference to another object, for example study_variable[n]-assay_refs: "The assays referenced by this study variable." The specification states the rule in so many words for spectra_ref (G-REF-03), and it excludes two profiles "because they would contain cross-references that cannot be resolved" (Profiles that are explicitly not supported).

Correct (G-REF-01)
MTD	assay[1]	assay 1
MTD	assay[1]-custom[1]	[, , injection order, 1]
MTD	assay[1]-external_uri	https://example.org/datasets/minimal-all-features/a_assay.txt?row=1
MTD	assay[1]-sample_ref	sample[1]
MTD	assay[1]-ms_run_ref	ms_run[1]
MTD	assay[1]-protocol_refs	protocol[1]
MTD	assay[1]-parameters	[, , injection volume, 5 uL]
MTD	assay[2]	assay 2
MTD	assay[2]-custom[1]	[, , injection order, 2]
MTD	assay[2]-external_uri	https://example.org/datasets/minimal-all-features/a_assay.txt?row=2
MTD	assay[2]-sample_ref	sample[2]
MTD	assay[2]-ms_run_ref	ms_run[2]
MTD	assay[2]-protocol_refs	protocol[1]
MTD	assay[2]-parameters	[, , injection volume, 5 uL]
G-REF-02

List every study variable in the study_variable_refs of exactly one study variable group. Schema reference: study_variable_group[n]-study_variable_refs

The schema reference says: "each study variable MUST be referenced by exactly one study variable group."

Correct (G-REF-02)
MTD	study_variable[1]	day 0
MTD	study_variable[1]-assay_refs	assay[1]
MTD	study_variable[1]-ms_run_refs	ms_run[1]
MTD	study_variable[1]-average_function	[MS, MS:1002962, mean, ]
MTD	study_variable[1]-variation_function	[MS, MS:1002885, standard error, ]
MTD	study_variable[1]-description	Hepatocytes day 0 after treatment
MTD	study_variable[2]	day 1
MTD	study_variable[2]-assay_refs	assay[2]
MTD	study_variable[2]-ms_run_refs	ms_run[2]
MTD	study_variable[2]-average_function	[MS, MS:1002962, mean, ]
MTD	study_variable[2]-variation_function	[MS, MS:1002885, standard error, ]
MTD	study_variable[2]-description	Hepatocytes day 1 after treatment
MTD	study_variable_group[1]	[, , time after treatment, ]
MTD	study_variable_group[1]-description	Time after treatment
MTD	study_variable_group[1]-type	[STATO, STATO:0000228, ordinal variable, ]
MTD	study_variable_group[1]-datatype	xsd:integer
MTD	study_variable_group[1]-unit	[UO, UO:0000033, day, ]
MTD	study_variable_group[1]-study_variable_refs	study_variable[1]|study_variable[2]
G-REF-03

Write each spectra_ref value as ms_run[n]:{SPECTRA_REF}, or as ms_run[n] alone when no spectrum was used for the identification, where ms_run[n] is defined in the metadata section. Specification: identifiers for input spectra

The specification says: "Each reference MUST be either ms_run[n]:{SPECTRA_REF} or ms_run[n] alone, and ms_run[n] MUST be defined in the metadata section." The schema reference describes the second form as naming "the ms_run to which the identification is mapped". The SME rows shown under G-TAB-09 refer to a spectrum in the first form.

G-REF-04

Write {SPECTRA_REF} exactly in the form of the id format that ms_run[n]-id_format declares, with no other characters before or after it. Specification: identifiers for input spectra

The forms are listed in the specification’s table of nativeID formats; the specification gives scan=11665abc and xscan=11665 as values that are "not valid for "scan number only nativeID format"".

G-REF-05

Separate several spectrum references in one spectra_ref with |, and write no whitespace around | or :. Specification: identifiers for input spectra

Whitespace inside {SPECTRA_REF} is part of the value where its format defines it, as in controllerType=0 controllerNumber=1 scan=5.

Incorrect: spaces around : and | (breaks G-REF-05)
SME	…	ms_run[1] : scan=11665 | ms_run[1]:scan=11670	…
G-REF-06

When the spectrum used for an identification comes from a separate file, declare that file as another ms_run[n]. Schema reference: spectra_ref

The schema reference says: "If a separate spectrum file has been used for the fragmentation spectrum, it MUST be reported in the metadata section as an additional ms_run."

G-REF-07

Make every value in SMF_ID_REFS the SMF_ID of a row in the same file, and write null when the file has no SMF table (profile M+S). Specification: cross-reference rules per profile

In an M+S+F+E file, the specification’s table requires "at least one valid SMF_ID per SML row".

G-REF-08

Make every value in SME_ID_REFS the SME_ID of a row in the same file; write null when the file has no SME table or when the feature was not identified. Specification: cross-reference rules per profile

In M+F+E and M+S+F+E files, every identified feature refers to at least one evidence row. See The SML, SMF and SME tables for an identified and an unidentified feature.

G-REF-09

Refer to every SME row from the SME_ID_REFS of at least one SMF row. Schema reference: profiles

The schema reference states this for M+F+E: "Every SME row MUST be referenced by at least one SMF row via SME_ID_REFS." The specification explains why it holds in every file with evidence: "SME rows are addressable only through SME_ID_REFS on SMF rows".

G-REF-10

Write each database identifier as the prefix of a declared database[n], a colon and the accession, such as hmdb:HMDB0000162. Specification: referencing external resources

The specification says that "the database identifier must be preceded by the resource description (prefix) followed by a colon", with the prefix declared in the metadata section. See also database_identifier in the schema reference. In the SME table, a database that gave no putative identification still appears with its prefix; the schema reference says: "If no putative identification can be reported for a particular database, it MUST be reported as the database prefix followed by null."

G-REF-11

Write each publication[n] identifier as pubmed: with a PubMed ID, doi: with a DOI name or uri: with an absolute URI. Schema reference: publication[n]

Separate several identifiers with |, without whitespace, and leave out a publication that has no identifier yet. A DOI name begins with 10.. The schema reference says: "There MUST NOT be whitespace around the | and : separators. Placeholders such as doi:xxxx MUST NOT be used". A DOI is written without a resolver prefix such as https://doi.org/.

Correct (G-REF-11, in the publication[1] line)
MTD	software[1]	[MS, MS:1001582, XCMS, 4.4.0]
MTD	software[1]-setting[1]	ppm = 5
MTD	publication[1]	pubmed:30688441|doi:10.1021/acs.analchem.8b04310
MTD	contact[1]-name	Josiah Carberry
MTD	contact[1]-affiliation	Example University
MTD	contact[1]-email	josiah.carberry@example.org
MTD	contact[1]-orcid	0000-0002-1825-0097
MTD	uri[1]	https://example.org/datasets/minimal-all-features
MTD	external_study_uri[1]	https://example.org/datasets/minimal-all-features/i_Investigation.txt
MTD	custom[1]	[, , study design, minimal example]
Incorrect: whitespace, a resolver prefix in the DOI, and a placeholder (breaks G-REF-11)
MTD	publication[1]	pubmed: 30688441 | doi:https://doi.org/10.1021/acs.analchem.8b04310
MTD	publication[2]	doi:xxxx
G-REF-12

Declare every score that a table reports as an id_confidence_measure[n] in the metadata. Schema reference: id_confidence_measure (SME)

This covers the SME columns id_confidence_measure[n] and the score in the SML column best_id_confidence_value. The schema reference says of the SME column that "The metadata section reports the type of score used, as id_confidence_measure[n] of type Param", and of best_id_confidence_value: "The type of score MUST be defined in the metadata section."

Values (VAL)

How single values are written: missing values, numbers, parameters, dates, URIs and lists (see Missing values: null and NaN).

G-VAL-01

Write null when a value is not available; never leave a cell empty. Specification: missing values

The specification says: "In the table-based sections there MUST NOT be any empty cells. In case a given property is not available “null” MUST be used".

Correct (G-VAL-01: an unidentified feature with no abundance in assay 2)
SFH	SMF_ID	SME_ID_REFS	SME_ID_REF_ambiguity_code	adduct_ion	isotopomer	exp_mass_to_charge	charge	retention_time_in_seconds	retention_time_in_seconds_start	retention_time_in_seconds_end	abundance_assay[1]	abundance_assay[2]	opt_ms_run[1]_cv_MS:1002476_ion_mobility_drift_time
SMF	2	null	null	null	null	245.1102	null	310.8	307.5	314.2	4210.0	null	null
G-VAL-02

Write null exactly so: in lower case and without quotes. Specification: missing values

NULL, Null, "null", NA, N/A and - do not mark a missing value in mzTab-M.

G-VAL-03

Write null only in fields that allow it. Specification: missing values

The specification adds that null "is only allowed for parameters with "is nullable=True"". The schema reference gives this in the "Is Nullable" entry of each field; where that entry disagrees with the field’s description and the JSON schema, schema/mzTab_2_1-M.json, the description and the JSON schema win. This is the case for the SMF charge and the SML best_id_confidence_value: their "Is Nullable" entry says FALSE, but both allow null, and the entry is being corrected (#171). The row IDs SML_ID, SMF_ID and SME_ID are never null (G-TAB-02).

G-VAL-04

Write NaN for a number that cannot be calculated, such as a standard error from a single value, and keep null for a value that is not available. Specification: missing values

The specification allows "NaN" for incalculable numbers and "null" for no data. The all-features example uses NaN this way in its SML row (see Missing values: null and NaN).

G-VAL-05

Never write INF, -INF or any other form of infinity; write NaN if the number cannot be calculated, or null if it is not available. Specification: missing values

The specification says: "Scientific notation and infinity is explicitly not supported."

G-VAL-06

Write every number as an xs:decimal: digits with an optional sign and an optional dot as decimal separator, without thousands separators. Specification: missing values

The specification refers to the xs:decimal type of XML Schema, and its format specification says: "In mzTab files the dot (“.”) MUST be used as decimal separator. Thousand separators MUST NOT be used in mzTab files." NaN and null are the only values other than numbers that a number column takes.

G-VAL-07

Do not use scientific notation: write 0.00000152 and 1520000, not 1.52E-6 and 1.52e6. Specification: missing values

This follows from the xs:decimal rule (G-VAL-06) and from the sentence quoted under G-VAL-05. Whether scientific notation should be allowed is an open discussion (#178); until the specification changes, write plain decimals.

G-VAL-08

Never round or format a non-zero value to 0: write as many decimal digits as the value needs. Specification: missing values

Without scientific notation, an exporter that writes numbers with a fixed number of decimals can turn a small abundance such as 0.0000031 into 0. A 0 has its own meaning in the abundance columns (G-VAL-09), so the rounded value says something the data does not.

Incorrect: infinity, scientific notation and a small value rounded to zero (breaks G-VAL-05, G-VAL-07 and G-VAL-08)
SML	…	INF	1.52E-6	0.000	…
G-VAL-09

In the SML abundance columns, we recommend null for a missing quantity and 0 for a value that is present but not reliably quantifiable. Schema reference: abundance_assay (SML)

The schema reference says for abundance_assay[n] and abundance_study_variable[n]: ""null" SHOULD be used to report missing quantities, while zero SHOULD be used to indicate a present but not reliably quantifiable value (e.g. below a minimum noise threshold)." For the SMF abundance_assay[n] it says only: "Null or zero values may be reported as appropriate." The specification leaves the choice between 0 and null to the exporter, "based on best understanding of the case in hand". What 0 should mean, and how to report limits of detection and quantification, is an open discussion (#173).

G-VAL-10

Write a parameter as [CV label, accession, name, value], leave the parts that are not available empty, and put a name that contains a comma in quotes. Specification: format specification

A user parameter has no CV label and no accession: [, , injection volume, 5 uL]. The specification’s example of a quoted name is [MOD, MOD:00648, "N,O-diacetylated L-serine",].

G-VAL-11

Write dates as YYYY-MM-DD, times as hh:mm:ss and combined values as YYYY-MM-DDThh:mm:ss (ISO 8601). Specification: format specification

Fractional seconds and a time zone, such as 09:45:30.250Z or 09:45:30+02:00, can be appended.

G-VAL-12

Write every URI, including the values of the -uri and -location fields, as a valid URI (RFC 3986; RFC 8089 for file: URIs), or as null where the field allows it. Specification: format specification

The specification says: "any external resource reference (suffixed -uri, or -location) must be provided as a valid URI string." null is allowed, for example, for an unknown ms_run[n]-location (G-MTD-09) and for the URI of the "no database" case (G-MTD-12).

G-VAL-13

Write retention times in seconds. Schema reference: retention_time_in_seconds

The schema reference says: "Retention time MUST be reported in seconds." This applies to retention_time_in_seconds, retention_time_in_seconds_start and retention_time_in_seconds_end.

G-VAL-14

Write charge as a positive integer, also for negative ions: 1 for [M-H]1-. Schema reference: charge (SMF)

The schema reference describes the SMF and SME charge as a value "using positive integers both for positive and negative polarity modes".

G-VAL-15

Write adducts in the style of the IUPAC recommendations, such as [M+H]1+, [M+Na]1+ or [M-H]1-. Schema reference: adduct_ion (SMF)

The same style applies to adduct_ions in the SML table and adduct_ion in the SME table.

G-VAL-16

Separate the items of a list with |; we recommend writing a bare |, without spaces around it. Specification: ambiguity in identification

Whether spaces around | are allowed in general is an open discussion (#175). For spectra_ref (G-REF-05) and publication[n] (G-REF-11), the specification already rules them out.

Tables (TAB)

What the SML, SMF and SME tables contain, column by column (see The SML, SMF and SME tables).

G-TAB-01

Write every defined column of a table, in the order of the schema reference. Schema reference: SML section

The schema reference says for each table (SML, SMF, SME): "All columns are MANDATORY except for "opt_" columns." and "The order of columns MUST follow the order specified below." Optional columns come after the defined ones (G-OPT-01).

G-TAB-02

Give every row an integer ID (SML_ID, SMF_ID or SME_ID) that is unique within the file. Schema reference: SML_ID

The schema reference describes SML_ID, SMF_ID and SME_ID each as "A within file unique identifier".

G-TAB-03

Write one abundance_assay[n] column in the SML and SMF tables for every assay[n] of the metadata. Schema reference: abundance_assay (SML)

The schema reference says for SML and similarly for SMF: "The small molecule’s abundance in every assay described in the metadata section MUST be reported."

G-TAB-04

Write one abundance_study_variable[n] and one abundance_variation_study_variable[n] column in the SML table for every study_variable[n] of the metadata. Schema reference: abundance_study_variable

The schema reference describes the column as "The small molecule’s abundance in all the study variables described in the metadata section", and abundance_variation_study_variable[n] as the variability of that measurement. The SMF table has no study variable columns.

G-TAB-05

When an SML row reports several candidate molecules, list them, separated by |, in every identifier column where data is reported, with the same number of items in the same order. Specification: ambiguity in identification

The specification says: "The number of elements separated by | characters MUST be identical in all columns where data is reported to emphasize the correspondence across columns." See Ambiguous identifications.

G-TAB-06

Use several identifiers in an SML row only to report ambiguity, not to give several identifiers of the same molecule. Schema reference: database_identifier (SML)

The schema reference says: "multiple values MUST only be provided to indicate ambiguity in the identification of the molecule and not to demonstrate different identifier types for the same molecule. Alternative identifiers for the same molecule MAY be provided as optional columns."

G-TAB-07

Write SME_ID_REF_ambiguity_code 1, 2 or 3 when SME_ID_REFS holds several values, and null when it holds one value or none. Schema reference: SME_ID_REF_ambiguity_code

The codes are defined in the specification: 1 for different identifications from the same input data, 2 for different input data that support the same identification, and 3 for different input data with ambiguity remaining. See Ambiguous identifications.

G-TAB-08

Write one candidate identification per SME row, and give rows that come from the same input data the same evidence_input_id. Schema reference: evidence_input_id

The specification’s figure on evidence says: "One SME element (one row) represents a single possible identification from some input evidence. Multiple identifications from the same input data share the same value for evidence_input_id."

G-TAB-09

Rank the candidates for one input in rank, from 1 for the best; give tied candidates the same rank, and write 1 when there is no ranking. Schema reference: rank

Correct (G-TAB-08, G-TAB-09 and G-REF-03: two candidates for one spectrum)
SEH	SME_ID	evidence_input_id	database_identifier	chemical_formula	smiles	inchi	chemical_name	uri	derivatized_form	adduct_ion	exp_mass_to_charge	charge	theoretical_mass_to_charge	spectra_ref	identification_method	ms_level	id_confidence_measure[1]	rank	opt_global_mass_error	opt_global_cv_MS:1003260_related_spectrum_USI
SME	1	1	hmdb:HMDB0000162	C5H9NO2	OC(=O)[C@@H]1CCCN1	InChI=1S/C5H9NO2/c7-5(8)4-2-1-3-6-4/h4,6H,1-3H2,(H,7,8)/t4-/m0/s1	L-Proline	https://hmdb.ca/metabolites/HMDB0000162	null	[M+H]1+	116.0703	1	116.0706	ms_run[1]:controllerType=0 controllerNumber=1 scan=1234	[MS, MS:1001031, spectral library search, ]	[MS, MS:1000511, ms level, 2]	0.92	1	-2.6	mzspec:MSV000000000:run1:scan:1234
SME	2	1	hmdb:HMDB0003411	C5H9NO2	OC(=O)[C@H]1CCCN1	InChI=1S/C5H9NO2/c7-5(8)4-2-1-3-6-4/h4,6H,1-3H2,(H,7,8)/t4-/m1/s1	D-Proline	https://hmdb.ca/metabolites/HMDB0003411	null	[M+H]1+	116.0703	1	116.0706	ms_run[1]:controllerType=0 controllerNumber=1 scan=1234	[MS, MS:1001031, spectral library search, ]	[MS, MS:1000511, ms level, 2]	0.88	2	-2.6	mzspec:MSV000000000:run1:scan:1234
G-TAB-10

Write reliability as a level of the default scale from 1 to 4, or of the scale declared in small_molecule-identification_reliability (G-MTD-13). Schema reference: reliability

The default levels are identified metabolite (1), putatively annotated compound (2), putatively characterized class (3) and unknown compound (4).

G-TAB-11

Write isotopomer null for a de-isotoped feature, and name the isotopomer for a feature that is a single isotope peak. Schema reference: isotopomer

The schema reference says: "If de-isotoping has not been performed, then the isotopomer quantified MUST be reported here e.g. “+1”, “+2”, “13C peak” using CV terms, otherwise (i.e. for approaches where SMF rows are de-isotoped features) this MUST be null."

Optional columns (OPT)

How to name, place and describe columns that the specification does not define (see Optional columns).

G-OPT-01

Add optional columns only after all defined columns of a table. Specification: adding optional columns

The specification says: "Additional columns MAY be added to the end of rows in all the table-based sections."

G-OPT-02

Start the name of an optional column with opt_ and the object it belongs to: opt_global_, opt_assay[n]_, opt_study_variable[n]_ or opt_ms_run[n]_. Specification: adding optional columns

The specification says: "These column headers MUST start with the prefix “opt_” followed by the identifier of the object they reference: assay, study variable, MS run or “global” (if the value relates to all replicates)." The [n] in the name refers to a defined object (G-REF-01).

G-OPT-03

Use only the characters A–Z, a–z, 0–9, _, -, [, ] and : in the name of an optional column. Specification: adding optional columns

Incorrect: a space and parentheses in a column name (breaks G-OPT-03)
SEH	…	opt_global_mass error (ppm)
G-OPT-04

Write the name of a CV-named optional column as opt_{OBJECT_ID}_cv_{accession}_{parameter name}, with every space in the parameter name replaced by _. Specification: adding optional columns

opt_global_cv_MS:1002476_ion_mobility_drift_time names the PSI-MS term "ion mobility drift time" (MS:1002476).

G-OPT-05

We recommend a CV-named optional column wherever a suitable CV term exists. Specification: adding optional columns

The specification warns: "It MUST not be assumed that optional columns having the same name in different mzTab files contain the same type of information." A CV accession gives the column a meaning that every reader can look up.

G-OPT-06

When you give the unit of an optional or other non-abundance column, give it in colunit-small_molecule, colunit-small_molecule_feature or colunit-small_molecule_evidence, as {column name}={unit parameter}, and never use these fields for abundance columns. Schema reference: colunit-small_molecule_feature

The schema reference says: "This field MUST NOT be used to define a unit for quantification columns." The unit of the abundance columns is set by the quantification unit fields (G-MTD-05). The Correct example under G-MTD-07 ends with three colunit-* lines.

Incorrect: a quantification unit given as a column unit (breaks G-OPT-06)
MTD	colunit-small_molecule_feature	abundance_assay[1]=[MS, MS:1001844, MS1 feature area, ]
G-OPT-07

We recommend reporting the USI of a matched library spectrum in the SME column opt_global_cv_MS:1003260_related_spectrum_USI, with null in rows without a library match. Specification: referencing query and library spectra

The specification says: "The USI SHOULD be reported in an optional column of the SME table […] named after the PSI-MS term "related spectrum USI" (MS:1003260). The value MUST be a valid USI, or "null" for rows without a library match." The query spectrum itself goes into spectra_ref (G-REF-03).