clustalw2

Multiple Sequence Alignment and Phylogenetic Tree construction using ClustalW2 command-line tool

ClustalW2 is a bioinformatics tool for multiple sequence alignment of DNA or protein sequences. It can easily align sequences and generate a phylogenetic tree online (https://www.genome.jp/tools-bin/clustalw). However, in some cases, we need to perform these operations on a large number of FASTA sequences using the command-line tool of ClustalW2 [1]. It generates output files in very less time and provides quite accurate results. In this article, we will perform these operations using stand-alone tool of ClustalW2. Additionally, we will also generate a percent identity matrix (PIM) for the input sequences. PIM helps to identify the identity amongst the subjected sequences.

Let’s assume our input file name is ‘input.fasta’.  We will run ClustalW2 on the Ubuntu platform in this article. If you wish to run on Windows, then enter the same command as mentioned below. Open the command prompt (cmd) on Windows and type the following command. Don’t forget to provide the full pathway of the ClustalW2 binary installed on your system.

Open a terminal (Ctrl+Alt+T) in Ubuntu and type the following commands:

$ /usr/local/bin/clustalw2 -infile=input.fasta -tree -pim -type=protein -case=upper

Provide full path to ClustalW2 binary, generally, it is /usr/local/bin/.

If you want your sequence residues to appear in small letters in the alignment, then type -case=lower and define the type of input sequences with -type argument.

It will generate .aln file as the alignment output, .tree as the phylogenetic tree output file, and .pim file as the PIM output.

References

  1. Higgins, D. G., & Sharp, P. M. (1988). CLUSTAL: a package for performing multiple sequence alignment on a microcomputer. Gene73(1), 237-244.
Tariq is founder of Bioinformatics Review and a professional Software Developer at IQL Technologies. His areas of expertise include algorithm design, phylogenetics, MicroArray, Plant Systematics, and genome data analysis. If you have questions, reach out to him via his homepage.

Leave a Reply

HOW TO CITE THIS ARTICLE Tariq Abdullah (2020). Multiple Sequence Alignment and Phylogenetic Tree construction using ClustalW2 command-line tool. Bioinformatics Review, 6 (06)
homology modeling methodology
Previous Story

Methodology for Homology Modeling of a Simple Protein

Perl programming in Bioinformatics
Next Story

Perl script to find duplicate FASTA sequences using their header?

Latest from Sequence Analysis

Willing to stay updated?

By investing less than 30 seconds you can start recieving all our new articles in your mailbox. Stay updated with latest Bioinformatics Research, trends and tools of trade.

 

Lost your password? Please enter your email address. You will receive mail with link to set new password.

0 $0.00