modifinder.Compound.calculate_peak_annotation_ambiguity

Compound.calculate_peak_annotation_ambiguity(peaks: list | None = None)[source]

Calculate the peak annotation ambiguity

Parameters:

peaks (list) – a list of peaks to calculate the ambiguity for, if None, use all peaks

Returns:

(float, float) – ambiguity: the average number of fragments per annotated peaks ratio: the ratio of annotated peaks to all peaks

Return type:

a tuple of two values (ambiguity, ratio)