Shows how to modify the internal coordinate system of a protein. The backtone torsion angles are all set to PHI=-60, PSI=-45; the protein is thus folded into a very long alpha helix.
3 e=io.LoadEntity(
'../entity/sdh.pdb')
6 edi=e.EditICS(mol.EditMode.BUFFERED_EDIT)
7 for r
in c.GetResidueList():
11 edi.SetTorsionAngle(phi, math.radians(-60))
13 edi.SetTorsionAngle(psi, math.radians(-45))
17 g=gfx.Entity(
'helix', e.Select(
'aname=CA,N,O,C,CB'))
19 scene.SetCenter(g.GetCenter())