Clustal Explained

CLUSTAL
Latest Release Version:1.2.2
Operating System:UNIX, Linux, MacOS, MS-Windows, FreeBSD, Debian
Programming Language:C++
Genre:Bioinformatics tool
Licence:GNU General Public License, version 2[1]

Clustal is a computer program used for multiple sequence alignment in bioinformatics.[2] The software and its algorithms have gone through several iterations, with ClustalΩ (Omega) being the latest version . It is available as standalone software, via a web interface, and through a server hosted by the European Bioinformatics Institute.

Clustal has been an important bioinformatic software, with two of its academic publications amongst the top 100 papers cited of all time, according to Nature in 2014.[3]

History

Version history

Name origin

The guide tree in the initial versions of Clustal was constructed via a UPGMA cluster analysis of the pairwise alignments, hence the name CLUSTAL.[11] cf.[12] The first four versions of Clustal were numbered using Arabic numerals (1 to 4), whereas the fifth version uses the Roman numeral V.cf.[13] [5] The next two versions proceed alphabetically using the Latin alphabet, with W standing for weighted and X for X Window to represent the changes introduced.cf.[14] [7] The name Omega was chosen to mark a change from the previous iterations.

Function

Clustal aligns sequences using a heuristic that progressively builds a multiple sequence alignment from a set of pairwise alignments. This method works by analyzing the sequences as a whole and using the UPGMA/neighbor-joining method to generate a distance matrix. A guide tree is calculated from the scores of the sequences in the matrix, then subsequently used to build the multiple sequence alignment by progressively aligning the sequences in order of similarity.[15]

Clustal creates multiple sequence alignments through three main steps:

  1. Complete a pairwise alignment using the progressive alignment method.
  2. Create a guide tree (or use a user-defined tree).
  3. Use the guide tree to carry out a multiple alignment.

These steps are carried out automatically by the function "Do Complete Alignment". Other options are "Do Alignment from guide tree and phylogeny" and "Produce guide tree only".

Input/Output

This program accepts a wide range of input formats, including NBRF/PIR, FASTA, EMBL/Swiss-Prot, Clustal, GCC/MSF, GCG9 RSF, and GDE.

The output format can be one or many of the following: Clustal, NBRF/PIR, GCG/MSF, PHYLIP, GDE, or NEXUS.

Reading Multiple Sequence Alignment Output!Symbol!Definition!Meaning
asteriskpositions that have a single and fully conserved residue
colonconserved: conservation between groups of strongly similar properties (score > 0.5 on the PAM 250 matrix)
.periodsemi-conserved: conservation between groups of weakly similar properties (score ≤ 0.5 on the PAM 250 matrix)
blanknon-conserved
The same symbols are shown for both DNA/RNA alignments and protein alignments, so while * (asterisk) symbols are useful for both, the other consensus symbols should be ignored for DNA/RNA alignments.

Settings

The gap opening penalty and gap extension penalty parameters can be adjusted by the user.

Clustal and ClustalV

Brief summary

The original Clustal software was developed in 1988 as a computational method for generating multiple sequence alignments on personal computers. ClustalV was released 4 years later and greatly improved upon the original software, adding and altering few key features. It was a full re-write, written in C instead of Fortran.

Algorithm

Both versions use the same fast approximate algorithm to calculate the similarity scores between sequences, which in turn produces the pairwise alignments. The algorithm works by calculating the similarity scores as the number of k-tuple matches between two sequences, accounting for a set penalty for gaps. The more similar the sequences, the higher the score. Once the sequences are scored, a dendrogram is generated through the UPGMA to generate an ordering of the multiple sequence alignment. Sequences are aligned in descending order by set order. This algorithm allows for very large data sets and is fast. However, the speed is dependent on the range of k-tuple matches selected for the particular sequence type.[16]

Notable ClustalV improvements

Some of the most notable additions in ClustalV are profile alignments, and full command line interface options. The ability to use profile alignments allows the user to align two or more previous alignments or sequences to a new alignment and move misaligned sequences (low scored) further down the alignment order. This gives the user the option to gradually and methodically create multiple sequence alignments with more control than the basic option.[15] The option to run from the command line expedites the multiple sequence alignment process. Sequences can be run with a simple command,

clustalv nameoffile.seq or clustalv /infile=nameoffile.seq

and the program will determine what type of sequence it is analyzing. When the program is completed, the output of the multiple sequence alignment as well as the dendrogram go to files with .aln and .dnd extensions respectively. The command line interface uses the default parameters, and doesn't allow for other options.[16]

