LingPy

lingpy.compare.Multiple.get_peaks

Multiple.get_peaks(gap_weight=0)

Calculate the profile score for each column of the alignment.

Parameters :

gap_weight : float (default=0)

The factor by which gaps in aligned columns contribute to the calculation of the column score. When set to 0, gaps will be ignored in the calculation. When set to 0.5, gaps will count half as much as other characters.

Returns :

peaks : list

A list containing the profile scores for each column of the given alignment.