Skip to main content
Bioinformatics Advances logoLink to Bioinformatics Advances
. 2025 Sep 2;5(1):vbaf210. doi: 10.1093/bioadv/vbaf210

bloodAGENT: a versatile tool for blood group typing and genomic variation analysis

Michael Wittig 1,✉, Tim A Steiert 2, Christoph Gassner 3,4, Andre Franke 5
Editor: Marion Adebiyi
PMCID: PMC12448795  PMID: 40980556

Abstract

Motivation

Accurate blood group allele determination is essential for both research and clinical applications. While next-generation sequencing and third-generation sequencing technologies provide a wealth of genomic data, secondary analysis pipelines often struggle with detecting variations in paralogous regions and maintaining haplotype integrity. Existing tools for blood group allele determination are frequently proprietary and lack the flexibility needed to address these challenges. To bridge this gap, we developed bloodAGENT, a versatile and open-source tool designed for analyzing genomic variation and resolving blood group alleles.

Results

bloodAGENT achieves high concordance in blood group allele determination under typical conditions but reveals a strong dependence on data completeness. Simulations show that dropout rates are the primary determinant of concordance and ambiguities, with noticeable declines at dropout rates as low as 5%. While phasing breaks have a minor overall impact, their importance remains evident in specific scenarios. These results highlight bloodAGENT’s robustness and its potential for handling complex genomic analyses.

Availability and implementation

https://github.com/ikmb/bloodAGENT.git.

1 Introduction

Blood group systems are central to transfusion medicine, where accurate allele typing is essential to prevent alloimmunization. Beyond clinical diagnostics, blood group genotyping contributes to advances in population genetics, genomics, and personalized medicine (Ellinghaus et al. 2020, Castilho 2021). The increasing availability of Next-Generation Sequencing (NGS) and Third-Generation Sequencing (TGS) has enabled detailed genomic and haplotype-level analysis of blood group alleles (Steiert et al. 2022), revealing the complexity and diversity of these systems.

Several tools, such as RBCeq (Jadhao et al. 2022) and bloodTyper (Lane et al. 2018), have improved the accuracy of molecular blood group typing, particularly when benchmarked against serological data. However, these tools are closed-source and do not support fully phased TGS data, which limits transparency and the ability to resolve ambiguous allele combinations in diploid genomes.

To address these limitations, we developed bloodAGENT, the first fully open-source software for comprehensive blood group allele determination. It is designed to be modular, extensible, and transparent, encouraging community-driven development. bloodAGENT uses VCF and BigWig files from standard NGS/TGS pipelines and relies on ISBT-compliant annotation files to define allele- and haplotype-level configurations. The software applies a cosine similarity-based scoring function to match observed haplotypes with known references and supports phasing information when available, improving accuracy in cases with recombination or paralogous regions.

While optimized for blood group typing, bloodAGENT is adaptable to alternative genotyping platforms and broader genomic use cases. In this Application Note, we present the core functionality, performance under simulated and real-world conditions, and validation with serological and long-read reference datasets.

2 Methods

bloodAGENT is implemented in C++ with multithreading support for high-performance execution. It uses libhts (Bonfield et al. 2021) and libBigWig (Kent et al. 2010) to process standard input formats, VCF and BigWig. bloodAGENT includes Python scripts for result file parsing and for resolving secondary analysis issues that arise from standard tools. Configuration is defined via two ISBT-compliant files specifying variant mappings and haplotypes, supporting accurate allele-level typing across blood group systems (Karolchik et al. 2004, International Society of Blood Transfusion 2024).

The core algorithm applies cosine similarity (Han et al. 2011, Supplementary Methods, available as supplementary data at Bioinformatics Advances online) to compare observed variants to known haplotypes. When phasing information is available, it is used to reduce ambiguity in allele assignment. Output is returned as structured JSON (Bray 2017), facilitating integration into external tools and pipelines.

The software is cross-platform and runs on Linux and macOS; Singularity containers ensure portability and reproducibility across environments. The full source code, documentation, and example datasets are freely available at https://github.com/ikmb/bloodAGENT.

3 Results

To assess the robustness of bloodAGENT, we analyzed simulated datasets covering 56 combinations of dropout (0%–50%) and phasing break (0%–100%) rates, using 16 000 synthetic blood types per condition (Fig. 1). The analysis revealed that variant dropout is the dominant factor affecting allele call ambiguity and concordance. Phasing breaks contributed only minor additional effects. Concordance was 100% under perfect conditions and remained near that level for dropout rates below 5%, but dropped to approximately 55% under 50% dropout. These findings confirm the method’s stability under degraded input conditions.

Figure 1.

