Hi,

I wonder, is there a way in Jmol to control the order of the atoms
within a selection?

What I want to do:
--------------------------
I have a geometrical (polyhedral) structure with triangular faces in
file1.pdb and a triangular plane
with a few chains attached to it on one side (roughly perpendicular to
the plane) in file2.pdb.

Now I want to load both files ( load "file1.pdb"; load APPEND "file2.pdb"; )
and rotate the structure from file2 to be superimposed to a face of my
polyhedron.

Clearly compare( ... ,  ... ), quaternions and rotate selected seem to
be the way to go.


What I have tried:
--------------------------
So I select three atoms from my file2 that define a plane and the
corresponding atoms on one face of the polyhedron in the same order -
starting at one tip and going clock-wise:

plane_01 = { 91:*/2.1 or 9:*/2.1 or 6:*/2.1 } ;  #  each atom is in
it's own residue
face_01 = { 2807:*/1.1 or 2224:*/1.1 or 2227:*/1.1 };

select */2.1 ;
quat_01 = compare( {...@plane_01}, {...@face_01} ) ;
rotate selected molecular @quat_01 ;
# now the plane is in some distance to the face and the chains are
nicely between them

quat_02 = compare( {...@plane_01}, {...@face_01} ) ;
rotate selected molecular @quat_02 ;
# now the plane and the face are superimposed (as I like them to be)
but the chains point
# towards the inside of the polyhedron and not to the outside

# let's rotate the plane by 180° around a symmetry axis:
draw line1 {2807:*/1.1} {2224:*/1.1 or 2227:*/1.1} ;
rotateSelected 180.0 $line1 ;

# now that looks like what I expect


What's wrong with it:
------------------------------
1) Shouldn't I be able to get the orientation with the first quaternion?

2) And why do my chains point towards the inside of my polyhedron?

My Guess: As a "print @plane_01 ; print @face_01 ;" shows me that the
selections are sorted by the atom-number. And the atom-numbers of my
reference points on my polyhedron's faces are almost never in the
order that I want them to be.

And I believe that's what screw's me when I move on to face_02: then
my plane is rotated around 120° around the normal of the plane.
(Yep, from the 6 possible ways one can superimpose the triangular
plane to one face of the polyhedron, I am interested to get exactly
one).

Is that possible to solve without trial-and-error (and rotating my
plane around one or the other symmetry axis) to reach to the structure
that I want?

(if it matters: I'm using Jmol 12.0.7 )

Oliver

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to