Skip to content

emzed

emzed makes developing analysis strategies for LCMS data as simple as possible.

Quick Example

import emzed

peak_map = emzed.PeakMap.load("test.mzML")

print(f"loaded mzML file with {len(peak_map)} spectra")

peaks = emzed.run_feature_finder_metabo(
    peak_map,
    verbose=False,
    mtd_noise_threshold_int=10000,
)

print(f"detected {len(peaks)} peaks")

integrated_peaks = emzed.quantification.integrate(
    peaks,
    "emg",
    show_progress=False,
)

successfully_integrated = integrated_peaks.filter(
    integrated_peaks.area.is_not_none()
)

print(f"integrated {len(successfully_integrated)} peaks")
loaded mzML file with 2884 spectra
pyopenms: pw low: 0.0146267  pw high: 2.24068
detected 496 peaks
integrated 492 peaks

For more runnable scripts and notebook-backed walkthroughs, see Examples.