bioRxiv Science⌕ Search

bioRxiv · 10.1101/2025.10.14.682303

PyMSQ: a python package for fast Mendelian sampling (co)variance and haplotype-based similarity in genomic selection

Abstract

BackgroundWhile genomic selection (GS) 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 research has emphasized Mendelian sampling variance (MSV) and covariance (MSC), which capture within-family (co)variation not fully reflected in GEBVs. 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. ResultsWe present PyMSQ, an open-source Python package 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 metric. By combining this matrix-based framework with optimized scientific libraries, PyMSQ achieves up to 332-fold faster computations than gamevar--a publicly available alternative--while preserving numerical accuracy. Using a Holstein-Friesian dataset, we demonstrate PyMSQs 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. ConclusionBy facilitating the practical use of MSV, MSC, and a haplotype-based similarity metric, PyMSQ 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. PyMSQ is freely available under an MIT License at https://github.com/aromemusa/PyMSQ.

Source connections

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Musa, A. A., Reinsch, N.. 2025-10-15. PyMSQ: a python package for fast Mendelian sampling (co)variance and haplotype-based similarity in genomic selection. https://doi.org/10.1101/2025.10.14.682303

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

OPA1 controls mitochondrial dysfunction-driven liver fibrosis in MASLD

Progressive hepatic fibrosis is the principal determinant of morbidity and mortality in metabolic dysfunction-associated steatotic liver disease and steatohepatitis (MASLD/MASH). Mitochondrial dysfunction is a hallmark of MASH, and the release of mitochondrial damage-associated molecular patterns (mito-DAMPs) from injured hepatocytes can promote fibrosis. However, how mitochondrial dynamics and quality control shape the fibrotic response in MASLD/MASH remains unclear. Here, through large-scale genomic analyses of mitochondrial genes governing mitophagy, fusion and fission in human MASLD, with a power-equivalent sample size of approximately 700,000 individuals, we identify a strong association between hepatic fibrosis and the mitochondrial fusion factor dynamin-like GTPase optic atrophy 1 (OPA1). OPA1 transcripts and protein abundance in the liver epithelium were progressively dysregulated with advancing fibrosis. In mice, hepatocyte-specific OPA1 loss alone was sufficient to induce hepatic stellate cell activation and fibrosis in zone 3, promoted the release of mito-DAMPs into the circulation and exacerbated fibrosis in experimental MASH. These findings identify OPA1 as a central regulator of the hepatic fibrotic response and connect defective mitochondrial homeostasis to mito-DAMP release, hepatic stellate cell activation and fibrosis in MASLD.

genetics↗

Temporal control of mitochondrial mutagenesis reveals the fate of mtDNA mutations with age

Mutations in the mitochondrial genome (mtDNA) play a critical role in the aging process and a wide variety of age-related diseases. However, it remains unclear when the mutations that drive physiological decline arise. To answer this question, we generated a new mouse model in which mitochondrial mutagenesis can be confined to a defined window of time. Surprisingly, we found that mutations that arise during the first two months of life are sufficient to drive a wide variety of age-related pathologies, and that the severity of this pathology is broadly regulated by distinct, tissue-specific selective pressures that control the fate of mtDNA mutations with age. Further, we found that selection against deleterious variants can be modulated by manipulation of mitochondrial fusion in vitro and in vivo. These observations raise the possibility that in some tissues, the pace of aging is pre-determined by events that occur early in life and that interventions targeting mitochondrial fusion may be able to slow down or reverse the expansion of these pathogenic variants. These results carry far-reaching implications for strategies aimed at preventing or delaying age-related decline.

genetics↗

Innate immune stress pathway activation underlies heterochromatin dysfunction pathology

Heterochromatin loss disrupts nuclear architecture, gene regulation and repetitive element silencing, and is associated with diverse human diseases. However, mechanisms linking heterochromatin dysfunction to pathological phenotypes remain unclear. Using genetic interaction screening and genomic analyses in C. elegans, we identify secondary activation of the Intracellular Pathogen Response (IPR), an innate immune stress pathway, as a major contributor to heterochromatin mutant phenotypes. Constitutive IPR activation phenocopies slow growth and indirect transcriptional changes observed in these mutants. Depletion of genetic enhancers further increased, whereas suppressor RNAi attenuated IPR activation, with direct heterochromatin targets remaining substantially deregulated. Notably, many suppressors encode active chromatin components, and mild reduction of RNA polymerase II activity ameliorates growth defects in C. elegans HP1 mutants and human HP1-deficient cells. Our findings reveal secondary stress response activation as an important mechanism linking heterochromatin dysfunction to pathology and identify transcriptional dampening as a potential therapeutic strategy for mitigating these effects.

genetics↗