Bioinformatics
Bioinformatics is a field that uses computers to collect, store, analyze, and share biological data, such as DNA and protein sequences.[1] It draws on Biology, computer science, applied mathematics, and Statistics.[2]
Biology now produces far more data than anyone could read by hand. Sequencing machines output DNA as reads, which are short pieces of sequence. Early next-generation machines could read thousands to millions of DNA molecules in one run, and rebuilding a large Genome (an organism's full set of DNA) can now use billions of short reads.[3][4]
Bioinformatics supplies the software and databases that compare these sequences, rebuild genomes from fragments, measure gene activity, and predict protein structures.[2][3]
Scope and definitions
The word has a narrow sense and a broad sense. The US National Human Genome Research Institute defines it, as it relates to genetics and genomics, as using computer technology to collect, store, analyze, and share biological data, such as DNA and amino acid sequences and notes about those sequences.[1] A 2000 working definition from the US National Institutes of Health is broader, covering computational tools for biological, medical, behavioral, or health data.[5]
In the United States the term has mostly meant information about molecular biology, especially gene and protein sequences.[5]
Some authors group neighboring fields such as Neuroinformatics, biodiversity informatics, and medical informatics under a wider "biological informatics".[5]
A 2001 review by Luscombe, Greenbaum, and Gerstein describes two approaches that run through the field:[2]
- Comparing and grouping data by biologically meaningful similarities.
- Using one type of data to explain another, such as using sequences to predict structures.
The same review sorts the main work by the kind of data used.[2] In the table, coding regions are the parts of DNA that spell out proteins, and motifs are short sequence patterns shared by related sequences.
| Data type | Typical tasks | Related pages |
|---|---|---|
| DNA sequences | Find genes, separate coding from non-coding regions, mark the parts of genes such as exons and introns | Computational genomics |
| Protein sequences | Compare sequences, build multiple alignments, find conserved motifs | Sequence alignment, Sequence motif |
| Structures | Predict protein shape, align 3D structures, study interactions | Structural bioinformatics |
| Whole genomes and expression | Compare gene content across genomes, measure gene activity at large scale | Comparative genomics |
| Text and networks | Search the literature, store pathways and protein interactions | Biomedical text mining, Biological database |
Biological data as strings
Bioinformatics treats biological molecules as text. DNA is written as a string of four base letters, A, C, G, and T.[2] Proteins are chains built from 20 different amino acids, so a protein sequence is a string over a 20-letter alphabet.[6]
The one-letter amino acid code still used today came from Margaret Dayhoff.[3]
Emile Zuckerkandl and Linus Pauling proposed treating protein sequences as carriers of information, much as words are strings of letters whose order carries meaning.[3]
Writing molecules as strings lets string algorithms from computer science work on biological questions.
From sequencer to results
Much everyday bioinformatics work follows a chain of steps from a DNA sample to a biological answer. The main steps read and write a few standard file types.
Reads and quality scores
DNA sequencing machines do not read a whole genome at once. They output many short pieces called reads.
The scale has grown sharply:
- Sanger sequencers based on capillary electrophoresis produced at most 96 reads of 800 bases per run. Getting enough reads to cover each base of the 3.0 billion base human genome once on average needed about 40,000 runs.[3]
- Next-generation sequencing began with 454 Pyrosequencing, which read thousands to millions of DNA molecules in one run.[3]
Every letter the machine reports (a base call) may be wrong. The Phred software introduced a quality score for each base, defined from the estimated probability that the call is wrong:[7]
Here is the quality score and is the estimated error probability. A score of 20 means a 1 in 100 chance of error, and 30 means 1 in 1,000. The standard FASTQ encoding stores scores from 0 to 93.[7]
Common file formats
A few plain text formats carry most sequence data between programs.
| Format | What it holds | Origin |
|---|---|---|
| FASTA | Sequences, each after a title line starting with ">" | Bill Pearson, as input for his FASTA tools[7] |
| FASTQ | Reads with one quality score per base | Jim Mullikin at the Wellcome Trust Sanger Institute, around 2000[7] |
| SAM and BAM | Reads aligned to reference sequences, for short and long reads up to 128 million bases | Published with SAMtools in 2009[8] |
| VCF | DNA differences such as single-letter changes, insertions, deletions, and structural variants, with notes | Published with VCFtools in 2011[9] |
A FASTQ record has four lines:[7]
- The read name, starting with "@".
- The bases.
- A separator, starting with "+".
- The quality scores.
Each score is one printable character, and its character code minus 33 gives the score. The quality line must be as long as the sequence.[7]
Mapping reads to a reference
When a reference genome exists, each read is placed where it best matches that genome. BWA is a program that aligns short reads to a reference sequence as large as the human genome.[10] It works quickly because it searches an index, a data structure that speeds up searches, built on the Burrows-Wheeler transform.[10]
The aligned reads are stored in SAM or its compressed binary form, BAM.[8]
Comparing the aligned reads with the reference shows where the sample differs. These differences, called variants, are written to VCF files.[9] See variant calling for the methods.
Comparing sequences
Comparing a new sequence with known ones is often the first step in learning what it does. A similarity search lets scientists infer the function of a sequence from similar sequences.[11]
A strong match can also be evidence of homology, meaning shared ancestry.[12]
An alignment lines up two sequences so that each letter faces either a letter or a gap in the other sequence.[13] Gaps stand for insertions or deletions, and mismatched letters stand for mutations.[13]
Scoring an alignment
The simplest scoring rule rewards matches and penalizes mismatches and gaps:[13]
Here is the match reward, the mismatch penalty, and the gap penalty. Two sequences can be aligned in a huge number of ways, more than for sequences of length , so checking every alignment is not practical.[13]
Dynamic programming
Dynamic programming finds the best alignment without checking them all. It works because the score of an alignment is the sum of the scores of its parts.[13]
Let be the best score for aligning the first letters of sequence with the first letters of sequence . Then:[13]
The three lines cover the three ways an alignment can end:[13]
- Letter is paired with letter , scored by , which is if they match and if not.
- Letter faces a gap, costing .
- Letter faces a gap, costing .
The table starts with , , and .[13]
Filling the table row by row gives the best score in the last cell. Following the choices backward from that cell gives the alignment itself.[13]
For sequences of lengths and this takes time and memory proportional to .[13]
Global and local alignment
A global alignment covers both sequences from end to end. The Needleman-Wunsch algorithm of 1970 was the first dynamic programming algorithm for aligning pairs of protein sequences.[3]
A local alignment finds the pair of segments, one from each sequence, that are most alike.[13] This matters because genes are shuffled between genomes, so related regions may sit inside otherwise unrelated sequences.[13] Temple Smith and Michael Waterman published the local method, now called the Smith-Waterman algorithm, in 1981.[14]
The Smith-Waterman algorithm changes Needleman-Wunsch in three ways:[13]
- The first row and column are all zero.
- Zero is added as a fourth choice in the maximum, so a poor region never drags the score below zero.
- The best local alignment ends at the highest cell anywhere in the table, not only at the corner.
Aligning many sequences at once, called multiple sequence alignment, is much harder, because extending Needleman-Wunsch to sequences of length takes time that grows like .[3]
The first practical method, by Da-Fei Feng and Russell Doolittle in 1987, aligns the most similar sequences first. It then adds the rest in the order set by a guide tree, a rough tree of how similar the sequences are.[3] The CLUSTAL program followed in 1988.[3]
Substitution matrices and gap costs
Some amino acid swaps happen often in evolution and others rarely, so real tools give each pair of letters its own score. These scores are kept in a substitution matrix.[12]
- PAM matrices: Dayhoff and coworkers built the PAM model from replacements seen in closely related proteins. One PAM is an average change in 1% of amino acid positions.[12]
- BLOSUM matrices: Steven and Jorja Henikoff built these directly from alignments of distantly related protein regions. Tests suggest they are generally better than PAM matrices at detecting biological relationships.[12]
Gaps usually come in runs, so charging the same for every gap position is unrealistic.[13] "Affine" gap costs charge a large penalty to open a gap and a smaller penalty for each extra position, so a gap of length costs .[13] Affine costs have generally proved among the most effective.[12]
For genes that code for proteins, comparing the translated protein sequences is almost always better than comparing the DNA directly.[12] After a little evolutionary change, simple DNA scores carry less information about homology than the protein sequences do.[12]
Fast database search with BLAST
Dynamic programming is too slow to compare one sequence against millions.
The Basic Local Alignment Search Tool (BLAST) was published in 1990 by Stephen Altschul, Warren Gish, Webb Miller, Eugene Myers, and David Lipman.[15] The NCBI describes it as probably the most popular method for sequence similarity search.[11]
Seeds and extensions
BLAST uses heuristics, meaning shortcuts that reach a good answer faster without promising the best one.[11] A search runs in phases:[11]
- Setup: BLAST reads the query (the input sequence being searched for), may mask low-complexity regions (stretches with a heavily biased mix of letters), and makes a list of short, fixed-length "words" from it.
- Word matching: it scans the database for matches to these words.
- Ungapped extension: each word match is extended in both directions without gaps.
- Gapped extension: extensions that score well enough seed a gapped extension that computes only the score and extent.
- Traceback: the best hits are realigned with insertions and deletions to produce the final alignments.
Statistical significance
A high score means little unless it is unlikely to arise by chance. For local alignments without gaps, when the average score of a random letter pair is negative and the sequences are long, the expected number of chance matches scoring at least is:[12]
Here and are the lengths of the two sequences, and and are constants set by the search space and the scoring system. is called the E-value; doubling either length doubles it, and it falls exponentially as the score rises.[12] For database searches, BLAST treats the whole database as one long sequence of total length .[12]
This theory is only firmly founded for alignments without gaps. Computer experiments strongly suggest it also holds for gapped alignments, but the constants must then be estimated from simulations.[12]
Genome assembly
When no reference exists, the genome must be rebuilt from its reads. This is called de novo (from scratch) assembly, and it works by finding reads that overlap.
Two main strategies are used:[4]
- Overlap-layout-consensus (OLC): align reads pairwise to find overlaps, lay out a simplified overlap graph, then merge the reads into one consensus sequence while fixing errors. It works well for long reads but not for billions of short reads, which would need too many pairwise alignments.
- De Bruijn graphs: split each read into overlapping words of length , called k-mers, and link words that overlap by letters. A read of length gives k-mers. This approach is mostly used for short reads.
The assembler then looks for a path through the graph that spells out the genome.[4]
In graphs where each read or k-mer is a node, finding a path through every node once is an NP-complete problem, a class of problems for which no fast general method is known. Assemblers therefore simplify the graph, for example by removing branch points.[4]
Eugene Myers introduced the string graph, a related overlap method that uses k-mers to find overlaps quickly.[4]
Repeated sequences are the main obstacle. Highly repetitive regions near centromeres and telomeres (the ends of chromosomes) create many ambiguous paths and leave gaps in the assembly.[4] Long reads that span a repeat can resolve it, which is why long-read assembly changed the field.[4]
Beyond DNA sequences
Gene expression
Many genes are split into parts. Exons are the parts kept in the finished RNA that codes for protein, and introns are the parts cut out of the RNA in between.[16]
RNA-Seq measures which genes are active by sequencing a cell's RNA. The RNA is converted into a library of cDNA fragments, which are sequenced into reads of about 30 to 400 bases.[17] The reads are then aligned to a reference genome or to a set of transcripts (RNA copies of genes), or assembled without a reference.[17]
The activity of a gene can be estimated by counting the reads that fall in its exons, divided by the length of those exons.[17] RNA-Seq can measure expression across a range of more than 8,000-fold, compared with up to a few hundredfold for tiling microarrays.[17] See differential gene expression analysis.
Protein structure
A protein's 3D shape decides its function.[6]
The Protein Data Bank, founded in 1971 at Brookhaven National Laboratory with 7 structures, stores experimentally solved structures.[18]
Structural work in bioinformatics includes predicting protein shape, aligning structures in 3D, and modeling how proteins bind other molecules.[2]
Predicting structure from sequence was tried from the 1970s but stayed very hard.[6]
In 2020 Demis Hassabis and John Jumper presented AlphaFold 2, an AI model that has since predicted the structures of nearly all 200 million known proteins.[6] They shared the 2024 Nobel Prize in Chemistry with David Baker, whose group first designed an entirely new protein in 2003.[6] See machine learning in biology.
Evolution and phylogenetics
Sequences record evolutionary history, so they can be used to build family trees of genes and species.
Zuckerkandl and Pauling named this idea "paleogenetics" in 1963.[3]
Two classic ways to build trees from sequences are:[3]
- Maximum parsimony: choose the tree that needs the fewest changes.
- Maximum likelihood: choose the tree that gives the highest probability of producing the observed sequences. Joseph Felsenstein developed the first such method for DNA sequences.
DNA sequences show some changes that protein sequences hide. For example, synonymous mutations change a DNA letter without changing the amino acid.[3] See computational phylogenetics.
Databases and infrastructure
Sequence and structure archives
Public databases are central to the field. They let researchers find existing data and submit new data as it is produced.[2]
| Resource | Founded | Notes |
|---|---|---|
| Atlas of Protein Sequence and Structure | 1965 | Dayhoff and Eck; first biological sequence database, 65 proteins in the first edition[3] |
| Protein Data Bank | 1971 | 3D structures; 7 at the start[18] |
| EMBL Nucleotide Sequence Data Library | 1980 | At EMBL Heidelberg; now the European Nucleotide Archive[19] |
| GenBank | 1982 | Run by Los Alamos National Laboratory, moved to NCBI in 1992[20][3] |
| NCBI | 1988 | Created by the US Congress; website with BLAST online in 1994[21][3] |
| EMBL-EBI | 1994 | Hinxton, UK, near the Wellcome Sanger Institute[19] |
The EMBL, GenBank, and DNA Data Bank of Japan databases joined forces, EMBL and GenBank in 1986 and DDBJ in 1987, to standardize formats and share data.[3] This union continues as the International Nucleotide Sequence Database Collaboration.[3]
The FAIR principles, published in 2016, ask that research data be findable, accessible, interoperable (able to work with other data and tools), and reusable.[22] Many bioinformatics resources and pipelines now follow them.[23]
Workflows and reproducibility
An analysis often chains many tools, so it must be recorded precisely to be repeated. Workflow management systems are now the recommended way to run such pipelines.[23]
- Galaxy offers a point-and-click web interface.[23]
- Snakemake and Nextflow are aimed at users who program, and support reproducibility, parallel runs, and moving work between clusters, clouds, and workstations.[23]
Software containers package each tool with its dependencies, which makes pipelines easier to set up and repeat.[23] Community registries such as nf-core set shared standards; one independent study found that 83% of nf-core's released pipelines could be run as expected.[23]
History
The term is older than the large sequence datasets it is now linked with. Paulien Hogeweg and Ben Hesper began using "bioinformatics" in 1970, defining it as "the study of informatic processes in biotic systems".[24] The Oxford English Dictionary later credited two 1978 papers by Hogeweg as its source.[24]
As sequence data grew fast, the word became widely used in the late 1980s. It came to mean computational methods for managing and analyzing sequences, structures, function prediction, and evolutionary trees.[24]
| Year | Event |
|---|---|
| 1965 | Dayhoff and Eck publish the first Atlas of Protein Sequence and Structure[3] |
| 1970 | Needleman and Wunsch publish dynamic programming alignment[3] |
| 1970 | Hesper and Hogeweg start using the term "bioinformatics"[24] |
| 1971 | Protein Data Bank founded[18] |
| 1977 | Frederick Sanger's team develops the "plus and minus" DNA sequencing method[3] |
| 1979 | Roger Staden publishes the first software for analyzing Sanger reads[3] |
| 1980 | EMBL Data Library founded[19] |
| 1981 | Smith-Waterman local alignment published[14] |
| 1982 | GenBank created[20] |
| 1988 | NCBI created[21] |
| 1990 | BLAST published[15]; the Human Genome Project begins[25] |
| 1995 | The Institute for Genomic Research sequences Haemophilus influenzae, the first complete genome of a free-living organism[3] |
| 2003 | Human Genome Project reports a sequence covering 92% of the genome[25] |
| 2020 | AlphaFold 2 presented[6] |
| 2022 | The Telomere-to-Telomere Consortium reports the first truly complete human genome sequence[25] |
Falling sequencing costs drove the growth of the field. A high-quality draft human genome cost about $14 million in 2006; by late 2015 it cost less than $1,500.[26]
Challenges and open questions
- Data volume: the fast rise in data from large-scale biology pushes computing capacity to its limits.[23]
- File formats: the field has many loosely defined formats. FASTQ alone has three incompatible versions that cannot be reliably told apart.[7]
- Reproducibility: results depend on exact tool versions and settings, which workflow systems and containers aim to record.[23]
- Repeats: repetitive DNA still causes gaps in assemblies; the first truly complete human genome came only in 2022.[4][25]
- Statistics: a P-value is the chance that a score this high would arise by chance alone, and the best hit among many comparisons must be discounted. An alignment with a P-value of 0.0001 in one comparison may get a P-value of only 0.1 if it was the best of 1,000 independent comparisons.[12]
- Biased sequences: as many as one fourth of protein residues lie in low-complexity regions, which can score highly by chance and are best left out of alignments.[12]
- Scope: Hogeweg argues that the original, broader meaning of the field, the study of information processes in living systems, is coming back.[24]
For the methods behind these problems, see bioinformatics algorithms.
References
- Bioinformatics (Talking Glossary of Genomic and Genetic Terms), National Human Genome Research Institute.
- What is Bioinformatics? A Proposed Definition and Overview of the Field, N. M. Luscombe, D. Greenbaum, M. Gerstein, Methods of Information in Medicine, 2001.
- A brief history of bioinformatics, J. Gauthier et al., Briefings in Bioinformatics, 2019.
- The present and future of de novo whole-genome assembly, J. Sohn, J. W. Nam, Briefings in Bioinformatics, 2018.
- Biological information specialists for biological informatics, Journal of Biomedical Discovery and Collaboration, 2007.
- Press release: The Nobel Prize in Chemistry 2024, Royal Swedish Academy of Sciences, 2024.
- The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants, P. J. A. Cock et al., Nucleic Acids Research, 2010.
- The Sequence Alignment/Map format and SAMtools, Bioinformatics, 2009.
- The variant call format and VCFtools, Bioinformatics, 2011.
- Fast and accurate short read alignment with Burrows-Wheeler transform, Bioinformatics, 2009.
- The BLAST Sequence Analysis Tool (The NCBI Handbook), National Center for Biotechnology Information.
- The Statistics of Sequence Similarity Scores, S. F. Altschul, National Center for Biotechnology Information.
- Sequence Alignment (CS262 lecture 2), Stanford University.
- Identification of common molecular subsequences, T. F. Smith, M. S. Waterman, Journal of Molecular Biology, 1981.
- Basic local alignment search tool, S. F. Altschul, W. Gish, W. Miller, E. W. Myers, D. J. Lipman, Journal of Molecular Biology, 1990.
- Exon (Talking Glossary of Genomic and Genetic Terms), National Human Genome Research Institute.
- RNA-Seq: a revolutionary tool for transcriptomics, Z. Wang, M. Gerstein, M. Snyder, Nature Reviews Genetics, 2009.
- PDB History, RCSB Protein Data Bank.
- Our story, EMBL-EBI.
- GenBank and the Early Years of "Big Data", US National Library of Medicine, 2016.
- GenBank, Nucleic Acids Research, 1997.
- The FAIR Guiding Principles for scientific data management and stewardship, M. D. Wilkinson et al., Scientific Data, 2016.
- Empowering bioinformatics communities with Nextflow and nf-core, Genome Biology, 2025.
- The Roots of Bioinformatics in Theoretical Biology, P. Hogeweg, PLOS Computational Biology, 2011.
- Human Genome Project Fact Sheet, National Human Genome Research Institute.
- The Cost of Sequencing a Human Genome, National Human Genome Research Institute.
