Posts

Showing posts from October, 2017

Simple WebServer using Python

Image
This is a simple example to develop your own Python web server used for application development or testing Python script and should not be used on a public network. It works similar to the Apache web server with limited functionalities and not intended to be a full-featured web server. This tutorial demonstrates just to activate the built-in web server through a batch file.InstructionsFor developing a Python web server, we simply need Python software alone. The batch file (.bat) was created to activate the built-in web server, automatically open the default web browser with custom folder as root directory (www), and minimize the command line window while running the Python script.Step 1: Download and install Python software according to your system platform. I have downloaded Windows x86-64 executable installer for 64-bit Windows 10 operating system.Step 2: Create a new folder named www (optional, your path to the webpages). Also, create a new file index.html in the www folder with th…

Simple WebServer using PHP

Image
This is a simple example to design your own PHP web server used for application development or testing PHP script and should not be used on a public network. It works similar to the Apache web server with limited functionalities and not intended to be a full-featured web server. This tutorial demonstrates just to activate the built-in web server through a batch file.InstructionsFor designing a PHP web server, we simply need PHP software alone. The batch file(.bat) was created to activate the built-in web server, automatically open the default web browser with custom folder as root directory (www), and minimize the command line window while running the PHP script.Step 1: Download and extract compresed file (.zip) formatted PHP software according to your system platform. I have downloaded VC14 x64 Thread Safe (2017-Sep-26 23:04:10) for 64-bit Windows 10 OS.Step 2: Create a new folder www in the extracted folder. Also, create a new file index.html in the www folder with the following lin…

Frequency Plot of Protein Sequence using PHP and R

Image
A frequency plot is a graphical data analysis technique for summarizing the distributional information of a variable. The response variable is divided into equal sized intervals (or bins). The number of occurrences of the response variable is calculated for each bin. In this tutorial, the number of occurrences of each amino acids in the protein sequence (response variable) is calculated and sorted in ascending order.The frequency plot then consists of: Vertical Axis = Amino acids
Horizontal Axis = Frequencies of the amino acidsThere are 4 types of frequency plots: Frequency plot (absolute counts);Relative frequency plot (convert counts to proportions);Cumulative frequency plot;Cumulative relative frequency plot.The frequency plot and the histogram have the same information except the frequency plot has lines connecting the frequency values, whereas the histogram has bars at the frequency values.Frequency plot using PHP and RIn this tutorial, the programming language R, PHP, and BioCond…