get_all_chain_positions#
- biotite.structure.get_all_chain_positions(array)[source]#
For each atom, obtain the position of the chain corresponding to this atom 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 is1, etc.- Parameters:
- arrayAtomArray or AtomArrayStack
The atom array (stack) to determine the chains from.
- Returns:
- chain_indicesndarray, dtype=int, shape=(k,)
The indices that point to the position of the chains.
See also
get_chain_positionsSimilar to this function, but for a given subset of atom indices.