massdash.structs.Chromatogram

class massdash.structs.Chromatogram(rt, intensity, label='None')

Bases: Data1D

A single chromatogram object storing retention time and intensity data.

adjust_length(length: int) Chromatogram

Adjust the length of the chromatogram to a given length, this involved either padding or truncating the chromatogram

Parameters:

length (int) – The desired output length.

Returns:

A new chromatogram object with padded/truncated rt and intensity.

Return type:

Chromatogram

to_pyopenms(id: str | None = None)

Converts the Chromatogram to an OpenMS Chromatogram

Parameters:

id (str) – The nativeID of the chromatogram