ArticleslgStudy

computer science

Clustal

Clustal is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Clustal rather than just read about it. In short: Clustal is a computer program used for multiple sequence alignment in bioinformatics. It is one of the most widely cited bioinformatics software with two of its academic publications amongst the top 100 papers cited of all time, according to Nature in 2014.

Clustal — main illustration
Clustal — illustration

Key takeaways

  • Clustal belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Clustal to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Clustal from memory before moving on to harder problems.

Reference excerpt

Clustal is a computer program used for multiple sequence alignment in bioinformatics. It is one of the most widely cited bioinformatics software with two of its academic publications amongst the top 100 papers cited of all time, according to Nature in 2014. Since its first publication in 1988, the software and its algorithms have gone through several iterations, with ClustalΩ (Omega) being the latest version as of 2011. It is available as standalone software, via a web interface, and through a server hosted by the European Bioinformatics Institute.

History The guide tree in the initial versions of Clustal was constructed via a UPGMA cluster analysis of the pairwise alignments, hence the name CLUSTAL.cf. The first four versions of Clustal were numbered using Arabic numerals (1 to 4), whereas the fifth version uses the Roman numeral V.cf. 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. The name Omega was chosen to mark a change from the previous iterations.

Version history Clustal: The original software for multiple sequence alignments, created by Des Higgins in 1988, was based on deriving a guide tree from pairwise sequences of amino acids or nucleotides. ClustalV: The second generation of Clustal, released in 1992. It introduced the ability to create new alignments from existing alignments in a process known as phylogenetic tree reconstruction. ClustalV also added the option to create trees using the neighbor joining method. ClustalW: The third generation, released in 1994. It improved upon the progressive alignment algorithm, including sequence weighting options based on similarity and divergence. Additionally, it added the option to run Clustal in batch mode from the command line. ClustalX: Released in 1997, this was the first version to have a graphical user interface. Clustal2: This updated both ClustalW and ClustalX with higher accuracy and efficiency in 2007. ClustalΩ (Omega): The current version, released in 2011.

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. Clustal creates multiple sequence alignments through three main steps:

Complete a pairwise alignment using the progressive alignment method. Create a guide tree (or use a user-defined tree). 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.

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 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, 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.

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. The option to run from the command line expedites the multiple sequence alignment process. Sequences can be run with a simple command,

or 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.

ClustalW

ClustalW uses progressive alignment methods, which prioritize sequences for alignment based on similarity until a global alignment is returned. It is also a matrix-based algorithm, whereas tools like T-Coffee and Dialign are consistency-based. 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. 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.

… excerpt ends here. Continue reading the full article.

Illustrations

Clustal: Hemagglutinin-alignments
Hemagglutinin-alignments
Clustal: Multiple sequence alignment of CDK4 protein generated with ClustalW. Arrows indicate point mutations.
Multiple sequence alignment of CDK4 protein generated with ClustalW. Arrows indicate point mutations.
Clustal: Depicts the steps the ClustalW software algorithm uses for global alignments
Depicts the steps the ClustalW software algorithm uses for global alignments
Clustal: Diagram showing neighbor-joining method in sequence alignment for bioinformatics
Diagram showing neighbor-joining method in sequence alignment for bioinformatics
Clustal: Flowchart depicting the step-by-step algorithm used in Clustal Omega.
Flowchart depicting the step-by-step algorithm used in Clustal Omega.

Worked examples

Example 1 — a first encounter with Clustal

Start with the simplest possible case. Write down what Clustal claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Clustal before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Clustal ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Clustal

In research
Clustal appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Clustal in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Clustal is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free bioinformatics software, Free software programmed in C++, Phylogenetics software, so understanding it makes those chapters shorter.
In everyday life
Look for Clustal outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Clustal” →

How to study Clustal in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Clustal means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Clustal out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Clustal in simple terms?

Clustal is a computer program used for multiple sequence alignment in bioinformatics. It is one of the most widely cited bioinformatics software with two of its academic publications amongst the top 100 papers cited of all time, according to Nature in 2014.

Why does Clustal matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Clustal?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Clustal.

Tags

  • Free bioinformatics software
  • Free software programmed in C++
  • Phylogenetics software

Keep exploring