filter_carbohydrates#
- biotite.structure.filter_carbohydrates(array)[source]#
Filter all atoms of one array that belong to carbohydrates.
- 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 a carbohydrate.
Notes
Carbohydrates are identified according to the PDB chemical component dictionary. A residue is considered a carbohydrate if it its
_chem_comp.typeproperty has one of the following values (case insensitive):D-SACCHARIDE,D-SACCHARIDE,ALPHA LINKING,D-SACCHARIDE, BETA LINKING,L-SACCHARIDE,L-SACCHARIDE, ALPHA LINKING,L-SACCHARIDE, BETA LINKING,SACCHARIDE