mmtfPyspark.mappers.structureToPolymerChains module

structureToPolymerChain.py:

Maps a structure to its individual polymer chains. Polymer chains include polypeptides, polynucleotides, and linear and branched polysaccharides. For a multi-model structure, only the first model is considered.

class StructureToPolymerChains(useChainIdInsteadOfChainName=False, excludeDuplicates=False)[source]

Bases: object

Extracts all polymer chains from a structure. If the argument is set to true,
the assigned key is: <PDB ID.Chain ID>, where Chain ID is the unique identifier assigned to each molecular entity in an mmCIF file. This Chain ID corresponds to _atom_size.label_asym_id field in an mmCIF file.

Attributes

useChainIdInsteadOfChainName (bool) if true, use Chain Id in the key assignments
excludeDuplicates (bool) if true return only one chain for each sequence

Methods

__call__(t) Call self as a function.