to_clepaps#
- biotite.structure.alphabet.to_clepaps(atoms: AtomArray[N]) tuple[list[ClepapsSequence], ndarray[tuple[K], dtype[integer]]][source]#
Encode each chain in the given structure to the CLePAPS structural alphabet.
- Parameters:
- atomsAtomArray
The atom array to encode. May contain multiple chains.
- Returns:
- sequenceslist of Sequence, length=n
The encoded CLePAPS 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_clepaps(atom_array) >>> print(sequences[0]) RRHHHHHIHOCNJMAGDCCR