biotite.structure.filter_amino_acids

biotite.structure.filter_amino_acids(array)[source]

Filter all atoms of one array that belong to amino acid residues.

Parameters
arrayAtomArray or AtomArrayStack

The array to be filtered.

Returns
filterndarray, dtype=bool

This array is True for all indices in array, where the atom belongs to an amino acid residue.

Notes

Amino acids are identified according to the PDB chemical component dictionary. A residue is considered an amino acid if it its _chem_comp.type property has one of the following values (case insensitive):

D-BETA-PEPTIDE, C-GAMMA LINKING, D-GAMMA-PEPTIDE, C-DELTA LINKING, D-PEPTIDE LINKING, D-PEPTIDE NH3 AMINO TERMINUS, L-BETA-PEPTIDE, C-GAMMA LINKING, L-GAMMA-PEPTIDE, C-DELTA LINKING, L-PEPTIDE COOH CARBOXY TERMINUS, L-PEPTIDE LINKING, L-PEPTIDE NH3 AMINO TERMINUS, PEPTIDE LINKING