> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cosmosid.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metabolomics Data (MBS)

> What metabolomics data are, which metabolomics Data Tables Cosmos-Hub 2.0 supports, and how each table is structured.

Metabolomics is the analysis of metabolites in any biological specimen. Metabolites are intermediate or end substances produced, modified, or consumed during metabolism. The goal of metabolomics is to identify the metabolites present in a sample, to measure their amount, and to find how they change between conditions. In microbiome studies, metabolomics connects the composition of a community with its chemical output. Gut microbes, for example, ferment dietary fibre into short chain fatty acids and transform the bile acids produced by the host. Metabolomics profiles of the same samples show whether a change in the taxa or in the functions of a community comes with a change in these molecules. Metabolomics measures the result of host and microbial metabolic activity and is therefore the 'omics layer closest to the phenotype.

> [card] [Metabolomics services at Cmbio](https://cmbio.io/omics-sequencing-services/metabolomics-services)
>
> The majority of metabolomics data are generated by chromatography coupled with mass spectrometry (LC-MS/MS):
>
> * Liquid Chromatography (LC) separates the molecules of a sample by how strongly they interact with the material of a column, which depends mainly on their polarity, so each molecule leaves the column at its own retention time.
> * The mass spectrometer (MS/MS) then turns the molecules into ions and sorts them by their mass to charge ratio (m/z). The signal is the number of ions that reach the detector at a given m/z and retention time, and it is plotted as a peak. The area of the peak is proportional to the amount of the molecule in the sample, but it is a relative value, not a concentration. To obtain a concentration, the laboratory measures pure standards of the metabolite at known concentrations, builds a calibration curve that links peak area to concentration, and reads the concentration of each sample from this curve.
>
> At Cmbio, untargeted and targeted metabolomics are measured with LC-MS/MS, with panels for short chain fatty acids, bile acids, total fatty acids, tryptophan, amino acids and the TCA cycle, and human milk oligosaccharides.

## Metabolomics data on Cosmos-Hub 2.0

Cosmos-Hub 2.0 supports data generated from **untargeted** and from **targeted** metabolomics assays.

> [card] [Untargeted](https://docs.cosmosid.com/metabolomics-data.md#untargeted-peak-values)
>
> **Hypothesis generation**
>
> Records all detectable signals, from known and unknown molecules.
>
> * Each feature is a signal defined by its mass to charge ratio (m/z) and its retention time.
> * The identity of the molecule is assigned after the measurement, with a confidence level.
> * The values are relative signal intensities.

> [card] [Targeted](https://docs.cosmosid.com/metabolomics-data.md#targeted-peak-values)
>
> **Hypothesis testing**
>
> Measures a predefined list of known metabolites.
>
> * Each feature is a named metabolite.
> * The identity of the molecule is confirmed in advance with pure standards.
> * The values are signal intensities or concentrations, with limits of detection (LODs) and quantification (LOQ and ULOQ).

Metabolomics data can be imported into a study on Cosmos-Hub 2.0 using the Metabolomics Study Template (MBS) in [Import Custom Data](https://docs.cosmosid.com/importing-custom-data.md).

## Overview of Metabolomics Data Tables

Each section below describes the structure and the feature columns of each Metabolomics Data Table that can be analysed on Cosmos-Hub 2.0.

### Untargeted peak values

Untargeted metabolomics is a discovery-driven approach that captures the broad metabolite profile of a sample, including unidentified compounds.

Each feature is a signal defined by its m/z and retention time. The molecule is annotated afterwards by comparison with reference data, and the `annotation_level` column reports how many annotation fields are available for the feature, from 1 (most complete) to 3 (least complete).

The values are peak intensities: the values of one feature can be compared between samples, but they are not concentrations. A value below the limit of detection is reported as `<LOD`, or as a number lower than the value in `limit_of_detection`, as in the example below.

Untargeted Peak Values
Five features from a real untargeted study, one for each annotation level, then one column per sample. The values are peak intensities.

<table>
  <thead>
    <tr />
  </thead>

  <tbody />
</table>

### Targeted peak values

Targeted metabolomics quantifies a predefined panel of metabolites, for example amino acids or bile acids, and its measurements can be compared between studies.

The table reports three limits for each metabolite, in the unit given in the `unit` column.

* The limit of detection (LOD) is the lowest value that can be distinguished from the background noise.
* The limit of quantification (LOQ) is the lowest value that can be measured with acceptable precision.
* The upper limit of quantification (ULOQ) is the highest value that can be measured reliably.

A value between the LOD and the LOQ confirms that the metabolite is detected, but its amount cannot be quantified reliably. A value below the LOD is reported as `<LOD`.

Targeted Peak Values
One row per metabolite, with its limits and identifiers, then one column per sample. The values are in the unit of the unit column.

<table>
  <thead>
    <tr />
  </thead>

  <tbody />
</table>

### Targeted counts

The Targeted Counts table reports the absolute concentration of each metabolite in each sample, calculated from the calibration curve of the metabolite and expressed in the unit of the `unit` column. It has the same structure and the same feature columns as Targeted Peak Values.

Targeted Counts
The same columns as Targeted Peak Values. The values in the sample columns are absolute concentrations, in the unit of the unit column.

<table>
  <thead>
    <tr />
  </thead>

  <tbody />
</table>

## Pre-processing of metabolomics Data Tables

Metabolomics Data Tables have their own pre-processing parameters, which differ from those of taxonomic and functional Data Tables.

> [card] [Pre-processing parameters of Metabolomics Data](https://docs.cosmosid.com/pre-processing-of-metabolomics-data.md)
>
> The pre-processing steps and the parameters available for each metabolomics Data Table.

## References

* Bauermeister, A., et al. (2021). "Mass spectrometry-based metabolomics in microbiome investigations." Nature Reviews Microbiology. [https://doi.org/10.1038/s41579-021-00621-9](https://doi.org/10.1038/s41579-021-00621-9)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.