Figure 1.

Concordance and ambiguities as a function of dropout and phasing break probabilities. (a) The concordance between simulated and predicted blood types decreases significantly with increasing dropout rates. At a dropout rate of 0%, the concordance remains at 100%, while at 50% dropout, accuracy falls below 50%. A noticeable decline begins at a dropout rate of 5%. Phasing breaks, in contrast, show minimal influence on concordance across all dropout rates. (b) The increase in ambiguities with rising error rates is depicted. Similar to concordance, dropout rates have the most pronounced effect on ambiguities, with higher dropout rates leading to substantially more ambiguous allele assignments. The influence of phasing breaks remains negligible in comparison.

For real-world validation, we analyzed 797 samples from the Human Genome Diversity Project (HGDP, Bergström et al. 2020) (Table 1, available as supplementary data at Bioinformatics Advances online), encompassing 16 blood group systems and 21 antigens. Initially unphased VCFs were phased with WhatsHap (Martin et al. 2016) to evaluate the benefit of haplotype information. Antigen-level concordance was assessed against reference genotypes obtained using the Hemo ID™ Blood Group Genotyping Panel for the MassARRAY® system (Agena Bioscience), a MALDI-TOF-based assay routinely used in high-throughput blood group typing (Gassner et al. 2013, Table 5, available as supplementary data at Bioinformatics Advances online). Across all systems, antigen-level concordance reached 99.7% (Table 2, available as supplementary data at Bioinformatics Advances online). The ABO system demonstrated the most striking improvement: ambiguity dropped from 22.58% in unphased to 3.64% in phased data. This reduction stems from the resolution of frequent ambiguous allele combinations such as ABO*B.01/ABO*O.01.01 versus ABO*A1.01/ABO*O.01.41 (Fig. 1, available as supplementary data at Bioinformatics Advances online, Table 3, available as supplementary data at Bioinformatics Advances online). Other systems also benefited from phasing, though to a lesser degree.

To evaluate performance on phased long-read data, we analyzed samples from the GIAB collection (Zook et al. 2016) and four donors from the Institute of Transfusion Medicine (ITM) with matched serological data. bloodAGENT achieved 100% concordance with serological typing in ABO, RhDCE, and Kell systems. The RHCE C antigen, which could only be resolved at antigen level in short-read HGDP data, was successfully typed at allele level. These results underscore bloodAGENT’s applicability across platforms and confirm its capacity to handle complex loci when high-quality phasing is available.

Detailed genotype calls, ambiguity metrics, and concordance checks are available in Tables 2–10, available as supplementary data at Bioinformatics Advances online.

4 Discussion

The presented results underscore the robustness and adaptability of bloodAGENT in analyzing genomic data for blood group allele determination, even under varying conditions of data quality. The limited influence of phasing breaks on both concordance and ambiguities, as observed in the simulated datasets, highlights the dominant role of dropout rates in determining analysis accuracy. Nevertheless, haplotype phasing remains critical in specific scenarios. Examples such as the blood group systems ABO or FY illustrate the necessity of maintaining accurate phasing data to achieve reliable allele determination for specific blood group systems.

