get_expanded_element_index_by_position

get_expanded_element_index_by_position(sequence_name, position)

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

Parameters:
  • sequence_name (str) – sequence name

  • position (float) – position (S coordinate)

Return type:

int

Returns:

the index of an element at that position

Raises:

ValueError – if the sequence or element name is invalid