biotite.structure.get_chain_count

biotite.structure.get_chain_count(array)[source]

Get the amount of chains in an atom array (stack).

The count is determined from the chain_id annotation. Each time the chain ID changes, the count is incremented.

Parameters
arrayAtomArray or AtomArrayStack

The atom array (stack), where the chains are counted.

Returns
countint

Amount of chains.