biotite.structure.get_chain_positions(array, indices)[source]

For each given atom index, obtain the position of the chain corresponding to this index in the input array.

For example, the position of the first chain in the atom array is 0, the the position of the second chain is 1, etc.

arrayAtomArray or AtomArrayStack

The atom array (stack) to determine the chains from.

indicesndarray, dtype=int, shape=(k,)

These indices point to the atoms to get the corresponding chain positions for. Negative indices are not allowed.

start_indicesndarray, dtype=int, shape=(k,)

The indices that point to the position of the chains.