filter_nucleotides#
- biotite.structure.filter_nucleotides(array: AtomArray[N] | AtomArrayStack[M, N]) ndarray[tuple[N], dtype[bool]][source]#
Filter all atoms of one array that belong to nucleotides.
- 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 nucleotide.
Notes
Nucleotides are identified according to the PDB chemical component dictionary. A residue is considered a nucleotide if it its
_chem_comp.typeproperty has one of the following values (case insensitive):DNA LINKING,DNA OH 3 PRIME TERMINUS,DNA OH 5 PRIME TERMINUS,L-DNA LINKING,L-RNA LINKING,RNA LINKING,RNA OH 3 PRIME TERMINUS,RNA OH 5 PRIME TERMINUS