biotite.structure.filter_polymer

biotite.structure.filter_polymer(array, min_size=2, pol_type='peptide')[source]

Filter for atoms that are a part of a consecutive standard macromolecular polymer entity.

Parameters
arrayAtomArray or AtomArrayStack

The array to filter.

min_sizeint

The minimum number of monomers.

pol_typestr

The polymer type, either "peptide", "nucleotide", or "carbohydrate". Abbreviations are supported: "p", "pep", "n", etc.

Returns
filterndarray, dtype=bool

This array is True for all indices in array, where atoms belong to consecutive polymer entity having at least min_size monomers.