User Tools

Site Tools


Sidebar

Chapter 1: Internet, Networks and TCP/IP

Chapter 2: The LINUX operating system - Setting up a Linux Web Server

Chapter 3: Your first webpage, Learning HTML and CSS

Chapter 4: Building Dynamic Websites with PHP in progress

Chapter 5: Web forms under construction

Chapter 6: Developing your first Bioinformatics web application under construction

Chapter 7: The PHP programming language: strings, arrays, functions, cycles, conditional statements, regular expressions under construction

Chapter 8: Sample Bioinformatics Web Applications under construction

introduction

Web Development for Bioinformatics: Introduction

Web skills are an increasingly important part of the “technology toolbox” that any Bioinformatics student and researcher should be constantly building and maintaining up to date (ref).

This web development course, targeted at Biology and Bioinformatics students, aims at teaching from scratch all the skills needed to setup a fully working Linux web server and to develop and deploy web applications for Bioinformatics.

No previous programming knowledge is assumed. By following this tutorial you will learn the fundamental concepts of programming by using scripting languages: variables, types, arrays, cycles, conditional statements, functions, objects, regular expressions, files reading and manipulation et-cetera.

Since this course aims at teaching software development for the web, we have chosen, among the various programming languages most used to write bioinformatics applications (Perl, Python, Ruby and others), to focus on PHP. When first released, PHP was sometimes viewed as somewhat slow in execution, as compared to other languages, and with limited vocabulary. It was regarded for a while as a language with limited scope, only good to add some dynamic features to web pages.

Things have now progressed and changed. At the time of this writing, PHP is available as version 5 (PHP5) and constitutes a full featured programming language that allows basically every kind of Bioinformatics web application to be developed with relative ease, thanks to the rich set of buil-in functions and features. When required, PHP can make system calls to external applications and scripts, maybe written in different languages, for specialized tasks.

Last but not least, the learning curve of PHP is much “softer” that the one of other, maybe more complex languages such as Python, allowing the student to concentrate on the basic programming concepts that once acquired, can be easily applied to the learning of other languages. A function is a function in PHP, Python, Perl. The syntax may change, but the basic concepts stick in the different languages. The syntax in PHP is often quite simple. These are all good reasons for starting with PHP, and maybe move to Perl, Python, Ruby and cgi at a later stage.

Although this tutorial is aimed at web development for Bioinformatics, anyone who wishes to learn how to setup a web server and develop a web site can take advantage of this course. In particular, the information in the first chapters is not really specific to Bioinformatics and applies to the development of any kind of website and web application, not requiring any particular understanding of biological concepts.

Bioinformatics Web Applications

We can broadly define a bioinformatics application as a software that will process some kind of biological data, either obtained directly from a user, or from other sources, and output the result of the elaboration (again either to a user, in human readable format, or maybe to another application):

Input –> Processing –> Output

In the case of a web application, the input from the user is gathered through a web page containing a web form (Figure 1).

Figure 1: The NCBI BLAST web form

Web forms include a SUBMIT button (see Figure 1). On pressing this button, the data collected in the web form are sent to a script (written in Perl, PHP, Python, Ruby or other languages).

The script:

  • processes the data from the web form. Processing could range from very simple to extremely complex, depending on the application
  • formats the processed data for the web, by using HTML
  • sends back to the user an html web page containing the formatted results

So the flow for a web application becomes:

Web form (input) –> Processing and formatting –> Web page with results (output)

Figure 2: The NCBI BLAST web application

In order to design and write a bioinformatics web application ex-novo, a number of technical skills are therefore required. Here is a minimalistic list:

  • Understanding HTML and CSS, in order to be able to create a web page, a web form, and to format a script output so as to render it in HTML, as a web page
  • Learn a scripting language, either PHP or another language that allows to write cgi scripts. Writing a simple application can require very few programming skills that you can learn maybe in a day or so: stick with us.

In addition, if you want to set up a web server from scratch, instead of just using an account on somebody else's server (which of course if perfectly fine, although slightly less cool that setting up your own server), it is very useful to learn the LINUX operating system basics and to possess some notions about the Internet, networks and TCP/IP. If you want to be on the internet, you have to understand where you are. The more you know, the better you will be able to move freely and be creative. So let's add:

  • Learning LINUX basics: installation, setting up a web server with apache, using the shell instead of a graphical interface
  • Understanding the basics of Internet and Networks

How is this course organized

In this web development for bioinformatics course you will learn all the skills detailed above, from scratch. No previous knowledge about HTML or programming is required. If you already have some knowledge, you may skip chapters and get directly to what you are interested in. Otherwise, it is recommended that you follow the proposed flow, as every chapter introduces new concepts that, in general, are the foundation for what comes next. Therefore, by following the flow, you will acquire, gradually, all the knowledge required to do the job.

This is a course for beginners, although experienced programmers may indeed benefit from different aspects of the book, depending on their background. For one, if you are an accomplished programmer not familiar with the PHP programming and/or web programming, this is a great, easy and friendly place to learn. You will be able, thanks to your prior experience, to go quickly through the text and grab the main concepts you need to make the transition from local application to web applications.

Web applications, as applications in general, can get to be extremely complex in terms of input processing. For instance, processing might involve calls to other applications, that will do part of the job, and then return the results to the “main” script for further elaboration. In this book all the “foundations” are provided. The ability to implement applications of growing complexity will come with time, practice and experience, and will probably require aspects that are not covered in this book. Still, the provided knowledge constitutes the basis on which you will be able to build, according to your personal interests.

Let's start by learning the Internet and network basics.

Back to index

Discussion

Enter your comment. Wiki syntax is allowed:
JAXJP
 
introduction.txt · Last modified: 2013/03/13 14:49 by cellbiol