{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,24]],"date-time":"2026-02-24T11:20:39Z","timestamp":1771932039048,"version":"3.50.1"},"reference-count":32,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2026,2,14]],"date-time":"2026-02-14T00:00:00Z","timestamp":1771027200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2026,2,24]],"date-time":"2026-02-24T00:00:00Z","timestamp":1771891200000},"content-version":"vor","delay-in-days":10,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"Forschungsinstitut f\u00fcr Nutztierbiologie (FBN)"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["BMC Bioinformatics"],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:sec>\n                    <jats:title>Background<\/jats:title>\n                    <jats:p>While genomic selection boosts rapid genetic gains by leveraging dense marker data for genomic estimated breeding values (GEBVs), prolonged application can reduce haplotype diversity and increase inbreeding. To address these risks, recent studies indicate that selecting on Mendelian sampling variance (MSV) and covariance (MSC) can partly mitigate the loss of genetic variation by exploiting within-family (co)segregation not captured by GEBVs alone. In parallel, theoretical advances have introduced a haplotype-based similarity measure that targets shared heterozygous segments, enabling more direct control over haplotype diversity, either standalone or in combination with conventional coancestry-based and genomic relationship matrices.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>\n                      We present\n                      <jats:italic>PyMSQ<\/jats:italic>\n                      , an open-source Python package for estimating Mendelian sampling\u2013related quantities that implements two key developments: (1) a matrix-based approach for computing MSV and MSC in single-trait, multi-trait, and zygotic contexts, and (2) a haplotype-based similarity matrix between parental Mendelian sampling terms. By combining this matrix-based framework with optimized scientific libraries,\n                      <jats:italic>PyMSQ<\/jats:italic>\n                      achieves up to 332-fold faster computations than\n                      <jats:italic>gamevar<\/jats:italic>\n                      , a publicly available alternative, while preserving numerical accuracy. Using a Holstein\u2013Friesian dataset, we demonstrate\n                      <jats:italic>PyMSQ<\/jats:italic>\n                      \u2019s effectiveness in deriving MSV and MSC, as well as its novel similarity measure, which complements standard genomic relationship matrices by explicitly quantifying shared heterozygous segments rather than overall allele sharing, thereby providing additional insights for balancing immediate gains with long-term diversity.\n                    <\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusion<\/jats:title>\n                    <jats:p>\n                      By facilitating the practical use of MSV, MSC, and a haplotype-based similarity metric,\n                      <jats:italic>PyMSQ<\/jats:italic>\n                      enables breeders and quantitative geneticists to adopt haplotype diversity constraints, whether as a standalone criterion or in synergy with optimal contribution selection. This framework opens new possibilities for preserving key haplotypic segments, ultimately supporting more sustainable genomic selection strategies.\n                      <jats:italic>PyMSQ<\/jats:italic>\n                      is freely available under an MIT License at\n                      <jats:ext-link xmlns:xlink=\"http:\/\/www.w3.org\/1999\/xlink\" xlink:href=\"https:\/\/github.com\/aromemusa\/PyMSQ\" ext-link-type=\"uri\">https:\/\/github.com\/aromemusa\/PyMSQ<\/jats:ext-link>\n                      .\n                    <\/jats:p>\n                  <\/jats:sec>","DOI":"10.1186\/s12859-026-06392-5","type":"journal-article","created":{"date-parts":[[2026,2,14]],"date-time":"2026-02-14T03:34:00Z","timestamp":1771040040000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["PyMSQ: a Python package for fast Mendelian sampling (co)variance and haplotype-based similarity in genomic selection"],"prefix":"10.1186","volume":"27","author":[{"given":"Abdulraheem Arome","family":"Musa","sequence":"first","affiliation":[]},{"given":"Norbert","family":"Reinsch","sequence":"additional","affiliation":[]}],"member":"297","published-online":{"date-parts":[[2026,2,14]]},"reference":[{"key":"6392_CR1","doi-asserted-by":"publisher","first-page":"1819","DOI":"10.1093\/genetics\/157.4.1819","volume":"157","author":"THE Meuwissen","year":"2001","unstructured":"Meuwissen THE, Hayes BJ, Goddard ME. Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001;157:1819\u201329.","journal-title":"Genetics"},{"key":"6392_CR2","doi-asserted-by":"publisher","first-page":"1297","DOI":"10.1038\/ng.3920","volume":"49","author":"JM Hickey","year":"2017","unstructured":"Hickey JM, Chiurugwi T, Mackay I, Powell W. Genomic prediction unifies animal and plant breeding programs to form platforms for biological discovery. Nat Genet. 2017;49:1297\u2013303.","journal-title":"Nat Genet"},{"key":"6392_CR3","doi-asserted-by":"publisher","first-page":"218","DOI":"10.1111\/j.1439-0388.2006.00595.x","volume":"123","author":"LR Schaeffer","year":"2006","unstructured":"Schaeffer LR. Strategy for applying genome-wide selection in dairy cattle. J Anim Breed Genet. 2006;123:218\u201323.","journal-title":"J Anim Breed Genet"},{"key":"6392_CR4","doi-asserted-by":"publisher","DOI":"10.1186\/s12711-015-0101-0","volume":"47","author":"H Liu","year":"2015","unstructured":"Liu H, Meuwissen TH, S\u00f8rensen AC, Berg P. Upweighting rare favourable alleles increases long-term genetic gain in genomic selection programs. Genet Sel Evol. 2015;47:19.","journal-title":"Genet Sel Evol"},{"key":"6392_CR5","doi-asserted-by":"publisher","first-page":"1","DOI":"10.3835\/plantgenome2015.06.0046","volume":"9","author":"Z Lin","year":"2016","unstructured":"Lin Z, Cogan NOI, Pembleton LW, Spangenberg GC, Forster JW, Hayes BJ, et al. Genetic gain and inbreeding from genomic selection in a simulated commercial breeding program for perennial ryegrass. Plant Genome. 2016;9:1\u201312.","journal-title":"Plant Genome"},{"key":"6392_CR6","doi-asserted-by":"publisher","first-page":"1","DOI":"10.3835\/plantgenome2014.10.0074","volume":"8","author":"J Rutkoski","year":"2015","unstructured":"Rutkoski J, Singh RP, Huerta-Espino J, Bhavani S, Poland J, Jannink JL, et al. Genetic gain from phenotypic and genomic selection for quantitative resistance to stem rust of wheat. Plant Genome. 2015;8:1\u201310.","journal-title":"Plant Genome"},{"key":"6392_CR7","doi-asserted-by":"publisher","first-page":"2068","DOI":"10.2135\/cropsci2015.01.0030","volume":"55","author":"M Mohammadi","year":"2015","unstructured":"Mohammadi M, Tiede T, Smith KP. Popvar: a genome-wide procedure for predicting genetic variance and correlated response in biparental breeding populations. Crop Sci. 2015;55:2068\u201377.","journal-title":"Crop Sci"},{"key":"6392_CR8","doi-asserted-by":"publisher","DOI":"10.1186\/1297-9686-46-42","volume":"46","author":"D Segelke","year":"2014","unstructured":"Segelke D, Reinhardt F, Liu Z, Thaller G. Prediction of expected genetic variation within groups of offspring for innovative mating schemes. Genet Sel Evol. 2014;46:42.","journal-title":"Genet Sel Evol"},{"key":"6392_CR9","doi-asserted-by":"publisher","first-page":"446","DOI":"10.1111\/j.1439-0388.2011.00922.x","volume":"128","author":"JB Cole","year":"2011","unstructured":"Cole JB, VanRaden PM. Use of haplotypes to estimate Mendelian sampling effects and selection limits. J Anim Breed Genet. 2011;128:446\u201355.","journal-title":"J Anim Breed Genet"},{"key":"6392_CR10","doi-asserted-by":"publisher","first-page":"2586","DOI":"10.2135\/cropsci2014.01.0088","volume":"54","author":"R Bernardo","year":"2014","unstructured":"Bernardo R. Genomewide selection of parental inbreds: classes of loci and virtual biparental populations. Crop Sci. 2014;54:2586\u201395.","journal-title":"Crop Sci"},{"key":"6392_CR11","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1186\/s12711-016-0214-0","volume":"48","author":"S Bonk","year":"2016","unstructured":"Bonk S, Reichelt M, Teuscher F, Segelke D, Reinsch N. Mendelian sampling covariability of marker effects and genetic values. Genet Sel Evol. 2016;48:1\u201311.","journal-title":"Genet Sel Evol"},{"key":"6392_CR12","doi-asserted-by":"publisher","first-page":"91","DOI":"10.1534\/genetics.119.302643","volume":"214","author":"P Bijma","year":"2020","unstructured":"Bijma P, Wientjes YCJ, Calus MPL. Breeding top genotypes and accelerating response to gametic variance. Genetics. 2020;214:91\u2013107.","journal-title":"Genetics"},{"key":"6392_CR13","doi-asserted-by":"publisher","first-page":"1651","DOI":"10.1534\/genetics.117.300403","volume":"207","author":"C Lehermeier","year":"2017","unstructured":"Lehermeier C, Teyss\u00e8dre S, Sch\u00f6n CC. Genetic gain increases by applying the usefulness criterion with improved variance prediction in selection of crosses. Genetics. 2017;207:1651\u201361.","journal-title":"Genetics"},{"key":"6392_CR14","doi-asserted-by":"publisher","DOI":"10.1111\/jbg.12930","author":"AA Musa","year":"2025","unstructured":"Musa AA, Reinsch N. A similarity matrix for preserving haplotype diversity amongst parents in genomic selection. J Anim Breed Genet. 2025. https:\/\/doi.org\/10.1111\/jbg.12930.","journal-title":"J Anim Breed Genet"},{"key":"6392_CR15","doi-asserted-by":"publisher","first-page":"1","DOI":"10.3389\/fgene.2019.00667","volume":"10","author":"R Wellmann","year":"2019","unstructured":"Wellmann R, Bennewitz J. Key genetic parameters for population management. Front Genet. 2019;10:1\u201320.","journal-title":"Front Genet"},{"key":"6392_CR16","doi-asserted-by":"crossref","unstructured":"Wolfe MD, Chan AW, Kulakow P, Rabbi I, Jannink JL. Genomic mating in outbred species: Predicting cross usefulness with additive and total genetic covariance matrices. Genetics. 2021;219.","DOI":"10.1093\/genetics\/iyab122"},{"key":"6392_CR17","doi-asserted-by":"publisher","first-page":"3153","DOI":"10.1534\/g3.119.400406","volume":"9","author":"JL Neyhart","year":"2019","unstructured":"Neyhart JL, Lorenz AJ, Smith KP. Multi-trait improvement by predicting genetic correlations in breeding crosses. G3 Genes|Genomes|Genetics. 2019;9:3153\u201365.","journal-title":"G3 Genes|Genomes|Genetics"},{"key":"6392_CR18","doi-asserted-by":"publisher","first-page":"1","DOI":"10.3389\/fgene.2019.01006","volume":"10","author":"A Allier","year":"2019","unstructured":"Allier A, Lehermeier C, Charcosset A, Moreau L, Teyss\u00e8dre S. Improving short-and long-term genetic gain by accounting for within-family variance in optimal cross-selection. Front Genet. 2019;10:1\u201315.","journal-title":"Front Genet"},{"key":"6392_CR19","doi-asserted-by":"crossref","unstructured":"Niehoff TAM, ten Napel J, Bijma P, Pook T, Wientjes YCJ, Heged\u0171s B, et al. Improving selection decisions with mating information by accounting for Mendelian sampling variances looking two generations ahead. Genet Sel Evol. 2024;56.","DOI":"10.1186\/s12711-024-00899-2"},{"key":"6392_CR20","doi-asserted-by":"crossref","unstructured":"Musa AA, Reinsch N. Hedging genetic diversity using a similarity matrix based on Mendelian sampling. In: Proceedings of 12th World Congress on Genetics Applied to Livestock Production (WCGALP). 2022. p. 936\u20139.","DOI":"10.3920\/978-90-8686-940-4_220"},{"key":"6392_CR21","first-page":"201","volume":"93","author":"N Reinsch","year":"2021","unstructured":"Reinsch N, Musa AA. Neue Kriterien f\u00fcr die genomische Selektion. Zuchtungskunde. 2021;93:201\u20139.","journal-title":"Zuchtungskunde"},{"key":"6392_CR22","doi-asserted-by":"publisher","first-page":"1","DOI":"10.3389\/fgene.2016.00210","volume":"7","author":"D Akdemir","year":"2016","unstructured":"Akdemir D, S\u00e1nchez JI. Efficient breeding by genomic mating. Front Genet. 2016;7:1\u201312.","journal-title":"Front Genet"},{"key":"6392_CR23","doi-asserted-by":"publisher","first-page":"5279","DOI":"10.3168\/jds.2018-15971","volume":"102","author":"DJA Santos","year":"2019","unstructured":"Santos DJA, Cole JB, Lawlor TJ, VanRaden PM, Tonhati H, Ma L. Variance of gametic diversity and its application in selection programs. J Dairy Sci. 2019;102:5279\u201394.","journal-title":"J Dairy Sci"},{"key":"6392_CR24","doi-asserted-by":"publisher","first-page":"3","DOI":"10.1186\/s12859-020-3417-x","volume":"21","author":"DJ De Abreu Santos","year":"2020","unstructured":"De Abreu Santos DJ, Cole JB, Liu GE, Vanraden PM, Ma L. Gamevar.f90: a software package for calculating individual gametic diversity. BMC Bioinformatics. 2020;21:3\u20137.","journal-title":"BMC Bioinformatics"},{"key":"6392_CR25","first-page":"299","volume":"8","author":"JBS Haldane","year":"1919","unstructured":"Haldane JBS. The combination of linkage values and the calculation of distances between the loci of linked factors. J Genet. 1919;8:299\u2013309.","journal-title":"J Genet"},{"key":"6392_CR26","doi-asserted-by":"publisher","first-page":"1173","DOI":"10.1534\/g3.118.200091","volume":"8","author":"D M\u00fcller","year":"2018","unstructured":"M\u00fcller D, Schopp P, Melchinger AE. Selection on expected maximum haploid breeding values can increase genetic gain in recurrent genomic selection. G3 Genes|Genomes|Genetics. 2018;8:1173\u201381.","journal-title":"G3 Genes|Genomes|Genetics"},{"key":"6392_CR27","doi-asserted-by":"publisher","DOI":"10.1371\/journal.pone.0070256","volume":"8","author":"N Melzer","year":"2013","unstructured":"Melzer N, Wittenburg D, Repsilber D. Integrating milk metabolite profile information for the prediction of traditional milk traits based on SNP information for Holstein cows. PLoS ONE. 2013;8:e70256.","journal-title":"PLoS ONE"},{"key":"6392_CR28","doi-asserted-by":"publisher","DOI":"10.3389\/fgene.2018.00186","volume":"9","author":"A Hampel","year":"2018","unstructured":"Hampel A, Teuscher F, Gomez-Raya L, Doschoris M, Wittenburg D. Estimation of recombination rate and maternal linkage disequilibrium in half-sibs. Front Genet. 2018;9:186.","journal-title":"Front Genet"},{"key":"6392_CR29","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-24277-4","volume-title":"ggplot2: Elegant Graphics for Data Analysis","author":"H Wickham","year":"2016","unstructured":"Wickham H. ggplot2: Elegant Graphics for Data Analysis. New York: Springer-Verlag; 2016."},{"key":"6392_CR30","unstructured":"Wei T, Viliam S. R package \u201ccorrplot\u201d: Visualization of a Correlation Matrix. R package version 0.92; 2021. https:\/\/github.com\/taiyun\/corrplot. 2021."},{"key":"6392_CR31","doi-asserted-by":"publisher","first-page":"1911","DOI":"10.2527\/2003.8181911x","volume":"81","author":"G Thaller","year":"2003","unstructured":"Thaller G, Kr\u00e4mer W, Winter A, Kaupe B, Erhardt G, Fries R. Effects of DGAT1 variants on milk production traits in German cattle breeds. J Anim Sci. 2003;81:1911\u20138.","journal-title":"J Anim Sci"},{"key":"6392_CR32","unstructured":"Musa AA, Reinsch N. Unravelling the Potential of Mendelian Covariability for Multi-Trait Genomic Selection. In: Proceedings of the 35th Annual Conference of the Society for Animal Sciences (GfT) and the German Society for Animal Production (DGfZ). Halle, Germany; 2023."}],"container-title":["BMC Bioinformatics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/article\/10.1186\/s12859-026-06392-5","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1186\/s12859-026-06392-5.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1186\/s12859-026-06392-5.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,2,24]],"date-time":"2026-02-24T10:34:41Z","timestamp":1771929281000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1186\/s12859-026-06392-5"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,2,14]]},"references-count":32,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2026,12]]}},"alternative-id":["6392"],"URL":"https:\/\/doi.org\/10.1186\/s12859-026-06392-5","relation":{},"ISSN":["1471-2105"],"issn-type":[{"value":"1471-2105","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,2,14]]},"assertion":[{"value":"12 May 2025","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"29 January 2026","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"14 February 2026","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"Not applicable.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Ethics approval and consent to participate"}},{"value":"Not applicable.","order":3,"name":"Ethics","group":{"name":"EthicsHeading","label":"Consent for publication"}},{"value":"The authors declare that they have no competing interests.","order":4,"name":"Ethics","group":{"name":"EthicsHeading","label":"Competing interests"}}],"article-number":"50"}}