User:Karsten Theis/Animation course

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
Line 341: Line 341:
<jmol><jmolLink><script>moveto 1.0 { 802 6 -597 24.36} 5.1 45.3 23.42 {-1.40835 0.07379999999999987 -0.28485000000000005} 9.158727403987475 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom out</text></jmolLink> </jmol>
<jmol><jmolLink><script>moveto 1.0 { 802 6 -597 24.36} 5.1 45.3 23.42 {-1.40835 0.07379999999999987 -0.28485000000000005} 9.158727403987475 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom out</text></jmolLink> </jmol>
 +
 +
==Morph a helix==
 +
 +
Here is the SARS-2 <scene name='82/824516/Spike/1'>spike protein</scene>.
 +
 +
<jmol><jmolLink><script>script "http://proteopedia.org/scripts/52/520489/Ligand_pocket/2.spt"; connect (BF0) (not BF0) DELETE; select BF0; set picking dragselected; set allowrotateselected; temp0 = {BF0}.xyz.all</script><text>click to prepare</text></jmolLink></jmol>
 +
 +
Click and drag on the ligand to move it. Alt-click and drag on the ligand to rotate it. Click and drag away from the ligand to adjust the view. To store each consecutive ligand position, consecutively click on the links below:
 +
<jmol><jmolLink><script>temp1 = {BF0}.xyz.all</script><text>store state 1</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>temp2 = {BF0}.xyz.all</script><text>store state 2</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>temp3 = {BF0}.xyz.all</script><text>store state 3</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>temp4 = {BF0}.xyz.all</script><text>store state 4</text></jmolLink></jmol>
 +
 +
===Recall ligand position===
 +
Clicking on the links below will restore the ligand position (scene0 is the original position in the binding pocket):
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp0} -2</script><text>retrieve state 0</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp1} -2</script><text>retrieve state 1</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp2} -2</script><text>retrieve state 2</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp3} -2</script><text>retrieve state 3</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp4} -2</script><text>retrieve state 4</text></jmolLink></jmol>
 +
 +
To animate, click below
 +
 +
<jmol><jmolLink><script>set picking none</script><text>turn of ligand dragging</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp3} -2; ROTATE COMPARE {BF0} @{temp2} -2; ROTATE COMPARE {BF0} @{temp1} -2; ROTATE COMPARE {BF0} @{temp0} -2;</script><text>bind</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp1} -2; ROTATE COMPARE {BF0} @{temp2} -2; ROTATE COMPARE {BF0} @{temp3} -2; ROTATE COMPARE {BF0} @{temp4} -2;</script><text>dissociate</text></jmolLink></jmol>
 +
 +
<jmol><jmolLink><script>ROTATE COMPARE {BF0} @{temp3} -2; ROTATE HELIX COMPARE {BF0} @{temp2} -2; ROTATE HELIX COMPARE {BF0} @{temp1} -2; ROTATE HELIX COMPARE {BF0} @{temp0} -2;</script><text>bind helical path</text></jmolLink></jmol>
 +
 +
Show the saved states in a console:
 +
<jmol><jmolLink><script>console; show temp0; show temp1; show temp2; show temp3; show temp4; </script><text>show states</text></jmolLink></jmol>
 +
 +
To get to state 1, the command "ROTATE COMPARE {BF0} @{temp1} -2" is used, etc.

Revision as of 13:29, 5 March 2021

Drag the structure with the mouse to rotate

References

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis

Personal tools