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 exampleG-VAL-01, where the group isFILE,MTD,REF,VAL,TABorOPT. 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,SMEorCOM, followed by a tab. Specification: format specification
- G-FILE-04
-
Put comments only in lines that start with
COM. Specification: format specificationCOMlines 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,SFHorSEH), 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
Fand writes noSFHline (see the decision table).
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_IDis a column label;sml_idis not.
Metadata (MTD)
Which metadata lines every file needs, and which ones its profile adds (see Mandatory metadata).
- G-MTD-01
-
Write
mzTab-version2.1.0-Min a file that follows mzTab-M 2.1. Schema reference: mzTab-versionThe specification says: "an mzTab file MUST report its version".
- G-MTD-02
-
Write an
mzTab-IDthat 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: profilesChoose 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-profileexplicitly." 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 declareM+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).
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_methodwhen 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_unitwhen the file has an SML table, andsmall_molecule_feature-quantification_unitwhen 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 profileThe decision table lists, for each profile, which of the fields in G-MTD-04 to G-MTD-07 it requires.
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 itslocation,assay[n]with itsms_run_ref,study_variable[n],study_variable_group[n]andcv[n]with its label, full name, version and URI, whatever the profile. Schema reference: metadata sectionThe 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 fourcv[n]fields (label,full_name,versionanduri) as mandatory. For study variable groups, the specification says: "At least onestudy_variable_groupMUST be defined."
- G-MTD-09
-
Write
nullasms_run[n]-locationwhen the location of a run’s data file is unknown; never leave the line out. Schema reference: ms_run[n]-locationThe schema reference says: "If the location is unknown,
nullMUST be used: the field cannot be left out, sincems_run[n]is referenced elsewhere in the file."
- G-MTD-10
-
Declare
ms_run[n]-id_formatfor every run that aspectra_refpoints into, and we recommend givingms_run[n]-formatwith it. Specification: identifiers for input spectraA
spectra_refis written in the id format of its run (G-REF-04), so a reader needs that format. The introduction toms_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 theMIRIAMlabel that itsdatabase[1]uses; the specification does not say whether registry labels need acv[n]entry. See Controlled vocabularies and databases.
- G-MTD-12
-
Give every
database[n]aprefix, aversionand auri; for the "no database" case, writenullas prefix and URI. Schema reference: database[n]-prefixThe 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
reliabilitycolumn insmall_molecule-identification_reliabilitywhen it is not the default scale from 1 to 4. Schema reference: small_molecule-identification_reliabilityThe 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 asassay[n]-sample_ref,assay[n]-ms_run_ref,ms_run[n]-instrument_ref,study_variable[n]-assay_refsorstudy_variable_group[n]-study_variable_refs, to an object that the metadata section defines. Specification: replicates within experimental designsThe 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 forspectra_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).
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_refsof exactly one study variable group. Schema reference: study_variable_group[n]-study_variable_refsThe schema reference says: "each study variable MUST be referenced by exactly one study variable group."
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_refvalue asms_run[n]:{SPECTRA_REF}, or asms_run[n]alone when no spectrum was used for the identification, wherems_run[n]is defined in the metadata section. Specification: identifiers for input spectraThe specification says: "Each reference MUST be either
ms_run[n]:{SPECTRA_REF}orms_run[n]alone, andms_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 thatms_run[n]-id_formatdeclares, with no other characters before or after it. Specification: identifiers for input spectraThe forms are listed in the specification’s table of nativeID formats; the specification gives
scan=11665abcandxscan=11665as values that are "not valid for "scan number only nativeID format"".
- G-REF-05
-
Separate several spectrum references in one
spectra_refwith|, and write no whitespace around|or:. Specification: identifiers for input spectraWhitespace inside
{SPECTRA_REF}is part of the value where its format defines it, as incontrollerType=0 controllerNumber=1 scan=5.
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_refThe 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_REFStheSMF_IDof a row in the same file, and writenullwhen the file has no SMF table (profileM+S). Specification: cross-reference rules per profileIn an
M+S+F+Efile, the specification’s table requires "at least one valid SMF_ID per SML row".
- G-REF-08
-
Make every value in
SME_ID_REFStheSME_IDof a row in the same file; writenullwhen the file has no SME table or when the feature was not identified. Specification: cross-reference rules per profileIn
M+F+EandM+S+F+Efiles, 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_REFSof at least one SMF row. Schema reference: profilesThe 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 throughSME_ID_REFSon SMF rows".
- G-REF-10
-
Write each database identifier as the
prefixof a declareddatabase[n], a colon and the accession, such ashmdb:HMDB0000162. Specification: referencing external resourcesThe 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_identifierin 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 aspubmed:with a PubMed ID,doi:with a DOI name oruri: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 with10.. The schema reference says: "There MUST NOT be whitespace around the|and:separators. Placeholders such asdoi:xxxxMUST NOT be used". A DOI is written without a resolver prefix such ashttps://doi.org/.
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]
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 columnbest_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 ofbest_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
nullwhen a value is not available; never leave a cell empty. Specification: missing valuesThe 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".
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
nullexactly so: in lower case and without quotes. Specification: missing valuesNULL,Null,"null",NA,N/Aand-do not mark a missing value in mzTab-M.
- G-VAL-03
-
Write
nullonly in fields that allow it. Specification: missing valuesThe 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 SMFchargeand the SMLbest_id_confidence_value: their "Is Nullable" entry says FALSE, but both allownull, and the entry is being corrected (#171). The row IDsSML_ID,SMF_IDandSME_IDare nevernull(G-TAB-02).
- G-VAL-04
-
Write
NaNfor a number that cannot be calculated, such as a standard error from a single value, and keepnullfor a value that is not available. Specification: missing valuesThe specification allows "NaN" for incalculable numbers and "null" for no data. The all-features example uses
NaNthis way in its SML row (see Missing values: null and NaN).
- G-VAL-05
-
Never write
INF,-INFor any other form of infinity; writeNaNif the number cannot be calculated, ornullif it is not available. Specification: missing valuesThe 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 valuesThe 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."
NaNandnullare the only values other than numbers that a number column takes.
- G-VAL-07
-
Do not use scientific notation: write
0.00000152and1520000, not1.52E-6and1.52e6. Specification: missing values
- G-VAL-08
-
Never round or format a non-zero value to
0: write as many decimal digits as the value needs. Specification: missing valuesWithout scientific notation, an exporter that writes numbers with a fixed number of decimals can turn a small abundance such as
0.0000031into0. A0has its own meaning in the abundance columns (G-VAL-09), so the rounded value says something the data does not.
SML … INF 1.52E-6 0.000 …
- G-VAL-09
-
In the SML abundance columns, we recommend
nullfor a missing quantity and0for a value that is present but not reliably quantifiable. Schema reference: abundance_assay (SML)The schema reference says for
abundance_assay[n]andabundance_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 SMFabundance_assay[n]it says only: "Null or zero values may be reported as appropriate." The specification leaves the choice between0andnullto the exporter, "based on best understanding of the case in hand". What0should 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 specificationA 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 ashh:mm:ssand combined values asYYYY-MM-DDThh:mm:ss(ISO 8601). Specification: format specificationFractional seconds and a time zone, such as
09:45:30.250Zor09:45:30+02:00, can be appended.
- G-VAL-12
-
Write every URI, including the values of the
-uriand-locationfields, as a valid URI (RFC 3986; RFC 8089 forfile:URIs), or asnullwhere the field allows it. Specification: format specificationThe specification says: "any external resource reference (suffixed
-uri, or-location) must be provided as a valid URI string."nullis allowed, for example, for an unknownms_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_startandretention_time_in_seconds_end.
- G-VAL-14
-
Write
chargeas a positive integer, also for negative ions:1for[M-H]1-. Schema reference: charge (SMF)
- 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_ionsin the SML table andadduct_ionin 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
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
- G-TAB-02
-
Give every row an integer ID (
SML_ID,SMF_IDorSME_ID) that is unique within the file. Schema reference: SML_ID
- G-TAB-03
-
Write one
abundance_assay[n]column in the SML and SMF tables for everyassay[n]of the metadata. Schema reference: abundance_assay (SML)
- G-TAB-04
-
Write one
abundance_study_variable[n]and oneabundance_variation_study_variable[n]column in the SML table for everystudy_variable[n]of the metadata. Schema reference: abundance_study_variableThe 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 identificationThe 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_code1,2or3whenSME_ID_REFSholds several values, andnullwhen it holds one value or none. Schema reference: SME_ID_REF_ambiguity_codeThe codes are defined in the specification:
1for different identifications from the same input data,2for different input data that support the same identification, and3for 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_idThe 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, from1for the best; give tied candidates the same rank, and write1when there is no ranking. Schema reference: rank
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
reliabilityas a level of the default scale from 1 to 4, or of the scale declared insmall_molecule-identification_reliability(G-MTD-13). Schema reference: reliabilityThe default levels are identified metabolite (1), putatively annotated compound (2), putatively characterized class (3) and unknown compound (4).
- G-TAB-11
-
Write
isotopomernullfor a de-isotoped feature, and name the isotopomer for a feature that is a single isotope peak. Schema reference: isotopomerThe 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]_oropt_ms_run[n]_. Specification: adding optional columnsThe 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
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 columnsopt_global_cv_MS:1002476_ion_mobility_drift_timenames 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_featureorcolunit-small_molecule_evidence, as{column name}={unit parameter}, and never use these fields for abundance columns. Schema reference: colunit-small_molecule_featureThe 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.
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, withnullin rows without a library match. Specification: referencing query and library spectraThe 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).