Package schrodinger :: Module structure :: Class _Residue
[hide private]
[frames] | no frames]

Class _Residue

object --+
         |
        _Residue

A class which is returned by the ResidueIterator and contains information about the residue including the atoms which make it up.

Important methods include extractStructure and getAtomList. The atom attribute can be used to iterate over all atoms in the molecule, and the number of atoms can be determined via len(molecule.atom).

Instance Methods [hide private]
 
__init__(self, st, resnum, inscode, chain, atoms=[])
x.__init__(...) initializes x; see help(type(x)) for signature
 
_getAtomIterator(self)
 
__str__(self)
Return a string representation - chain:resnum[inscode].
 
_getPdbRes(self)
 
_setPdbRes(self, newvalue)
 
_getChain(self)
 
_setChain(self, newvalue)
 
_getResnum(self)
 
_setResnum(self, newvalue)
 
_getInscode(self)
 
_setInscode(self, newvalue)
 
_getBF(self)
 
_getMolNumber(self)
 
_getSecStruct(self)
 
getCode(self)
Return the one-letter residue code for this residue.
 
getAtomList(self)
Return the list of atom indices in this residue.
 
extractStructure(self, copy_props=False)
Return a new Structure containing only this residue.
 
hasMissingAtoms(self)
Returns True is this residue doesn't have the expected number of heavy atoms.
 
isStandardResidue(self)
Returns True if this residue is on the list of standard PDB residues
 
isConnectedToResidue(self, other_res)
Returns True if the given residue is connected (C->N) to this residue.
 
applyStyle(self, atoms=3, bonds=3)
Applies the given display styles to the atoms and bonds of the residue.

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

Properties [hide private]
  atom
Returns an atom iterator for all atoms in the residue
  pdbres
PDB residue name
  chain
Chain name
  resnum
PDB residue number
  inscode
PDB residue insertion code
  temperature_factor
Residue B (temperature) factor
  molecule_number
Molecule number
  secondary_structure
Secondary structure

Inherited from object: __class__

Method Details [hide private]

__init__(self, st, resnum, inscode, chain, atoms=[])
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

 

Return a string representation - chain:resnum[inscode]. Insertion code is included only it is present. If the residue has no chain ID, then underscore ("_") is used.

Overrides: object.__str__

extractStructure(self, copy_props=False)

 

Return a new Structure containing only this residue. Structure properties, including the title, are inherited only if copy_props is set to True.

hasMissingAtoms(self)

 

Returns True is this residue doesn't have the expected number of heavy atoms. Will return False is this residue has the correct number of heavy atoms or if it is of a type we don't know

isConnectedToResidue(self, other_res)

 

Returns True if the given residue is connected (C->N) to this residue.

If the "C" PDB atom of this residue is connected to the "N" PDB atom of the other_res, then the residues are connected. Otherwise, they are not considered connected.

applyStyle(self, atoms=3, bonds=3)

 

Applies the given display styles to the atoms and bonds of the residue.

Parameters:
  • atoms (int) - display style for atoms given by structure module constants ATOM_NOSTYLE, ATOM_CIRCLE, ATOM_CPK, ATOM_BALLNSTICK. Default is ATOM_BALLNSTICK.
  • atoms (int) - display style for bonds given by structure module constants BOND_NOSTYLE, BOND_WIRE, BOND_TUBE, BOND_BALLNSTICK. Default is BOND_BALLNSTICK.
  • bonds (int)

Property Details [hide private]

atom

Returns an atom iterator for all atoms in the residue

Get Method:
_getAtomIterator(self)

pdbres

PDB residue name

Get Method:
_getPdbRes(self)
Set Method:
_setPdbRes(self, newvalue)

chain

Chain name

Get Method:
_getChain(self)
Set Method:
_setChain(self, newvalue)

resnum

PDB residue number

Get Method:
_getResnum(self)
Set Method:
_setResnum(self, newvalue)

inscode

PDB residue insertion code

Get Method:
_getInscode(self)
Set Method:
_setInscode(self, newvalue)

temperature_factor

Residue B (temperature) factor

Get Method:
_getBF(self)

molecule_number

Molecule number

Get Method:
_getMolNumber(self)

secondary_structure

Secondary structure

Get Method:
_getSecStruct(self)