GeneByte

LoginRegister
Home
A+ R A-
04 Jun

CGI Perl for Bioinformatics: The basics Featured

Rate this item
(1 Vote)

If you are in Bioinformatics, you are destined you learn about perl cgi and scripting. But before learning CGI, perl bioinformatics, let’s dwell into basic details. CGI long form is Common Gateway Interface. It differs from perl as it is a method which is used by web servers to run external programs to generate web content dynamically. To make things simple, when you learn perl for Bioinformatics, you code standalone programs but with perl cgi, you can create online applications.

Why perl cgi comobination?

CGI is simply a specification which defines a standard way for web servers to run CGI scripts. CGI can be sometimes defined as the mechanism that connects between computer programs and web server. It allows to provide a web interface to your program from a web browser and to get the output in a result page.

Perl is a very popular language for CGI scripting due to its following features:

1) Text handling ability

2) Easy scripting

3) High relative speed.

Setting up of CGI in Unix/Linux needs a web server called Apache server. In order to set up CGI on Windows, one should install the Internet Information Server (IIS).

Basic CGI scripts, either in perl or any other programming languages, use two types of texts:

a) The plain text (code)

b) HTML text (design or format)

As perl is a natural language, which can be embedded in other programming languages as well, one can use it to embed with web programming. When you learn perl for Bioinformatics, CGI is generally coded in Perl.

Creating Perl CGI scripts:

First Step:

CGI is the main program when you are going to create web pages. One can use text editor of that operating system for constructing CGI scripts (Notepad, Notepad++ or Dreamweaver).

Second Step:

This perl CGI program is then called by web server (Apache or IIS) in response to some action by the user.

Perl offers a very powerful feature of adding a module named as CGI.pm which is used to run CGI programs. This module has a collection of a pre-written perl code and you can also create bioinformatics modules as per your requirements.

CGI Perl Bioinformatics Applications:

In Bioinformatics, CGI Perl can be used in following ways:

  1. To create different kinds of online tools. For example in ORF Finder, it finds the ORFs present in a given query sequence.
  2. CGI programming can also be used to perform a database search online.
Last modified on Friday, 08 June 2012 13:01
Bhrat Brij

Bhrat Brij

Bhrat Brij is co-founder of Gene Byte Bioinformatics Portal. He is a Gold Medalist in his graduation and wants to redisover Bioinformatics in India.


He can be reached on bbrij(AT) bhratbrij.com or follow him on http://www.facebook.com/bhratbrij

Website: www.bhratbrij.com/

Leave a comment

Login