INNER CODE UNIT · Python
get_chromatogram
pymzml/pymzML · pymzml/run.py:484
def get_chromatogram(self, identifier):
"""
Access chromatogram with the given identifier.
Arguments:
identifier (str or int): Either a string identifier like 'TIC' or
an index (0-based) to access chromatograms in order.
Returns:
chromatogram (Chromatogram): chromatogram object with the given identifier
Note:
This method is only useful when skip_chromatogram is set to False
if you want to access chromatograms by index. If skip_chromatogram is True,
you can still access chromatograms by string identifiers (e.g., 'TIC').
"""
if isinstance(identifier, str):
return self[identifier]