User:Wayne Decatur/Sandbox TestCompareinScriptAuthoring

From Proteopedia

Jump to: navigation, search

test compare

Drag the structure with the mouse to rotate

First attempts to run compare and save resulting compared version as a Protopedioa scene using Scene Authoring Tools. From 3cb4, loaded 'nextto scene, version8' and entered compare command in console: Result of test:
IT NEVER ROTATED AND TRANSLATED IN SCENE AUTHORING TOOL WINDOW, although it reported the rmsd.
The same script works great pasted into the console of a popup from the scene authoring window. Script tested: model all; compare {1.1} {1.2} ROTATE TRANSLATE;



Testing compare running dynamically in Proteopedia with new Jmol version


ABOVE FAILS?!?!
But it actually should work in Jmol.
To verify that, you can even see it work in a pop-up Proteoepdia generates.
To see for yourself:
Click on the pop-up below the Jmol window to open the two models in a pop-up window, and thn paste the code used for the script that the button (green text) should trigger into the Jmol Console and it works moving the models to superimpose and reports "RMSD 3.64 --> 3.54 Angstroms". The code is below: (Unortunately it runs off to the right so make sure you grab it all.

define domain1model1 94-139:a and model=1.1;
define domain1model2 100-143:a and model=1.2;
define domain2model1 236-273:a and model=1.1;
define domain2model2 354-388:a and model=1.2;
define domain3model1 324-342:a and model=1.1;
define domain3model2 438-470:a and model=1.2;
define domain5model1 432-438:a and model=1.1;
define domain5model2 634-641:a and model=1.2;
origcoord = {1.1}.xyz.all;
compare {1.1} {1.2} ATOMS {domain1model1}{domain1model2},{domain2model1}{domain2model2},{domain3model1}{domain3model2},{domain5model1}{domain5model2} ROTATE TRANSLATE -2.5; 

 
You can even paste in the code below to see the two models go back apart smoothly:

rotate COMPARE {1.1} @origcoord -2.5;

Proteopedia Page Contributors and Editors (what is this?)

Wayne Decatur

Personal tools