Molecular Playground/Procedures: Difference between revisions

Eric Martz (talk | contribs)
Eric Martz (talk | contribs)
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page details procedures for authoring content modules for [http://molecularplayground.org Molecular Playground]. It is a supplement to the main article on authoring modules,  [[Molecular Playground/Authoring]].
This page details procedures for authoring content modules for [http://molecularplayground.org Molecular Playground]. It is a supplement to the main article on authoring modules,  [[Molecular Playground/Authoring]].
This page describes procedures step by step. Modules at [[Molecular_Playground/Authoring#Three_Levels|Levels II and III]] use utility functions in MPSupportVersion01.spt. A list of these function is provided at [[Molecular_Playground/Support_Script_Help]].


==Help Is Available!==
==Help Is Available!==
Line 10: Line 12:
<ol>
<ol>
<li>
<li>
Choose or make a '''page in Proteopedia''' where you will create your customized molecular scene. A good place to do this is in a Sandbox in your User namespace, such as "User:Your Name/Sandbox 1". Step by step instructions for creating and using such a Sandbox are available in [[Help:Sandboxes]].  
'''Create a page in Proteopedia''' where you will create your customized molecular scene. A good place to do this is in a protected Sandbox in your User namespace, such as '''User:Your Name/Sandbox 1'''. Step by step instructions for creating and using such a Sandbox are available in [[Help:Sandboxes#Protected_Sandbox_Pages]].  
</li><li>
</li><li>
'''Create the customized molecular scene''' that you wish to show in MP by using the ''Scene Authoring Tools'' in Proteopedia. '''Save''' your scene so that it is displayed on the page where you are developing it. Introductory videos and extensive help are available to get you started with these easy-to-use tools.
Normally, in Proteopedia, while editing a page, you insert Jmol by clicking a button labeled '''3D''' at the top of the wikitext box. This Jmol is square. However, for Molecular Playground, you need a '''rectangular Jmol''' the same shape as the projection. Instead of clicking the 3D button, paste this into your page
<pre>
<applet size='[450,338]' frame='true' align='right'
caption='YYY' />
</pre>
and then save the page. Jmol will be empty, but that's OK, we are going to add a molecule next.
</li><li>
'''Create the customized molecular scene''' that you wish to show in MP by using the ''Scene Authoring Tools'' in Proteopedia. '''Save''' your scene, and copy the green link that displays it into your wikitext box. Introductory videos and extensive help are available to get you started with these easy-to-use tools.
<center>
<center>
{| class="wikitable"
{| class="wikitable"
Line 52: Line 61:


This procedure applies to [[Molecular_Playground/Authoring#Three_Levels|Levels I and II]].
This procedure applies to [[Molecular_Playground/Authoring#Three_Levels|Levels I and II]].
<ol start='4'>
<ol start='5'>
<li>
<li>
'''Capture the [[Jmol#State_Scripts|state script]]''' for your scene. In order to project your scene in MP, you will need to capture the state script into a file on your computer. When completed, the script file will be submitted to the MP team. Having a local copy on your computer also has the advantage that you can display the scene in the Jmol application, in a 1024 x 768 pixel window, just as it will appear when projected in MP.
'''Capture the [[Jmol#State_Scripts|state script]]''' for your scene. In order to project your scene in MP, you will need to capture the state script into a file on your computer. When completed, the script file will be submitted to the MP team. Having a local copy on your computer also has the advantage that you can display the scene in the Jmol application, in a 1024 x 768 pixel window, just as it will appear when projected in MP.
Line 91: Line 100:
</ol>
</ol>


You have now completed the preparation of your Jmol state script. If you are making a '''Level I''' module, write your banner title, and submit the script file, PDB file, and banner title to the [http://molecularplayground.org MP Team].  Remember to design your banner text for the general public, including non-scientists. Optionally, continue to [[Molecular_Playground/Authoring#Procedure_for_using_Proteopedia|write your web page]].
===Submit Your Level I Module===
 
You have now completed the preparation of your Jmol state script. If you are making a '''Level I''' module, write your banner title, and submit the script file, PDB file, and banner title to the [http://molecularplayground.org MP Team].  Remember to design your banner text for the general public, including non-scientists.
 
Please also develop a web page (see  [[Molecular Playground/Authoring#Web Page Procedure in Proteopedia]]), and submit the address (URL) of that page as well.


If you are making a '''Level II''' module, proceed with the next section.
If you are making a '''Level II''' module, proceed with the next section.
Line 105: Line 118:
:*[[Image:MP_relenza03.spt]]
:*[[Image:MP_relenza03.spt]]
:*[[Image:MPSceneVersion01.spt]]
:*[[Image:MPSceneVersion01.spt]]
:*[[Image:MPSupportVersion01.spt]]
:*[[Image:MPSupportVersion01.spt]] (see description of what is in this at [[Molecular_Playground/Support_Script_Help]])
</li><li><!-- sublist -->
</li><li><!-- sublist -->
'''Rename''' MP_relenza.spt to yourMolecule.spt.
'''Rename''' MP_relenza.spt to yourMolecule.spt.
Line 134: Line 147:
==Displaying a Level II Scene in a Proteopedia Web Page==
==Displaying a Level II Scene in a Proteopedia Web Page==


This procedure does NOT apply to Level I modules.
This procedure does NOT apply to Level I modules. For Level II modules, you should begin creating your web page following the instructions at [[Molecular Playground/Authoring#Web Page Procedure in Proteopedia]]. You will reach a step in that procedure where you are invited, as a non-required option, to follow the procedure below.


This procedure assumes that you have followed the procedure above to create a script ''yourMolecule.spt'' (where ''yourMolecule'' is the name of the molecule that you are displaying). Here is explained how to display that script in a page in Proteopedia, which can become the web page that you offer for more information to those MP onlookers who visit [http://molecularplayground.org MolecularPlayground.Org].
This procedure assumes that you have followed the procedure above, for Level II modules, to create a script ''yourMolecule.spt'' (where ''yourMolecule'' is the name of the molecule that you are displaying). Here is explained how to display that script in a page in Proteopedia, which can become the web page that you offer for more information to those MP onlookers who visit [http://molecularplayground.org MolecularPlayground.Org].
<ol>
<ol>
<li>
<li>
'''Specify ''proteopediaStateScript'':''' In ''yourMolecule.spt'' is the variable ''proteopediaStateScript'' that specifies the filepath for your state script on the Proteopedia server. Display the Proteopedia page where you developed your molecular scene, and edit that page.
'''Specify ''proteopediaStateScript'':''' In ''yourMolecule.spt'' is the variable ''proteopediaStateScript'' that needs to specify the filepath for your state script on the Proteopedia server. Display the Proteopedia page where you developed your molecular scene, and edit that page.
<!--
<!--
Click on the word ''Jmol'' to the lower right of the molecule, to raise Jmol's menu. On the menu, click on '''Show, History'''. The white ''Jmol Script Console'' will open, showing the filepath. Copy only the part beginning "/wiki...", excluding the word "script" and the semicolon at the end.
Click on the word ''Jmol'' to the lower right of the molecule, to raise Jmol's menu. On the menu, click on '''Show, History'''. The white ''Jmol Script Console'' will open, showing the filepath. Copy only the part beginning "/wiki...", excluding the word "script" and the semicolon at the end.
Line 162: Line 175:
Make sure there are no spaces before any of the lines you pasted in.
Make sure there are no spaces before any of the lines you pasted in.
Save the page. (If you click the button now, your Jmol will display the Relenza scene.)
Save the page. (If you click the button now, your Jmol will display the Relenza scene.)
Note: Alternatively you may use a green link to play your script instead of a button. See the demonstration at [[Demonstration of a complex animation playing from a green link]].
</li><li>
</li><li>
'''Upload your script:''' At Proteopedia, click on ''Upload file'' in the toolbox on the left side of every page. Use the ''Choose File'' button to select MP_yourMolecule.spt. You don't need to change anything else on the page. (Optionally, in the Summary box, enter the title of the permanent page in Proteopedia where you will display the scene.) Click the button ''Upload file''.
'''Upload your script:''' At Proteopedia, click on ''Upload file'' in the toolbox on the left side of every page. Use the ''Choose File'' button to select MP_yourMolecule.spt. You don't need to change anything else on the page. (Optionally, in the Summary box, enter the title of the permanent page in Proteopedia where you will display the scene.) Click the button ''Upload file''.
Line 176: Line 191:


Now, resume building your web page at [[Molecular_Playground/Authoring#Procedure_for_using_Proteopedia]].
Now, resume building your web page at [[Molecular_Playground/Authoring#Procedure_for_using_Proteopedia]].
== Advanced Authoring ==
If you are editing your own script manually (e.g. for a Level III module), you may still make profit of the utilitites included in the support script.
See [[Molecular Playground/Support Script Help]].


==Notes==
==Notes==
<references />
<references />
[[Category:Molecular Playground]]
[[Category:Molecular Playground]]

Proteopedia Page Contributors and Editors (what is this?)Proteopedia Page Contributors and Editors (what is this?)

Eric Martz, Angel Herraez