Proteopedia:DIY:Macros

From Proteopedia

(Difference between revisions)
Jump to: navigation, search
m
m
Line 81: Line 81:
Example code:
Example code:
-
<nowiki>
+
<pre>
(<jmol>
(<jmol>
<jmolLink>
<jmolLink>
-
<script>script /mc/ktheis.spt;blink(ligand)</script>
+
<script>script /mc/ktheis.spt;blink('ligand')</script>
<text>☼</text>
<text>☼</text>
</jmolLink>
</jmolLink>
</jmol>)
</jmol>)
-
</nowiki>
+
</pre>
</br>
</br>
-
You can try the result here:
+
You can try the result here:</br>
-
To show ligand(s), click on the sun symbol in the parentheses (<jmol>
+
To show ligand(s), click on the green sun symbol in the parentheses --> (<jmol>
<jmolLink>
<jmolLink>
-
<script>script /mc/ktheis.spt;blink(ligand)</script>
+
<script>script /mc/ktheis.spt;blink('ligand')</script>
<text>☼</text>
<text>☼</text>
</jmolLink>
</jmolLink>

Revision as of 02:59, 4 January 2021

Macros as a tool

Macros can be used in Proteopedia pages to call commonly used JSmol code. Macro functions can take parameters so that the code is general but can act on the specified item or items. Additional macros can be made.

This page is meant to be a resource for finding and using macros.

Structure of UvrB in complex with ATP

Drag the structure with the mouse to rotate

Proteopedia Page Contributors and Editors (what is this?)

Wayne Decatur, Jaime Prilusky

Personal tools