biotite.structure.get_chain_starts_for

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

For each given atom index, get the index that points to the start of the chain that atom belongs to.

Parameters
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 starts for. Negative indices are not allowed.

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

The indices that point to the chain starts for the input indices.