Jmol/Interactivity
From Proteopedia
(Difference between revisions)
Line 1: | Line 1: | ||
<StructureSection load='1d9z' size='340' side='right' caption='Structure of UvrB in complex with ATP' scene=''> | <StructureSection load='1d9z' size='340' side='right' caption='Structure of UvrB in complex with ATP' scene=''> | ||
==Interactive Jmol elements== | ==Interactive Jmol elements== | ||
- | Some pages contain buttons, radio buttons and other elements that allow the reader to manipulate the 3D Jmol scene by clicking on them. | + | Some pages contain buttons, radio buttons and other elements that allow the reader to manipulate the 3D Jmol scene by clicking on them. |
+ | |||
+ | ===Button=== | ||
+ | This button loads a different molecule and scene, and makes sure waters and hidden and zshade is turned off: | ||
<jmol> | <jmol> | ||
Line 21: | Line 24: | ||
</nowiki> | </nowiki> | ||
+ | ===Link=== | ||
+ | You can associate a couple of commands with a green link (instead of the usual behavior of a green link to load a new scene). For example, the link below make parts of the structure "blink": | ||
- | + | To show ligand(s), click on the sun symbolin the parentheses (<jmol> | |
- | + | ||
- | To show | + | |
<jmolLink> | <jmolLink> | ||
<script> select ligand; selectionHalos ON; delay 0.5;selectionHalos OFF;</script> | <script> select ligand; selectionHalos ON; delay 0.5;selectionHalos OFF;</script> | ||
Line 41: | Line 44: | ||
</nowiki> | </nowiki> | ||
+ | ===Check box=== | ||
+ | |||
+ | This checkbox hides the ligand when checked. | ||
+ | |||
+ | <jmol> | ||
+ | <jmolCheckbox> | ||
+ | <scriptWhenChecked>hide ligand or hidden</scriptWhenChecked> | ||
+ | <scriptWhenUnchecked>hide hidden and not ligand</scriptWhenUnchecked> | ||
+ | <checked>false</checked> | ||
+ | <text>hide ligand</text> | ||
+ | </jmolCheckbox> | ||
+ | </jmol> | ||
N terminus(<jmol><jmolLink><script> select 1.CA; selectionHalos ON; delay 0.5;selectionHalos OFF;</script><text>☼</text></jmolLink> </jmol>) | N terminus(<jmol><jmolLink><script> select 1.CA; selectionHalos ON; delay 0.5;selectionHalos OFF;</script><text>☼</text></jmolLink> </jmol>) | ||
</StructureSection> | </StructureSection> |
Revision as of 12:12, 19 June 2020
|