bioRxivBioinformaticsPreprint
Efficient indexing and querying of annotations in a pangenome graph
Adam M. NovakiD, Dickson Chung, Glenn HickeyiD, Sarah DjebaliiD, Toshiyuki YokoyamaiD, Erik P. GarrisoniD, Giuseppe NarzisiiD, Benedict PateniD, Jean MonlongiD
Abstract
The current reference genome is the backbone of diverse and rich annotations. Simple text formats, like VCF or BED, have been widely adopted and helped the critical exchange of genomic information. There is a dire need for tools and formats enabling pangenomic annotation to facilitate such enrichment of pangenomic references. The Graph Alignment Format (GAF) is a text format, tab-delimited like BED/VCF files, which was proposed to represent alignments. GAF could also be used to store paths representing annotations in a pangenome graph, but there are no tools to index and query them efficiently. Here, we present extensions to vg and HTSlib that provide efficient sorting, indexing, and querying for GAF files. With this approach, annotations overlapping a subgraph can be extracted quickly. Paths are sorted based on the IDs of traversed nodes, compressed with BGZIP, and indexed with HTSlib/tabix via our extensions for the GAF format. Compared to the binary GAM format, GAF files are easier to edit or inspect because they are plain text, and we show that they are twice as fast to sort and half as large on disk. In addition, we updated vg annotate, which takes BED or GFF3 annotation files relative to linear sequences and projects them into the pangenome. It can now produce GAF files representing these annotations paths through the pangenome. We showcase these new tools on several applications. We projected annotations for all Human Pangenome Reference Consortium Year 1 haplotypes, including genes, segmental duplications, tandem repeats and repeats annotations, into the Minigraph-Cactus pangenome (GRCh38-based v1.1). We also projected known variants from the GWAS Catalog and expression QTLs from the GTEx project into the pangenome. Finally, we reanalyzed ATAC-seq data from ENCODE to demonstrate what a coverage track could look like in a pangenome graph. These rich annotations can be quickly queried with vg and visualized using existing tools like the Sequence Tube Map or Bandage.
- organism: human
- assay: whole-genome sequencing
- research focus: benchmarking
- research focus: database / resource
- research focus: software / tool
- approach: statistical model
- approach: experimental assay
- Citations
- 5
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- gaftools: a toolkit for analyzing and manipulating pangenome alignments
Samarendra Pani, Fawaz Dabbaghie, … Arda Söylev·BioinformaticsPeer-reviewed·Jul 28, 2026
- GBZ-base and GAF-base: Indexed pangenome file formats
Jouni Sirén, Benedict Paten, … Sergey Koren·BioinformaticsPeer-reviewed·Oct 24, 2026
- Complete pangenome graph annotation with GrAnnoT and GrAPEx
Nina Marthe, Matthias Zytnicki, … François Sabot·bioRxiv·Oct 2, 2026
- Human readable compression of GFA paths using grammar-based code
Peter Heringer, Daniel Doerr·bioRxiv·May 22, 2025
- Pangenome Graph Construction from Genome Alignment with Minigraph-Cactus
Glenn Hickey, Jean Monlong, … Valérie Schneider·Nature BiotechnologyPeer-reviewed·May 10, 2023
- GBZ File Format for Pangenome Graphs
Jouni Sirén, Benedict Paten·BioinformaticsPeer-reviewed·Sep 30, 2022