Help:Jmol in EcoliWiki: Difference between revisions
| Line 10: | Line 10: | ||
==Embedding the Image== | ==Embedding the Image== | ||
#Click on the "Upload File" link toolbox to the left. EcoliWiki allows you to upload pdb files so you may display a picture of the structure on any page you wish. If you encounter a file format that EcoliWiki does not allow, please contact '''us''' for help. | |||
#When you upload your pdb file, put <nowiki>{{subst:Jmol_template}}</nowiki> in the description txt box. The template automatically loads all the details necessary to make this work. If you try to edit the image page from now on, there will be a lot more text than what you wrote (that's suppose to happen). | |||
This will put the viewer in a box on the right that allows text to wrap around it, add the Help link, set the background to white, and so on. | This will put the viewer in a box on the right that allows text to wrap around it, add the Help link, set the background to white, and so on. | ||
#To embed this image into your page of interest. To insert an image anywhere in EcoliWiki, place <nowiki>{{Image:1JHE.pdb}}</nowiki>, where the Image: 1JHE is replaced with the title of your image page. | |||
==Examples== | ==Examples== | ||
Revision as of 16:23, 5 June 2009
Description
Jmol is a Java-based molecular visualization tool. Extensive documentation can be found on the Jmol website. This page describes how you can embed images and set scenes inside EcoliWiki using Jmol's MediaWiki extension.
What types of structures to Display
The structures that are most displayed are protein, nucleotide, inorganic and organic molecules, etc.
Selecting a Compatible File
There are several file formats compatible with the jmol viewer, such as .pdb, .mol. Other file formats such as .pse will not work.
Embedding the Image
- Click on the "Upload File" link toolbox to the left. EcoliWiki allows you to upload pdb files so you may display a picture of the structure on any page you wish. If you encounter a file format that EcoliWiki does not allow, please contact us for help.
- When you upload your pdb file, put {{subst:Jmol_template}} in the description txt box. The template automatically loads all the details necessary to make this work. If you try to edit the image page from now on, there will be a lot more text than what you wrote (that's suppose to happen).
This will put the viewer in a box on the right that allows text to wrap around it, add the Help link, set the background to white, and so on.
- To embed this image into your page of interest. To insert an image anywhere in EcoliWiki, place {{Image:1JHE.pdb}}, where the Image: 1JHE is replaced with the title of your image page.
Examples
Jmol scripting
Here, we'll just cover a few commonly used commands. See below for links to more extensive documentation and tutorials.
| Command | Notes | Examples |
|---|---|---|
|
select [atom-expression] |
You need to select things to work on them selectively. Atom expressions include:
|
|
|
spacefill (on/off/only) (synonym: cpk) |
Shows atoms as VdW sized spheres |
|
|
wireframe (on/off/only) |
shows the bonds between atoms. |
|
|
cartoon (on/off/only) |
shows helices and sheets in cartoon form. |
|
|
centers on atom-expression and zooms there to the specified percentage of the 100% default. The zoom factor can range from 5 to 20,000, where larger numbers are zoomed in. |
zoomto (84:A) 500; |
|
color [drawn-object] [RGB-color] |
if drawn-object is ommitted, color uses whatever is selected. Colors can be:
|
|
| edit table |
See also
- Scripting on the Jmol wiki.
- Colors
- scripting commands
References
See Help:References for how to manage references in EcoliWiki.