ClustalW

Brief summary

ClustalW, like other Clustal versions, is used for aligning multiple nucleotide or protein sequences efficiently. It uses progressive alignment methods, which prioritize sequences for alignment based on similarity until a global alignment is returned. ClustalW is a matrix-based algorithm, whereas tools like T-Coffee and Dialign are consistency-based. ClustalW is efficient, with competitive in comparison with similar software. This program requires three or more sequences in order to calculate a global alignment. For binary sequence alignment, other tools such as EMBOSS or LALIGN should be used.

Algorithm

ClustalW uses progressive alignment algorithms. In these, sequences are aligned in most-to-least alignment score order. This heuristic is necessary to restrict the time- and memory-complexity required to find the globally optimal solution.

First, the algorithm computes a pairwise distance matrix between all pairs of sequences (pairwise sequence alignment). Next, a neighbor-joining method uses midpoint rooting to create an overall guide tree.[17] A diagram of this method is illustrated to the right. Finally, the guide tree is used as an approximate template to generate a global alignment.

Time complexity

ClustalW has a time complexity of

O(N2)

because of its use of the neighbor-joining method.

ClustalW2 added an option to use UPGMA instead which is faster for large input sizes. The command line flag in order to use it instead of neighbor-joining is:-clustering=UPGMAAs an approximate example, while a 10,000 sequences input would take over an hour for neighbor-joining, UPGMA would complete in less than a minute.

ClustalW2 also added an iterative alignment accuracy. This option does not increase efficiency, but it does offer the ability to increase alignment accuracy. This can be especially useful for small datasets.

The following flags activate iterative alignment: -Iteration=Alignment-Iteration=Tree-numiters

The first option refines the final alignment. The second option incorporates the scheme in the progressive alignment step. The third specifies the number of iteration cycles, where the default value is set to 3.[18]

Accuracy and Results

The algorithm ClustalW uses is nearly optimal. It is most effective for datasets with a large degree of variance. On such datasets, the process of generating a guide tree is less sensitive to noise. ClustalW was one of the first multiple sequence alignment algorithms to combine pairwise alignment and global alignment to increase speed, but this decision reduces result accuracy.

When multiple sequence alignment algorithms were compared in 2014, ClustalW was one of the fastest that was able to produce results at the desired level of accuracy. However, it was not as accurate as consistency-based competitors such as T-Coffee.[19] Out of MAFFT, T-Coffee, and Clustal Omega, ClustalW has the lowest accuracy for full-length sequences, but its accuracy is still considered acceptable. Additionally, ClustalW was the most memory-efficient algorithm of those studied. Continued updates to the software have made ClustalW2 more accurate while maintaining this speed.

Clustal Omega

Brief summary

ClustalΩ (alternatively written as Clustal O and Clustal Omega) is a fast and scalable program written in C and C++ used for multiple sequence alignment. It uses seeded guide trees and a new HMM engine that focuses on two profiles to generate these alignments.[20] [21] The program requires three or more sequences in order to calculate the multiple sequence alignment. Clustal Omega is consistency-based and is widely viewed as one of the fastest online implementations of all multiple sequence alignment tools and still ranks high in accuracy, among both consistency-based and matrix-based algorithms.

Algorithm

Clustal Omega has five main steps in order to generate the multiple sequence alignment.

  1. A pairwise alignment is produced using the k-tuple method.This is a heuristic method that isn't guaranteed to find an optimal solution, but is more efficient than using dynamic programming.
  2. Sequences are clustered using the modified mBed method. The mBed method calculates pairwise distance using sequence embedding.
  3. The k-means clustering method is applied.
  4. A guide tree is constructed using the UPGMA method. In the figure to the right, this is shown as multiple guide tree steps leading into one final guide tree construction because of the agglomerative nature of UPGMA. At each step (diamonds in the flowchart), the nearest two clusters are combined. This is repeated until a final, global tree can be assessed.
  5. The final multiple sequence alignment is produced with the HHAlign package from the HH-Suite using two profile HMM's. A profile HMM is a linear state machine consisting of a series of nodes, each of which corresponds roughly to a position (column) in the alignment from which it was built.[22]

Time complexity

The time complexity of exactly computing an optimal alignment of

N

sequences of length

L

is

O(LN)

which is prohibitive for even a small number of sequences. To manage this, Clustal Omega uses a modified version of mBed which has a complexity of

