LingPy

lingpy.test.evaluate.EvalPSA.pir_score

EvalPSA.pir_score(mode=1)

Compute the percentage of identical rows (PIR) score.

Parameters :

mode : { 1, 2 }

Select between mode 1, where all sequences are compared with each other, and mode 2, where only whole alignments are compared.

Returns :

score : float

The PIR score.

Notes

The PIR score is the number of identical rows (sequences) in reference and test alignment divided by the total number of rows.