Jmol/Interactivity: Difference between revisions
From Proteopedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (16 intermediate revisions by the same user 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> | ||
<jmol> | |||
<jmolCheckbox> | |||
<scriptWhenChecked>display displayed or ATP</scriptWhenChecked> | |||
<scriptWhenUnchecked>hide ATP or hidden</scriptWhenUnchecked> | |||
<checked>true</checked> | |||
<text> ATP molecule </text> | |||
</jmolCheckbox> | |||
</jmol> | |||
===Radio button=== | ===Radio button=== | ||
Please load <scene name=' | Please load <scene name='37/376372/Product_complex/6'>this scene</scene> before trying out the radiobuttons. | ||
This set of buttons selects one side chain to be shown (or none). | This set of buttons selects one side chain to be shown (or none). | ||
<jmol> | <jmol> | ||
| Line 164: | Line 174: | ||
Again, you can use a template to type less: | Again, you can use a template to type less: | ||
<nowiki> | <nowiki> | ||
{{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 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== | |||
Here is the <scene name='84/849728/Uvrb/1'>structure of UvrB</scene>. To zoom into different areas, use the two buttons below. The orientation and view are set manually and retrieved with the command "show moveto". | |||
<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 binding</text> | |||
</jmolButton> | |||
</jmol> | |||
<jmol> | |||
<jmolButton> | |||
<script>moveto 1.0 { -953 -276 126 132.73} 305.9 0.0 0.0 {61.51899999999999 9.498000000000001 60.450250000000004} 66.2379949723743 {0 0 0} 0 0 0 3.0 0.0 0.0;</script> | |||
<text>🔎DNA padlock</text> | |||
</jmolButton> | |||
</jmol> | |||
<nowiki> | |||
<jmol> | |||
<jmolButton> | |||
<script>moveto 1.0 { -953 -276 126 132.73} 305.9 0.0 0.0 | |||
{61.51899999999999 9.498000000000001 60.450250000000004} | |||
66.2379949723743 {0 0 0} 0 0 0 3.0 0.0 0.0;</script> | |||
<text>🔎DNA padlock</text> | |||
</jmolButton> | |||
</jmol></nowiki> | |||
Again, you can use a template to type less: | |||
<nowiki> | |||
{{subst:Lookat button|ATP binding|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;}}</nowiki> | |||
</StructureSection> | </StructureSection> | ||