Abstract
Transposable elements are ubiquitous mobile DNA sequences generating insertion polymorphisms, contributing to genomic diversity. We present GraffiTE, a flexible pipeline to analyze polymorphic mobile elements insertions. By integrating state-of-the-art structural variant detection algorithms and graph genomes, GraffiTE identifies polymorphic mobile elements from genomic assemblies or long-read sequencing data, and genotypes these variants using short or long read sets. Benchmarking on simulated and real datasets reports high precision and recall rates. GraffiTE is designed to allow non-expert users to perform comprehensive analyses, including in models with limited transposable element knowledge and is compatible with various sequencing technologies. Here, we demonstrate the versatility of GraffiTE by analyzing human, Drosophila melanogaster, maize, and Cannabis sativa pangenome data. These analyses reveal the landscapes of polymorphic mobile elements and their frequency variations across individuals, strains, and cultivars.
Introduction
Transposable elements (TEs) are mobile DNA sequences capable of moving within a genome, serving as a primary driver of genetic diversity and occasionally disease. Despite their importance, TEs are notoriously difficult to study due to their repetitive nature and extreme size variation, ranging from hundreds to tens of thousands of base pairs. Standard linear reference genomes often fail to capture this variation accurately, leading to "reference bias"—a phenomenon where sequences absent from the reference are systematically missed.
As genomic research shifts toward pangenomics—the simultaneous analysis of multiple genomes—there is a critical need for tools that can consolidate TE data from diverse sources into a unified framework. GraffiTE addresses this need by leveraging graph genomes to identify and genotype TE insertions across varied datasets, including high-quality assemblies and raw long-read sequencing data.
The GraffiTE Pipeline
GraffiTE is a unified, flexible pipeline managed by Nextflow that operates in three distinct stages to mitigate reference bias and improve detection accuracy.
- Structural Variant (SV) Search: The pipeline identifies SVs by comparing alternative assemblies or long reads to a reference genome. It utilizes specialized tools such as
SVIM-asmorSniffles2to detect insertions and other structural changes. - Annotation and Filtering: Detected SVs are filtered to retain only those matching known TE sequences using
RepeatMasker. This stage also identifies complex signatures like Target Site Duplications (TSDs) to refine the candidate list. - Graph Genotyping: At its core, GraffiTE constructs a "TE-graph genome." In this model, each insertion is represented as a "bubble"—a bifurcation in the genomic path where one route contains the TE and the other does not. By mapping short or long reads to this graph, the tool can accurately determine the zygosity (homozygous or heterozygous) of specific insertions.
Benchmarking and Datasets
The authors validated GraffiTE using a combination of simulated and real-world pangenome datasets:
- Simulations: Spiked-in TE insertions in human (Chr 22) and maize (Chr 10) genomes were used to measure precision and recall.
- Human Pangenome: 94 haplotypes from the Human Pangenome Reference Consortium (HPRC) were analyzed.
- Drosophila: 30 D. melanogaster genomes were studied using both assemblies and long-read data.
- Maize: 23 diverse cultivars were examined, with a focus on the complex bz locus.
- Cannabis: 9 assemblies of Cannabis sativa were used to demonstrate the tool's utility in species with limited prior TE characterization.
Results and Insights
GraffiTE demonstrated high performance across all benchmarks. In human simulations, it achieved over 90% precision and recall. Even in the maize genome, which is approximately 80% TE sequences, the tool maintained a recall rate above 94%.
Key findings from the pangenome analyses include:
- Human TE Landscape: GraffiTE identified 14,838 distinct TE loci in the HPRC pangenome, primarily Alu, LINE-1, and SVA elements. The results suggest that 20–30 haplotypes are sufficient to capture most common human TE variants.
- Resolving Genomic Complexity: In maize, the tool successfully mapped 13 complex structural variants at the bz locus, providing a clear visualization of repeatome differences between cultivars.
- Hidden Diversity: In Drosophila, the pipeline revealed significant TE variation in heterochromatic regions, which are often overlooked due to their repetitive nature and low gene density.
Discussion and Future Directions
By representing variants as bubbles in a graph, GraffiTE provides a neutral mapping framework that significantly improves genotyping accuracy compared to traditional linear methods. Assembly-first discovery proved particularly effective, as high-quality assemblies provide better context for repetitive regions than raw reads alone.
However, challenges remain. "Nested" TEs—where one element inserts into another—and complex recombination events (e.g., LTR-LTR recombination) can still lead to misclassification. Future iterations of the pipeline may move toward completely reference-free graph approaches and incorporate large-scale experimental validation, such as PCR, to further confirm the accuracy of graph-based calls.
Summary updated