Computational Biology and Bioinformatics: Databases, Sequence Alignment and Genomics
Computational biology is the use of computers to store, search and analyse biological data, especially DNA and protein sequences. Bioinformatics is the name most scientists use for the same work: it is the field that turns the letters coming out of a DNA sequencer into answers about genes, proteins, disease and evolution. This lesson covers the three public databases every biologist uses — GenBank, the Protein Data Bank and UniProt — how sequences are lined up and scored, how a BLAST search works and how to read its E-value, and how whole genomes are read, labelled and compared across species.
Contents
- 1. What is computational biology?
- 2. Why computers became essential in biology
- 3. Biological databases: the libraries of life
- 4. GenBank: the library of DNA sequences
- 5. The Protein Data Bank: the library of shapes
- 6. UniProt: the library of proteins
- 7. Sequence alignment: lining up the letters
- 8. Scoring matrices: how good is a match?
- 9. BLAST: searching a database for a match
- 10. Watch a BLAST search step by step
- 11. Reading a BLAST result: the E-value
- 12. Genomics: reading whole genomes
- 13. Comparative genomics: one gene, three species
- 14. Dynamic programming: Needleman-Wunsch and Smith-Waterman
- 15. What a bioinformatician does
- 16. Common mistakes
- 17. Key points
- 18. Frequently asked questions
- 19. 20 explained MCQs
- 20. Interactive quiz: 20 new questions
- Continue learning
- Sources
1. What is computational biology?
Computational biology (the use of computers to work with biological data) starts from one simple fact: modern biology produces far more data than any person can read. One human genome is about 3.2 billion letters long. One sequencing machine can read millions of DNA fragments in a single run. No scientist could compare those letters by eye, so the work is done by computers, and the scientist's job is to ask the right question, choose the right tool, and judge whether the answer makes sense.
Bioinformatics (the use of computers and statistics to store, search and analyse biological information) is the name most textbooks use for this work, and the two names are used for the same field. A bioinformatician (a scientist who uses computers to answer biological questions) does not replace the laboratory scientist: the two work together. The laboratory produces the data, and the computer turns the data into a gene, a protein shape, or a family tree.
This chapter is not in the 2027 exam syllabus: the ALP smart syllabus lists Chapter 7 as fully deleted for the 2027 exam. This post is university-level general knowledge for students who want to go deeper, and it is not exam preparation. Nothing in it is presented as a 2027 exam topic. What it gives you is the foundation that university biology, medicine and biotechnology build on: the same three databases appear in A-level Biology, in AP Biology and in IB Biology, and the same BLAST search is the first step of almost every modern genetics project.
Did you know? The Human Genome Project, which read the whole human genome for the first time, took 13 years and was finished in 2003. Today a single machine can read a whole human genome in about a day. The reading got fast; the hard part now is understanding what the letters mean, and that is the job of bioinformatics.
2. Why computers became essential in biology
Biology became a computer science in three steps, and each step made the data bigger:
- Reading DNA got cheap. The first way of reading DNA, the Sanger method (a way of reading DNA one fragment at a time, about 1,000 letters per read), was slow and costly. The new machines, called next-generation sequencers (machines that read millions of short DNA fragments at the same time), made reading DNA thousands of times cheaper, so laboratories now read whole genomes the way they once read single genes.
- The data piled up. A single genome is billions of letters. A single experiment that measures which genes are switched on can produce millions of numbers. The data is stored in public databases, and anyone in the world can download it and work on it.
- Comparison became the method. A new sequence means little on its own. It means something when it is compared with the sequences already known: a match to a gene that makes an enzyme, or to a gene that causes a disease, tells the scientist what the new sequence probably does. Comparison is a computer's job, because the databases hold millions of sequences.
That is why a biology student today needs to understand databases, alignments and searches, not just test tubes and microscopes. The computer is now one of the main instruments of biology, next to the microscope and the sequencer. How the body uses the instructions a genome carries to keep itself working is taught in Homeostasis: Receptors, Effectors & Feedback Explained.
3. Biological databases: the libraries of life
A biological database (a public store of biological data, kept on computers so that anyone can search it) is a library where the books are sequences, structures and notes about what they do. Three features make these libraries work:
- Everything is public. A scientist who publishes a new sequence must deposit it in a public database first, so that anyone can check the work and build on it. That rule is why the databases grow every day.
- Everything has a code. Every entry gets an accession number (a unique code given to one entry in a database, so that exact entry can always be found again). Papers quote the accession number instead of pasting the whole sequence, and any reader can type the code into the database and pull up exactly the same entry.
- Everything is linked. A DNA entry links to the protein it codes for, the protein entry links to its three-dimensional shape, and the shape links to the papers that describe it. Following the links is how a scientist moves from a gene to a protein to a disease.
The databases fall into three kinds, and the table below is the whole map in one place. The next three sections teach each one in turn.
| Database | What it holds | Use it when you want to |
|---|---|---|
| GenBank | DNA and RNA sequences | Find a gene sequence, or check whether a sequence is already known |
| Protein Data Bank (PDB) | Three-dimensional structures | See the shape of a protein, or where a drug fits it |
| UniProt | Protein sequences and what they do | Move from a protein sequence to its function |
Two other kinds of database turn up often. A primary database (a database that stores the raw data itself, exactly as it was submitted) holds the sequences and structures themselves, and GenBank, the PDB and UniProt are all primary databases. A secondary database (a database that stores information worked out from the primary data) holds results that were calculated from the raw data, such as lists of protein families or patterns that turn up in many proteins. The secondary databases are built on top of the primary ones, so a mistake in the primary data can spread into them.
4. GenBank: the library of DNA sequences
GenBank (the public database of DNA and RNA sequences, run by the National Center for Biotechnology Information, the NCBI, in the United States) is the largest library of DNA in the world. It holds hundreds of millions of sequences, from viruses with a few thousand letters to the human genome with 3.2 billion. Three sister databases share their data with GenBank every day — the European Nucleotide Archive and the DNA Data Bank of Japan — so a sequence deposited in one of them appears in all three.
Each GenBank entry has four parts, and it helps to know them before you open one:
- The header. The name of the entry, its accession number, and which organism it came from.
- The references. The papers that describe the sequence, so the reader can check where it came from.
- The features. Notes on the sequence itself: where the gene starts and stops, and what the gene does.
- The sequence. The letters themselves, A, C, G and T, in lines of 60 or 70 letters.
Here is a real example. The human beta-globin gene, the gene that makes one chain of haemoglobin, is stored in GenBank under the accession number NM_000518. That short code is enough for any scientist in the world to find the exact same entry. How the gene is copied into mRNA and read by the ribosome is taught in Components of Protein Synthesis: DNA, mRNA, tRNA, Ribosomes.
GenBank is the first place a scientist looks when a new sequence arrives from the sequencer. If the sequence is already in GenBank, the work is half done: the notes say what it is and what it does. If it is not there, the scientist has found something new, and the sequence is deposited in GenBank so that the next person can find it.
5. The Protein Data Bank: the library of shapes
The Protein Data Bank, known as the PDB (the public library where scientists deposit the three-dimensional structures of proteins and nucleic acids), holds the shapes of molecules. Each entry gives the position of every atom in the molecule, so a scientist can turn the structure around on a screen, see where the active site sits, and work out where a drug could fit. The PDB holds hundreds of thousands of structures, most of them solved by X-ray crystallography and NMR spectroscopy, the two methods taught in the companion post on structural biology.
Each PDB entry is named by a four-letter code. The human haemoglobin structure, for example, is stored as 1HHO. That code is the key to the whole entry: the shape, the method that solved it, the resolution it was solved at, and the paper that reported it.
Why does shape need its own library, when GenBank already holds the sequence? Because the sequence alone does not show the shape. Two proteins can have similar sequences and fold differently, and one protein can change shape when it binds its target. A drug designer needs the shape, not just the letters: a drug works by fitting into a pocket on its target, and only the PDB shows the pocket. That is also why the PDB and GenBank are linked: the sequence entry points to the structure entry, and the structure entry points back to the sequence.
6. UniProt: the library of proteins
UniProt (the main public database of protein sequences, with notes on what each protein does) is the bridge between a sequence and a function. For each protein it gives the amino acid sequence, the name of the gene, what the protein does, where it works in the cell, and which species it comes from. The human haemoglobin beta chain, for example, is stored in UniProt as P68871, under the name HBB_HUMAN.
UniProt has two parts, and the difference between them matters when you judge how much to trust an entry:
- Swiss-Prot (the part of UniProt where every entry has been read and checked by a human expert) is small and reliable. An expert reads the published papers, checks the notes, and only then writes the entry. There are far fewer Swiss-Prot entries than there are known proteins, because checking takes time.
- TrEMBL (the part of UniProt where entries are filled in automatically by computer programs) is huge and unchecked. A program reads a new genome, predicts the proteins from the DNA, and writes the entries without a human reading them. TrEMBL entries are useful, but they are predictions, and a prediction can be wrong.
Use UniProt when the question is "what does this protein do?" rather than "what is its sequence?" or "what is its shape?" GenBank answers the first two questions for DNA, the PDB answers the shape question, and UniProt answers the function question. The proteins UniProt describes work in every part of the cell, as taught in Cell Organelles: Overview & How Organelles Work Together, and the amino acids the body breaks down from old proteins are handled as taught in Excretion and Metabolism: Nitrogenous Waste, the Liver, and the Kidney.
7. Sequence alignment: lining up the letters
A sequence alignment (two or more sequences written in rows, lined up so that matching letters sit in the same column) is the basic tool of bioinformatics. Everything else in this lesson — BLAST, scoring, genomics — is built on top of it. The idea is simple: write the two sequences one under the other, slide them until the matching letters line up, and then read down each column to see where they agree and where they differ.
Read the alignment column by column. The query is the new sequence, and the subject is a sequence taken from the database. In 10 of the 12 columns the letters match. In column 8 the letters differ — the query has a T and the subject has a C — a mismatch. In column 6 the subject has a dash, which is a gap: one letter is missing in the subject, and the gap lines the matching letters up again after it.
Why are gaps needed at all? Because during evolution a letter can be added to one sequence or lost from the other, an event called an insertion or a deletion. After that point, the matching letters sit out of step, and without a gap the rest of the alignment would look like a string of mismatches, even though the two sequences are really the same. The gap marks where the insertion or deletion happened, and it lets the matching letters after it line up again.
Once the sequences are lined up, one number summarises the whole alignment: the percent identity (the number of positions where the letters match, divided by the total number of positions, times 100). Here, 10 matches out of 12 columns gives 10 divided by 12, times 100, which is about 83 percent. A high percent identity means the two sequences are closely related; a low one means they have drifted far apart, or that the match is chance.
Two kinds of alignment are used, and the choice depends on the question. A pairwise alignment (an alignment of two sequences) compares one sequence with one other, as in Figure 2 above. A multiple alignment (an alignment of three or more sequences, all lined up together) compares a whole family at once, and the columns where every sequence has the same letter show the parts of the family that evolution has kept unchanged. The usual tool for a multiple alignment is a program called Clustal.
8. Scoring matrices: how good is a match?
Counting matches is a start, but it treats every match and every mismatch as equal, and they are not. Swapping one small amino acid for another small one often leaves the protein working, while swapping a small amino acid for a large charged one usually breaks it. A scoring matrix (a table that gives a score for every pair of amino acids, so that an alignment can be scored) puts those facts into numbers: the alignment is scored by adding up the score of every column, and a good alignment is one with a high total score.
The most used matrix is called BLOSUM62 (a scoring matrix built from blocks of protein sequences that are 62 percent identical). It was built by looking at real protein families and counting which amino acid changes actually happen in nature. Three of its scores show the pattern:
- Alanine with alanine scores +4: a match, and a good score.
- Alanine with serine scores +1: a mismatch, but the two amino acids are small and similar, so the change is common and the score is still positive.
- Tryptophan with tryptophan scores +11: a match of a rare, large amino acid, so matching it by chance is unlikely, and the score is the highest of the three.
Two ideas behind the matrix are worth holding on to. First, a match between two rare amino acids scores more than a match between two common ones, because a rare match is stronger evidence that the two sequences are really related. Second, a mismatch between two similar amino acids scores better than a mismatch between two very different ones, because the similar change happens often in evolution and may not break the protein.
An older matrix, called PAM250 (a scoring matrix built from closely related proteins and then stretched to model distant relationships), works the other way round: it starts from proteins that are closely related and calculates what changes would pile up over a long time. BLOSUM62 is the usual choice for a BLAST search, and PAM250 is used when the sequences are very distantly related. Both are tables of numbers, and the computer, not the student, does the adding up — but the student must know that the score comes from the matrix, not from counting matches.
Gaps are scored too, and they are scored badly on purpose. A gap penalty (a negative score given for opening a gap in an alignment) is charged for every gap, because real insertions and deletions are rare. If the penalty were tiny, the program would sprinkle gaps through the alignment to force letters to match, and the result would look good but mean nothing. The penalty is what keeps the alignment honest.
9. BLAST: searching a database for a match
BLAST (the Basic Local Alignment Search Tool: a program that compares a sequence with every sequence in a database and lists the best matches) is the most used tool in bioinformatics. A scientist pastes a new sequence into BLAST, and BLAST answers one question: has anyone seen a sequence like this before, and if so, what does it do?
The five steps are listed below, and the animation in the next section walks through the same five steps.
- Step 1 — Paste the query. WHAT: the new sequence, called the query (the sequence a scientist wants to identify), is pasted into BLAST in FASTA format. HOW: the first line starts with a greater-than sign and carries the name of the sequence, and the lines below it carry the letters. WHY: FASTA is the standard format that almost every bioinformatics tool accepts, so the same file can be handed to many programs.
- Step 2 — Break into words. WHAT: BLAST chops the query into short words, usually 3 amino acids long for a protein query, or 11 bases long for a DNA query. HOW: the words overlap, so a query of 100 letters gives about 98 words of 3 letters. WHY: searching for short words is fast, and it is the trick that makes BLAST quick: the whole database is searched for the words first, before any full alignment is tried.
- Step 3 — Find seed hits. WHAT: BLAST looks for database sequences that contain the same words as the query, allowing words that score well in the scoring matrix, not only exact matches. HOW: every sequence that shares a word with the query is marked as a seed hit (a database sequence that shares a short word with the query, and so is worth looking at closely). WHY: a sequence that shares no word with the query cannot be closely related to it, so it is skipped without wasting time.
- Step 4 — Extend the match. WHAT: each seed hit is grown outwards in both directions, adding one letter at a time, and the score is kept as it grows. HOW: the extension stops when the score falls too far below the best score seen so far. WHY: the seed is only a short word, and the real match may be much longer; extending it finds the full region where the two sequences are similar.
- Step 5 — Score and rank. WHAT: every extended hit is scored with the scoring matrix, and the hits are listed from the best score to the worst, each with an E-value. HOW: the list shows the percent identity, the length of the match, and the E-value for each hit. WHY: the scientist needs the best matches first, and the E-value says which of them are worth believing, which is the subject of the next section but one.
BLAST comes in different flavours, and the name tells you what is being compared. blastn compares a DNA query with a DNA database. blastp compares a protein query with a protein database. blastx translates a DNA query into protein and searches a protein database. tblastn compares a protein query with a DNA database translated into protein. Picking the wrong flavour is the most common beginner mistake: a DNA query searched with blastp will give no answer at all, because blastp expects amino acids, not bases.
One more point matters: BLAST is a shortcut, not a perfect search. It finds the good matches fast by starting from short words, but a match with no shared word can be missed. When the best possible alignment is needed and time does not matter, the scientist uses the slower, exact methods of section 14 instead.
10. Watch a BLAST search step by step
Press the buttons to follow one new sequence through a BLAST search. Each step shows what happens and why it is needed. The animation loops: after Step 5, Step 1 starts the search again.
Press Step 1 to follow one sequence through a BLAST search.
11. Reading a BLAST result: the E-value
A BLAST result is a list of hits, and each hit carries three numbers. Learning to read them is the skill this section teaches:
- The score. The total from the scoring matrix for the alignment. A higher score means a better match, but the score alone does not say whether the match could be chance.
- The percent identity. The share of the aligned positions that match, as in the example in section 7. A high percent identity over a long alignment is strong evidence; a high percent identity over a very short alignment is weak, because a short match can happen by luck.
- The E-value. The E-value (the number of matches of a given score that would be expected by chance alone, in a database of that size) is the number that decides whether a hit is worth believing. An E-value of 1e-40 means that a match this good would be expected only once in 10 followed by 40 zeroes searches by chance — in practice, never. An E-value of 0.02 means a match this good would be expected about once in 50 searches by chance. An E-value of 0.9 means it would be expected almost once in every search, so the hit is probably chance.
Three rules follow from that definition, and they are the rules to carry into every BLAST result:
- Smaller is better. The smaller the E-value, the less likely the match is chance, and the more the hit can be trusted. An E-value below 1e-5 is usually taken as strong evidence; an E-value near 1 is not evidence at all.
- The database size matters. The E-value grows with the size of the database, because a bigger database gives chance more chances. The same hit that scores 1e-10 in a small database scores about 1e-9 in a database ten times larger, so the same E-value means different things in different databases.
- Length matters as much as percent identity. A match that is 90 percent identical over 20 letters is weaker evidence than a match that is 60 percent identical over 200 letters, because 120 matches spread over 200 letters cannot happen by luck, while 18 matches over 20 letters can. Always read the length of the match alongside the percent identity.
One warning belongs here too. A BLAST hit is a prediction, not a proof. A tiny E-value says the two sequences are related, but it does not prove they do the same job: a gene can be copied, changed, and put to a new use, and the sequence will still match its old relative. The hit tells the scientist what to test next in the laboratory, and the laboratory test is what proves the function.
12. Genomics: reading whole genomes
Genomics (the study of whole genomes: which genes an organism has, where they sit, and how genomes differ between species) is bioinformatics at the largest scale. A genome is the entire DNA of an organism, and genomics asks what is in it and what it does. Three steps turn a genome from a string of letters into knowledge:
- Sequencing. WHAT: the order of the letters is read. HOW: a next-generation sequencer reads millions of short fragments, each a few hundred letters long, and a computer program called an assembler joins the fragments together by their overlaps, like putting a jigsaw together from the picture on the pieces. WHY: no machine can read 3.2 billion letters in one go, so the genome is read in pieces and rebuilt by the computer.
- Annotation. WHAT: the genome is labelled. HOW: programs scan the letters for the signals that mark a gene — a start codon, usually ATG, and a stop codon, TAA, TAG or TGA — and label each gene, its exons and its introns. WHY: a raw genome is only a string of letters, and annotation turns it into a map that a scientist can read.
- Comparison. WHAT: the genome is compared with the genomes of other species. HOW: the genes are lined up by alignment, and the matches and differences are counted. WHY: comparison shows which genes are shared by all life and which genes make each species different, which is the subject of the next section.
One short stretch of a chromosome carries three genes, Gene A, Gene B and Gene C, each in its own colour. Inside each gene, the coloured blocks are the exons, the parts that code for protein, and the pale gaps between them are the introns, the stretches that are cut out before the protein is made. The start codon marks the beginning of each gene.
Two numbers give the scale of genomics. The human genome is about 3.2 billion base pairs long and carries around 20,000 protein-coding genes, so most of the genome is not genes at all: it is the DNA between genes, and the introns inside them. The bacterium Escherichia coli, by contrast, has a genome of about 4.6 million base pairs and about 4,300 genes, and almost all of its DNA is genes, with very little space between them. The same three steps — sequencing, annotation and comparison — work for both, and for every genome in between.
Genomes have their own small genomes inside them. The mitochondria, the parts of the cell that release energy, carry their own small ring of DNA, and the proteins it codes for belong to the electron transport chain, as taught in Oxidative Phosphorylation: Electron Transport Chain and ATP Synthesis. How the mitochondria use oxygen to release that energy is taught in Mitochondria: Structure, ATP Production & Practice.
13. Comparative genomics: one gene, three species
Comparative genomics (comparing the whole genomes of different species to find what they share and where they differ) works on one idea: the parts of a genome that evolution has kept unchanged are usually the important ones. A gene that is the same in humans, mice, fish and flies has been kept the same for hundreds of millions of years, because changing it breaks something vital. A gene that differs between species often explains what makes each species different.
Here is a worked example, using the same gene in three species. The numbers are from a short 20-letter teaching stretch, so that the counting can be checked by hand:
Work through the three rows. The human row is the reference, and every letter in the other rows is compared with the letter above it. In the chimpanzee row, 19 of the 20 letters are the same as the human row, and only the last letter differs, so the two are 19 divided by 20, times 100, which is 95 percent identical. In the mouse row, 4 letters differ — at positions 5, 12, 17 and 20 — so 16 of the 20 letters match, which is 80 percent identical.
Two conclusions follow. First, humans and chimpanzees are more closely related than humans and mice are, because their sequences have had less time to drift apart. That matches the family tree: humans and chimpanzees shared an ancestor about 6 million years ago, while humans and mice shared one about 90 million years ago. Second, the whole genomes tell the same story on a bigger scale: the human and chimpanzee genomes are about 99 percent identical in the parts that line up, while the human and mouse genomes are less alike, because far more time has passed.
The same idea is used with real genes. The beta-globin gene, whose GenBank entry was given in section 4, carries oxygen in the blood, as taught in Human Heart: Structure, Valves & Blood Flow, and the muscle protein that stores oxygen is taught in Types of Muscles: Smooth, Cardiac and Skeletal Muscle Structure and Function. When the beta-globin gene is compared across species, the parts that make the protein are nearly the same everywhere, while the introns differ far more, because a change in the coding region can break the protein and is removed by natural selection, while a change in an intron usually does no harm. How such differences are passed from parents to children is taught in Inheritance and Genetic Variation: Genes, Crosses and Variation.
14. Dynamic programming: Needleman-Wunsch and Smith-Waterman
BLAST is fast because it takes a shortcut. The exact methods do not take shortcuts: they check every possible alignment and keep the best one. That is what dynamic programming (a method that solves a big problem by solving its smaller parts first and building on their answers) does for sequence alignment. At degree level you will meet the two methods in this section often, so it is worth learning what each one does, even though a school student will never run either by hand on a long sequence.
Both methods fill a table. Imagine the two sequences written along the top and down the side of a grid, so that every cell of the grid stands for one pair of letters. Each cell holds the best score for aligning the sequences up to that point, worked out from the cells before it: the cell above, the cell to the left, and the cell diagonally up and left. Because every cell builds on the best scores already worked out, the cell at the far corner holds the best possible score for the whole alignment, and tracing back through the table gives the best alignment itself. That is why dynamic programming always finds the best alignment for the scoring scheme it is given: it never guesses, and it never skips a possibility.
The two methods differ in what they align:
| Method | What it aligns | Use it when |
|---|---|---|
| Needleman-Wunsch (1970) | The whole of both sequences, end to end | The two sequences are similar from end to end |
| Smith-Waterman (1981) | Only the best matching region | The sequences share one short region inside long chains |
Needleman-Wunsch (the global alignment method: it lines up two sequences from end to end) is called a global alignment, because it covers the whole of both sequences. It fits two proteins that are the same length and similar from end to end. Smith-Waterman (the local alignment method: it finds the best matching region and ignores the rest) is called a local alignment, because it finds the best matching region and ignores the rest. It fits a short fragment inside a long sequence, or two proteins that share only one region in the middle. BLAST is, in effect, a fast version of Smith-Waterman: it starts from short words and extends them, instead of filling the whole table, which is why it is fast and why it can miss a match that the exact method would find.
The price of being exact is time. Filling the table for two sequences of 1,000 letters needs about a million cells, and for two genomes of billions of letters it is impossible. That trade-off — exact but slow, against fast but approximate — is the central choice of bioinformatics, and every tool in this lesson sits somewhere on that scale.
15. What a bioinformatician does
A bioinformatician's working day is a loop of four jobs, and each one uses the tools of this lesson:
- Get the data. Download sequences from GenBank, structures from the PDB, or protein notes from UniProt, or take the raw letters from a sequencer and check their quality. Bad data in means bad answers out, so checking the data comes first.
- Run the tools. Search with BLAST, align with Clustal, browse a genome in Ensembl (a genome browser that draws a chromosome as a map, with the genes on it), or write a short program in Python, often with a library called Bioconductor or Biopython, to do a job no ready-made tool does. A platform called Galaxy lets a scientist chain tools together without writing code at all.
- Judge the answer. Read the E-value, check the length of the match, and ask whether the answer makes biological sense. A computer will happily report a match that is real in numbers but meaningless in biology, and catching that is the scientist's job.
- Share the work. Deposit the new sequences in GenBank, write the paper with the accession numbers in it, and share the programs so that another scientist can repeat the whole analysis.
Bioinformaticians work wherever the data is: finding the gene behind a disease, tracking how a virus changes during an outbreak, designing a drug to fit its target, or breeding a crop that survives drought. The drug work is a good example of the whole field in one job: the target is often an enzyme, as taught in Metabolism: Enzymes, Coenzymes and the Control of Chemical Reactions, or a receptor on the cell surface, as taught in Cell Signalling: Receptors, Second Messengers and Cell Responses, and the drug must cross the cell membrane to reach it, as taught in Membrane Transport: How Substances Cross Cell Membranes. The computer finds the shape of the target in the PDB, the chemist designs a molecule to fit it, and the laboratory tests whether it works.
16. Common mistakes
- "GenBank and the PDB hold the same thing." No. GenBank holds DNA and RNA sequences, and the PDB holds three-dimensional shapes. A sequence tells you the letters; only the PDB tells you the shape.
- "BLAST aligns two sequences." No, not exactly. BLAST searches a whole database for sequences similar to your query. If you want to align two sequences you already have, you align them directly, with Needleman-Wunsch or Smith-Waterman.
- "A high percent identity always means a real relationship." No. A high percent identity over a very short stretch can happen by chance. Always read the length of the match and the E-value alongside it.
- "A large E-value means a strong match." No, it is the other way round. A small E-value means the match is unlikely to be chance. An E-value near 1 means the match could easily be chance.
- "A gap in an alignment is a mistake." No. A gap marks a real event in evolution, an insertion or a deletion, and it is what lets the matching letters after it line up again.
- "All mismatches score the same." No. A scoring matrix gives a good score to a change between two similar amino acids and a poor score to a change between two very different ones.
- "UniProt entries are all checked by experts." No. Only the Swiss-Prot part is checked by hand. The TrEMBL part is filled in automatically, and its entries are predictions.
- "A BLAST hit proves two proteins do the same job." No. A hit says the sequences are related. The function must still be tested in the laboratory, because a copied gene can be put to a new use.
17. Key points
- Computational biology, also called bioinformatics, is the use of computers to store, search and analyse biological data, especially DNA and protein sequences. This chapter is not in the 2027 exam syllabus, and this post is university-level general knowledge, not exam preparation.
- GenBank holds DNA and RNA sequences, the Protein Data Bank holds three-dimensional structures, and UniProt holds protein sequences with notes on what each protein does. Every entry has an accession number, a unique code that finds it again.
- In FASTA format, the first line starts with a greater-than sign and carries the name of the sequence, and the lines below it carry the letters.
- A sequence alignment lines sequences up so that matching letters sit in the same column. Percent identity is matches divided by total positions, times 100.
- Gaps mark insertions and deletions, and they let the matching letters after them line up again. A gap penalty keeps the alignment honest by charging for every gap.
- A scoring matrix, usually BLOSUM62, gives a score for every pair of amino acids. Alanine with alanine scores +4, alanine with serine scores +1, and tryptophan with tryptophan scores +11.
- BLAST searches a database in five steps: paste the query, break it into short words, find the seed hits, extend each hit, and score and rank the hits. blastn compares DNA with DNA, and blastp compares protein with protein.
- The E-value is the number of matches of a given score expected by chance alone. A smaller E-value means a stronger match, and an E-value near 1 means the hit could easily be chance.
- Genomics reads whole genomes in three steps: sequencing, annotation and comparison. The human genome is about 3.2 billion base pairs with around 20,000 protein-coding genes, and it was finished in 2003 after 13 years of work.
- Annotation labels a genome: it marks where each gene starts and stops, and which parts are exons and which are introns.
- Comparative genomics compares genomes across species. In the worked example, humans and chimpanzees are 95 percent identical over the 20-letter stretch, and humans and mice are 80 percent identical.
- Needleman-Wunsch is the global alignment method, lining up two sequences end to end, and Smith-Waterman is the local alignment method, finding the best matching region. Both are dynamic programming: they fill a table and always find the best alignment for the scoring scheme.
18. Frequently asked questions
Q1. Do I need to learn programming to use bioinformatics?
No, not to start. BLAST, GenBank, the PDB, UniProt and Ensembl all run in a web browser, and a student can use all of them without writing a line of code. Programming, usually in Python, becomes useful later, when a job needs doing that no ready-made tool does.
Q2. Is BLAST free to use?
Yes. BLAST is run by the NCBI in the United States, and anyone can paste a sequence into the BLAST website and search the public databases without paying and without an account.
Q3. What is the difference between genomics and genetics?
Genetics studies single genes and how they are passed from parents to children. Genomics studies whole genomes at once: all the genes, where they sit, and how genomes differ between species. Genomics uses the tools of genetics, but on a much larger scale.
Q4. Why is the human genome 3.2 billion letters long but has only about 20,000 genes?
Because most of the genome is not genes. The genes themselves are split into exons and introns, and between the genes there are long stretches of DNA that do not code for proteins. The 20,000 genes are the working parts; the rest is the space around them, and much of it controls when the genes are switched on.
Q5. Can BLAST find the gene behind a disease?
It can point to it. If a patient carries a changed sequence, BLAST can show which gene the sequence belongs to and what that gene does in other people and in other species. The laboratory must then test whether the change really causes the disease.
Q6. What is the difference between a primary database and a secondary database?
A primary database stores the raw data itself, exactly as it was submitted: GenBank stores sequences, and the PDB stores structures. A secondary database stores information worked out from that raw data, such as lists of protein families. The secondary databases are built on the primary ones.
Q7. Why do scientists sequence the same species more than once?
Because no two people have exactly the same genome. Reading many human genomes shows which letters vary between people and which are the same in everyone, and that variation is what lets doctors link a change in the DNA to a disease or to a drug that works better for one patient than another.
Q8. What is an open reading frame?
An open reading frame is a stretch of DNA that starts with a start codon, usually ATG, and runs without a stop codon for a long stretch. Annotation programs look for open reading frames because a long stretch without a stop codon is a strong sign that the stretch is a real gene.
Q9. How accurate is a genome sequence?
Very accurate, but not perfect. A modern sequencer reads each letter many times, and the letters that are read many times are almost always right. A few mistakes remain, which is why important findings are checked by reading the same stretch again with a different method.
Q10. If this chapter is deleted for the 2027 exam, why learn it at all?
Because the ideas in it are the foundation of everything that follows. Databases, alignments and BLAST are how modern genetics is actually done, in medicine, in biotechnology and in research. University biology starts from this chapter, even though the 2027 school exam does not test it.
19. 20 Explained MCQs — Computational Biology
Test yourself on the lesson above. Each question has one correct answer, and the explanation follows the answer.
1. A scientist stores millions of DNA sequences on a computer and searches them for matches. What is this field of work called?
A. Bioinformatics
B. The study of how drugs are made in a laboratory
C. The study of fossils to work out how species evolved
D. The use of microscopes to look at living cells
Answer: A — Bioinformatics is the use of computers and statistics to handle biological information. A single genome is billions of letters long, so no person could read it by eye; computers store the letters, search them and compare them.
2. What does GenBank store?
A. Lists of medicines and the doses at which they are given
B. Three-dimensional shapes of proteins solved by X-ray crystallography
C. DNA and RNA sequences, with notes saying which organism each sequence came from and what it does
D. Photographs of cells taken through a microscope
Answer: C — GenBank is the public library of nucleotide sequences. A researcher who reads a new piece of DNA sends the sequence to GenBank, and anyone in the world can then search for it and download it.
3. What does the Protein Data Bank hold?
A. The results of clinical trials of new medicines
B. The amino acid sequences of all known proteins, with no shape information
C. The DNA sequences of every known species
D. The three-dimensional structures of proteins and nucleic acids
Answer: D — The Protein Data Bank, known as the PDB, holds three-dimensional structures. Each entry gives the position of every atom in the molecule, so a scientist can see the shape of a protein and where its active site sits.
4. What does UniProt hold?
A. Protein sequences, with notes on what each protein does and where it works in the cell
B. DNA sequences of whole genomes, with no protein information
C. Maps showing where genes sit on human chromosomes only
D. Three-dimensional structures of DNA double helices only
Answer: A — UniProt is the main protein database. For each protein it gives the amino acid sequence, the name of the gene, what the protein does, and which species it comes from, so a scientist can move from a sequence to a function.
5. What is the FASTA format?
A. A graph showing how similar two genomes are
B. A table of the scores for every pair of amino acids
C. A plain text way of writing a sequence, with a header line starting with a greater-than sign, followed by the sequence letters
D. A three-dimensional picture of a protein molecule
Answer: C — In FASTA format the first line starts with a greater-than sign and carries the name of the sequence, and the lines below it carry the letters of the sequence itself. Almost every bioinformatics tool accepts FASTA, so it is the standard way of handing a sequence to a program.
6. What is a sequence alignment?
A. Two or more sequences written in rows, lined up so that matching letters sit in the same column
B. A photograph of DNA bands on a gel
C. A table showing how many times each base appears in a genome
D. A list of all the genes in a genome, in the order they sit on the chromosome
Answer: A — An alignment lines sequences up letter by letter so that the same positions can be compared. Where the letters match, the sequences are the same at that spot; where they differ, a mutation has changed one of them.
7. How is percent identity worked out from an alignment?
A. The number of mismatches, times the number of matches
B. The number of positions where the letters match, divided by the total number of positions, times 100
C. The length of the shorter sequence, divided by the length of the longer sequence
D. The number of gaps in the alignment, divided by the length of the longer sequence
Answer: B — Percent identity is the share of aligned positions that match. If 17 of 20 positions match, the percent identity is 17 divided by 20, times 100, which is 85 percent.
8. Why would a scientist search GenBank before starting work on a new gene?
A. To order a sample of the gene by post
B. To find the three-dimensional shape of the protein the gene makes
C. To check whether the sequence is already known, so the work does not repeat what someone else has done
D. To measure how fast the gene is copied in the cell
Answer: C — GenBank already holds millions of sequences. A search first tells the scientist whether the gene has been found before, what it does, and which organism it came from, and that can save months of laboratory work.
9. Why would a scientist use the Protein Data Bank rather than GenBank to study how a drug fits its target?
A. Because GenBank only holds sequences of bacteria
B. Because the shape of the target matters, and only the Protein Data Bank holds three-dimensional shapes
C. Because the Protein Data Bank is faster to search than GenBank
D. Because GenBank does not hold any human sequences
Answer: B — A drug fits its target the way a key fits a lock, so the scientist needs the shape, not just the letters. GenBank holds the letters of the gene; the Protein Data Bank holds the shape of the protein those letters make.
10. Why are gaps put into a sequence alignment?
A. To show which letters are the start of a gene
B. To mark the places where the sequences were read wrongly
C. To make the two sequences the same length for printing
D. To line up matching letters after an insertion or a deletion has added or removed letters in one sequence
Answer: D — During evolution a letter can be added to one sequence or lost from the other, so the matching letters after that point sit out of step. A gap shifts one sequence along so the matching letters line up again, and the gap marks where the insertion or deletion happened.
11. Why does a scoring matrix give different scores to different mismatches?
A. Because mismatches near the start of a sequence matter more than mismatches at the end
B. Because the matrix is recalculated for every pair of sequences
C. Because some amino acid changes are chemically similar and common in evolution, while others are very different and rare
D. Because the computer cannot tell one amino acid from another
Answer: C — Not all changes are equal. Swapping one small amino acid for another small one often leaves the protein working, so the matrix gives that change a good score. Swapping a small amino acid for a large charged one usually breaks the protein, so the matrix gives that change a poor score.
12. Why is the E-value more useful than the raw score alone when reading a BLAST result?
A. Because the raw score is always wrong
B. Because the E-value also takes the size of the database into account, so it says how likely the match is by chance
C. Because the E-value is the same for every search
D. Because the raw score does not use a scoring matrix
Answer: B — A high raw score can happen by chance if the database is huge, because millions of sequences give millions of chances for a lucky match. The E-value is the number of matches of that score that would be expected by chance alone in a database of that size, so a small E-value means the match is unlikely to be luck.
13. Why do scientists often compare protein sequences rather than DNA sequences when looking for distant relatives?
A. Because protein sequences change more slowly, so a relationship that DNA has already lost is still visible in the protein
B. Because DNA sequences cannot be aligned at all
C. Because DNA changes more slowly than protein
D. Because proteins are shorter than DNA, so the computer works faster
Answer: A — DNA changes fast, because many DNA changes do not change the protein at all. The protein sequence changes more slowly, because a change that breaks the protein is removed by natural selection. Two species that split long ago may share almost no DNA similarity, yet their proteins still match.
14. Why must a genome be annotated after it has been sequenced?
A. Because a genome cannot be stored until it has been annotated
B. Because the raw sequence is only a string of letters, and annotation marks where the genes, start signals and stop signals are
C. Because annotation doubles the length of the genome
D. Because the sequencer makes mistakes that annotation corrects
Answer: B — Sequencing gives a long string of the letters A, C, G and T, but it does not say where one gene ends and the next begins. Annotation scans the string for start codons, stop codons and other signals, and labels each gene, so the genome becomes a readable map instead of a wall of letters.
15. Two short DNA stretches are aligned over 20 positions, and 17 positions match. What is the percent identity?
A. 20 percent
B. 17 percent
C. 34 percent
D. 85 percent
Answer: D — Percent identity is matches divided by total positions, times 100. Here that is 17 divided by 20, times 100, which is 85 percent.
16. A BLAST search gives one hit with an E-value of 1e-40 and another with an E-value of 0.02. Which hit is the stronger match?
A. Both hits are equally strong, because the E-value does not measure strength
B. Neither hit is a match, because both E-values are below 1
C. The hit with E-value 0.02, because a larger E-value means a stronger match
D. The hit with E-value 1e-40, because a smaller E-value means the match is less likely to be chance
Answer: D — The E-value is the number of matches of that score expected by chance. An E-value of 1e-40 means such a match would almost never happen by chance, so it is a real relationship. An E-value of 0.02 means a match that good would be expected about once in 50 searches by chance alone.
17. One alignment is 90 percent identical over 20 letters, and another is 60 percent identical over 200 letters. Which is the stronger evidence of a real relationship?
A. Both are equally strong, because percent identity is the only thing that matters
B. The 200-letter alignment, because a long alignment with 60 percent identity is far less likely to happen by chance
C. Neither is evidence, because only a 100 percent match counts
D. The 20-letter alignment, because 90 percent is always stronger than 60 percent
Answer: B — Percent identity alone does not tell the whole story. Twenty letters can match by luck, but 120 matches spread over 200 letters cannot. The longer alignment carries far more evidence, and its E-value would be far smaller, even though its percent identity is lower.
18. Two proteins are the same length and similar from end to end. Two other proteins share only one short region in the middle of long chains. Which alignment method fits each pair?
A. Both pairs need a local alignment, because global alignment is never used
B. Both pairs need a global alignment, because all alignments must cover the whole sequence
C. The first pair needs a local alignment and the second pair needs a global alignment
D. The first pair needs a global alignment and the second pair needs a local alignment
Answer: D — A global alignment lines up two sequences from end to end, which fits the first pair. A local alignment finds the best matching region and ignores the rest, which fits the second pair, where most of each chain has nothing in common.
19. A BLAST hit has an E-value of 0.9 and 45 percent identity over a short stretch. What should the scientist conclude?
A. That the query sequence is a new gene never seen before
B. That the match could easily be chance, and it is not good evidence of a real relationship
C. That the two sequences definitely do the same job
D. That the database search has failed and must be run again
Answer: B — An E-value of 0.9 means a match this good would be expected almost once in every search by chance alone. The hit is not significant, so the scientist should not claim a relationship from it, whatever the percent identity says.
20. The same gene is 96 percent identical between humans and chimpanzees, and 78 percent identical between humans and mice. What does this suggest?
A. That the gene is not present in chimpanzees at all
B. That mice have a larger genome than humans
C. That the gene does different jobs in mice and in humans
D. That humans and chimpanzees share a more recent common ancestor than humans and mice do
Answer: D — Sequences drift apart as time passes, so the more similar two sequences are, the less time has passed since they shared an ancestor. The human and chimpanzee versions are nearly the same, while the mouse version has drifted further, which matches the family tree of the three species.
20. Interactive Quiz — 20 new questions
These 20 quiz questions are all new — none of them repeats a question from the 20 MCQs above. Select an answer for each question. You will not see whether an answer is correct until you submit all 20 questions. Use Reset to try again.
Continue learning
- Components of Protein Synthesis: DNA, mRNA, tRNA, Ribosomes — the genes in this lesson are copied into mRNA and read by the ribosome, so this is where the sequence in a GenBank entry comes from.
- Metabolism: Enzymes, Coenzymes and the Control of Chemical Reactions — the drug targets in this lesson are often enzymes, and this is where enzymes, their substrates and their control are taught.
- Human Heart: Structure, Valves & Blood Flow — the beta-globin gene in this lesson makes the haemoglobin that carries oxygen, and the heart is what moves it through the body.
Sources
- Punjab Textbook Board, Biology Class 11, Chapter 7, "Structural and Computational Biology".
- PECTAA, ALP Smart Syllabus 2027, notifications for 2026-27: https://pectaa.edu.pk/
- OpenStax, Biology 2e, Chapter 17, "Biotechnology and Genomics" (whole-genome sequencing, genomics and proteomics): https://openstax.org/books/biology-2e/pages/17-introduction
- OpenStax, Biology 2e, Chapter 17, "Genomics and Proteomics": https://openstax.org/books/biology-2e/pages/17-5-genomics-and-proteomics
- National Center for Biotechnology Information, BLAST: https://blast.ncbi.nlm.nih.gov/Blast.cgi
- National Center for Biotechnology Information, GenBank: https://www.ncbi.nlm.nih.gov/genbank/
- Alberts et al., Molecular Biology of the Cell, Chapter 8, "Analyzing Protein Structure and Function": https://www.ncbi.nlm.nih.gov/books/NBK26820/
- Urry et al., Campbell Biology, Chapter 5 (biological macromolecules and protein structure) — cited by name.
- AQA A-level Biology (7402), Topic 3.1, Biological molecules — cited by name.
- Photograph: "Illumina HiSeq 2500", Wikimedia Commons, CC0, Konrad Forstner: https://commons.wikimedia.org/wiki/File:Illumina_HiSeq_2500.jpg
Courses
Diversity of Plants (BOT-303)
Pteridophytes & Gymnosperms (BOT-509)
Phycology & Bryology
Plant Tissue Culture
Plant Biochemistry II
Plant Physiology I
Plant Physiology II
Mycology & Plant Pathology
Microbiology & Virology
Cell Biology, Genetics & Evolution
Mycology (BOT-405)
Genetics I
Biochemistry
Plant Taxonomy & Systematics
Diversity of Vascular Plants
Advanced Plant Ecology
Plant Ecology II
Biodiversity & Conservation
Functional Biology
Botany Laboratory Techniques
Laboratory Techniques
Topics
Microbiology
Cell Biology
Practice
Study Tools
0 Comments
Have a biology question or spotted an error?
Send feedback to PreachBio →