In [1]:
import sasmol.system as system
In [2]:
molecule = system.Molecule()
In [3]:
molecule.read_pdb('hiv1_gag.pdb')
In [4]:
molecule.natoms()
Out[4]:
In [5]:
molecule.calculate_center_of_mass(0)
Out[5]:
In [6]:
molecule.center(0)
In [7]:
molecule.calculate_center_of_mass(0)
Out[7]:
In [8]:
molecule.write_pdb("centered_hiv1_gag.pdb", 0, "w");