Metadata
Software
mzmlpy.elems.software.Software
dataclass
Software(element: ElementTree.Element)
Bases: _ParamGroup
Software used to acquire or process the data, identified by id and version.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
Sample
mzmlpy.elems.sample.Sample
dataclass
Sample(element: ElementTree.Element)
Bases: _ParamGroup
A sample analyzed in the experiment, described by id, optional name, and CV parameters.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
Run
mzmlpy.elems.run.Run
dataclass
Run(element: ElementTree.Element)
Bases: _ParamGroup
The mzML run element containing instrument configuration, sample, and acquisition timestamp references.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
ScanSetting
mzmlpy.elems.scan_setting.ScanSetting
dataclass
ScanSetting(element: ElementTree.Element)
Bases: _ParamGroup
Scan acquisition settings including source file references and target m/z lists.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
Target
mzmlpy.elems.scan_setting.Target
dataclass
Target(element: ElementTree.Element)
Bases: _ParamGroup
A targeted m/z entry within a scan settings target list.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
SourceFileRef
mzmlpy.elems.scan_setting.SourceFileRef
dataclass
SourceFileRef(ref: str)
A reference to a source file by its id string.
ReferenceableParamGroup
mzmlpy.elems.referenceable_param_group.ReferenceableParamGroup
dataclass
ReferenceableParamGroup(element: ElementTree.Element)
Bases: _ParamGroup
A named group of CV and user parameters that can be referenced by other elements to avoid repetition.
ns
cached
property
ns: str
Get XML namespace from the element tag.
accessions
cached
property
accessions: set[str]
Get a set of all accession numbers from the cvParams.
names
cached
property
names: set[str]
Get a set of all names from the cvParams.
ref_params
property
ref_params: list[ReferenceableParamGroupRef]
Get a list of all referenceable parameters from the XML element.
serialize
serialize() -> dict
return the full element content
Source code in src/mzmlpy/elems/dtree_wrapper.py
59 60 61 62 63 64 65 66 | |
get_attribute
get_attribute(attr_name: str) -> str | None
Get an attribute value from the element.
Source code in src/mzmlpy/elems/dtree_wrapper.py
68 69 70 | |
get_cvparm
get_cvparm(id: str) -> CvParam | None
Get a cvParam by accession or name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
94 95 96 97 98 99 | |
has_cvparm
has_cvparm(id: str) -> bool
Check if a cvParam with the given accession or name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
101 102 103 | |
get_user_param
get_user_param(name: str) -> UserParam | None
Get a userParam by name.
Source code in src/mzmlpy/elems/dtree_wrapper.py
133 134 135 136 137 138 | |
has_user_param
has_user_param(name: str) -> bool
Check if a userParam with the given name exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
140 141 142 | |
get_ref_param
get_ref_param(
ref: str,
) -> ReferenceableParamGroupRef | None
Get a referenceable parameter by ref.
Source code in src/mzmlpy/elems/dtree_wrapper.py
153 154 155 156 157 158 | |
has_ref_param
has_ref_param(ref: str) -> bool
Check if a referenceable parameter with the given ref exists.
Source code in src/mzmlpy/elems/dtree_wrapper.py
160 161 162 | |
ReferenceableParamGroupRef
mzmlpy.elems.params.ReferenceableParamGroupRef
dataclass
ReferenceableParamGroupRef(ref: str)
A reference to a referenceable parameter group by its id string.