modos.metabolomics.mztab#

Module for extracting metabolomics metadata from mzTab-M 2.0 files.

Functions#

load_mztab(path)

get_samples(mz)

get_assay(mz, data_id)

extract_metadata(instance, base_path)

extract_tables(path)

Module Contents#

modos.metabolomics.mztab.load_mztab(path)[source]#
Parameters:

path (pathlib.Path)

Return type:

pyteomics.mztab.MzTab

modos.metabolomics.mztab.get_samples(mz)[source]#
Parameters:

mz (pyteomics.mztab.MzTab)

Return type:

list[modos_schema.datamodel.Sample]

modos.metabolomics.mztab.get_assay(mz, data_id)[source]#
Parameters:
  • mz (pyteomics.mztab.MzTab)

  • data_id (str)

Return type:

modos_schema.datamodel.Assay

modos.metabolomics.mztab.extract_metadata(instance, base_path)[source]#
Parameters:
  • instance (modos_schema.datamodel.MassSpectrometryResults)

  • base_path (pathlib.Path)

Return type:

list[modos_schema.datamodel.Assay | modos_schema.datamodel.Sample]

modos.metabolomics.mztab.extract_tables(path)[source]#
Parameters:

path (pathlib.Path)

Return type:

dict[str, pandas.DataFrame]