O(NlogN)

,[23] [24] and produces guide trees that are as accurate as those from conventional methods. The speed and accuracy of the guide trees in Clustal Omega is attributed to the implementation of a modified mBed algorithm. It also reduces the computational time and memory requirements to complete alignments on large datasets.

Accuracy and results

The accuracy of Clustal Omega on a small number of sequences is, on average, very similar to what are considered high quality sequence aligners. On extremely large datasets with hundreds of thousands of input sequences, Clustal Omega outperforms all other algorithms in time, memory, and accuracy of results.[25] It is capable of running 100,000+ sequences on one processor in a few hours.

Clustal Omega uses the HHAlign package of the HH-Suite, which aligns two profile Hidden Markov Models instead of a profile-profile comparison. This improves the quality of the sensitivity and alignment significantly. This, combined with the mBed method, gives Clustal Omega its advantage over other sequence aligners.

On data sets with non-conserved terminal bases, Clustal Omega can be more accurate than Probcons or T-Coffee, despite the fact that both are consistency-based algorithms. On an efficiency test with programs that produce high accuracy scores, MAFFT was the fastest, closely followed by Clustal Omega. Both were faster than T-Coffee, however MAFFT and Clustal Omega required more memory to run.

Clustal2 (ClustalW/ClustalX)

Clustal2 is the packaged release of both the command-line ClustalW and graphical Clustal X. Neither are new tools, but are updated and improved versions of the previous implementations seen above. Both downloads come pre-compiled for many operating systems like Linux, Mac OS X and Windows (both XP and Vista). This release was designed to make the website more organized and user friendly, as well as updating the source codes to their most recent versions. Clustal2 is version 2 of both ClustalW and ClustalX, which is where it gets its name. Past versions can still be found on the website, however, every pre-compilation is now up to date.

See also

External links

