swagger_client.models.metadata module¶
mzTab-M reference implementation and validation API.
This is the mzTab-M reference implementation and validation API service. # noqa: E501
OpenAPI spec version: 2.0.0 Contact: nils.hoffmann@isas.de Generated by: https://github.com/swagger-api/swagger-codegen.git
-
class
swagger_client.models.metadata.
Metadata
(prefix='MTD', mz_tab_version=None, mz_tab_id=None, title=None, description=None, sample_processing=None, instrument=None, software=None, publication=None, contact=None, uri=None, external_study_uri=None, quantification_method=None, study_variable=None, ms_run=None, assay=None, sample=None, custom=None, cv=None, database=None, derivatization_agent=None, small_molecule_quantification_unit=None, small_molecule_feature_quantification_unit=None, small_molecule_identification_reliability=None, id_confidence_measure=None, colunit_small_molecule=None, colunit_small_molecule_feature=None, colunit_small_molecule_evidence=None)¶ Bases:
object
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Metadata - a model defined in Swagger
-
property
assay
¶ Gets the assay of this Metadata. # noqa: E501
Specification of assay. (empty) name: A name for each assay, to serve as a list of the assays that MUST be reported in the following tables. custom: Additional custom parameters or values for a given assay. external_uri: An external reference uri to further information about the assay, for example via a reference to an object within an ISA-TAB file. sample_ref: An association from a given assay to the sample analysed. ms_run_ref: An association from a given assay to the source MS run. All assays MUST reference exactly one ms_run unless a workflow with pre-fractionation is being encoded, in which case each assay MUST reference n ms_runs where n fractions have been collected. Multiple assays SHOULD reference the same ms_run to capture multiplexed experimental designs. # noqa: E501
- Returns
The assay of this Metadata. # noqa: E501
- Return type
list[Assay]
-
attribute_map
= {'assay': 'assay', 'colunit_small_molecule': 'colunit-small_molecule', 'colunit_small_molecule_evidence': 'colunit-small_molecule_evidence', 'colunit_small_molecule_feature': 'colunit-small_molecule_feature', 'contact': 'contact', 'custom': 'custom', 'cv': 'cv', 'database': 'database', 'derivatization_agent': 'derivatization_agent', 'description': 'description', 'external_study_uri': 'external_study_uri', 'id_confidence_measure': 'id_confidence_measure', 'instrument': 'instrument', 'ms_run': 'ms_run', 'mz_tab_id': 'mzTab-ID', 'mz_tab_version': 'mzTab-version', 'prefix': 'prefix', 'publication': 'publication', 'quantification_method': 'quantification_method', 'sample': 'sample', 'sample_processing': 'sample_processing', 'small_molecule_feature_quantification_unit': 'small_molecule_feature-quantification_unit', 'small_molecule_identification_reliability': 'small_molecule-identification_reliability', 'small_molecule_quantification_unit': 'small_molecule-quantification_unit', 'software': 'software', 'study_variable': 'study_variable', 'title': 'title', 'uri': 'uri'}¶
-
property
colunit_small_molecule
¶ Gets the colunit_small_molecule of this Metadata. # noqa: E501
Defines the used unit for a column in the small molecule section. The format of the value has to be {column name}={Parameter defining the unit}. This field MUST NOT be used to define a unit for quantification columns. The unit used for small molecule quantification values MUST be set in small_molecule-quantification_unit. # noqa: E501
- Returns
The colunit_small_molecule of this Metadata. # noqa: E501
- Return type
list[ColumnParameterMapping]
-
property
colunit_small_molecule_evidence
¶ Gets the colunit_small_molecule_evidence of this Metadata. # noqa: E501
Defines the used unit for a column in the small molecule evidence section. The format of the value has to be {column name}={Parameter defining the unit}. # noqa: E501
- Returns
The colunit_small_molecule_evidence of this Metadata. # noqa: E501
- Return type
list[ColumnParameterMapping]
-
property
colunit_small_molecule_feature
¶ Gets the colunit_small_molecule_feature of this Metadata. # noqa: E501
Defines the used unit for a column in the small molecule feature section. The format of the value has to be {column name}={Parameter defining the unit}. This field MUST NOT be used to define a unit for quantification columns. The unit used for small molecule quantification values MUST be set in small_molecule_feature-quantification_unit. # noqa: E501
- Returns
The colunit_small_molecule_feature of this Metadata. # noqa: E501
- Return type
list[ColumnParameterMapping]
-
property
contact
¶ Gets the contact of this Metadata. # noqa: E501
The contact’s name, affiliation and e-mail. Several contacts can be given by indicating the number in the square brackets after “contact”. A contact has to be supplied in the format [first name] [initials] [last name]. # noqa: E501
- Returns
The contact of this Metadata. # noqa: E501
- Return type
list[Contact]
-
property
custom
¶ Gets the custom of this Metadata. # noqa: E501
Any additional parameters describing the analysis reported. # noqa: E501
- Returns
The custom of this Metadata. # noqa: E501
- Return type
list[Parameter]
-
property
cv
¶ Gets the cv of this Metadata. # noqa: E501
Specification of controlled vocabularies. label: A string describing the labels of the controlled vocabularies/ontologies used in the mzTab file as a short-hand e.g. “MS” for PSI-MS. full_name: A string describing the full names of the controlled vocabularies/ontologies used in the mzTab file. version: A string describing the version of the controlled vocabularies/ontologies used in the mzTab file. uri: A string containing the URIs of the controlled vocabularies/ontologies used in the mzTab file. # noqa: E501
- Returns
The cv of this Metadata. # noqa: E501
- Return type
list[CV]
-
property
database
¶ Gets the database of this Metadata. # noqa: E501
Specification of databases. (empty): The description of databases used. For cases, where a known database has not been used for identification, a userParam SHOULD be inserted to describe any identification performed e.g. de novo. If no identification has been performed at all then “no database” should be inserted followed by null. prefix: The prefix used in the “identifier” column of data tables. For the “no database” case “null” must be used. version: The database version is mandatory where identification has been performed. This may be a formal version number e.g. “1.4.1”, a date of access “2016-10-27” (ISO-8601 format) or “Unknown” if there is no suitable version that can be annotated. uri: The URI to the database. For the “no database” case, “null” must be reported. # noqa: E501
- Returns
The database of this Metadata. # noqa: E501
- Return type
list[Database]
-
property
derivatization_agent
¶ Gets the derivatization_agent of this Metadata. # noqa: E501
A description of derivatization agents applied to small molecules, using userParams or CV terms where possible. # noqa: E501
- Returns
The derivatization_agent of this Metadata. # noqa: E501
- Return type
list[Parameter]
-
property
description
¶ Gets the description of this Metadata. # noqa: E501
The file’s human readable description. # noqa: E501
- Returns
The description of this Metadata. # noqa: E501
- Return type
str
-
property
external_study_uri
¶ Gets the external_study_uri of this Metadata. # noqa: E501
A URI pointing to an external file with more details about the study design (e.g., an ISA-TAB file). # noqa: E501
- Returns
The external_study_uri of this Metadata. # noqa: E501
- Return type
list[Uri]
-
property
id_confidence_measure
¶ Gets the id_confidence_measure of this Metadata. # noqa: E501
The type of small molecule confidence measures or scores MUST be reported as a CV parameter [1-n]. The CV parameter definition should formally state whether the ordering is high to low or vice versa. The order of the scores SHOULD reflect their importance for the identification and be used to determine the identification’s rank. # noqa: E501
- Returns
The id_confidence_measure of this Metadata. # noqa: E501
- Return type
list[Parameter]
-
property
instrument
¶ Gets the instrument of this Metadata. # noqa: E501
The name, source, analyzer and detector of the instruments used in the experiment. Multiple instruments are numbered [1-n]. # noqa: E501
- Returns
The instrument of this Metadata. # noqa: E501
- Return type
list[Instrument]
-
property
ms_run
¶ Gets the ms_run of this Metadata. # noqa: E501
Specification of ms_run. location: Location of the external data file e.g. raw files on which analysis has been performed. If the actual location of the MS run is unknown, a “null” MUST be used as a place holder value, since the [1-n] cardinality is referenced elsewhere. If pre-fractionation has been performed, then [1-n] ms_runs SHOULD be created per assay. instrument_ref: If different instruments are used in different runs, instrument_ref can be used to link a specific instrument to a specific run. format: Parameter specifying the data format of the external MS data file. If ms_run[1-n]-format is present, ms_run[1-n]-id_format SHOULD also be present, following the parameters specified in Table 1. id_format: Parameter specifying the id format used in the external data file. If ms_run[1-n]-id_format is present, ms_run[1-n]-format SHOULD also be present. fragmentation_method: The type(s) of fragmentation used in a given ms run. scan_polarity: The polarity mode of a given run. Usually only one value SHOULD be given here except for the case of mixed polarity runs. hash: Hash value of the corresponding external MS data file defined in ms_run[1-n]-location. If ms_run[1-n]-hash is present, ms_run[1-n]-hash_method SHOULD also be present. hash_method: A parameter specifying the hash methods used to generate the String in ms_run[1-n]-hash. Specifics of the hash method used MAY follow the definitions of the mzML format. If ms_run[1-n]-hash is present, ms_run[1-n]-hash_method SHOULD also be present. # noqa: E501
- Returns
The ms_run of this Metadata. # noqa: E501
- Return type
list[MsRun]
-
property
mz_tab_id
¶ Gets the mz_tab_id of this Metadata. # noqa: E501
The ID of the mzTab file, this could be supplied by the repository from which it is downloaded or a local identifier from the lab producing the file. It is not intended to be a globally unique ID but carry some locally useful meaning. # noqa: E501
- Returns
The mz_tab_id of this Metadata. # noqa: E501
- Return type
str
-
property
mz_tab_version
¶ Gets the mz_tab_version of this Metadata. # noqa: E501
The version of the mzTab file. The suffix MUST be “-M” for mzTab for metabolomics (mzTab-M). # noqa: E501
- Returns
The mz_tab_version of this Metadata. # noqa: E501
- Return type
str
-
property
prefix
¶ Gets the prefix of this Metadata. # noqa: E501
The metadata section prefix. MUST always be MTD. # noqa: E501
- Returns
The prefix of this Metadata. # noqa: E501
- Return type
str
-
property
publication
¶ Gets the publication of this Metadata. # noqa: E501
A publication associated with this file. Several publications can be given by indicating the number in the square brackets after “publication”. PubMed ids must be prefixed by “pubmed:”, DOIs by “doi:”. Multiple identifiers MUST be separated by “|”. # noqa: E501
- Returns
The publication of this Metadata. # noqa: E501
- Return type
list[Publication]
-
property
quantification_method
¶ Gets the quantification_method of this Metadata. # noqa: E501
The quantification method used in the experiment reported in the file. # noqa: E501
- Returns
The quantification_method of this Metadata. # noqa: E501
- Return type
-
property
sample
¶ Gets the sample of this Metadata. # noqa: E501
Specification of sample. (empty) name: A name for each sample to serve as a list of the samples that MUST be reported in the following tables. Samples MUST be reported if a statistical design is being captured (i.e. bio or tech replicates). If the type of replicates are not known, samples SHOULD NOT be reported. species: The respective species of the samples analysed. For more complex cases, such as metagenomics, optional columns and userParams should be used. tissue: The respective tissue(s) of the sample. cell_type: The respective cell type(s) of the sample. disease: The respective disease(s) of the sample. description: A human readable description of the sample. custom: Custom parameters describing the sample’s additional properties. Dates MUST be provided in ISO-8601 format. # noqa: E501
- Returns
The sample of this Metadata. # noqa: E501
- Return type
list[Sample]
-
property
sample_processing
¶ Gets the sample_processing of this Metadata. # noqa: E501
A list of parameters describing a sample processing, preparation or handling step similar to a biological or analytical methods report. The order of the sample_processing items should reflect the order these processing steps were performed in. If multiple parameters are given for a step these MUST be separated by a “|”. If derivatization was performed, it MUST be reported here as a general step, e.g. ‘silylation’ and the actual derivatization agens MUST be specified in the Section 6.2.54 part. # noqa: E501
- Returns
The sample_processing of this Metadata. # noqa: E501
- Return type
list[SampleProcessing]
-
property
small_molecule_feature_quantification_unit
¶ Gets the small_molecule_feature_quantification_unit of this Metadata. # noqa: E501
Defines what type of units are reported in the small molecule feature quantification / abundance fields. # noqa: E501
- Returns
The small_molecule_feature_quantification_unit of this Metadata. # noqa: E501
- Return type
-
property
small_molecule_identification_reliability
¶ Gets the small_molecule_identification_reliability of this Metadata. # noqa: E501
The system used for giving reliability / confidence codes to small molecule identifications MUST be specified if not using the default codes. # noqa: E501
- Returns
The small_molecule_identification_reliability of this Metadata. # noqa: E501
- Return type
-
property
small_molecule_quantification_unit
¶ Gets the small_molecule_quantification_unit of this Metadata. # noqa: E501
Defines what type of units are reported in the small molecule summary quantification / abundance fields. # noqa: E501
- Returns
The small_molecule_quantification_unit of this Metadata. # noqa: E501
- Return type
-
property
software
¶ Gets the software of this Metadata. # noqa: E501
Software used to analyze the data and obtain the reported results. The parameter’s value SHOULD contain the software’s version. The order (numbering) should reflect the order in which the tools were used. A software setting used. This field MAY occur multiple times for a single software. The value of this field is deliberately set as a String, since there currently do not exist CV terms for every possible setting. # noqa: E501
- Returns
The software of this Metadata. # noqa: E501
- Return type
list[Software]
-
property
study_variable
¶ Gets the study_variable of this Metadata. # noqa: E501
Specification of study_variable. (empty) name: A name for each study variable (experimental condition or factor), to serve as a list of the study variables that MUST be reported in the following tables. For software that does not capture study variables, a single study variable MUST be reported, linking to all assays. This single study variable MUST have the identifier “undefined“. assay_refs: Bar-separated references to the IDs of assays grouped in the study variable. average_function: The function used to calculate the study variable quantification value and the operation used is not arithmetic mean (default) e.g. “geometric mean”, “median”. The 1-n refers to different study variables. variation_function: The function used to calculate the study variable quantification variation value if it is reported and the operation used is not coefficient of variation (default) e.g. “standard error”. description: A textual description of the study variable. factors: Additional parameters or factors, separated by bars, that are known about study variables allowing the capture of more complex, such as nested designs. # noqa: E501
- Returns
The study_variable of this Metadata. # noqa: E501
- Return type
list[StudyVariable]
-
swagger_types
= {'assay': 'list[Assay]', 'colunit_small_molecule': 'list[ColumnParameterMapping]', 'colunit_small_molecule_evidence': 'list[ColumnParameterMapping]', 'colunit_small_molecule_feature': 'list[ColumnParameterMapping]', 'contact': 'list[Contact]', 'custom': 'list[Parameter]', 'cv': 'list[CV]', 'database': 'list[Database]', 'derivatization_agent': 'list[Parameter]', 'description': 'str', 'external_study_uri': 'list[Uri]', 'id_confidence_measure': 'list[Parameter]', 'instrument': 'list[Instrument]', 'ms_run': 'list[MsRun]', 'mz_tab_id': 'str', 'mz_tab_version': 'str', 'prefix': 'str', 'publication': 'list[Publication]', 'quantification_method': 'Parameter', 'sample': 'list[Sample]', 'sample_processing': 'list[SampleProcessing]', 'small_molecule_feature_quantification_unit': 'Parameter', 'small_molecule_identification_reliability': 'Parameter', 'small_molecule_quantification_unit': 'Parameter', 'software': 'list[Software]', 'study_variable': 'list[StudyVariable]', 'title': 'str', 'uri': 'list[Uri]'}¶
-
property
title
¶ Gets the title of this Metadata. # noqa: E501
The file’s human readable title. # noqa: E501
- Returns
The title of this Metadata. # noqa: E501
- Return type
str
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
property