Sequence.get_num_equiv() — get number of equivalences

get_num_equiv(seq)
This returns the number of identical aligned residues between this sequence and seq, which must be another Sequence object from the same alignment. Only available for sequences in alignments.
Example: See alignment.id_table() command.