get_element_index_by_position

get_element_index_by_position(sequence_name, position)

Return index of element at specified position in the original sequence.

Parameters:
  • sequence_name (str) – sequence name

  • position (float) – position (S coordinate)

Return type:

int

Returns:

the index of an element at that position, -1 if not found

Raises:

ValueError – if the sequence or element name is invalid