Help:Copying FirstGlance Scenes into Proteopedia: Difference between revisions
Eric Martz (talk | contribs) No edit summary |
Eric Martz (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
2. '''Open Jmol's Console:''' Click on the word '''Jmol''' at the lower right corner below the molecule. On the menu that opens, click '''Console'''. A new small white window will appear. It is the ''Jmol Console''. | 2. '''Open Jmol's Console:''' Click on the word '''Jmol''' at the lower right corner below the molecule. On the menu that opens, click '''Console'''. A new small white window will appear. It is the ''Jmol Console''. | ||
3. '''Display the state script:''' Click the console buttons ''Clear Output'', | 3. '''Display the state script:''' Click the console buttons ''Clear Output''. Now type into the lower box of the Jmol Console the command ''show state'', and press Enter. (The ''State'' button does not work as intended in some versions of Jmol.) A long Jmol command script will appear in the top box of the Console. This script describes the current state or scene in Jmol. (If you are using this as a guide to help copy scenes from other Jmol-based sources, you should note that for later versions of Jmol, such as 11.8.9, you show the state by selecting ''Show'' and then ''Current state'' from the Jmol menu that comes up under the Jmol frank. Counter-intuitively (and counter earlier versions), hitting the ''State'' button in the console presently '''''does not''''' show the state script.) | ||
4. '''Copy the state script:''' Click in the top box of the Console, then Ctrl-A (Windows | 4. '''Copy the state script:''' Click in the top box of the Console, then Ctrl-A (Windows or Mac; do NOT use Cmd-A) to block-select the long script. Ctrl-C (Windows or Mac; do NOT use Cmd-C) to copy the script to the clipboard. On Mac OS X you may also be able to drag the blocked state script and drop it into a text editor such as TextEdit. | ||
5. Edit the page in Proteopedia where you want to install the scene from FirstGlance in Jmol. Show the '''Scene Authoring Tool'''. | 5. Edit the page in Proteopedia where you want to install the scene from FirstGlance in Jmol. Show the '''Scene Authoring Tool'''. |
Revision as of 00:15, 18 March 2011
Mac Users: As of March, 2011 (Apple Java version 1.5.0_28), there are intermittant problems copying and pasting state scripts from the Jmol Console (on Macs only). The only workaround we know is to do the procedure below on a Windows computer. We suspect that this is due to a temporary problem in Apple Java. This message will be removed once the problem is resolved. |
|
1. Obtain the desired scene in FirstGlance in Jmol. Turn off spinning (even if you want it to spin in Proteopedia), and orient and zoom the molecule as you want it to appear initially.
2. Open Jmol's Console: Click on the word Jmol at the lower right corner below the molecule. On the menu that opens, click Console. A new small white window will appear. It is the Jmol Console.
3. Display the state script: Click the console buttons Clear Output. Now type into the lower box of the Jmol Console the command show state, and press Enter. (The State button does not work as intended in some versions of Jmol.) A long Jmol command script will appear in the top box of the Console. This script describes the current state or scene in Jmol. (If you are using this as a guide to help copy scenes from other Jmol-based sources, you should note that for later versions of Jmol, such as 11.8.9, you show the state by selecting Show and then Current state from the Jmol menu that comes up under the Jmol frank. Counter-intuitively (and counter earlier versions), hitting the State button in the console presently does not show the state script.)
4. Copy the state script: Click in the top box of the Console, then Ctrl-A (Windows or Mac; do NOT use Cmd-A) to block-select the long script. Ctrl-C (Windows or Mac; do NOT use Cmd-C) to copy the script to the clipboard. On Mac OS X you may also be able to drag the blocked state script and drop it into a text editor such as TextEdit.
5. Edit the page in Proteopedia where you want to install the scene from FirstGlance in Jmol. Show the Scene Authoring Tool.
6. Load your molecule: Use the load molecule tab to load your PDB code into the Jmol in the Scene Authoring Tool.
7. Click the select all button below Jmol.
8. Open the representations tab and click the hide selection button. This hides the molecule -- there will be nothing in Jmol.
9. Click Jmol at the lower right of Jmol, to open Jmol's menu. Click Console to open the console.
10. Paste your state script (from the clipboard) into the bottom box of Jmol's Console, and DO NOT press Enter or click Run yet. On Mac OS X, paste with Ctrl-V instead of Cmd-V, but DO NOT press Enter of click Run yet.
11. Comment out the load command. Before you Run the state script, you must insert # before the word "load" in the command at the end of the 3rd block of commands. This disables the command, which is required. It should look something like this:
function _setFileState() {
set allowEmbeddedScripts false;
... blah blah blah ...
set smartAromatic true;
#load /*file*/"http://www.rcsb.org/pdb/cgi/export.cgi/1GPK.pdb.gz";
}
12. Run the pasted state script by clicking the Run button in Jmol's Console. Your FirstGlance scene should appear in the Scene Authoring Tool's Jmol.
13. Use the save scene tab to save the copied scene. Follow the instructions there to insert a green link into the page to show your scene.
See the similar procedure How to Insert a ConSurf Result Into a Proteopedia Green Link.
Tweaking the Scene from FirstGlanceTweaking the Scene from FirstGlance
|
1gpk was displayed in FirstGlance in Jmol. were visualized in FirstGlance in Jmol using the Contacts.. and Hide.. dialogs, simply by clicking on controls. The scene was transferred into Proteopedia using the above procedure.
Then, in Proteopedia's SAT, the by clicking select all, then in the labels dialog, reducing the size to 12, selecting boldface, and changing the offsets to 1 and 0 (without entering any label text or clicking the set label button). Finally, .