biotite.structure.filter_nucleotides

biotite.structure.filter_nucleotides(array)[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.type property 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