next up previous
Next: Advanced features related to Up: Usage Previous: Loading a file

Methods of the PDB class related to ATOM/HETATM

Most of the methods are hidden behind the usual notations such as bracketing for example. Here is a sample session illustrating most of them:

$>$ x = PDB(``myFile.pdb'') # load a file
$>$ y = x[0:20] # subset of the frist 20 residues of x
$>$ y.__class__
$>$ PDB
$>$ z = x[0] # the first residue of x
$>$ z.__class__
$>$ residue
$>$ y = x[0:5] + x[15:20] # concatenation of 2 PDB
$>$ y.out(``sel1.pdb'') # write y to disk file



Subsections

Apache 2004-03-20