Notes and References

  1. See file COPYING, in source archive http://www.clustal.org/omega/clustal-omega-1.2.0.tar.gz . Accessed 2014-01-15.
  2. Chenna R, Sugawara H, Koike T, Lopez R, Gibson TJ, Higgins DG, Thompson JD . Multiple sequence alignment with the Clustal series of programs . Nucleic Acids Research . 31 . 13 . 3497–500 . July 2003 . 12824352 . 168907 . 10.1093/nar/gkg500 .
  3. . October 2014 . The top 100 papers . Nature . 514 . 7524 . 550–3 . 2014Natur.514..550V . 10.1038/514550a . 25355343 . free.
  4. Higgins DG, Sharp PM . CLUSTAL: a package for performing multiple sequence alignment on a microcomputer . Gene . 73 . 1 . 237–44 . December 1988 . 3243435 . 10.1016/0378-1119(88)90330-7 .
  5. Higgins DG, Bleasby AJ, Fuchs R . CLUSTAL V: improved software for multiple sequence alignment . Computer Applications in the Biosciences . 8 . 2 . 189–91 . April 1992 . 1591615 . 10.1093/bioinformatics/8.2.189 .
  6. Thompson . J. D. . Higgins . D. G. . Gibson . T. J. . 1994-11-11 . CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice . Nucleic Acids Research . 22 . 22 . 4673–4680 . 10.1093/nar/22.22.4673 . 0305-1048 . 7984417. 308517 .
  7. Thompson JD, Gibson TJ, Plewniak F, Jeanmougin F, Higgins DG . The CLUSTAL_X windows interface: flexible strategies for multiple sequence alignment aided by quality analysis tools . Nucleic Acids Research . 25 . 24 . 4876–82 . December 1997 . 9396791 . 147148 . 10.1093/nar/25.24.4876 .
  8. Web site: Clustal W and Clustal X Multiple Sequence Alignment. Dineen. David. www.clustal.org. 2018-04-24. 2018-04-16. https://web.archive.org/web/20180416130735/http://www.clustal.org/clustal2/. live.
  9. Book: Multiple Sequence Alignment Methods. . 1079. Sievers. Fabian. Higgins. Desmond G.. Clustal Omega, Accurate Alignment of Very Large Numbers of Sequences . vanc . 2014-01-01. Humana Press. 9781627036450. Russell. David J. Methods in Molecular Biology. 105–116. en. 10.1007/978-1-62703-646-7_6. 24170397.
  10. Book: 48. 3.13.1–16. Sievers. Fabian. Higgins. Desmond G.. vanc . 2002-01-01. John Wiley & Sons, Inc.. 9780471250951. en. 10.1002/0471250953.bi0313s48. 25501942. Clustal Omega. Current Protocols in Bioinformatics. 1762688.
  11. Des Higgins, presentation at the SMBE 2012 conference in Dublin.
  12. Higgins DG, Sharp PM . CLUSTAL: a package for performing multiple sequence alignment on a microcomputer . Gene . 73 . 1 . 237–44 . December 1988 . 3243435 . 10.1016/0378-1119(88)90330-7 . Paul M. Sharp .
  13. Higgins DG, Sharp PM . Fast and sensitive multiple sequence alignments on a microcomputer . Computer Applications in the Biosciences . 5 . 2 . 151–3 . April 1989 . 2720464 . 10.1093/bioinformatics/5.2.151 . Paul M. Sharp .
  14. . CLUSTAL W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice . Nucleic Acids Research . 22 . 22 . 4673–80 . November 1994 . 7984417 . 308517 . 10.1093/nar/22.22.4673 .
  15. Web site: CLUSTAL W Algorithm . 2018-04-24 . https://web.archive.org/web/20161201124147/https://www-bimas.cit.nih.gov/clustalw/clustalw.html . 2016-12-01 . dead .
  16. Web site: Higgins . Des . June 1991 . Clustal V Multiple Sequence Alignments. Documentation (Installation and Usage). . live . 2022-08-27 . www.aua.gr . 2023-04-12 . https://web.archive.org/web/20230412000530/https://www.aua.gr/~eliop/mathimata/molevol/Askhsh1/clustalv.htm .
  17. Web site: About CLUSTALW. www.megasoftware.net. 2018-04-24. 2018-04-24. https://web.archive.org/web/20180424202409/https://www.megasoftware.net/web_help_7/hc_clustalw.htm. live.
  18. Larkin . M.A. . Blackshields . G. . Brown . N.P. . Chenna . R. . McGettigan . P.A. . McWilliam . H. . Valentin . F. . Wallace . I.M. . Wilm . A. . 2007-09-10 . Clustal W and Clustal X version 2.0 . Bioinformatics . en . 23 . 21 . 2947–2948 . 10.1093/bioinformatics/btm404 . 1367-4803 . 17846036 . free.
  19. Pais FS, Ruy PC, Oliveira G, Coimbra RS . Assessing the efficiency of multiple sequence alignment programs . Algorithms for Molecular Biology . 9 . 1 . 4 . March 2014 . 24602402 . 4015676 . 10.1186/1748-7188-9-4 . free .
  20. Web site: Clustal Omega < Multiple Sequence Alignment < EMBL-EBI. EMBL-EBI. www.ebi.ac.uk. en. 2018-04-18. 2018-04-29. https://web.archive.org/web/20180429093325/https://www.ebi.ac.uk/Tools/msa/clustalo/. live.
  21. Web site: Clustal Omega, ClustalW and ClustalX Multiple Sequence Alignment. Dineen. David. www.clustal.org. 2018-04-18. 2010-05-29. https://web.archive.org/web/20100529100824/http://www.clustal.org/. live.
  22. Web site: Profile HMM Analysis . dead . https://web.archive.org/web/20190724174527/http://www.biology.wustl.edu/gcg/hmmanalysis.html . 2019-07-24 . 2018-05-01 . www.biology.wustl.edu.
  23. Blackshields G, Sievers F, Shi W, Wilm A, Higgins DG . Sequence embedding for fast construction of guide trees for multiple sequence alignment . Algorithms for Molecular Biology . 5 . 21 . May 2010 . 20470396 . 2893182 . 10.1186/1748-7188-5-21 . free .
  24. Sievers F, Wilm A, Dineen D, Gibson TJ, Karplus K, Li W, Lopez R, McWilliam H, Remmert M, Söding J, Thompson JD, Higgins DG . Fast, scalable generation of high-quality protein multiple sequence alignments using Clustal Omega . Molecular Systems Biology . 7 . 1 . 539 . October 2011 . 21988835 . 3261699 . 10.1038/msb.2011.75 .
  25. Daugelaite. Jurate. O' Driscoll. Aisling. Sleator. Roy D. . vanc . 2013. An Overview of Multiple Sequence Alignments and Cloud Computing in Bioinformatics. ISRN Biomathematics. en. 2013. 1–14. 10.1155/2013/615630. 2090-7702. free.