HapNet: a new python package for automated population-aware haplotype network analysis and visualization.

IF 0.6
Andrew A Davinack
{"title":"HapNet: a new python package for automated population-aware haplotype network analysis and visualization.","authors":"Andrew A Davinack","doi":"10.1080/24701394.2026.2705539","DOIUrl":null,"url":null,"abstract":"<p><p>Haplotype networks are widely used in population genetics, phylogeography, and molecular ecology to visualize relationships among DNA sequences and summarize patterns of population connectivity. Existing tools vary in interface, algorithmic approach, input requirements, and output format. Here, I introduce HapNet, an open-source Python command-line package for constructing population-aware, minimum-spanning-tree-based haplotype graphs from aligned FASTA files. HapNet collapses identical sequences into haplotypes, calculates Hamming distances among haplotypes, constructs an MST-based graph, and generates publication-ready visualizations in which node size reflects haplotype frequency and pie-chart sectors indicate population composition. HapNet also produces machine-readable tabular outputs documenting haplotype membership, shared and private haplotypes, individual assignments, summary statistics, and run metadata. This version adds optional metadata input, phased diploid sequence support, individual-level genotype summaries, and label-free figure export. Utility is demonstrated using a published <i>Hydroides dianthus</i> COI dataset and a simulated phased diploid dataset.</p>","PeriodicalId":74204,"journal":{"name":"Mitochondrial DNA. Part A, DNA mapping, sequencing, and analysis","volume":" ","pages":"130-136"},"PeriodicalIF":0.6000,"publicationDate":"2026-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Mitochondrial DNA. Part A, DNA mapping, sequencing, and analysis","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1080/24701394.2026.2705539","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/20 0:00:00","PubModel":"Epub","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Haplotype networks are widely used in population genetics, phylogeography, and molecular ecology to visualize relationships among DNA sequences and summarize patterns of population connectivity. Existing tools vary in interface, algorithmic approach, input requirements, and output format. Here, I introduce HapNet, an open-source Python command-line package for constructing population-aware, minimum-spanning-tree-based haplotype graphs from aligned FASTA files. HapNet collapses identical sequences into haplotypes, calculates Hamming distances among haplotypes, constructs an MST-based graph, and generates publication-ready visualizations in which node size reflects haplotype frequency and pie-chart sectors indicate population composition. HapNet also produces machine-readable tabular outputs documenting haplotype membership, shared and private haplotypes, individual assignments, summary statistics, and run metadata. This version adds optional metadata input, phased diploid sequence support, individual-level genotype summaries, and label-free figure export. Utility is demonstrated using a published Hydroides dianthus COI dataset and a simulated phased diploid dataset.

一个新的python包,用于自动感知人口的单倍型网络分析和可视化。
单倍型网络被广泛应用于群体遗传学、系统地理学和分子生态学中,用于可视化DNA序列之间的关系和总结群体连接模式。现有的工具在接口、算法方法、输入要求和输出格式方面各不相同。在这里,我将介绍HapNet,这是一个开源Python命令行包,用于从对齐的FASTA文件构建种群感知的、基于最小生成树的单倍型图。HapNet将相同的序列分解成单倍型,计算单倍型之间的汉明距离,构建基于mst的图,并生成可发表的可视化图,其中节点大小反映单倍型频率,饼图扇区表示种群组成。HapNet还生成机器可读的表格输出,记录单倍型成员、共享和私有单倍型、个人分配、汇总统计和运行元数据。这个版本增加了可选的元数据输入,分阶段二倍体序列支持,个人水平的基因型摘要,和无标签图导出。使用已发布的石龙花COI数据集和模拟的分阶段二倍体数据集演示了实用程序。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书