No retraction, correction or concern found when last checked on Oct 24, 2026.
Haplogrep 3 - an interactive haplogroup classification and analysis platform
Sebastian Schönherr, Hansi Weissensteiner, Florian Kronenberg and 1 more
Nucleic Acids Research · 2023 · CC BY
Abstract
Over the last decade, Haplogrep has become a standard tool for haplogroup classification in the field of human mitochondrial DNA and is widely used by medical, forensic, and evolutionary researchers. Haplogrep scales well for thousands of samples, supports many file formats and provides an intuitive graphical web interface. Nevertheless, the currently available version has limitations when applying it to large biobank-scale data. In this paper, we present a major upgrade to the software by adding (a) haplogroup summary statistics and variant annotations from various publicly available genome databases, (b) an interface to connect new phylogenetic trees, (c) a new state-of-the-art web framework managing large scale data, (d) algorithmic adaptions to improve FASTA classification using BWA-specific alignment rules and (e) a pre-classification quality control step for VCF samples. These improvements will give researchers the opportunity to classify thousands of samples as usual but providing additional ways to investigate the dataset directly in the browser. The web service and its documentation can be accessed freely without any registration at https://haplogrep.i-med.ac.at.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 24, 2026. Paragraph numbers are ours, so an answer can point at one.
INTRODUCTION
Available phylogenetic presentations of sequenced samples (so called phylogenetic trees) allow to classify uniparentally transmitted haplotypes into haplogroups. Each phylogenetic haplogroup (or branch) within the tree is identified by a unique set of variants differing from a reference genome. The currently most updated phylogenetic tree for human mitochondrial genomes includes 6401 unique haplogroups, which is based on the well-known phylogenetic tree Phylotree. Previously, we developed Haplogrep to assign mitochondrial input profiles the best matching haplogroup in an automated way. Haplogrep works by traversing a phylogenetic tree, calculating the distance to each haplogroup using the Kulczynski metric and returning a sorted list of haplogroup hits for each sample. In 2016, we improved the software by integrating a rule-based system assigning each sample a quality status, supporting new file formats and providing a command-line version, which has also been integrated in several workflow pipelines and online services. The set of included features, frequent updates of supported phylogenetic trees and our community support made Haplogrep to one of the most accurate and widest used tools for haplogroup classification in mtDNA studies.
Nevertheless, over the last years we also identified shortcomings with the currently available version: first, genomic databases like gnomAD provide a rich set of annotations such as variant or population frequencies for evaluating sites of interest. Many of these necessary downstream-analysis steps are currently not directly supported within the application, making it unnecessarily complicated for researchers to analyse samples initially classified with Haplogrep. Second, modern technologies allow sequencing thousands of samples with decreasing costs, therefore making biobank-scale datasets available to researchers. While Haplogrep's classification algorithm works well for many samples, the web application was not developed for screening thousands of samples directly in the browser and does not provide any summary statistics on the uploaded dataset. Third, while Haplogrep already supports numerous phylogenetic trees, the integration of new trees is closely bundled to the software itself, making it complex to add new trees for external users. Forth, input data is nowadays coming from heterogeneous resources (e.g. genotyping arrays, whole-genome sequenced samples, Sanger-sequenced data, long-read data), which requires a systematic quality control before haplogroup classification to avoid unexpected pitfalls.
To address these shortcomings, we developed Haplogrep 3. It includes all key features from previous versions, eliminates the mentioned shortcomings and is available as a hosted web service but can also be run graphically or on the command-line in a private environment. This version will greatly improve how researchers analyse datasets, allowing them identifying input errors or spurious results as early as possible.
Webserver
Haplogrep 3 is a web application developed in Java using the Javalin web framework in combination with a template engine for Java. For visualization, we use the D3.js and Chart.js JavaScript libraries. The main algorithm of Haplogrep has been capsulated into a library (haplogrep-core), integrated into the application as a dependency and has already been described in detail elsewhere. Haplogrep 3 provides several sub-commands (server, classify, distance, trees, install-trees) to end users, which allows to run it locally or integrate it in automated pipelines. The server command starts a new web-server instance, classify allows to run haplogroup classification on the command line, distance calculates the distance between two input haplogroups, trees returns the currently installed trees and install-trees allows to install new phylogenetic trees. Unlike to previous versions, the same code base is now used for the web application and the command-line tool. Haplogrep 3 loads all required information from a configuration file in YAML syntax. This file includes basic features like upload limit, port, provided test datasets but also includes the currently installed phylogenetic trees and the location of the phylogenetic trees' repository.
Integration of phylogenetic trees
Starting with Haplogrep 3, phylogenetic trees are now hosted in a separate repository (https://genepi.github.io/haplogrep-trees). Each tree includes a set of required files for the integration into Haplogrep. It consists of (a) the tree in XML syntax, (b) variants weights for haplogroup classification, (c) hotspot locations not considered for phylogenetic interpretation, (d) annotation files from external databases, (e) reference sequence (e.g. rCRS or RSRS) and required BWA files and (f) a set of FASTA alignment rules. This architectural change allowed us to decouple Haplogrep from a specific phylogenetic tree and will simplify the integration of new trees in future releases. All installed trees are loaded at startup and user can select one of the trees before classification starts.
FASTA improvement and alignment rules
To support FASTA as an input format, we integrated the BWA alignment software as a JNI library. Unlike to sequence alignment with BWA where insertions and deletions (indels) are left aligned, the currently available mitochondrial phylogenetic trees expect right aligned indels. Therefore, indels are not correctly placed by BWA and result in a lower overall haplogroup quality or even misclassification. To adjust for that, we integrated a set of currently 123 nomenclature rules that are applied by default prior to haplogroup classification. The rules have been generated by comparing expected and remaining variants from haplogroup-defining samples from the updated Phylotree in FASTA format. By comparing these variants for each input sample, we were able to create a list of rules which fix issues especially for indel alignments. The list of rules is included as a file in each phylogenetic tree, making it adaptable in future releases. Besides that, Haplogrep 3 has been improved to work with partial FASTA sequences (e.g. control region), a previous shortcoming of the software.
Haplogroup clustering and search
Haplogrep 3 introduces a new clustering of haplogroups using the top-level haplogroups (or clusters) as defined by Phylotree and gnomAD. For each input sample or defining haplogroup of an available tree, we calculate the distance to each of the 33 top-level haplogroups and use the cluster with the minimal distance as a result. Using this new tree structure, users can search for haplogroups and variants directly within the application.
Variant annotation
For variant annotation, we used external data from gnomAD, MitImpact and the Helix Mitochondrial database, which have been integrated in the application. The files have been downloaded and indexed for accessing variant details in real-time. Each provided phylogenetic tree package also consists of a version number, which allows us to integrate possible future database updates in a reproducible way.
Analysis workflow
Like previous versions, users can upload their sample data in a text format (hsd), as FASTA or in the variant calling format (VCF). The server assigns each sample the top haplogroup hits (currently 20) by traversing through the selected phylogenetic tree. The input format of the samples is autodetected by the software but can also be set manually. This is especially useful for VCF files, where users can specify if input files originate from genotyping arrays or how heteroplasmic positions from next-generation sequencing data should be handled by the system. If the samples come from genotyping arrays, Haplogrep 3 automatically adapts the search range to the available positions included in the VCF file. Before classification, users can select one of the available Haplogrep metrics on how distances to haplogroups are calculated, the phylogenetic tree and if additional output formats should be generated. Haplogrep then executes a quality control (QC) step and calculates summary statistics for all samples. After the actual haplogroup classification, an annotation step is executed and users are forwarded to the results including a summary dashboard for visual analytics (e.g. data grouped by top-level haplogroups including population information, QC statistics) and the sample details (see Figure 1).
Summary dashboard
Haplogrep 3 includes a graphical summary dashboard including statistics regarding the sample classification. It consists of a graphical overview of all individual haplogroups and their distribution into the 33 top-level haplogroups (see Materials and Methods). The dashboard also consists of a table of all uploaded samples showing the population composition for each top-level haplogroup with ancestry information provided by gnomAD. Besides that, it also includes all available export formats including the possibilities to download the sample QC report as a tab-delimited file. Unlike to previous versions, export formats are generated on-the-fly during classification and can be downloaded without any delay.
Sample overview
Besides the summary dashboard, the individual samples page includes details for each sample (e.g. number of expected variants, found variants, additional variants), the top 20 hits for each input sample and the analysed range. To investigate samples, Haplogrep 3 allows to analyse each variant associated with a haplogroup by clicking on it. This will allow users to access variant or population frequencies and evaluate variants in more detail (see ‘Interactive Variant Discoveries’).
Phylogenetic trees
Haplogrep 3 supports the integration of external phylogenetic trees. We currently provide a set of five mtDNA trees within Haplogrep 3, all managed in separate Git repositories for reproducibility (https://genepi.github.io/haplogrep-trees). Each tree consists of a configuration file and a set of annotation files (see Material and Methods). This architectural change allowed us to decouple Haplogrep from the phylogenetic trees and simplifies the integration of new trees for external users. While all trees are currently mtDNA specific, Haplogrep 3 is not limited to mtDNA allowing other phylogenetic representations to benefit from its features. Beginning with this version, we also provide a new feature to make phylogenies searchable for end users. Users can use Haplogrep 3 to navigate through all top-level haplogroups and access textual and graphical representations for each haplogroup including expected variants.
VCF pre-classification quality control
VCF files can originate from different projects (e.g. microarray projects, whole-exome/whole-genome or long-read sequencing projects) and are often missing an external quality-control step before classification. This can result in a lower haplogroup quality or even in a misclassification. The latest version of Haplogrep now integrates an initial validation step for VCF samples and includes (a) an analysis of the uploaded sample file (e.g. number of samples, number of variants, overlap with the phylogenetic tree, monomorphic variants), (b) a check on possible strand-flips and (c) statistics on the variant or sample call rate.
Interactive variant discoveries
Each phylogenetic tree includes a set of annotation files. Haplogrep 3 displays all available information directly in the web-application, when a specific variant is selected (see Material and Methods). Access to variant frequencies allow users to evaluate each variant in detail and assess its clinical relevance using functional predictors from MitImpact. Haplogrep 3 also provides direct links to external resources for further investigation and allows to export a set of predefined annotations.
Analysing 1000 genomes data with Haplogrep 3
The new web application allows to investigate samples in more depth directly in the browser. Here, we are analysing the 1000 Genomes data, which have been made available by the 1000 Genomes Project Phase 3 and includes a set of 2534 samples. All samples have been classified in 88 seconds on the publicly available web service using the default parameters (see Supplementary Table S1). The newly created dashboard shows an overview of all samples and indicated that all samples are passing QC. Samples are clustered by top-level haplogroup or by individual haplogroup. All 33 clusters as defined by Phylotree are represented. 11% of the uploaded samples include a warning, mainly because of a slightly decreased haplogroup quality (see Figure 2).
The details tab of Haplogrep 3 shows how a sample report is structured. It includes the haplogroup top hit, expected mutations of the haplogroup and remaining mutations of each sample, the top 20 additional haplogroup hits and the analysed sample range. It also includes frequencies for each variant (provided by publicly available databases) for further investigation (see Figure 3).
DISCUSSION
Published in 2010 and 2016, Haplogrep was the first fully automated haplogroup classification tool for mtDNA. The number of citations and downloads shows that Haplogrep is a critical tool for numerous research areas and supports studies at any size. With the upgrade presented in this paper, we go a step further and provide users new tools for evaluating variants and new possibilities to look at their data. We also improved the FASTA alignment for partial samples, added a new QC step for VCF samples and decoupled the phylogenetic trees from the application itself. Since our original publication, many tools have been published showing a similar set of features or provided functionally which were initially not available in Haplogrep. Nevertheless, none of the currently available tools include the same set of features compared to Haplogrep. HaploGrouper works for any kind of phylogenetic trees but supports only VCF and is not available as a graphical web service. MitoSuite requires a local installation and works only for next-generation sequencing data in BAM format. HaploTracker works well for partial FASTA sequences, a feature which has also been integrated in Haplogrep 3. HaploCart1.0 uses a novel and promising pangenome reference structure eliminating problems when the sample is identical to the rCRS but is currently too computational expensive to run on a large set of samples. MitoSuite uses Haplogrep for mtDNA classification but also includes several tools to further investigate variants. Many of these annotations are now also available within Haplogrep 3.
While the integration of new trees is now simplified, the creation of phylogenetic trees can pose numerous challenges to end users. Since Haplogrep is a constantly developing service since >10 years, we are planning to provide automated ways to create the required files, which can then be connected to Haplogrep. Overall, we think that the new set of features will greatly improve and simplify the work with Haplogrep and provide users for the first-time functionality for downstream analysis directly within the application.
DATA AVAILABILITY
The Haplogrep 3 webserver is available at: https://haplogrep.i-med.ac.at. The Haplogrep 3 source code is available at: https://github.com/genepi/haplogrep3 and https://doi.org/10.5281/zenodo.7801633. The Haplogrep 3 documentation including examples is available at: https://haplogrep.readthedocs.io.
References 22
- 1.
Torroni A., Achilli A., Olivieri A., Semino O. Gasparre G., Porcelli A.M. Chapter 5 – haplogroups and the history of human evolution through mtDNA. The Human Mitochondrial Genome. 2020; Academic Press111–129.
Not in our library
- 2.
Dur A., Huber N., Parson W. Fine-tuning phylogenetic alignment and haplogrouping of mtDNA sequences. Int. J. Mol. Sci.2021; 22:5747.
Not in our library10.3390/ijms22115747
- 3.
van Oven M., Kayser M. Updated comprehensive phylogenetic tree of global human mitochondrial DNA variation. Hum. Mutat.2009; 30:E386–E394.
Not in our library10.1002/humu.20921
- 4.
Kloss-Brandstatter A., Pacher D., Schonherr S., Weissensteiner H., Binna R., Specht G., Kronenberg F. HaploGrep: a fast and reliable algorithm for automatic classification of mitochondrial DNA haplogroups. Hum. Mutat.2011; 32:25–32.
Not in our library10.1002/humu.21382
- 5.
Weissensteiner H., Pacher D., Kloss-Brandstatter A., Forer L., Specht G., Bandelt H.J., Kronenberg F., Salas A., Schonherr S. HaploGrep 2: mitochondrial haplogroup classification in the era of high-throughput sequencing. Nucleic Acids Res.2016; 44:W58–W63.
Not in our library10.1093/nar/gkw233
- 6.
- 7.
Laricchia K.M., Lake N.J., Watts N.A., Shand M., Haessly A., Gauthier L., Benjamin D., Banks E., Soto J., Garimella K. et al. Mitochondrial DNA variation across 56,434 individuals in gnomAD. Genome Res.2022; 32:569–582.
Not in our library10.1101/gr.276013.121
- 8.
Yonova-Doing E., Calabrese C., Gomez-Duran A., Schon K., Wei W., Karthikeyan S., Chinnery P.F., Howson J.M.M. An atlas of mitochondrial DNA genotype-phenotype associations in the UK Biobank. Nat. Genet.2021; 53:982–993.
Not in our library10.1038/s41588-021-00868-1
- 9.
- 10.
- 11.
Luth T., Schaake S., Grunewald A., May P., Trinh J., Weissensteiner H. Benchmarking low-frequency variant calling with long-read data on mitochondrial DNA. Front Genet. 2022; 13:887644.
Not in our library10.3389/fgene.2022.887644
- 12.
Andrews R.M., Kubacka I., Chinnery P.F., Lightowlers R.N., Turnbull D.M., Howell N. Reanalysis and revision of the Cambridge reference sequence for human mitochondrial DNA. Nat. Genet.1999; 23:147.
Not in our library10.1038/13779
- 13.
Behar D.M., van Oven M., Rosset S., Metspalu M., Loogvali E.L., Silva N.M., Kivisild T., Torroni A., Villems R. A “Copernican” reassessment of the human mitochondrial DNA tree from its root. Am. J. Hum. Genet.2012; 90:675–684.
Not in our library10.1016/j.ajhg.2012.03.002
- 14.
Li H. Aligning sequence reads, clone sequences and assembly contigs with BWA-MEM. 2013; arXiv doi:26 May 2013, preprint: not peer reviewedhttps://arxiv.org/abs/1303.3997.
Not in our library
- 15.
Castellana S., Ronai J., Mazza T. MitImpact: an exhaustive collection of pre-computed pathogenicity predictions of human mitochondrial non-synonymous variants. Hum. Mutat.2015; 36:E2413–E2422.
Not in our library10.1002/humu.22720
- 16.
Bolze A., Mendez F., White S., Tanudjaja F., Isaksson M., Jiang R., Rossi A.D., Cirulli E.T., Rashkin M., Metcalf W.J. et al. A catalog of homoplasmic and heteroplasmic mitochondrial DNA variants in humans. 2020; bioRxiv doi:26 June 2020, preprint: not peer reviewed.
Not in our library10.1101/798264
- 17.
Auton A., Abecasis G.R., Altshuler D.M., Durbin R.M., Abecasis G.R., Bentley D.R., Chakravarti A., Clark A.G., Donnelly P., Eichler E.E. et al. A global reference for human genetic variation. Nature. 2015; 526:68–74.
Not in our library10.1038/nature15393
- 18.
Jagadeesan A., Ebenesersdottir S.S., Guethmundsdottir V.B., Thordardottir E.L., Moore K.H.S., Helgason A. HaploGrouper: a generalized approach to haplogroup classification. Bioinformatics. 2021; 37:570–572.
Not in our library10.1093/bioinformatics/btaa729
- 19.
Ishiya K., Ueda S. MitoSuite: a graphical tool for human mitochondrial genome profiling in massive parallel sequencing. PeerJ. 2017; 5:e3406.
Not in our library10.7717/peerj.3406
- 20.
Kim K., Kim D.H., Kim K.Y. Mitochondrial haplogroup classification of ancient DNA samples using haplotracker. Biomed. Res. Int.2022; 2022:5344418.
Not in our library10.1155/2022/5344418
- 21.
Rubin J.D., Vogel N.A., Gopalakrishnan S., Sackett P.W., Renaud G. HaploCart: human mtDNA haplogroup classification using a pangenomic reference graph. 2022; bioRxiv doi:26 September 2022, preprint: not peer reviewed.
Not in our library10.1101/2022.09.23.509203
- 22.
Lott M.T., Leipzig J.N., Derbeneva O., Xie H.M., Chalkia D., Sarmady M., Procaccio V., Wallace D.C. mtDNA variation and analysis using Mitomap and Mitomaster. Curr. Protoc. Bioinformatics. 2013; 44:1.23.1–1.23.26.
Not in our library10.1002/0471250953.bi0123s44
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.