Re: [PyMOL] minimum rotation between views

2013-11-26 Thread Jonathan Grimes

  many thanks……much appreciated.
 
jon


Dr. Jonathan M. Grimes, 
NDM Senior Reseach Fellow
University Research Lecturer
DIAMOND Research Fellow

Division of Structural Biology
Wellcome Trust Centre for Human Genetics
University of Oxford
Roosevelt Drive,
Oxford OX3 7BN, UK

Email: jonat...@strubi.ox.ac.uk, Web: www.strubi.ox.ac.uk 
Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547   

On 25 Nov 2013, at 18:29, Sampson, Jared jared.samp...@nyumc.org wrote:

 Hi Jonathan - 
 
 There is a script by Christoph Gohlke on the PyMOL Wiki called 
 transformations.py  which may be useful.  It provides several functions that 
 can be used to manipulate quaternions.  I used it to calculate pseudo-twofold 
 axes for my Fab elbow angle script last year.  The implementation would be 
 different, using camera matrices instead of object matrices, but the general 
 idea would be similar.
 
 Cheers,
 Jared
 
 --
 Jared Sampson
 Xiangpeng Kong Lab
 NYU Langone Medical Center
 550 First Avenue
 New York, NY 10016
 212-263-7898
 http://kong.med.nyu.edu/
 
 
 
 
 
 
 On Nov 25, 2013, at 11:20 AM, Robert Hanson hans...@stolaf.edu
  wrote:
 
 Jonathan, this is called the quaternion difference, but I don't know how you 
 get access to quaternions in PyMOL. If you could, you would just take the 
 difference between the two quaternion representations of the views and get 
 it's angle for the corresponding axis-angle.
 
 Jason, are there standard Python utilities that one can use to get the 
 quaternion equivalents of PyMOL matrices?
 
 Bob
  
 
 
 On Mon, Nov 25, 2013 at 9:14 AM, Jonathan Grimes jonat...@strubi.ox.ac.uk 
 wrote:
 
is there a script available to calculate the min rotation about a vector
that describes the relationship between 2 views……
 
i am happy to ignore any translational component but i have 2 views
of a molecule and want to say that theres a *** deg rotation between the
 2 views ?
 
thanks
 jon
 
 
 Dr. Jonathan M. Grimes,
 NDM Senior Reseach Fellow
 University Research Lecturer
 DIAMOND Research Fellow
 
 Division of Structural Biology
 Wellcome Trust Centre for Human Genetics
 University of Oxford
 Roosevelt Drive,
 Oxford OX3 7BN, UK
 
 Email: jonat...@strubi.ox.ac.uk, Web: www.strubi.ox.ac.uk
 Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547
 
 
 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing
 conversations that shape the rapidly evolving mobile landscape. Sign up now.
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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
 
 
 
 -- 
 Robert M. Hanson
 Larson-Anderson Professor of Chemistry
 St. Olaf College
 Northfield, MN
 http://www.stolaf.edu/people/hansonr
 
 
 If nature does not answer first what we want,
 it is better to take what answer we get. 
 
 -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
 
 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing 
 conversations that shape the rapidly evolving mobile landscape. Sign up now. 
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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
 
 
 This email message, including any attachments, is for the sole use of the 
 intended recipient(s) and may contain information that is proprietary, 
 confidential, and exempt from disclosure under applicable law. Any 
 unauthorized review, use, disclosure, or distribution is prohibited. If you 
 have received this email in error please notify the sender by return email 
 and delete the original message. Please note, the recipient should check this 
 email and any attachments for the presence of viruses. The organization 
 accepts no liability for any damage caused by any virus transmitted by this 
 email.
 =

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 

[PyMOL] minimum rotation between views

2013-11-25 Thread Jonathan Grimes

   is there a script available to calculate the min rotation about a vector
   that describes the relationship between 2 views……
 
   i am happy to ignore any translational component but i have 2 views
   of a molecule and want to say that theres a *** deg rotation between the 
2 views ?

   thanks
jon


Dr. Jonathan M. Grimes, 
NDM Senior Reseach Fellow
University Research Lecturer
DIAMOND Research Fellow

Division of Structural Biology
Wellcome Trust Centre for Human Genetics
University of Oxford
Roosevelt Drive,
Oxford OX3 7BN, UK

Email: jonat...@strubi.ox.ac.uk, Web: www.strubi.ox.ac.uk 
Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547   


--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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


Re: [PyMOL] minimum rotation between views

