StripedScores#

class lightmotif.StripedScores#

A striped matrix storing scores obtained with a scoring matrix.

argmax()#

Return the position of the maximum score, if the score matrix is not empty.

Returns:

int or None – The position of the maximum score, if any.

Note

This method uses the best implementation for the local platform, prefering AVX2 if available.

max()#

Return the maximum score, if the score matrix is not empty.

Returns:

float or None – The maximum score, if any.

Note

This method uses the best implementation for the local platform, prefering AVX2 if available.

threshold(threshold)#

Return all positions with a score greater or equal to the threshold.

Returns:

list of int – The indices of the position with a score greater or equal to the given threshold. Note that the indices may or may not be sorted, depending on the implementation.

Note

This method uses the best implementation for the local platform, prefering AVX2 if available.