skbio.sequence.SubstitutionMatrix.index#

SubstitutionMatrix.index(lookup_id)[source]#

Return the index of the specified ID.

Parameters:
lookup_idstr

ID whose index will be returned.

Returns:
int

Row/column index of lookup_id.

Raises:
MissingIDError

If lookup_id is not in the dissimilarity matrix.