From: <ki...@us...> - 2003-04-30 21:44:37
|
Update of /cvsroot/pymerase/htdocs/docs/running In directory sc8-pr-cvs1:/tmp/cvs-serv27984 Modified Files: index.shtml Log Message: updated for v0.1.3 Index: index.shtml =================================================================== RCS file: /cvsroot/pymerase/htdocs/docs/running/index.shtml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.shtml 28 Feb 2003 00:29:50 -0000 1.4 --- index.shtml 30 Apr 2003 21:44:33 -0000 1.5 *************** *** 6,10 **** <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <link rel="SHORTCUT ICON" href="/images/pyfav.gif"> ! <title>Pymerase</title> </head> --- 6,10 ---- <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <link rel="SHORTCUT ICON" href="/images/pyfav.gif"> ! <title>Pymerase - Running Pymerase</title> </head> *************** *** 18,140 **** <td align="center" valign="top"><br> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="90%" id="AutoNumber2"> - <caption> - <p align="left"><font color="#0000FF" size="5">Pymerase Docs - Running - Pymerase<br> - </font><span style="font-size: 12.0pt; font-family: Times New Roman"> - Copyright © California Institute of Technology<br> - </span><font color="#0000FF" size="5"><br> - </font><b>Version:</b> 0.1.0 <b>Author: </b>Brandon King - <b>E-mail:</b> kingb at caltech.edu - <span style="font-size: 12.0pt; font-family: Times New Roman"><b>Date: - </b>February 18, 2003</span></p> - </caption> - <tr> - <td width="100%" bgcolor="#0033FF"> - <p class="MsoNormal"><b>Ways to run Pymerase</b></td> - </tr> <tr> <td width="100%" bgcolor="#6C8AFF"> ! <p class="MsoNormal">Command Line - pymerase/bin/pymerase<br> ! GUI - pymerase/bin/pymerasegui.py<br> ! <span style="font-size: 12.0pt; font-family: Times New Roman">Driver ! Program - Small Python script for providing pymerase with information.</span><br> ! </td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#0033FF"><b> ! <span style="font-size: 12.0pt; font-family: Times New Roman"> ! Pymerase: Command Line</span></b></td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#6C8AFF"> ! <p class="MsoNormal">Currently works with Python: Yes<br> ! Currently works with Jython: No</p> ! <p class="MsoNormal"> Location: pymerase/bin/pymerase</p> ! <p class="MsoNormal"> Useage:</p> ! <p class="MsoNormal"> pymerase -s [source] -i [inputModule] ! <span lang="FR">-d [destination] -o [outputModule]</span></p> ! <p class="MsoNormal"><span lang="FR"> pymerase --source=[source] ! --inputModule=[inputModule]</span> <span lang="FR"> ! --destination=[destination] --outputModule=[outputModule]</span></p> ! <p class="MsoNormal"><span lang="FR"> </span>Options:</p> ! <p class="MsoNormal"> -s, --source=[foo] Location of ! input file or directory<br> ! -i, --inputModule=[foo] Name of PyMerase input translation ! module<br> ! -d, --destination=[foo] Location of output file or ! directory<br> ! -o, --outputModule=[foo] Name of PyMerase output module </p> ! <p class="MsoNormal"> -g, --gui GUI ! Interface to Pymerase</p> ! <p class="MsoNormal"> -t, --translators ! Displays more info about translators<br> ! -v, --version Displays version numbers<br> ! -h, --help Displays this help page </p> ! <p class="MsoNormal"> Input Translators Available:<br> ! parseXMI<br> ! parseGenexSchemaXML </p> ! <p class="MsoNormal"> Output Translators Available:<br> ! iPymerase<br> ! CreateHtmlForms<br> ! CreateTableXML<br> ! etc <br> ! </td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#0033FF"><b> ! <span style="font-size: 12.0pt; font-family: Times New Roman"> ! Pymerase: GUI</span></b></td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#6C8AFF"> ! <p class="MsoNormal">Currently works with Python: Yes<br> ! Currently works with Jython: No </p> ! <p class="MsoNormal">Location: pymerase/bin/pymerase --gui or ! pymerase/bin/pymerasegui.py</p> ! <p class="MsoNormal">As you can see from the figure below, it's pretty ! straight forward. You give the path to your source files, choose the ! input module of your choice (parseXMI currently only works in Jython), ! select your output modules, and give the paths to where you want the ! output to go.</p> ! <p class="MsoNormal">Note that iPymerase requires that ipython to be ! installed. Also, note that if you want to run ipython, all other ! options will be deselected.</p> ! <p class="MsoNormal" align="center"> ! <img border="0" src="../../images/Pymerase_GUI.jpg" width="648" height="375"></p> ! <p> </td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#0033FF"><b> ! <span style="font-size: 12.0pt; font-family: Times New Roman"> ! Pymerase: Driver Program</span></b></td> ! </tr> ! <tr> ! <td width="100%" bgcolor="#6C8AFF"> ! <p class="MsoNormal">Currently works with Python: Yes<br> ! Currently works with Jython: Yes </p> ! <p class="MsoNormal">------------Driver Program Template-----------<br> ! #!/usr/bin/env python </p> ! <p class="MsoNormal">import sys<br> ! import os</p> ! <p class="MsoNormal">import pymerase </p> ! <p class="MsoNormal">#Input module to use (parseGenexSchemaXML.py ! would be<br> ! # pymerase.input.parseGenexSchemaXML)<br> ! import pymerase.input.<nameOfInputModule> </p> ! <p class="MsoNormal">#Output module to use (CreateDBAPI.py would be ! pymerase.output.CreateDBAPI)<br> ! import pymerase.output.<nameOfOutputModule> </p> ! <p class="MsoNormal">if __name__ == "__main__":<br> ! #Path to schema<br> ! schema = os.path.abspath("../path2schema/schema") </p> ! <p class="MsoNormal"> #Output Path<br> ! outputPath = os.path.abspath("./outputPath") </p> ! <p class="MsoNormal"> #Run pymerase<br> ! pymerase.run(schema,<br> ! pymerase.input.<nameOfInputModule>,<br> ! outputPath,<br> ! pymerase.output.<nameofOutputModule>)</p> ! <p class="MsoNormal">--------End Driver Program Template---------</p> ! <p> </td> </tr> </table> --- 18,25 ---- <td align="center" valign="top"><br> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="90%" id="AutoNumber2"> <tr> <td width="100%" bgcolor="#6C8AFF"> ! <!--#include virtual="running_pymerase.html"--> ! </td> </tr> </table> |