more tweaking of static pages and rejigging applet parameter documentation for access...
[jalview.git] / examples / applets.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8)
4  * Copyright (C) 2012 J Procter, AM Waterhouse, LM Lui, J Engelhardt, G Barton, M Clamp, S Searle
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18 -->
19 <html xmlns="http://www.w3.org/1999/xhtml">
20 <head>
21 <TITLE>Jalview - Applets</TITLE>
22 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
23
24  <link href="css/reset.css" rel="stylesheet" type="text/css" />
25  <link href="css/style.css" rel="stylesheet" type="text/css" />
26  
27   <!--[if IE 6]>
28  <link rel="stylesheet" type="text/css" href="css/ie6.css" />
29 <![endif]-->
30
31 <!--[if IE 7]>
32  <link rel="stylesheet" type="text/css" href="css/ie7.css" />
33 <![endif]-->
34
35 <!-- dd menu -->
36 <script type="text/javascript">
37 <!--
38 var timeout         = 500;
39 var closetimer  = 0;
40 var ddmenuitem      = 0;
41
42 // open hidden layer
43 function mopen(id)
44
45  // cancel close timer
46  mcancelclosetime();
47
48  // close old layer
49  if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
50
51  // get new layer and show it
52  ddmenuitem = document.getElementById(id);
53  ddmenuitem.style.visibility = 'visible';
54
55 }
56 // close showed layer
57 function mclose()
58 {
59  if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
60 }
61
62 // go close timer
63 function mclosetime()
64 {
65  closetimer = window.setTimeout(mclose, timeout);
66 }
67
68 // cancel close timer
69 function mcancelclosetime()
70 {
71  if(closetimer)
72  {
73   window.clearTimeout(closetimer);
74   closetimer = null;
75  }
76 }
77
78 // close layer when click-out
79 document.onclick = mclose; 
80 // -->
81 </script>
82
83 </head>
84
85
86 <body>
87
88
89 <div id="header">
90 <div id="logo"><a href="/" title="Home"></a></div>
91 <ul id="buttons">
92 <li id="applet"><a href="applets.html" title="applet"></a></li>
93 <li id="desktop"><a href="/webstart/jalview.jnlp" title="desktop"></a></li>
94 </ul>
95 </div>
96
97
98 <div id ="nav">
99 <div id="navInner">
100
101 <ul id="sddm">
102  <li><a href="#">Home</a></li>
103  <li><a href="#" onmouseover="mopen('m1')" onmouseout="mclosetime()">About</a>
104   <div id="m1" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
105   <a href="#">Documentation</a>
106   <a href="#">Publications</a>
107   <a href="#">Credits</a>
108   <a href="#">Screenshots</a>
109   </div>
110  </li>
111  <li><a href="#">FAQ</a></li>
112  <li><a href="#" onmouseover="mopen('m3')" onmouseout="mclosetime()" class="community">Community</a>
113   <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
114   <a href="#">News Mailing List</a>
115   <a href="#">Discussion Mailing List</a>
116   <a href="#">Links</a>
117   <a href="#">Community News</a>
118   </div>
119  </li>
120  <li><a href="#" onmouseover="mopen('m4')" onmouseout="mclosetime()" class="development">Development</a>
121   <div id="m4" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
122   <a href="#">Release History</a>
123   <a href="#">Jalview Bug Tracker</a>
124   <a href="#">Jalview Git Web</a>
125   <a href="#">Development News</a>
126   </div>
127  </li>
128  <li><a href="#" onmouseover="mopen('m5')" onmouseout="mclosetime()" class="training">Training</a>
129   <div id="m5" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">
130   <a href="#">Training Courses</a>
131   <a href="#">Training News</a>
132   </div>
133  </li>
134  <li><a href="#" class="download-right">Download</a></li>
135 </ul>
136 <div style="clear:both"></div>
137 </div>
138
139 </div>
140
141
142  <div id="pageWrap">
143
144   <div id="sideNav">
145    <ul>
146     <li class="jvlite-nav-title"><a href="applets.html">JalviewLite
147       Examples</a></li>
148     <li><a href="appletParameters.html">Applet Parameters</a></li>
149     <li><a href="jalviewLiteJs.html">Javascript API</a></li>
150     <li><a href="formComplete.html">in-page API demo</a></li>
151     <li><a href="linkedapplets_ng.html">Two JalviewLites demo</a></li>
152     <li><a href="embeddedWJmol.html">Jalview and Jmol demo</a></li>
153    </ul>
154   </div>
155
156   <div id="content" class="content">
157    <p>JalviewLite is a web based version of Jalview, which runs as a
158     Java applet in or on a web page. It's one of the easiest ways of
159     providing an interactive display for precalculated alignments,
160     features and annotations files. It lacks some functionality
161     available in the Jalview Desktop, however, such as making images,
162     saving files, and running web service jobs. This is mostly due to
163     security restrictions imposed on applets.</p>
164    <p align="left">
165     Try out JalviewLite by pressing one of the buttons below. For more information on how to use the applet in your website, see the <a
166      href="appletParameters.html"><strong>applet parameters</strong></a> and other documentation in the links to the left.</p>
167    <div align="center">
168     <p>
169      <h2>Ferredoxins, chloroplast precursor related UniRef50
170       cluster</h2>
171      <br /> (15 sequences x 150 residues)
172     </p>
173     <table width="90%">
174      <tr>
175       <td width="10%" valign="center"><applet
176         code="jalview.bin.JalviewLite" width="140" height="35"
177         archive="jalviewApplet.jar">
178        <param name="file" value="uniref50.fa">
179         <param name="treeFile" value="ferredoxin.nw">
180          <param name="userDefinedColour"
181           value="C=yellow; R,K,H=FF5555; D,E=5555FF">
182           <param name="showFullId" value="false">
183        <param name="sortByTree" value="True">
184         <param name="showSequenceLogo" value="true">
185          <param name="showGroupConsensus" value="true">
186           <param name="linkLabel_1" value="Uniprot">
187            <param name="linkUrl_1"
188             value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$">
189             <param name="linkLabel_2" value="Expasy">
190              <param name="linkUrl_2"
191               value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$">
192        <param name="APPLICATION_URL"
193         value="http://www.jalview.org/services/launchApp">
194        </applet></td>
195       <td valign="center">User Defined Colours, loads an associated
196        Newick format tree file which is used to sort the alignment, and
197        group consensus and sequence logos are shown below the alignment.</td>
198      </tr>
199      <tr>
200       <td width="10%" valign="center"><applet
201         code="jalview.bin.JalviewLite" width="140" height="35"
202         archive="jalviewApplet.jar">
203        <param name="file" value="uniref50.fa">
204         <param name="features" value="exampleFeatures.txt">
205          <param name="showFeatureSettings" value="true">
206           <param name="wrap" value="true">
207            <param name="showAnnotation" value="false">
208             <param name="windowHeight" value="500">
209              <param name="windowWidth" value="650">
210               <param name="showFullId" value="false">
211        <param name="linkLabel_1" value="Uniprot">
212         <param name="linkUrl_1"
213          value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$">
214          <param name="linkLabel_2" value="Expasy">
215           <param name="linkUrl_2"
216            value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$">
217            <param name="APPLICATION_URL"
218             value="http://www.jalview.org/services/launchApp">
219        </applet></td>
220       <td valign="center">Displays a features file on the alignment</td>
221      </tr>
222      <tr>
223       <td width="10%" valign="center"><applet
224         code="jalview.bin.JalviewLite" width="140" height="35"
225         archive="jalviewApplet.jar,JmolApplet-12.2.4.jar">
226        <param name="file" value="uniref50.fa">
227         <!-- <param name="debug" value="true">
228                         -->
229         <param name="defaultColour" value="Strand Propensity">
230          <param name="wrap" value="true">
231           <param name="showAnnotation" value="false">
232            <param name="windowHeight" value="500">
233             <param name="windowWidth" value="650">
234              <param name="showFullId" value="false">
235        <param name="linkLabel_1" value="Uniprot">
236         <param name="linkUrl_1"
237          value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$">
238          <param name="linkLabel_2" value="Expasy">
239           <param name="linkUrl_2"
240            value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$">
241        <param name="APPLICATION_URL"
242         value="http://www.jalview.org/services/launchApp">
243         <param name="PDBfile" value="1gaq.txt FER1_MAIZE">
244        </applet></td>
245       <td valign="center">Associates PDB file 1GAQ with sequence
246        FER1_MAIZE</td>
247      </tr>
248      <tr>
249       <td width="10%" valign="middle"><applet
250         code="jalview.bin.JalviewLite" width="140" height="35"
251         archive="jalviewApplet.jar">
252        <param name="file" value="jpred_msa.fasta">
253         <param name="jnetfile" value="jpred_msa.seq.concise">
254          <param name="defaultColour" value="Clustal">
255           <param name="showAnnotation" value="true">
256            <param name="windowHeight" value="515">
257             <param name="windowWidth" value="650">
258              <param name="showConservation" value="false">
259               <param name="showQuality" value="false">
260                <param name="showConsensus" value="false">
261                 <param name="showFullId" value="false">
262        <param name="linkLabel_1" value="Uniprot">
263         <param name="linkUrl_1"
264          value="http://www.uniprot.org/uniprot/$SEQUENCE_ID$">
265          <param name="linkLabel_2" value="Expasy">
266           <param name="linkUrl_2"
267            value="http://us.expasy.org/cgi-bin/niceprot.pl?$SEQUENCE_ID$">
268        <param name="APPLICATION_URL"
269         value="http://www.jalview.org/services/launchApp">
270        </applet></td>
271       <td valign="center">Displays a Multiple Sequence Alignment
272        Based JNet Prediction for a Sequence</td>
273      </tr>
274     </table>
275     <p>
276     <h2>RF00031 RFAM Alignment with per seqeunce secondary
277      structure</h2>
278     </p>
279     <table width="90%">
280      <tr>
281       <td width="10%" valign="center"><applet
282         code="jalview.bin.JalviewLite" width="140" height="35"
283         archive="jalviewApplet.jar">
284        <param name="file" value="RF00031_folded.stk">
285         <param name="defaultColour" value="Purine/Pyrimidine">
286          <param name="showAnnotation" value="true">
287           <param name="windowHeight" value="515">
288            <param name="windowWidth" value="650">
289             <param name="showConservation" value="false">
290              <param name="showQuality" value="false">
291               <param name="showConsensus" value="true">
292                <param name="showFullId" value="false">
293        <param name="APPLICATION_URL"
294         value="http://www.jalview.org/services/launchApp">
295        </applet></td>
296       <td valign="center">Displays an RFAM RNA fold family with
297        secondary structure annotation</td>
298      </tr>
299     </table>
300    </div>
301   </div>
302  </div>
303
304  <div id ="footer">
305 <div id="innerFooter">
306 <div id="copyright"><p>Copyright all rights reserved 2012</p></div>
307 <div id="cite">
308 <p>
309 If you use Jalview in your work, please cite this publication:
310 </p>
311 <br />
312 <p>
313 Waterhouse, A.M., Procter, J.B., Martin, D.M.A, Clamp, M. and Barton, G. J. (2009)
314 "Jalview Version 2 - a multiple sequence alignment editor and analysis workbench"
315 Bioinformatics 25 (9) 1189-1191 doi: 10.1093/bioinformatics/btp033
316 </p>
317 </div>
318 </div>
319 </div>
320 </body>
321 </html>
322