Superpose 1AKE and 4AKE by a least squares fitting algorithm
- See also:
- Superposing entities
import math
one=io.LoadEntity('pdb1ake.ent')
two=io.LoadEntity('pdb4ake.ent')
ev_a=one.Select('cname=A and (rnum=1:100) and aname=C,CA,N,O')
ev_b=two.Select('cname=A and (rnum=1:100) and aname=C,CA,N,O')
res=a.SuperposeSVD(ev_a, ev_b)
g=gfx.Entity("second", ev_b)
scene.Add(g)
h=gfx.Entity("first",ev_a)
scene.Add(h)
h.SetColor(gfx.RED)
g.SetColor(gfx.BLUE)
scene.CenterOn(g)