Hi Jianhui Song,
With a bit of scripting it's not that hard:
## python code
from pymol import cmd
import numpy
def princalign(obj):
R = numpy.zeros((4,4))
x = numpy.array(cmd.get_model(obj).get_coord_list())
R[3,:3] = -x.mean(axis=0)
x += R[3,:3]
R[:3,:3] = numpy.linalg.eig(numpy.dot(x.T,x))[1].T
cmd.transform_object(obj,R.flatten())
for obj in cmd.get_object_list():
princalign(obj)
##=== end of python code
Do note that the direction along the principal axes is arbitrary.
Hope it helps,
Tsjerk
On Wed, Oct 1, 2014 at 9:25 PM, SongJianHui <gigi...@hotmail.com> wrote:
> Hi, all,
>
> I'm wondering if it is possible to align a number of unfolded
> conformations (C-alpha based backbone only) according to their principal
> axis. Thanks.
>
> Dr. Jianhui Song
> Postdoctoral Fellow
> Department of Biochemistry
> University of Toronto
>
>
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
> Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
> Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
>
--
Tsjerk A. Wassenaar, Ph.D.
------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net