2013-11-25 Thread Robert Hanson
Jonathan, this is called the quaternion difference, but I don't know how
you get access to quaternions in PyMOL. If you could, you would just take
the difference between the two quaternion representations of the views and
get it's angle for the corresponding axis-angle.

Jason, are there standard Python utilities that one can use to get the
quaternion equivalents of PyMOL matrices?

Bob



On Mon, Nov 25, 2013 at 9:14 AM, Jonathan Grimes
jonat...@strubi.ox.ac.ukwrote:


is there a script available to calculate the min rotation about a vector
that describes the relationship between 2 views……

i am happy to ignore any translational component but i have 2 views
of a molecule and want to say that theres a *** deg rotation between the
 2 views ?

thanks
 jon


 Dr. Jonathan M. Grimes,
 NDM Senior Reseach Fellow
 University Research Lecturer
 DIAMOND Research Fellow

 Division of Structural Biology
 Wellcome Trust Centre for Human Genetics
 University of Oxford
 Roosevelt Drive,
 Oxford OX3 7BN, UK

 Email: jonat...@strubi.ox.ac.uk, Web: www.strubi.ox.ac.uk
 Tel: (+44) - 1865 - 287561, FAX: (+44) - 1865 - 287547



 --
 Shape the Mobile Experience: Free Subscription
 Software experts and developers: Be at the forefront of tech innovation.
 Intel(R) Software Adrenaline delivers strategic insight and game-changing
 conversations that shape the rapidly evolving mobile landscape. Sign up
 now.
 http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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




-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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

Re: [PyMOL] minimum rotation between views

2013-11-25 Thread Sampson, Jared
Hi Jonathan -

There is a script by Christoph Gohlke on the PyMOL Wiki called 
transformations.pyhttp://pymolwiki.org/index.php/Transformations  which may 
be useful.  It provides several functions that can be used to manipulate 
quaternions.  I used it to calculate pseudo-twofold axes for my Fab elbow 
anglehttp://pymolwiki.org/index.php/Elbow_angle script last year.  The 
implementation would be different, using camera matrices instead of object 
matrices, but the general idea would be similar.

Cheers,
Jared

--
Jared Sampson
Xiangpeng Kong Lab
NYU Langone Medical Center
550 First Avenue
New York, NY 10016
212-263-7898
http://kong.med.nyu.edu/






On Nov 25, 2013, at 11:20 AM, Robert Hanson 
hans...@stolaf.edumailto:hans...@stolaf.edu
 wrote:

Jonathan, this is called the quaternion difference, but I don't know how you 
get access to quaternions in PyMOL. If you could, you would just take the 
difference between the two quaternion representations of the views and get it's 
angle for the corresponding axis-angle.

Jason, are there standard Python utilities that one can use to get the 
quaternion equivalents of PyMOL matrices?

Bob



On Mon, Nov 25, 2013 at 9:14 AM, Jonathan Grimes 
jonat...@strubi.ox.ac.ukmailto:jonat...@strubi.ox.ac.uk wrote:

   is there a script available to calculate the min rotation about a vector
   that describes the relationship between 2 views……

   i am happy to ignore any translational component but i have 2 views
   of a molecule and want to say that theres a *** deg rotation between the
2 views ?

   thanks
jon


Dr. Jonathan M. Grimes,
NDM Senior Reseach Fellow
University Research Lecturer
DIAMOND Research Fellow

Division of Structural Biology
Wellcome Trust Centre for Human Genetics
University of Oxford
Roosevelt Drive,
Oxford OX3 7BN, UK

Email: jonat...@strubi.ox.ac.ukmailto:jonat...@strubi.ox.ac.uk, Web: 
www.strubi.ox.ac.ukhttp://www.strubi.ox.ac.uk/
Tel: (+44) - 1865 - 287561tel:%28%2B44%29%20-%201865%20-%20287561, FAX: (+44) 
- 1865 - 287547tel:%28%2B44%29%20-%201865%20-%20287547


--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
PyMOL-users mailing list 
(PyMOL-users@lists.sourceforge.netmailto: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



--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/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


This email message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain information that is proprietary, 
confidential, and exempt from disclosure under applicable law. Any unauthorized 
review, use, disclosure, or distribution is prohibited. If you have received 
this email in error please notify the sender by return email and delete the 
original message. Please note, the recipient should check this email and any 
attachments for the presence of viruses. The organization accepts no liability 
for any damage caused by any virus transmitted by this email.
=
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: