<?php # $Id: index.php,v 1.2 2006/06/16 09:48:16 gmaster Exp $
#
$BASE_DIR=$_SERVER["DOCUMENT_ROOT"];
$CODE_DIR=$BASE_DIR.'/lib';
require($BASE_DIR.'/bc.php');
require($BASE_DIR.'/courses/bc.php');
require($CODE_DIR.'/Genome.php');
#
the_header('ALINEATOR',
           'genome bioinformatics research lab seminars, bioinformatics courses',
	   'SEMINARS and COURSES at GENOME BIOINFORMATICS RESEARCH LABORATORY');
?>

<?php the_title('Alineator WEB server 2006'); ?>

<?php hsubsec('Abstract','ABS'); ?>
<p>
This is a web server to show the behaviour of the Needleman and Wunsch (global) and Smith and Waterman (local) alignment algorithms.
Students in this small project are suposed to be able to implement a functional version of both algorithms. The implementation
of them is an excellent opportunity to understand the basic mechanisms to perform optimal pairwise alignments. Moreover,
the web server can be simply used to explain the dynamic programming paradigm to beginner students in bioinformatics.
</p>

<form method="post" enctype="multipart/form-data" action="/cgi-bin/alineator_cgi/alineator.cgi" name="forma">

<?php
mk_toc(csec('Abstract','ABS'),
       csec('Input','IN'),
       csec('Options','OPT'),
       csec('Demos','DEMO'),
       csec('Bibliography','BIB'),
       csec('Author','AUT')
       );
?> <br/>



<?php hsec('Input','IN'); ?>

&nbsp; <br />

<p>
Please, input the 2 FASTA sequences to perform a global/local alignment:<br>
</p>
<p>
<font color="green"><a href="./Alineator/samples/ttrHuman.fa">SEQUENCE 1</a></font> <br>
<font style="font-family: &quot;Monospaced&quot;,&quot;Courier&quot;,sans-serif;">
<textarea name="seqa" rows="10" cols="100" selected="true"></textarea>
</font>
</p>
<p>
<font color="green">Upload the file A</font> <br>
<input name="upfile" type="file"> <br>
</p>
<p>
<font color="green"><a href="./Alineator/samples/ttrRat.fa">SEQUENCE 2</a></font> <br>
<font style="font-family: &quot;Monospaced&quot;,&quot;Courier&quot;,sans-serif;">
<textarea name="seqb" rows="10" cols="100" selected="true"></textarea>
</font>
</p>
<p>
<font color="green">Upload the file B</font> <br>
<input name="upfile2" type="file"> <br>
</p>
<p>
</p><center>
<table border="0">
<tbody><tr>
<td>
<input value="Submit" type="submit">
</td>
<td>
<input value="Reset form" type="reset">
</td>
</tr>
</tbody></table>
</center>
<p></p>
<p>
<font color="red" face="helvetica"><i>Maximum accepted file size: 1500 bps or 1500 amino acids</i></font>
<br>
</p>
&nbsp; <br />



<?php hsec('Options','OPT'); ?>

<p>
<table border="0">
<tbody><tr>
<td>
<font color="green" face="helvetica">

<?php hsubsec('ALIGNMENT TYPE',''); ?>
<p>
<input name="type" value="global" checked="checked" type="radio">
<font face="helvetica" size="1"><i>Global</i></font><br>
<input name="type" value="local" type="radio">
<font face="helvetica" size="1"><i>Local</i></font> 
</p>

<font color="green" face="helvetica">
<p>
Please select the substitution matrix</font><br><br>
<input name="subscol" value="blosum" checked="checked" type="radio">
<font face="helvetica" size="1"><i><a href="Alineator/matrices/blosum62.dat">BLOSUM62</a></i></font><br>
<input name="subscol" value="pam" type="radio">
<font face="helvetica" size="1"><i><a href="Alineator/matrices/pam120.dat">PAM120</a></i></font> <br>
<input name="subscol" value="dnasym" type="radio">
<font face="helvetica" size="1"><i><a href="Alineator/matrices/dna1.dat">DNA (symmetrical)</a></i></font> <br>
<input name="subscol" value="dnaasym" type="radio">
<font face="helvetica" size="1"><i><a href="Alineator/matrices/dna2.dat">DNA (asymmetrical)</a></i></font> <br>
</p>
</td>
</tr></tbody></table>
<table border="0">
<tbody>
<tr>
<td><p><font color="green" face="helvetica">Gap penalty:</font></p></td>
</tr>
<tr>
<td>
<p>
<select name="gap" size="1">
<option selected="selected" value="-1">-1</option>
<option value="-2">-2</option>
<option value="-5">-5</option>
<option value="-10">-10</option>
<option value="-50">-50</option>
</select>
</p>
</td>
</tr></tbody></table>

<table border="0">
<tbody><tr>
<td>
<p>
<input name="showmatrix" type="checkbox"> <em><b><font face="helvetica" size="2">Display the similarity matrix</font></b></em>
</p>
</td>
</tr></tbody></table>
</p>



<?php hsec('Demos','DEMO'); ?>
<p>
<?php hsubsec('DEMO1',''); ?>
<p>
Dummy alignment between two short proteins to show the difference between global and local alignment:<br>
<a href="./Alineator/demoMount.php">Please click here</a>.<br><br>
</p>

<?php hsubsec('DEMO2',''); ?>
<p>
GENOMIC alignment between the promoter regions of the TTR gene in human and chicken:<br>
<a href="./Alineator/demoTTRprom.php">Please click here</a>.<br><br>
</p>

<?php hsubsec('DEMO3',''); ?>
<p>
PROTEIN alignment between the TTR human and mouse proteins:<br>
<a href="./Alineator/demoTTRprot.php">Please click here</a>.<br><br>
</p>

<?php hsec('Bibliography','BIB'); ?>

<p>

<ul class="lst">
<li> <a href="Alineator/papers/needleman70.pdf">A general method applicable to the search for similarities in the amino acid sequence of two proteins.</a>
<br> 
Needleman SB and Wunsch CD. J Mol Biol. 1970 Mar;48(3):443-53.
</li>

<br>

<li> <a href="Alineator/papers/smithwater81.pdf">Identification of common molecular subsequences.</a>
<br> 
Smith TF and Waterman MS. J Mol Biol. 1981 Mar 25;147(1):195-7. 
</li>
</ul>

</p>



<?php hsec('Author','AUT'); ?>

<p>
The <tt>alineator</tt> <sup>server</sup> is an application for educational purposes. The
main objective is to show the students in a friendly and easy form how the basic forms
of alignments are computed. The <tt>alineator</tt> program implements the Needleman and
Wunsch (1970) algorithm and the Smith and Waterman (1981) algorithm.
<br><br>
The source code of the program in C is kindly provided under GPL license by the author upon request .
<br><br>
Version 1 of <tt>alineator</tt><sup>server</sup> has been written by
<a href="http://genome.crg.es/~eblanco/index.html"><b>Enrique Blanco</b></a>
</p>

</form>

<?php page_trailer(__FILE__); ?>
