Jmol/Interactivity
From Proteopedia
(4 intermediate revisions not shown.) | |||
Line 83: | Line 83: | ||
Again, you can use a template to type less: | Again, you can use a template to type less: | ||
<nowiki> | <nowiki> | ||
- | {{subst:Hide button|ATP | + | {{subst:Hide button|ligand or ATP|(ligand or ATP)}}</nowiki> |
- | + | ||
- | + | ||
Line 97: | Line 95: | ||
</jmolCheckbox> | </jmolCheckbox> | ||
</jmol> | </jmol> | ||
- | |||
- | Troubleshooting: | ||
- | |||
- | Named parameter Name: "ATP molecule" | ||
- | |||
- | Named parameter Selection: "ATP" | ||
- | |||
- | Named parameter Initial: {{{Initial|true}}} | ||
- | |||
===Radio button=== | ===Radio button=== | ||
Line 187: | Line 176: | ||
{{subst:Store view buttons}}</nowiki> | {{subst:Store view buttons}}</nowiki> | ||
- | For more than one view, just add another pair of buttons and change view1 to view2. | + | For more than one view, just add another pair of buttons and change view1 to view2. For a more elaborate example how to use buttons to dock a ligand, see [[User:Karsten Theis/Animation course]]. |
==Button to choose a fixed orientation and view== | ==Button to choose a fixed orientation and view== | ||
Line 223: | Line 212: | ||
535.03 0.0 0.0 {42.099225806451614 43.53887096774192 61.17029032258063} | 535.03 0.0 0.0 {42.099225806451614 43.53887096774192 61.17029032258063} | ||
68.42333343999844 {0 0 0} 0 0 0 3.0 0.0 0.0;}}</nowiki> | 68.42333343999844 {0 0 0} 0 0 0 3.0 0.0 0.0;}}</nowiki> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | Here is the ATP binding site: <jmol> | ||
- | <jmolButton> | ||
- | <script>moveto 1.0 { -905 -235 355 100.12} 535.03 0.0 0.0 {42.099225806451614 43.53887096774192 61.17029032258063} 68.42333343999844 {0 0 0} 0 0 0 3.0 0.0 0.0;;</script> | ||
- | <text>🔎ATP</text> | ||
- | </jmolButton></jmol> | ||
- | |||
- | Here is the DNA binding site: hairpin loop | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</StructureSection> | </StructureSection> |
Current revision
|
Advantages
The commands issued by these interactive elements are in effect immediately, i.e. without delay. You could accomplish the same effect by saving a separate 3D scene, but this will always have a loading delay. The effect is that "playing" with interactive elements is much more immediate than switching between green links.
Caveats
The commands will be issued to the Jmol window irrespective of what is shown there. If you click on a green link elsewhere and then try the buttons etc, the effect is unpredictable. You can try this here by using the interactive elements before clicking on the button that loads the lysozyme structure. If you do that, the commands associated with the interactive elements will act on the UvrB structure instead.