filter_polymer#

biotite.structure.filter_polymer(array: AtomArray[N] | AtomArrayStack[M, N], min_size: int = 2, pol_type: str = 'peptide') ndarray[tuple[N], dtype[bool]][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.