2 Some functions for analyzing trajectories
12 This function returns a CoordFrame from an EntityHandle
20 This function calculates the distance between the centers of mass
21 of sele1 and sele2, two selections from the same Entity.
26 if not sele1.IsValid()
and sele2.IsValid():
30 if not eh==sele2.GetHandle():
31 print 'The two views must be from the same entity'
34 return f.GetDistanceBetwCenterOfMass(sele1,sele2)
38 This function calculates the minimal distance between
39 sele1 and sele2, two selections from the same Entity.
44 if not sele1.IsValid()
and sele2.IsValid():
48 if not eh==sele2.GetHandle():
49 print 'The two views must be from the same entity'
52 return f.GetMinDistance(sele1,sele2)
56 This function calculates the minimal distance between sele2 and
57 the center of mass of sele1, two selections from the same Entity.
59 sele1 : EntityView from which the center of mass is taken
62 if not sele1.IsValid()
and sele2.IsValid():
66 if not eh==sele2.GetHandle():
67 print 'The two views must be from the same entity'
70 return f.GetMinDistBetwCenterOfMassAndView(sele1,sele2)
75 This function calculates the content of alpha helix in a view.
76 All residues in the view have to ordered and adjacent (no gaps allowed)
80 if not sele1.IsValid():
85 return f.GetAlphaHelixContent(sele1)
90 This function calculates the best fit line to the atoms in sele1.
93 It returns a geom::Line3
95 if not sele1.IsValid():
100 return f.GetODRLine(sele1)
104 This function calculates the best fit plane to the atoms in sele1.
107 It returns a geom::Plane
109 if not sele1.IsValid():
114 return f.GetODRPlane(sele1)
118 This function calculates the best fit cylinder to the CA atoms in sele1,
119 and returns its axis as a Line3. residues should be ordered correctly
123 It returns a geom::Line3
125 if not sele1.IsValid():
130 return f.FitCylinder(sele1)