Package schrodinger :: Package protein :: Module getpdb_utility :: Class Chain
[hide private]
[frames] | no frames]

Class Chain

object --+
         |
        Chain

Class to handle splitting a chain out of a PDB file.

Instance Methods [hide private]
 
__init__(self, name, code, debug=False)
Create a Chain object.
 
openFile(self, web)
 
write(self, line)
Write a line to the chain file if it applies to this chain.
bool
checkOK(self)
Check to see if everything went OK writing the file.
 
closeFile(self)
Add the END tag and close the chain file

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, code, debug=False)
(Constructor)

 

Create a Chain object.

Parameters:
  • code (str) - The PDB code of the parent PDB file
  • name (1 character string) - the Chain ID to extract
Overrides: object.__init__

write(self, line)

 

Write a line to the chain file if it applies to this chain.

Parameters:
  • line (str) - the current line of the PDB file.

checkOK(self)

 

Check to see if everything went OK writing the file.

Returns: bool
True if everything checks out OK, false if not