33f011032c5326e3026abe45b8a6f7afbe4c7631
[jabaws.git] / website / man_client.html
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!DOCTYPE html PUBLIC "XHTML 1.0 Strict"\r
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
4 <html xmlns="http://www.w3.org/1999/xhtml">\r
5 <head>\r
6 <meta name="Last-modified" content="Mon, 4 Apr 2011 12:00:00 GMT"/>\r
7 <title>Java Bioinformatics Analyses Web Services (JABAWS) Command Line Client manual</title>\r
8 <link href="ws.css" rel="stylesheet" type="text/css" media=\r
9 "screen, projection, handheld, tv" />\r
10 <link rel="stylesheet" type="text/css" media="print" href=\r
11 "print.css" />\r
12 <script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
13 </head>\r
14 <body>\r
15 <div id="page">\r
16 <div id="banner">\r
17 <table> \r
18 <tr><td style="width:158px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt_long.gif"  alt="University of Dundee" width="158" height="90" class="logo"  title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
19 <td class="bg"><img src="images/jabaws2.png" alt="JABAWS-2.0" title="Java Bioinformatics Analysis Web Services version 2.0"/></td>\r
20 <td class="bg"><img src="images/banner_right.png" alt="Disorder" width="200" height="80"/></td>\r
21 </tr>\r
22 </table>\r
23 </div><!-- banner end-->\r
24 \r
25 <div id="wrapper">\r
26 <div id="panel"><a href="index.html">Home</a> \r
27   <a href="quick_start.html">Getting Started</a> \r
28   <a class="selected" href="man_about.html">Manual</a> \r
29         <div id="submenu">\r
30                 <a href="man_about.html">About</a>\r
31                 <a href="man_servervm.html" title="JABAWS Server as Virtual Appliance">Server VA</a>\r
32                 <a href="man_awscloud.html" title="JABAWS Server in the Amazon EC2 Cloud">Server in the Cloud</a>\r
33                 <a href="man_serverwar.html" title="JABAWS Server as Web Application aRchive">Server WAR</a>\r
34                 <a href="man_configuration.html" >Server<br/>\r
35                 Configuration</a>\r
36                 <a class="selected" href="man_client.html" title="JABAWS Command Line Client">CMD Client</a>\r
37                 <a href="man_stats.html" title="JABAWS Usage Statistics">Usage Statistics</a>\r
38                 <a href="man_dev.html" title="Accessing JABAWS from your program">Accessing<br/>\r
39                 JABAWS</a>      \r
40                 <a href="man_server_dev.html" >JABAWS Development</a>\r
41         </div>\r
42 <a href="http://www.compbio.dundee.ac.uk/downloads/jabaws">Download</a> \r
43 <a href="PublicAnnualStat" title="JABAWS usage statistics">Usage Statistics</a>\r
44  <a href="ServiceStatus" title="JABAWS webservices status. Click to test all web services. Please be patient while the services are being checked">Services Status</a>\r
45 <a href="contacts.html">Contact Us</a>\r
46 <a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
47 </div>\r
48 \r
49 <!-- panel end-->\r
50 <div id="content">\r
51 <h2 id="headtitle">JABAWS MANUAL</h2>\r
52 \r
53 <h2><a name="usingcclient" id="usingcclient"></a>JABAWS Command Line Client Usage </h2>\r
54 <p>The command line client comes as a part of <a href="http://www.compbio.dundee.ac.uk/downloads/jabaws"> client package</a> which you are welcome to download. The command line client can be used to align sequences using any of JABAWS supported web services. The client is OS independent and supports most of the functions which can be accessed programmatically via <a href="dm_javadoc/index.html">JABAWS API</a>. Using this client you could align sequences using presets or custom parameters, please see examples of this below. Here is the list of options supported by the command line client. </p>\r
55 <span class="code"><strong>Usage:</strong> java -jar &lt;path_to_jar_file&gt; -h=host_and_context -s=serviceName ACTION [OPTIONS]<br />\r
56 -h=&lt;host_and_context&gt; - a full URL to the JABAWS web server including context path e.g. http://10.31.10.159:8080/ws<br />\r
57 -s=&lt;ServiceName&gt; - one of [MafftWS, MuscleWS, ClustalWS, ClustalOWS, TcoffeeWS, ProbconsWS, AAConWS, JronnWS, DisemblWS, GlobPlotWS, IUPredWS]\r
58 </p>\r
59 <br />\r
60 <strong>ACTIONS:</strong><br />\r
61 -i=&lt;inputFile&gt; - full path to fasta formatted sequence file, from which to align sequences<br />\r
62 -parameters - lists parameters supported by web service<br />\r
63 -presets - lists presets supported by web service<br />\r
64 -limits - lists web services limits<br />\r
65 Please note that if input file is specified other actions are ignored\r
66 </p>\r
67 <br />\r
68 <strong> OPTIONS:</strong> (only for use with -i action):<br />\r
69 -r=&lt;presetName&gt; - name of the preset to use<br />\r
70 -o=&lt;outputFile&gt; - full path to the file where to write an alignment<br />\r
71 -f=&lt;parameterInputFile&gt; - the name of the file with the list of parameters to use.<br />\r
72 Please note that -r and -f options cannot be used together. Alignment is done with either preset or a parameters from the file, but not both!</span>\r
73 <p>Align sequences from input.fasta file using Mafft web service with default settings, print alignment in Clustal format to console. </p>\r
74 <p class="code">java -jar jabaws-min-client.jar -h=http://myhost.compbio.ac.uk:8080/jabaws -s=MafftWS -i=d:\input.fasta</p>\r
75 <p>Content of input.fasta file is show below (please note sequences has been trimmed for clarity)<span class="code">&gt;Foobar<br />\r
76   MTADGPRELLQLRAAVRHRPQDFVAWL <br />\r
77   &gt;Bar<br />\r
78   MGDTTAGEMAVQRGLALHQ<br />\r
79   QRHAEAAVLLQQASDAAPE<br />\r
80   &gt;Foofriend<br />\r
81   MTADGPRELLQLRAAV</span></p>\r
82 <p>Align as in above example, but write output alignment in a file out.clustal, using parameters defined in prm.in file</p>\r
83 <p><span class="code">java -jar jabaws-min-client.jar -h=http://myhost.compbio.ac.uk:8080/jabaws  -s=MafftWS -i=d:\input.fasta -o=d:\out.clustal -f=prm.in </span></p>\r
84 <p>The content of the prm.in file is shown below <span class="code">--nofft<br />\r
85   --noscore<br />\r
86   --fastaparttree<br />\r
87   --retree=10<br />\r
88   --op=2.2</span></p>\r
89 <p>The format of the file is the same for all JABAWS web services. Parameters are specified in exactly the same way as for native executables - alignment programs like Mafft etc. So parameters which you can use with command line version of an alignment program can be used with JABAWS. Most of the settings controlling alignment process are supported, but the setting controlling output are not. This is due to the fact the output have to be handled by JABAWS, so must remain within its control. For a list of parameters supported by a web service see the next example. In <span class="hightlight">prm.in</span> parameters are separated by the new line, and name of the parameter is separated from its value with an equal sign. This format is constant no matter which JABAWS web service is used. <br />\r
90     <span class="code"> java -jar jabaws-min-client.jar -h=http://myhost.compbio.ac.uk:8080/jabaws -s=MafftWS -parameters</span></p>\r
91 <p>The same client can be used to access JABAWS on different hosts. Just point the client to the host you want to use by changing the value of -h key. For example you used <span class="hightlight">-h=http://myhost.compbio.ac.uk:8080/jabaws</span> server, now you want to use another server to <span class="hightlight">-h=http://mylabserver.myuni.edu.</span> This comes handy if your favorite server is off and you need to do the job yesterday. </p>\r
92 </div>\r
93 \r
94 <!-- content end-->\r
95 <div id="copyright">Last update: 16 September 2011<br />\r
96  Peter Troshin, Jim Procter and Geoff Barton, The Barton Group, University of\r
97 Dundee, UK</div>\r
98 </div>\r
99 \r
100 <!-- wrapper end-->\r
101 </div>\r
102 <!-- page end-->\r
103 \r
104 <!-- Google analitics -->\r
105 <script type="text/javascript">\r
106 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
107 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
108 </script>\r
109 <script type="text/javascript">\r
110 try{\r
111 var pageTracker = _gat._getTracker("UA-5356328-1");\r
112 pageTracker._trackPageview();\r
113 } catch(err) {}\r
114 </script>\r
115 </body>\r
116 </html>\r
117 \r