Package Bio :: Package SCOP :: Module Residues :: Class Residues
[hide private]
[frames] | no frames]

Class Residues

source code

object --+
         |
        Residues

A collection of residues from a PDB structure.

This class provides code to work with SCOP domain definitions. These
are concisely expressed as one or more chain fragments. For example,
"(1bba A:10-20,B:)" indicates residue 10 through 20 (inclusive) of
chain A, and every residue of chain B in the pdb structure 1bba. The pdb
id and brackets are optional. In addition "-" indicates every residue of
a pbd structure with one unnamed chain.

Start and end residue ids consist of the residue sequence number and an
optional single letter insertion code. e.g. "12", "-1", "1a", "1000"


pdbid -- An optional PDB id, e.g. "1bba"

fragments -- A sequence of tuples (chainID, startResID, endResID)

Instance Methods [hide private]
 
__init__(self, str=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_parse(self, str) source code
 
__str__(self)
str(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, str=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
str(x)

Overrides: object.__str__
(inherited documentation)