Package csb :: Package bio :: Package io :: Module wwpdb :: Class AbstractResidueMapper
[frames] | no frames]

Class AbstractResidueMapper

source code

object --+
         |
        AbstractResidueMapper
Known Subclasses:

Defines the base interface of all residue mappers, used to align PDB ATOM records to the real (SEQRES) sequence of a chain.

Nested Classes
  __metaclass__
Metaclass for defining Abstract Base Classes (ABCs).
Instance Methods
ResidueInfo
create_gap(self, alphabet=<ProteinAlphabet: ILE=I, GLN=Q, ...>)
Create and return a new gap residue.
source code
SparseChainSequence
map(self, sparse, reference)
Map sparse's residues to reference.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  __abstractmethods__ = frozenset(['map'])
Properties

Inherited from object: __class__

Method Details

create_gap(self, alphabet=<ProteinAlphabet: ILE=I, GLN=Q, ...>)

source code 

Create and return a new gap residue.

Parameters:
Returns: ResidueInfo

map(self, sparse, reference)

source code 

Map sparse's residues to reference. Return all sparse residues, aligned over reference, with artificial gap residues inserted at relevant positions. The resulting sequence of sparse residues will always have the same length as the reference sequence.

Parameters:
Returns: SparseChainSequence
all sparse residues, optimally aligned over reference (with gaps)
Raises:

Note: sparse's ranks won't be touched because the rank property of the underlying ResidueInfo implementation is not necessarily r/w.