Posts

Showing posts with the label HTML

NCBI BLAST Graphical Summary using HTML/CSS

Image
This is a simple tutorial for designing a webpage for displaying the graphical summary of biological sequence alignment similar to the output of the NCBI BLAST+ program using HTML and CSS languages. In this tutorial, I have given few example hits (in bars) that match all range of bit scores (mentioned by color key). NCBI BLAST Graphical Summary NCBI BLAST is a most popular bioinformatics framework for finding local similarity between two or more biological sequences. It addresses a fundamental problem in bioinformatics research. The heuristic algorithm it uses is much faster than other approaches, such as calculating an optimal alignment. This emphasis on speed is vital to making the algorithm practical on the huge genome databases currently available, although subsequent algorithms can be even faster. In NCBI BLAST, the graphic is an overview of the database sequences aligned to the query sequence. These are represented horizontal bars colored coded by score and showing the ex...

Two methods to run PHP script

This article explains different methods to write PHP scripts. Basically PHP is a HTML, without using PHP script in it. A PHP script can be inserted between <?php and ?> tags. General contents can be simply displayed using HTML web page to reduce PHP server script runtime duration. HTML and PHP HTML: add.html <html> <head> <title>Addition of Two Numbers</title> </head> <body> <form action="add.php" method="post"> Enter the first number: <input type="text" name="a"><br/> Enter the second number: <input type="text" name="b"><br/> <input type="submit" name="submit" value="ADD"> </form> </body> </html> PHP: add.php <html> <head> <title>Addition of Two Numbers</title> </hea...

Addition using Perl/CGI in Ubuntu

Image
If Apache web server has installed in your system, you can run Perl/CGI script successfully. Create a HTML file and Perl script using following steps. Step 1: Creating a web page add.html 1. Open your console and type: $ sudo gedit /var/www/add.html 2. Copy the lines below in the file and save it. <html> <head> <title>Addition of two numbers.</title> </head> <body> <br><br><br><br><br> <form action='cgi-bin/add.pl' method='post' enctype='multipart/form_data'> <table border='0' align='center'> <tr><td colspan='2' align='center'> <b>Adding Two Numbers</b> </td></tr> <tr> <td>Enter the first value:</td> <td><INPUT TYPE ='text' NAME='n1'></td> </tr> <tr> ...