Jmol/Useful one-liners

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
(Examples)
(Examples)
Line 49: Line 49:
<jmol><jmolButton><text>save orientation view1</text><script>save orientation view1</script></jmolButton></jmol>
<jmol><jmolButton><text>save orientation view1</text><script>save orientation view1</script></jmolButton></jmol>
<jmol><jmolButton><text>restore orientation view1</text><script>restore orientation view1</script></jmolButton></jmol>
<jmol><jmolButton><text>restore orientation view1</text><script>restore orientation view1</script></jmolButton></jmol>
 +
 +
===Contacts===
 +
 +
contact (selected)(not selected)
 +
 +
This shows all contacts between the selected atoms and the remainder of the structure, using colored disks to show the contacts and their distances. If you want to exclude covalent bonds, do this
 +
 +
contact (selected)(not selected and not within(1.8, selected))
 +
 +
Here is an example of the <scene name='82/824000/Contacts/4'>contacts of one glucose unit</scene> in a cellulose model. This used the additional parameter "full" to show pillows (of intersection vanderWaals spheres) instead of disks.
===Expanding selection to whole residue/groups===
===Expanding selection to whole residue/groups===
 +
select within(group, selected)
select within(group, selected)
This expands the selection to include all atoms belonging to the same residues or groups than the currently selected atoms. [This command is available in the SAT in a perhaps unexpected spot: in the selections tab, in the select within distance box, the second button].
This expands the selection to include all atoms belonging to the same residues or groups than the currently selected atoms. [This command is available in the SAT in a perhaps unexpected spot: in the selections tab, in the select within distance box, the second button].

Revision as of 15:07, 31 October 2020

This is a collection of useful one-liners in Jmol. While the Scene authoring tools give you access to a lot of Jmol's functionality, they don't cover the entire scripting language. However, the SAT contains an input box for entering Jmol commands directly. This page collects commands that might be entered into that textbox to achieve effects not otherwise possible. Viewers of Proteopedia pages might find occasional use of these one-liners as well. To enter them, you first have to right-click on the Jmol window and open a console. For more complex Jmol commands, see Jmol/Using the console.

Examples

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Karsten Theis, Angel Herraez

Personal tools