mmtfPyspark.filters.polymerComposition module

polymerComposition.py

This filter returns entries that contain chains made of the specified monomer types.

class PolymerComposition(monomer_type, exclusive=False)[source]

Bases: object

The default constructor returns entries that contain at least one chain that matches the conditions. If the “exclusive” flag is set to true in the constructor, all chains must match the conditions. For a multi-model structure, this filter only checks the first model.

Optional constructor that can be used to filter entries that exclusively match all chains.

Attributes

exclusive (bool) if true, all chains must be made of the specified monomers

Methods

__call__(t) Call self as a function.
AMINO_ACIDS_20 = ['ALA', 'ARG', 'ASN', 'ASP', 'CYS', 'GLN', 'GLU', 'GLY', 'HIS', 'ILE', 'LEU', 'LYS', 'MET', 'PHE', 'PRO', 'SER', 'THR', 'TRP', 'TYR', 'VAL']
AMINO_ACIDS_22 = ['ALA', 'ARG', 'ASN', 'ASP', 'CYS', 'GLN', 'GLU', 'GLY', 'HIS', 'ILE', 'LEU', 'LYS', 'MET', 'PHE', 'PRO', 'SER', 'THR', 'TRP', 'TYR', 'VAL', 'SEC', 'PYL']
DNA_STD_NUCLEOTIDES = ['DA', 'DC', 'DG', 'DT']
RNA_STD_NUCLEOTIDES = ['A', 'C', 'G', 'U']