Help:Jmol in EcoliWiki: Difference between revisions

From EcoliWiki
Jump to navigation Jump to search
 
(22 intermediate revisions by 2 users not shown)
Line 2: Line 2:
Jmol is a Java-based molecular visualization tool.  Extensive documentation can be found on the [http://jmol.org Jmol website].  This page describes how you can embed images and set scenes inside EcoliWiki using [http://wiki.jmol.org:81/index.php/MediaWiki Jmol's MediaWiki extension] and custom EcoliWiki templates.
Jmol is a Java-based molecular visualization tool.  Extensive documentation can be found on the [http://jmol.org Jmol website].  This page describes how you can embed images and set scenes inside EcoliWiki using [http://wiki.jmol.org:81/index.php/MediaWiki Jmol's MediaWiki extension] and custom EcoliWiki templates.


==What Types of Structures can I Display?==
==What Types of Structures Can I Display?==
The structures that are most displayed are protein, nucleotide, inorganic and organic molecules, etc.
The structures that are most displayed are protein, nucleotide, inorganic and organic molecules, etc.


==Selecting a Compatible File==
==Selecting a Compatible File==
There are several file formats compatible with the jmol viewer, such as .pdb, .mol.  Other file formats such as .pse (from PyMol) will not work.
There are several file formats compatible with the jmol viewer, such as .pdb, .mol.  Other file formats such as .pse (from PyMol) will not work.  Files can be found at the Protein Data Bank at http://www.pdb.org, as well as other sites.


=="How To" Embed the Image==
=="How To" Embed the Image==
Line 12: Line 12:
[[File:jmol help2.jpg|thumb|right|400px|Setting the file name to the correct file]]
[[File:jmol help2.jpg|thumb|right|400px|Setting the file name to the correct file]]


*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 support, please contact '''us''' for help.   
*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 support, email us at {{Email}} for help. 
**On the '"Upload File" page, select the file using the '''Choose File''' button in the ''Source Filename'' field.  The ''Destination filename'' should automatically fill out, and you can change the filename here if needed.  You do not need to enter any information in the ''Summary''.
**'''Upload file''' using the button at the bottom.


*When you upload your pdb file, put <nowiki>{{subst:Jmol_template}}</nowiki> in the Description box.  The template will automatically load all the technical details necessary to make this work. Click "Save" to save the page. 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.  The box will appear with a "1" in it. 
*When your file is uploaded, you will be redirected to your file's page.  There will be no image, just a File History section.  Use the '''edit''' tab at the top of the page, and on the ''Editing File:'' page enter
<nowiki>{{subst:Jmol_template}}</nowiki>  


*You will need to replace the one with your picture.  Click the "Edit" link again and there will be a lot more text than what you wrote (that's suppose to happen). In place of the 1 (several lines from the top), insert the pdb file name.  This will allow EcoliWiki to upload the file contents of the file. Click "Save." Your picture should replace the 1 and should be rotating around.  Highlight and copy the title of the page (at the top) for the next step.   
:in the description box.  Click '''Save page'''. The template will automatically load all the technical details necessary to make this work. 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.  There will not be an image yet.
 
*You will need to replace some text in your picture file.  Click the "'edit'" link again and there will be a lot more text than what you wrote (that's supposed to happen). In place of "REPLACE_WITH_FILENAME" (several lines from the top), insert the pdb file name (just XXXX.pdb).  This will allow EcoliWiki to upload the file contents of the file.  
**If you can add a short, useful title, replace "Text label", which is on the fourth line from the top, with the appropriate text.  (Explanations, links to the paper, or other comments go in the "Notes" section directly below the "Structure" and "Structure Figure" boxes back on the Gene Products page.)
*Click '''Save'''. Your picture should be visible and should be rotating around.  Highlight and copy the title of the page (at the top) for the next step.   
   
   
*Go to the gene product page where you want to embed the image.  Scroll down to the Structure Heading, and click the edit link for the structure notes. Paste the Image title into the text box and add 2 sets of curly brackets. Example:<nowiki>{{Image: 1JFE.pdb}}</nowiki>. Click "Save" and the image should be on the page
*Go to the gene product page where you want to embed the image.  Scroll down to the ''Structure figures'' heading next to the ''Structure'' table, and click the '''edit''' link for ''Structure figures''. Paste the image title into the text box and add 2 sets of curly brackets:
  <nowiki>{{File:1D9U.pdb}}</nowiki>   
*Click '''Save''' and the image should display on the page.
**The ''Notes'' section on this page is the appropriate place for paper references, notes about the figure, etc.


== Troubleshooting ==
== Troubleshooting ==
* Biological vs crystallographic units: The coordinate files from the PDB are usually for the crystallographic asymmetric unit.  This means that there may be multiple molecules in the same file, or that there may only be part of a multimer.  The PDB provides a separate file for the biological unit in many cases.  See [http://www.rcsb.org/pdb/static.do?p=education_discussion/educational_resources/biounit_tutorial.html#Anchor-Biologica-16478 tutorial at the PDB]
* Biological vs crystallographic units: The coordinate files from the PDB are usually for the crystallographic asymmetric unit.  This means that there may be multiple molecules in the same file, or that there may only be part of a multimer.  The PDB provides a separate file for the biological unit in many cases.  See [http://www.pdb.org/pdb/staticHelp.do?p=education_discussion/Looking-at-Structures/bioassembly_tutorial.html this tutorial at the PDB].


==Examples==
==Examples==
* [[:Image:1LMB.pdb]]
* [[:Image:1LMB.pdb]] shows the page you'll need to edit text on
* [[Image_talk:1LMB.pdb]]
* [[Image_talk:1LMB.pdb]] shows more images used on the main page
* [[lambda_repressor/N-domain]]
* [[lambda_repressor/N-domain]] is the interactive end product


== See also ==
== See also ==
* [http://wiki.jmol.org:81/index.php/Scripting Scripting] on the Jmol wiki.
* [http://wiki.jmol.org/index.php/Scripting Scripting] on the Jmol wiki.
* [http://jmol.sourceforge.net/jscolors/ Colors]
* [http://jmol.sourceforge.net/jscolors/ Colors]
* [http://chemapps.stolaf.edu/jmol/docs/?ver=11.8 scripting commands]
* [http://chemapps.stolaf.edu/jmol/docs/?ver=11.8 scripting commands]

Latest revision as of 17:52, 24 August 2011

About

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 and custom EcoliWiki templates.

What Types of Structures Can I 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 (from PyMol) will not work. Files can be found at the Protein Data Bank at http://www.pdb.org, as well as other sites.

"How To" Embed the Image

Text inserted by the Jmol_template
Setting the file name to the correct file
  • 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 support, email us at ecoliwiki@gmail.com for help.
    • On the '"Upload File" page, select the file using the Choose File button in the Source Filename field. The Destination filename should automatically fill out, and you can change the filename here if needed. You do not need to enter any information in the Summary.
    • Upload file using the button at the bottom.
  • When your file is uploaded, you will be redirected to your file's page. There will be no image, just a File History section. Use the edit tab at the top of the page, and on the Editing File: page enter
{{subst:Jmol_template}} 
in the description box. Click Save page. The template will automatically load all the technical details necessary to make this work. 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. There will not be an image yet.
  • You will need to replace some text in your picture file. Click the "'edit'" link again and there will be a lot more text than what you wrote (that's supposed to happen). In place of "REPLACE_WITH_FILENAME" (several lines from the top), insert the pdb file name (just XXXX.pdb). This will allow EcoliWiki to upload the file contents of the file.
    • If you can add a short, useful title, replace "Text label", which is on the fourth line from the top, with the appropriate text. (Explanations, links to the paper, or other comments go in the "Notes" section directly below the "Structure" and "Structure Figure" boxes back on the Gene Products page.)
  • Click Save. Your picture should be visible and should be rotating around. Highlight and copy the title of the page (at the top) for the next step.
  • Go to the gene product page where you want to embed the image. Scroll down to the Structure figures heading next to the Structure table, and click the edit link for Structure figures. Paste the image title into the text box and add 2 sets of curly brackets:
 {{File:1D9U.pdb}}  
  • Click Save and the image should display on the page.
    • The Notes section on this page is the appropriate place for paper references, notes about the figure, etc.

Troubleshooting

  • Biological vs crystallographic units: The coordinate files from the PDB are usually for the crystallographic asymmetric unit. This means that there may be multiple molecules in the same file, or that there may only be part of a multimer. The PDB provides a separate file for the biological unit in many cases. See this tutorial at the PDB.

Examples

See also

References

See Help:References for how to manage references in EcoliWiki.