Pan-genome graph construction is the process of creating a graph-based representation of the collective genome (the pan-genome) of a species or a group of organisms. In such graphs, nodes often represent genomic sequences (e.g. DNA segments or k-mers) and edges represent adjacency relationships as they occur in individual genomes within a population. Thus, a pan-genome provides a way to encapsulate all genomic data for a species or clade rather than a single representative of such species or clade. This means that it can simultaneously capture multiple versions of any given locus. Traditional linear reference genomes represent only a single consensus genome sequence, capturing just one version of each genomic locus. This approach is inherently limited, as it fails to account for genetic variations such as single-nucleotide polymorphism (SNPs), insertions and deletions (indels), and larger structural variants that commonly exist across populations. Linear reference genomes thus introduce biases by inadequately representing genomic diversity, potentially compromising the accuracy of analyses like variant calling and genotyping. Pan-genome graphs address these limitations by incorporating all known genetic variations into their structure. This inclusive representation allows for unbiased analysis of genomic data, significantly improving sequencing read alignment, variant detection, and genotyping accuracy across diverse individuals. Advancements in both the quality and length of sequencing, alongside improved genome assembly techniques, have led to a rapidly growing collection of high quality genome assemblies, including haplotype-resolved human genome assemblies. As a result, pan-genome graphs have become an important paradigm in bioinformatics for analyzing population genomic data, improving read alignment, variant calling, and genotyping across diverse genomes.
Historical development
The concept of the pan-genome was first introduced in 2005 by Tettelin and colleagues during comparative analysis of multiple Streptococcus agalactiae bacterial genomes. In their study Tettelin et al. defined the pan-genome as consisting of a conserved "core genome" present in all strains and a variable "accessory genome" containing genes present in one or a subset of strains, highlighting the notion that any single genome contains only a fraction of a species' total gene repertoire. Early pan-genomic analyses in microbes focused on gene presence/absence using lists of genes or orthologous clusters, rather than nucleotide-level variation. As more genomes become available, researchers recognized the need to model genomic variation at the base-pair level and not just as gene lists. Graph-based representation of multiple sequences have roots in prior bioinformatic methods based on sequence graph. For instance, in early 2000s, partial order graphs were used to represent multiple sequence alignment and consensus sequences which can be seen as a kind of sequence graph capturing alternate alleles. In early 2010s, the first practical tools leveraging graph models for pan-genomes appeared. A notable example was the colored de Bruijn graph approach used by Cortex, which built a joint de Bruijn graph from multiple genomes or read sets to detect variations without a reference genome. Around the same time, different research group such as Dilthey et al. began constructing graphs for specific genomic regions in humans, such as the highly variable major histocompatibility complex (MHC) locus and for collections of microbial genomes to represent all variations in one structure. Recently, large-scale projects have implemented pan-genome graph construction for eukaryotic genomes. In 2023 the Human Pangenome Reference Consortium published a first draft human pan-genome, which contains 47 diverse, haplotype-resolved human genomes encoded in a graph structure. Similarly, graph pan-genomes have been built for crop species such as tomatoes, which were built from 838 genomes, enabling discovery of previously "missing" heritability and trait-linked variants that were not detectable with a single reference.
Graph-based methodologies The main step in pan-genome graph building includes the initial alignment step and downstream processing for representation. Several graph-based methodologies have been developed to construct pan-genome representations, each with differing modeling methodology and graph construction algorithms. Comparative studies distinguish reference-guided builders such as minigraph, which iteratively align assemblies to a reference template, from reference-free base-level alignment approaches such as Cactus and pggb; in benchmarks, the latter recovered more small variation and more precise breakpoint paths, but at substantially higher computational cost. These methods can capture more complex rearrangements and efficiently represent large collections of sequences than traditional approaches such as multiple sequence alignments (MSAs) and K-mer–based strategies. Furthermore, graph methods are currently among the most effective at managing large-scale pan-genome data, even supporting the simultaneous representation of tens to hundreds of human haplotypes. Pan-genome graphs are often bidirected, meaning each node has two orientations (forward and reverse), and edges account for all combinations of these orientations. Graph metrics, including the count of nodes, edges, and connected components, offer valuable insights into the granularity of represented variations as well as the complexity and accessibility of information within the pan-genome.
De Bruijn graphs
… excerpt ends here. Continue reading the full article.

![Pan-genome graph construction: Pan-genome Graph Illustration adapted from Glenn Hickey et al. (2023).[1] Tube Map-style visualization of a sequence graph depicts multiple haplotypes as paths through a genomic graph, where variation sites are converged at the snarls (i.e. bubbles) and later recombine.](https://thumb.wikimedia.org/wikipedia/commons/thumb/d/d6/Graph_Construction_Pan-genome.png/1280px-Graph_Construction_Pan-genome.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)



