to_3di#

biotite.structure.alphabet.to_3di(atoms)[source]#

Encode each chain in the given structure to the 3Di structure alphabet. [1]

Parameters:
atomsAtomArray

The atom array to encode. May contain multiple chains.

Returns:
sequenceslist of Sequence, length=n

The encoded 3Di sequence for each peptide chain in the structure.

chain_start_indicesndarray, shape=(n,), dtype=int

The atom index where each chain starts.

References

Examples

>>> sequences, chain_starts = to_3di(atom_array)
>>> print(sequences[0])
dqqvvcvvcpnvvnvdhgdd