scieee AI-readable full text Open interactive document viewer

HBAT 2: A Python Package to analyse Hydrogen Bonds and Other Non-covalent Interactions in Macromolecular Structures

Tiwari, Abhishek

Abstract

Hydrogen bonds and other non-covalent interactions play a crucial role in maintaining the structural integrity and functionality of biological macromolecules such as proteins and nucleic acids. Accurate identification and analysis of hydrogen bonds and other non-covalent interactions are essential for understanding molecular interactions, protein folding, and drug design. HBAT (Hydrogen Bond Analysis Tool) is a widely used software for analysing hydrogen bonds and other weak interactions in macromolecular structures. In this paper, we present HBAT 2, an updated Python reimplementation of the original HBAT tool.

Full text

HBAT 2: A Python Package to analyse Hydrogen Bonds and Other Non-covalent Interactions in Macromolecular Structures Abhishek Tiwari1* 1Independent Researcher * [email protected] Abstract Hydrogen bonds and other non-covalent interactions play a crucial role in maintaining the structural integrity and functionality of biological macromolecules such as proteins and nucleic acids. Accurate identification and analysis of hydrogen bonds and other non-covalent interactions are essential for understanding molecular interactions, protein folding, and drug design. HBAT (Hydrogen Bond Analysis Tool) is a widely used software for analysing hydrogen bonds and other weak interactions in macromolecular structures. In this paper, we present HBAT 2, an updated Python reimplementation of the original HBAT tool. DOI 10.5281/zenodo.17645321 Published 2025-11-18 Software •Code Repository •Documentation •PyPI Package 1 Summary 1 HBAT 2 is a Python package for automated analysis of hydrogen bonds and other 2 non-covalent interactions in macromolecular structures, available in Protein Data Bank 3 (PDB) file format. Originally developed in Perl/Tk and published in 2007 [1], HBAT 2 4 has been completely rewritten in Python. The software identifies and analyses 5 traditional hydrogen bonds, weak hydrogen bonds, halogen bonds, X-H· · ·π, and π-π6 stacking, and n→π* interactions using geometric criteria. It also detects cooperativity 7 and anticooperativity chains and renders them as 2D visualisations. The latest version 8 of HBAT offers improved cross-platform tkinter -based graphical user interface (GUI), a 9 simple command-line interface (CLI), and a developer-friendly API making it accessible 10 to users with different computational backgrounds and needs. 11 2 Statement of need 12 Hydrogen bonds and other non-covalent interactions are fundamental to protein 13 structure, stability, and function. With over 200,000 structures in the Protein Data 14 Bank [2], there is an increasing need for automated tools to analyse these interactions 15 systematically. 16 The landscape of hydrogen bond analysis tools is diverse but fragmented. Classic 17 tools like HBPLUS [3] and HBexplore [4] pioneered automated H-bond detection but 18 lack modern interfaces and support for a diverse range of interactions. More recent tools 19 serve specialized niches: PLIP [5] and Arpeggio [6] excel at protein-ligand interactions 20 but are web-based without standalone GUI options; HBonanza [7], HBCalculator [8],21 1/6 and BRIDGE2 [9] focus on molecular dynamics trajectories rather than static 22 structures; MDAnalysis [10], GROMACS [11], and AMBER [12] provide H-bond 23 analysis within larger MD suites. Tools like VMD [13] and ChimeraX [14] offer 24 interactive hydrogen bond visualisation but limited statistical analysis. ProteinTools 25 [15] provides web-based network analysis but lacks cross-platform desktop capabilities. 26 Despite this ecosystem, there remains a gap for a comprehensive and reliable 27 cross-platform desktop tool that: (1) analyses diverse interaction types beyond 28 canonical hydrogen bonds, (2) provides both graphical and command-line interfaces for 29 different user workflows, (3) identifies potential cooperativity, (4) integrates seamlessly 30 with the existing scientific ecosystem, and (5) supports flexible parameter customization 31 with domain-specific presets. 32 HBAT 2 addresses these limitations by providing a modern, Python implementation 33 that integrates seamlessly with contemporary structural biology workflows. The 34 software is particularly valuable for researchers in structural biology, computational 35 chemistry, and drug design who need detailed analysis of molecular interactions. 36 The original HBAT [1] was developed in Perl/Tk with a Windows-only GUI, limiting 37 its adoption in modern computational environments. This update addresses this 38 limitation by making HBAT 2 cross-platform with support for Windows, Linux, and 39 Mac. 40 Figure 1. The latest update to HBAT 2 uses tkinter to provide a cross-platform graphical user interface (GUI) 2/6 3 Key Enhancements 41 HBAT 2 introduces several key improvements over the original 2007 version: 42 3.1 Structure Preparation 43 HBAT 2 uses PDBFixer [16],[17] and OpenBabel [18] to automatically enhance 44 macromolecular structures by adding missing atoms, converting residues, and cleaning 45 up structural issues. These capabilities are particularly valuable when working with 46 crystal structures missing hydrogen atoms, low-resolution structures with incomplete 47 side chains, structures containing non-standard amino acid residues, and structures with 48 unwanted ligands or contaminants. This integration improves the quality of analysis. 49 3.2 Interaction Coverage 50 HBAT 2 analyses a broad spectrum of interactions including hydrogen bonds (O-H · · · O, 51 N-H· · ·O, N-H· · ·N, C-H···O), halogen bonds (C-X···Y where X=F,Cl,Br,I), X-H···π52 interactions with aromatic systems, π-πstacking [19],[20], carbonyl-carbonyl n→π*53 interactions [21],[22], and n→π* interactions [23]. This comprehensive approach 54 addresses the growing recognition of weak interactions’ importance in protein structure 55 and stability [24],[25],[26].56 3.3 Cooperativity Chains 57 HBAT 2 offers two ways to visualise hydrogen bond networks: NetworkX 58 [27]/Matplotlib [28] and GraphViz [29]. Unlike tools that provide only basic 59 visualisation (VMD, ChimeraX) or focus solely on MD trajectory dynamics (BRIDGE2, 60 HBonanza), HBAT 2 emphasises cooperativity chains and network topology in static 61 structures with customizable layouts and high-resolution export (PNG, SVG, PDF). 62 3.4 Parameter Presets 63 Built-in parameter sets optimised for different experimental conditions (high-resolution 64 X-ray, NMR, membrane proteins, drug design) address a common challenge in hydrogen 65 bond analysis. While other tools require manual parameter specification, HBAT’s preset 66 system makes it accessible to experimental structural biologists while maintaining 67 flexibility for computational experts. 68 3.5 Flexible Output 69 Multiple export formats (text, CSV, JSON) enable integration with downstream 70 analysis pipelines and statistical software. Combined with optional PDBFixer and 71 OpenBabel integration for automated hydrogen addition, HBAT 2 provides a complete 72 workflow from raw PDB files to publication-ready analyses. 73 4 Implementation 74 HBAT 2 employs a modular architecture with separate components for PDB parsing, 75 geometric analysis, statistical computation, and visualisation. The core analysis engine 76 uses efficient nearest-neighbor searching with configurable distance cutoffs, followed by 77 geometric filtering based on distance and angular criteria. 78 The software implements the same fundamental geometric approach as the original 79 version [1] but with optimised algorithms and improved handling. 80 3/6 Figure 2. An example visualisation of potential cooperativity chain generated by HBAT 2 software for Protein Data Bank (PDB) entry 6RSA 5 Impact and Applications 81 Since its original publication, HBAT has been cited in numerous studies of protein 82 structure and molecular recognition [1]. The latest update, however, extends this 83 impact by providing modern tools for structure-based drug design, protein engineering, 84 molecular dynamics analysis, crystallographic studies, and comparative structural 85 analysis. 86 The software’s preset configurations and flexible parameter system make it accessible 87 to both computational experts and experimental structural biologists, broadening its 88 potential user base compared to the original version. 89 6 Availability 90 HBAT 2 is freely available to download from GitHub and PyPI under the MIT license 91 with detailed user and API documentation. The software can be installed via PyPI 92 ( pip install hbat ) or via Conda ( conda install −c hbat hbat ), with optional GraphViz 93 integration for advanced visualization features. 94 7 Acknowledgements 95 The author thanks the original co-developer Sunil K. Panigrahi and acknowledges the 96 structural biology community for feedback that guided the modernization of HBAT. 97 4/6 References 98 [1] A. Tiwari and S. K. Panigrahi, “HBAT: A complete package for analysing strong and weak hydrogen bonds in macromolecular crystal structures,” In Silico Biology, vol. 7, no. 6, pp. 651–661, 2007, doi: 10.3233/ISI-2007-00337. 99 [2] H. M. Berman et al., “The protein data bank,” Nucleic acids research, vol. 28, no. 1, pp. 235–242, 2000. 100 [3] I. K. McDonald and J. M. Thornton, “Satisfying hydrogen bonding potential in proteins,” Journal of molecular biology, vol. 238, no. 5, pp. 777–793, 1994. 101 [4] K. Lindauer, C. Bendic, and J. S¨uhnel, “HBexplore–a new tool for identifying and analysing hydrogen bonding patterns in biological macromolecules,” Computer applications in the biosciences: CABIOS, vol. 12, no. 4, pp. 281–289, 1996. 102 [5] S. Salentin, S. Schreiber, V. J. Haupt, M. F. Adasme, and M. Schroeder, “PLIP: Fully automated protein–ligand interaction profiler,” Nucleic Acids Research, vol. 43, no. W1, pp. W443–W447, Jul. 2015, doi: 10.1093/nar/gkv315. 103 [6] H. C. Jubb, A. P. Higueruelo, B. Ochoa-Monta˜no, W. R. Pitt, D. B. Ascher, and T. L. Blundell, “Arpeggio: A Web Server for Calculating and Visualising Interatomic Interactions in Protein Structures,” Journal of Molecular Biology, vol. 429, no. 3, pp. 365–371, Feb. 2017, doi: 10.1016/j.jmb.2016.12.004. 104 [7] J. D. Durrant and J. A. McCammon, “HBonanza: A Computer Algorithm for Molecular-Dynamics-Trajectory Hydrogen-Bond Analysis,” Journal of molecular graphics & modelling, vol. 31, pp. 5–9, Nov. 2011, doi: 10.1016/j.jmgm.2011.07.008. 105 [8] Y. Wang and Y. Wang, “HBCalculator: A Tool for Hydrogen Bond Distribution Calculations in Molecular Dynamics Simulations,” Journal of Chemical Information and Modeling, vol. 64, no. 6, pp. 1772–1777, Mar. 2024, doi: 10.1021/acs.jcim.4c00054. 106 [9] M. Siemers and A.-N. Bondar, “Interactive Interface for Graph-Based Analyses of Dynamic H-Bond Networks: Application to Spike Protein S,” Journal of Chemical Information and Modeling, vol. 61, no. 6, pp. 2998–3014, Jun. 2021, doi: 10.1021/acs.jcim.1c00306. 107 [10] “4.3.1. Hydrogen Bond Analysis — MDAnalysis.analysis.hydrogenbonds.hbond analysis — MDAnalysis 1.1.0 documentation.” Accessed: Aug. 08, 2025. [Online]. Available: https://docs.mdanalysis.org/ 1.1.0/documentation_pages/analysis/hydrogenbonds.html 108 [11] “Gmx hbond - GROMACS 2025.2 documentation.” Accessed: Aug. 08, 2025. [Online]. Available: https://manual.gromacs.org/current/onlinehelp/ gmx-hbond.html 109 [12] “Hbond – AMBER.” May 2020. Accessed: Aug. 08, 2025. [Online]. Available: https://amberhub.chpc.utah.edu/hbond/ 110 [13] “VMD HBonds Plugin, Version 1.2.” Accessed: Aug. 08, 2025. [Online]. Available: https://www.ks.uiuc.edu/Research/vmd/plugins/hbonds/ 111 [14] “Tool: H-Bonds.” Accessed: Aug. 08, 2025. [Online]. Available: https://www. cgl.ucsf.edu/chimerax/docs/user/tools/hbonds.html 112 [15] N. Ferruz, S. Schmidt, and B. H¨ocker, “ProteinTools: A toolkit to analyze protein structures,” Nucleic Acids Research, vol. 49, no. W1, pp. W559–W566, Jul. 2021, doi: 10.1093/nar/gkab375. 113 [16] “Openmm/pdbfixer.” OpenMM, Aug. 2025. Accessed: Aug. 08, 2025. [Online]. Available: https://github.com/openmm/pdbfixer 114 5/6 [17] P. Eastman et al., “OpenMM 4: A Reusable, Extensible, Hardware Independent Library for High Performance Molecular Simulation,” Journal of Chemical Theory and Computation, vol. 9, no. 1, pp. 461–469, Jan. 2013, doi: 10.1021/ct300857j. 115 [18] N. M. O’Boyle, C. Morley, and G. R. Hutchison, “Pybel: A Python wrapper for the OpenBabel cheminformatics toolkit,” Chemistry Central Journal, vol. 2, no. 1, p. 5, Dec. 2008, doi: 10.1186/1752-153X-2-5. 116 [19] G. B. McGaughey, M. Gagn´e, and A. K. Rapp´e, “ π -Stacking Interactions: ALIVE AND WELL IN PROTEINS*,” Journal of Biological Chemistry, vol. 273, no. 25, pp. 15458–15463, Jun. 1998, doi: 10.1074/jbc.273.25.15458. 117 [20] R. M. Vernon et al., “Pi-Pi contacts are an overlooked protein feature relevant to phase separation,” eLife, vol. 7, p. e31486, doi: 10.7554/eLife.31486. 118 [21] A. Rahim, P. Saha, K. K. Jha, N. Sukumar, and B. K. Sarma, “Reciprocal carbonyl–carbonyl interactions in small molecules and proteins,” Nature Communications, vol. 8, no. 1, p. 78, Jul. 2017, doi: 10.1038/s41467-017-00081-x. 119 [22] R. W. Newberry and R. T. Raines, “The n→ π * Interaction,” Accounts of Chemical Research, vol. 50, no. 8, pp. 1838–1846, Aug. 2017, doi: 10.1021/acs.accounts.7b00121. 120 [23] A. Choudhary, D. Gandla, G. R. Krow, and R. T. Raines, “Nature of Amide Carbonyl-Carbonyl Interactions in Proteins,” Journal of the American Chemical Society, vol. 131, no. 21, pp. 7244–7246, Jun. 2009, doi: 10.1021/ja901188y. 121 [24] G. Desiraju and T. Steiner, The Weak Hydrogen Bond. Oxford University Press, 2001. doi: 10.1093/acprof:oso/9780198509707.001.0001. 122 [25] G. Cavallo et al., “The Halogen Bond,” Chemical Reviews, vol. 116, no. 4, pp. 2478–2601, Feb. 2016, doi: 10.1021/acs.chemrev.5b00484. 123 [26] M. Brandl, M. S. Weiss, A. Jabs, J. S¨uhnel, and R. Hilgenfeld, “C-h? π -interactions in proteins,” Journal of Molecular Biology, vol. 307, no. 1, pp. 357–377, Mar. 2001, doi: 10.1006/jmbi.2000.4473. 124 [27] A. Hagberg, P. Swart, and D. S. Chult, “Exploring network structure, dynamics, and function using NetworkX,” in Proceedings of the 7th python in science conference, Pasadena, CA USA, 2008, pp. 11–15. 125 [28] J. D. Hunter, “Matplotlib: A 2D graphics environment,” Computing in science & engineering, vol. 9, no. 3, pp. 90–95, 2007, doi: 10.1109/MCSE.2007.55. 126 [29] Graphviz Contributors, “Graphviz - graph visualization software.” https:// graphviz.org/, 2024. 127 6/6