get_element_index

get_element_index(sequence_name, element_name)

Return index of element with specified name in the original sequence.

Parameters:
  • sequence_name (str) – sequence name

  • element_name (str) – element name

Return type:

int

Returns:

the index of the specified element

Raises:

ValueError – if the sequence or element name is invalid