While simulations provide a robust baseline, real-world data introduces complexities that are difficult to model in silico. The secondary analysis pipelines used to generate input files, such as DRAGEN (Behera et al. 2025), GATK (McKenna et al. 2010), and deepVariant (Poplin et al. 2018), can vary in their ability to detect structural variations and small insertions/deletions. For example, the deletion of the RHD gene (RHD*01N.01) is rarely detected in short-read data, and the 109 bp insertion in RHCE, which defines RHCE*02/*04, is often missed by deepVariant but detected more reliably in GATK-TGS workflows. These limitations can affect the resolution of key antigen systems. While the C antigen in RHCE can be classified at antigen level via coverage heuristics (Lane et al. 2018), full allele-level typing requires long-read sequencing. Similarly, RHD+/- status can be inferred via coverage, too.

bloodAGENT addresses some of these challenges by allowing flexible data input. Users can supplement primary variant calls with additional VCFs derived from orthogonal pipelines or custom coverage analysis scripts provided with the software. This enables adaptation to system-specific limitations and improves call reliability in paralogous regions. Importantly, this design ensures long-term compatibility with future sequencing technologies, including TGS platforms with improved error correction and structural variant detection.

A limitation of our benchmark lies in the nature of the reference data, which relied on molecular typing via MALDI-TOF for all systems except ABO, where an alternative molecular method, microarray-based genotyping (Wittig et al. 2024), was used. Serology remains the gold standard. In this study, large-scale evaluation was based on molecular reference data (e.g. HGDP cohort), and only a small-scale serological benchmark was available using four ITM donor samples. Wider availability of curated serological data, especially in public datasets like 1000 Genomes (Abecasis et al. 2012), would significantly improve future validations.

The limitations of our reference dataset were particularly evident in the MNS system. The applied minor MALDI-TOF panel (Gassner et al. 2013, Meyer et al. 2016) is not designed for detecting the NULL alleles GYPB*03N.02, GYPB*03N.03, and GYPB*03N.04. In contrast, bloodAGENT identified null alleles such as GYPB*03N.02, GYPB*03N.03, and GYPB*03N.04, particularly among African samples. For consistency in benchmarking, we merged these alleles under GYPB*03 to align with the MALDI-TOF output. This approach preserved comparability while acknowledging that bloodAGENT’s resolution exceeds that of the reference method. A full breakdown of affected genotypes is provided in Tables 3 and 4, available as supplementary data at Bioinformatics Advances online.

Beyond tool development, our findings emphasize the need for greater transparency in blood group variant curation. We encourage the ISBT community to share detailed phasing and variant data, particularly for rare and hybrid alleles. Current ISBT classifications do not account for all possible haplotype combinations, and databases such as Erythrogene (Möller et al. 2016) list many variant combinations without ISBT labels despite comprising known ISBT variants only. Capturing, naming, and benchmarking such haplotypes would significantly advance the field.

In conclusion, bloodAGENT demonstrates robustness under degraded input conditions and flexibility across sequencing platforms. Its modular architecture and support for supplementary data integration make it well-suited for ongoing use in both research and clinical settings. Future advances in variant detection, particularly for structural variation, will further improve allele-level typing accuracy in blood group genetics.

Supplementary Material

vbaf210_Supplementary_Data

Acknowledgements

The first author acknowledges the use of a large language model (ChatGPT-4o) for assistance in language refinement, grammar correction, and structural improvements in the manuscript. The final content was critically reviewed and approved by the authors in accordance with ISCB guidelines.

Contributor Information

Michael Wittig, Institute of Clinical Molecular Biology, Christian-Albrechts-University and University Medical Center Schleswig-Holstein, Kiel 24105, Germany.

Tim A Steiert, Institute of Clinical Molecular Biology, Christian-Albrechts-University and University Medical Center Schleswig-Holstein, Kiel 24105, Germany.

Christoph Gassner, Institute of Clinical Molecular Biology, Christian-Albrechts-University and University Medical Center Schleswig-Holstein, Kiel 24105, Germany; Institute of Translational Medicine, Private University in the Principality of Liechtenstein, Triesen 9495, Liechtenstein.

Andre Franke, Institute of Clinical Molecular Biology, Christian-Albrechts-University and University Medical Center Schleswig-Holstein, Kiel 24105, Germany.

Supplementary data

Supplementary data are available at Bioinformatics Advances online.

Conflict of interest

C.G. acts as a consultant to Inno-Train GmbH, Kronberg im Taunus, Germany, a provider of genotyping kits for molecular blood group diagnostics since 1998. C.G. holds the European and US patents P3545102 and US20190316189 on the “Determination of the genotype underlying the S-s-U-phenotype of the MNSs blood group system.”

Funding

This work was supported by the German Research Foundation (Deutsche Forschungsgemeinschaft, DFG) under Germany’s Excellence Strategy [EXC2167-Project ID 390884018]; the Research Infrastructure NGS_CC [project 407495230] as part of the Next Generation Sequencing Competence Network [project 423957469]; the Zentrales Innovationsprogramm Mittelstand, funded by the German Federal Ministry for Economic Affairs and Climate Action (BMWK) [KK5539401BA3]; the Institute of Translational Medicine at the Private University in the Principality of Liechtenstein by the Hans Groeber Stiftung (Vaduz, Principality of Liechtenstein); and the Tarom Foundation (Schaan, Principality of Liechtenstein).

Data availability

The data underlying this article was published by Bergström et al. (2020) and are available at https://ngs.sanger.ac.uk/production/hgdp/hgdp_wgs.20190516/. The software and test data are available at https://github.com/ikmb/bloodAGENT.

References

  1. Abecasis GR, Auton A, Brooks LD  et al. ; 1000 Genomes Project Consortium. An integrated map of genetic variation from 1,092 human genomes. Nature  2012;491:56–65. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Behera S, Catreux S, Rossi M  et al.  Comprehensive genome analysis and variant detection at scale using DRAGEN. Nat Biotechnol  2025;43:1177–91. 10.1038/s41587-024-02382-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Bergström A, McCarthy SA, Hui R, et al.  Insights into human genetic variation and population history from 929 diverse genomes. Science  2020;367:eaay5012. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Bonfield JK, Marshall J, Danecek P  et al.  HTSlib: C library for reading/writing high-throughput sequencing data. Gigascience  2021;10:giab007. 10.1093/gigascience/giab007 [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Bray T.  The javascript object notation (json) data interchange format. IETF  2017. 10.17487/RFC8259 [DOI] [Google Scholar]
  6. Castilho L.  Molecular typing of blood group genes in diagnostics. Ann Blood  2021;6. 10.21037/aob-20-73 [DOI] [Google Scholar]
  7. Ellinghaus D, Degenhardt F, Bujanda L  et al. , Severe Covid-19 GWAS Group. Genomewide association study of severe COVID-19 with respiratory failure. N Engl J Med  2020;383:1522–34. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Gassner C, Meyer S, Frey BM  et al.  Matrix-assisted laser desorption/ionisation, time-of-flight mass spectrometry-based blood group genotyping—the alternative approach. Transfus Med Rev  2013;27:2–9. [DOI] [PubMed] [Google Scholar]
  9. Han J, Kamber M, Pei J.  Getting to know your data. In: Han J, Kamber M, Pei J (eds.), Data Mining: concepts and Techniques. 3rd edn. San Francisco (CA: ): Morgan Kaufmann; 2011. p. 39–82. [Google Scholar]
  10. International Society of Blood Transfusion. Blood group allele tables. 2024. https://www.isbtweb.org/isbt-working-parties/rcibgt/blood-group-allele-tables.html (27 February 2025, date last accessed).
  11. Jadhao S, Davison CL, Roulis EV  et al.  RBCeq: a robust and scalable algorithm for accurate genetic blood typing. EBioMedicine  2022;76:103759. [DOI] [PMC free article] [PubMed] [Google Scholar]
  12. Karolchik D, Hinrichs AS, Furey TS  et al.  The UCSC table browser data retrieval tool. Nucleic Acids Res  2004;32:D493–6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Kent WJ, Zweig AS, Barber G  et al.  BigWig and BigBed: enabling browsing of large distributed datasets. Bioinformatics  2010;26:2204–7. 10.1093/bioinformatics/btq351 [DOI] [PMC free article] [PubMed] [Google Scholar]
  14. Lane William J, Westhoff Connie M, Gleadall Nicholas S, et al.  Automated typing of red blood cell and platelet antigens: a whole-genome sequencing study. Lancet Haematol  2018;5:e241– 51. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Martin M  et al.  WhatsHap: fast and accurate read-based phasing. bioRxiv, 10.1101/085050, 2016, preprint: not peer reviewed. [DOI]
  16. McKenna A, Hanna M, Banks E  et al.  The genome analysis toolkit: a MapReduce framework for analyzing next-generation DNA sequencing data. Genome Res  2010;20:1297–303. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Meyer S, Vollmert C, Trost N  et al.  MNSs genotyping by MALDI-TOF MS shows high concordance with serology, allows gene copy number testing and reveals new St(a) alleles. Br J Haematol  2016;174:624–36. [DOI] [PubMed] [Google Scholar]
  18. Möller M, Jöud M, Storry JR  et al.  Erythrogene: a database for in-depth analysis of the extensive variation in 36 blood group systems in the 1000 genomes project. Blood Adv  2016;1:240–9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Poplin R, Chang P-C, Alexander D  et al.  A universal SNP and small-indel variant caller using deep neural networks. Nat Biotechnol  2018;36:983–7. [DOI] [PubMed] [Google Scholar]
  20. Steiert Tim Alexander, Fuß Janina, Juzenas Simonas, et al.  High-throughput method for the hybridisation-based targeted enrichment of long genomic fragments for PacBio third-generation sequencing. NAR Genom Bioinform  2022; 4: lqac051. [DOI] [PMC free article] [PubMed] [Google Scholar]
  21. Wittig M  et al. Calling for diversity: improving transfusion safety through high-throughput blood group microarray genotyping. medRxiv, 10.1101/2023.12.15.23299980, 2024, preprint: not peer reviewed. [DOI] [PubMed]
  22. Zook JM, Catoe D, McDaniel J  et al.  Extensive sequencing of seven human genomes to characterize benchmark reference materials. Sci Data  2016;3:160025. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

vbaf210_Supplementary_Data

Data Availability Statement

The data underlying this article was published by Bergström et al. (2020) and are available at https://ngs.sanger.ac.uk/production/hgdp/hgdp_wgs.20190516/. The software and test data are available at https://github.com/ikmb/bloodAGENT.


Articles from Bioinformatics Advances are provided here courtesy of Oxford University Press

RESOURCES