User:Karsten Theis/Animation course
From Proteopedia
< User:Karsten Theis(Difference between revisions)
(28 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | <StructureSection load='' size='340' side='right' caption='' scene=''> | + | <StructureSection load='' size='340' side='right' caption='' scene='52/520489/Ligand_pocket/2'> |
==Animate a scene with Jmol== | ==Animate a scene with Jmol== | ||
Line 15: | Line 15: | ||
</item> | </item> | ||
<item> | <item> | ||
- | <script>background image "http://proteopedia.org/wiki/images/4/ | + | <script>background image "http://proteopedia.org/wiki/images/thumb/4/4f/3d-grid-background-5.jpg/600px-3d-grid-background-5.jpg"</script> |
<text>bw grid</text> | <text>bw grid</text> | ||
</item> | </item> | ||
Line 21: | Line 21: | ||
<script>background image "http://proteopedia.org/wiki/images/6/60/Grid.png"</script> | <script>background image "http://proteopedia.org/wiki/images/6/60/Grid.png"</script> | ||
<text>color grid</text> | <text>color grid</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background image "http://proteopedia.org/wiki/images/4/4c/Membrane_stylized2.JPG"</script> | ||
+ | <text>membrane</text> | ||
</item> | </item> | ||
<item> | <item> | ||
Line 178: | Line 182: | ||
===Recall ligand position=== | ===Recall ligand position=== | ||
Clicking on the links below will restore the ligand position (scene0 is the original position in the binding pocket): | 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} @{temp0} -2</script><text>retrieve state 0</text></jmolLink></jmol> | ||
Line 190: | Line 195: | ||
To animate, click below | To animate, click below | ||
- | <jmol><jmolLink><script>set picking none</script><text>turn | + | <jmol><jmolLink><script>set picking none</script><text>turn off 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} @{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} @{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: | Show the saved states in a console: | ||
Line 200: | Line 207: | ||
To get to state 1, the command "ROTATE COMPARE {BF0} @{temp1} -2" is used, etc. | To get to state 1, the command "ROTATE COMPARE {BF0} @{temp1} -2" is used, etc. | ||
+ | |||
+ | ==Two competing ligands== | ||
+ | <jmol><jmolLink><script>load files "=4dkl" "$naloxone"; restrict protein, bf0, 2.1; select protein; cartoon only | ||
+ | ; model 0; select 1000-1161; cartoon off; select protein and not 1000-1261; isosurface ignore {not selected} SASURFACE 1.2; compare {2.1} {1.1} ATOMS {N25} {*.NAJ} {C6} {*.CAE} {C16} {*.CAO} rotate translate; center bf0; select 2.1; color green; spacefill only; connect (BF0) (not BF0) DELETE; select BF0; color red; spacefill only; set picking dragselected; set allowrotateselected; ago0 = {BF0}.xyz.all; anta0 = {2.1}.xyz.all;</script><text>click to prepare</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ago1 = {BF0}.xyz.all</script><text>store agonist 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ago2 = {BF0}.xyz.all</script><text>store agonist 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ago3 = {BF0}.xyz.all</script><text>store agonist 3</text></jmolLink></jmol> | ||
+ | |||
+ | |||
+ | <jmol><jmolLink><script>select 2.1; </script><text>click to move naloxone</text></jmolLink></jmol> | ||
+ | |||
+ | |||
+ | <jmol><jmolLink><script>anta1 = {2.1}.xyz.all</script><text>store antagonist 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>anta2 = {2.1}.xyz.all</script><text>store antagonist 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>anta3 = {2.1}.xyz.all</script><text>store antagonist 3</text></jmolLink></jmol> | ||
+ | |||
+ | ===Recall ligand position=== | ||
+ | Clicking on the links below will restore the agonist and antagonist positions: | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{ago0} -1</script><text>agonist original</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{ago1} -1</script><text>agonist 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{ago2} -2</script><text>agonist 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {BF0} @{ago3} -2</script><text>agonist 3</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {2.1} @{anta0} -1</script><text>antagonist original</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {2.1} @{anta1} -2</script><text>antagonist 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {2.1} @{anta2} -2</script><text>antagonist 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {2.1} @{anta3} -2</script><text>antagonist 3</text></jmolLink></jmol> | ||
+ | |||
+ | Show the saved states in a console: | ||
+ | <jmol><jmolLink><script>console; show ago0; show ago1; show ago2; show ago3; show anta0; show anta1; show anta2; show anta3; </script><text>show states</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {bf0} @{ago1} 100; ROTATE COMPARE {bf0} @{ago0} 100; ROTATE COMPARE {2.1} @{anta2} -2; ROTATE COMPARE {2.1} @{anta1} -1; ROTATE COMPARE {2.1} @{anta2} -1; ROTATE COMPARE {2.1} @{anta3} -2; ROTATE COMPARE {bf0} @{ago1} 100; ROTATE COMPARE {bf0} @{ago0} 100; delay 1; ROTATE COMPARE {bf0} @{ago1} 100; ROTATE COMPARE {bf0} @{ago2} -1; ROTATE COMPARE {bf0} @{ago3} -2; ROTATE COMPARE {2.1} @{anta2} -2; ROTATE COMPARE {2.1} @{anta1} -1; ROTATE COMPARE {2.1} @{anta0} -1; ROTATE COMPARE {bf0} @{ago2} -1; ROTATE COMPARE {bf0} @{ago3} -2;</script><text>show states</text></jmolLink></jmol> | ||
==Collection of molecules== | ==Collection of molecules== | ||
Line 227: | Line 278: | ||
<jmol><jmolLink><script> load $methadone</script><text>methadone</text></jmolLink> </jmol> | <jmol><jmolLink><script> load $methadone</script><text>methadone</text></jmolLink> </jmol> | ||
+ | |||
+ | ==Three phases of opioid addiction== | ||
+ | |||
+ | <jmol> | ||
+ | <jmolRadioGroup> | ||
+ | <item> | ||
+ | <script>background black</script> | ||
+ | <text>black</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background image "http://proteopedia.org/wiki/images/8/85/OpioidFatality1.JPG"</script> | ||
+ | <text>all</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background image "http://proteopedia.org/wiki/images/6/66/OpioidFatality2.JPG"</script> | ||
+ | <text>phase 1</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background image "http://proteopedia.org/wiki/images/e/e6/OpioidFatality3.JPG"</script> | ||
+ | <text>phase 2</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background image "http://proteopedia.org/wiki/images/5/51/OpioidFatality4.JPG"</script> | ||
+ | <text>phase 3</text> | ||
+ | </item> | ||
+ | <item> | ||
+ | <script>background white</script> | ||
+ | <text>white</text> | ||
+ | <checked>true</checked> | ||
+ | |||
+ | </item> | ||
+ | |||
+ | </jmolRadioGroup> | ||
+ | </jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>set spinX 90; set spinY 0; spin on</script><text>spin horizontal</text></jmolLink> </jmol> | ||
+ | |||
+ | |||
+ | |||
+ | ===Phase 1: Prescription opioids=== | ||
+ | |||
+ | <jmol><jmolLink><script> load $oxycodone; select _C; color mediumpurple; hide _H; set zshade on; set zshadepower 1</script><text>Percocet</text></jmolLink> </jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>moveto 1.0 { -1000 21 -14 66.69} 46.78 -22.06 -16.47 {-0.81575 0.02959999999999985 -0.13314999999999988} 7.056706882620149 {0 0 0} 0 0 0 3.0 0.0 0.0; | ||
+ | </script><text>zoom in</text></jmolLink> </jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>moveto 1.0 { -997 48 -52 108.82} 5.63 -47.01 27.5 {-0.81575 0.02959999999999985 -0.13314999999999988} 7.056706882620149 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom out</text></jmolLink> </jmol> | ||
+ | |||
+ | ===Phase 2: Heroin=== | ||
+ | |||
+ | <jmol><jmolLink><script> load $heroin; select _C; color orange; hide _H; set zshade on; set zshadepower 1</script><text>Heroin</text></jmolLink> </jmol> | ||
+ | |||
+ | |||
+ | <jmol><jmolLink><script>moveto 1.0 { 295 720 -628 7.6} 42.42 -19.94 -16.87 {-0.14780000000000015 -0.08705000000000007 0.25970000000000004} 7.521992314468856 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom in</text></jmolLink> </jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>moveto 1.0 { 295 720 -628 7.6} 5.0 -11.35 27.3 {-0.14780000000000015 -0.08705000000000007 0.25970000000000004} 7.521992314468856 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom out</text></jmolLink> </jmol> | ||
+ | |||
+ | ===Phase 3: Fentanyl and other synthetics=== | ||
+ | |||
+ | <jmol><jmolLink><script> load $fentanyl; select _C; color black; hide _H; set zshade on; set zshadepower 1</script><text>Fentanyl</text></jmolLink> </jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>moveto 1.0 { -906 -60 -420 18.21} 55.02 -15.85 -21.78 {-1.40835 0.07379999999999987 -0.28485000000000005} 9.158727403987475 {0 0 0} 0 0 0 3.0 0.0 0.0; </script><text>zoom in</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/5'>spike protein</scene>. | ||
+ | |||
+ | (<jmol><jmolLink><script>delete chain="B"; delete chain="C"; model 1; select protein; backbone only; select chain="X"; cartoon on; select 912, 982; spacefill 5.0; select 1.2; color red; model 0; select chain="X"; set picking dragselected; set allowrotateselected; temp0 = {chain="X"}.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 = {:X}.xyz.all</script><text>store state 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>temp2 = {:X}.xyz.all</script><text>store state 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>temp3 = {:X}.xyz.all</script><text>store state 3</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>temp4 = {:X}.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 {:X} @{temp0} -2</script><text>retrieve state 0</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{temp1} -2</script><text>retrieve state 1</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{temp2} -2</script><text>retrieve state 2</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{temp3} -2</script><text>retrieve state 3</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{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 {:X} @{temp3} -2; ROTATE COMPARE {:X} @{temp2} -2; ROTATE COMPARE {:X} @{temp1} -2; ROTATE COMPARE {:X} @{temp0} -2;</script><text>bind</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{temp1} -2; ROTATE COMPARE {:X} @{temp2} -2; ROTATE COMPARE {:X} @{temp3} -2; ROTATE COMPARE {:X} @{temp4} -2;</script><text>dissociate</text></jmolLink></jmol> | ||
+ | |||
+ | <jmol><jmolLink><script>ROTATE COMPARE {:X} @{temp3} -2; ROTATE HELIX COMPARE {:X} @{temp2} -2; ROTATE HELIX COMPARE {:X} @{temp1} -2; ROTATE HELIX COMPARE {:X} @{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 {:X} @{temp1} -2" is used, etc. | ||
+ | |||
Current revision
|