Ssgblup-dominance: Python code for additive and dominance relationship matrices in single-step GBLUP
ssgblup-dominance is a Python package to build the relationship matrices needed to fit additive and dominance effects in single-step genomic BLUP (ssGBLUP). From a pedigree file and SNP genotypes, it produces the inverse single-step relationship matrices for additive (H_A⁻¹) and dominance (H_D⁻¹) effects. These can be supplied directly to mixed-model software, such as the BLUPF90 family of programs, as user-defined inverse relationship matrices. Main features Pedigree validation and parents-first renumbering, with warnings for self-parenting, identical sire and dam, and pedigree loops. Pedigree inbreeding (Meuwissen & Luo, 1992), sparse A⁻¹ (Henderson, 1976) and A₂₂ for genotyped animals (Colleau, 2002). Pedigree dominance inverse D⁻¹ and D₂₂ under the full-sib family approximation (VanRaden et al., 1992), accounting for inbreeding. Genomic additive (VanRaden, 2008) and dominance (Vitezica et al., 2013) relationship matrices, with missing genotypes handled. Five tuning strategies to align genomic and pedigree matrices: Christensen et al. (2012), Legarra (2016), Powell et al. (2010), Vitezica et al. (2011), or no tuning. Tuning is chosen independently for the additive and the dominance matrices. Blending with the pedigree matrix and assembly of H⁻¹ (Aguilar et al., 2010; Mota et al., 2019). Numba-compiled routines for large pedigrees, and an optional export of intermediate matrices. Contents ssgblup_dom/: source code. scripts/run_pipeline.py: command-line interface. examples/simulate_data.py: generates a small simulated pedigree with full-sib families and genotypes. tests/test_matrices.py: checks every matrix against dense textbook computations. docs/methods.md: formulas and implementation notes. Requirements: Python ≥ 3.9, numpy, pandas, scipy and numba. This code was developed for the article "Dominance-inclusive ssGBLUP for age at first calving in Girolando cattle" ( Santos et al., under review). It is general and can be applied to any population with pedigree and genotype data. The Girolando data used in the article are not included.
Authors
- Marcos Vinícius Gualberto Barbosa da Silva (ORCID: https://orcid.org/0000-0001-5449-1413)
- Mateus Guimarães dos Santos (ORCID: https://orcid.org/0000-0002-6475-9951)
- Guilherme J. M. Rosa (ORCID: https://orcid.org/0000-0001-9172-6461)
- Renata Veroneze (ORCID: https://orcid.org/0000-0003-2715-7545)
- Simone Eliza Facioni Guimarães (ORCID: https://orcid.org/0000-0003-3704-8131)
Institutions
- University of Wisconsin–Madison (US)
- Universidade Federal de Viçosa (BR)
- U.S. Dairy Forage Research Center (US)
- Embrapa Gado de Leite (BR)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-30
- DOI
- https://doi.org/10.5281/zenodo.24684920
- Primary Topic
- Genetic and phenotypic traits in livestock
- Type
- article
- Field-Weighted Citation Impact
- 0.00