Sitemap
Adeyemo Maryam

Adeyemo Maryam

Sequence Alignments

Working with Basic Local Alignment Search Tool (BLAST)

4 min readAug 21, 2022

--

Definition

Sequence alignment is the process of comparing sequences of DNA, RNA or protein by searching for common character patterns that may be a result of functional, structural or evolutionary relationships between the sequences. Sequence alignment enable us to infer homology (common evolutionary origin) and functions of new sequences through observed shared sequence similarity.

Sequence Identity, Similarity and Homology

Sequence Identity: refers to the percentage of exact matches between the residues of the sequences being aligned.

Sequence Similarity: refers to the percentage of aligned residues that have similar physicochemical properties. For example, an amino residue of aspartate in one sequence is similar to glutamate residue in another sequence. However, nucleotide sequences cannot be similar.

Sequence homology: refers to the evolutionary relationship between sequences. 20–25% amino acid sequence identity is required to infer protein homology while about 70% nucleotide identity is required for gene homology.

Types of Sequence Alignments

  1. Pairwise Sequence Alignment
  2. Multiple Sequence Alignment

Pairwise Sequence Alignment: Pairwise sequence alignment deals with the comparison of two biological (nucleic and protein) sequences by finding the optimal alignment between the two sequences and it is the basis of database similarity search.

Database similarity search involves submitting a query sequence to a database and performing pairwise alignment with all sequences in the database with the query sequence. It is simply pairwise alignment on a large scale. BLAST tool is commonly used for database similarity search.

Figure 1: Pairwise sequence alignment

Multiple Sequence Alignment(MSA): This is simply the alignment of three or more biological sequences. Some of the applications of MSA include phylogenetic analysis, domain identification, pattern recognition etc. There are different algorithms for performing MSA, examples are Clustal Omega, ClustalW, MUSCLE, T-Coffee etc.

JALVIEW is a very common tool for MSA. It can be downloaded via this link. It is compatible with Windows, MacOS and Linux.

BLAST (Basic Local Alignment Search Tool)

BLAST was created by Altschul et al., 1993. It finds regions of local similarity between sequences. It uses a heuristic method to compare nucleotide and protein sequences to sequence databases and calculates the statistical significance of matches. The output of BLAST is a list of high scoring local alignments together with the measure of the probability that such matches would occur by chance.

Variants of BLAST

  1. Nucleotide BLAST (Nucleotide -> Nucleotide)
  2. Protein BLAST (Protein -> Protein)
  3. blastx (Translated Nucleotide -> Protein)
  4. tblastn (Protein -> Translated Nucleotide)
  5. tblastx (Translated Nucleotide -> Translated Nucleotide)

BLAST also hosts different specialized searches. You can read more on them here

Get Adeyemo Maryam’s stories in your inbox

Join Medium for free to get updates from this writer.

Practice time

We will look for sequences that align with our query sequence. First we navigate to BLAST via this link . It will open up to an interface like this:

Press enter or click to view image in full size
User interface for BLAST showing the different variants of BLAST such as Nucleotide BLAST, blastx, Protein BLAST
Figure 2: BLAST GUI

We will be making use of Protein BLAST since we want to do a protein-protein alignment. Click on Protein BLAST . It would open up to an interface like this:

Press enter or click to view image in full size
Protein BLAST interface where you can choose or the query sequence for alignment
Figure 3: blastp GUI

We can enter the accession number of our query sequence (NP_001304947.1) or upload the FASTA sequence or upload the file. The query sequence is apolipoprotein A1 (APOA1) which is the major protein component of high density lipoprotein (HDL) in plasma. Leaving the settings in default, click on the BLAST icon.

Note: If there are more than one query sequence, tick the “Align two or more sequences” box.

The output of the BLAST should look like this.

Press enter or click to view image in full size
Figure 4: BLAST output

The output is a list of high scoring local alignments with the measure of the probability that they would occur by chance (E-value). The lower the E-value, the higher the significance of such sequence.

Next, we will select 20 random sequences and perform a multiple sequence alignment on them. After selection, click on the Multiple Alignment icon at the top right corner. A new tap will open up showing the alignment of the sequences. The default coloring scheme is Conservation; it indicates the conserved regions in the sequence.

Press enter or click to view image in full size
Multiple sequence alignment result of 20 sequences of APOA1 protein in different species
Figure 5: MSA result

You can zoom in and out on the sequences.

The result of our MSA shows that many regions are conserved in APOA1 proteins across our selected species. The first conserved region begins at position 19 and its of 9 bases (RHFWQQDEP).

BONUS

We can check the phylogenetic distance of our selected sequences by clicking the ‘distance tree of result’ icon.

Press enter or click to view image in full size
Phylogenetic tree of the selected 20 sequences
Figure 6: Phylogenetic tree

Primates, Carnivores, even-toed ungulates, whales and dolphins, and rabbit and hares clustered to different nodes. The organisms that have closest evolutionary relationship to our query sequence (Humans) are primates, followed by carnivores.

I hope you enjoyed and found this article useful 😊

I would love your hear your feedbacks. Cheers 🥂

--

--