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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Ssgblup-dominance: Python code for additive and dominance relationship matrices in single-step GBLUP

Marcos Vinícius Gualberto Barbosa da Silva, Mateus Guimarães dos Santos, Guilherme J. M. Rosa, Renata Veroneze et al.
Zenodo (CERN European Organization for Nuclear Research)
Genetic and phenotypic traits in livestock
article

Ssgblup-dominance: Python code for additive and dominance relationship matrices in single-step GBLUP

Marcos Vinícius Gualberto Barbosa da Silva, Mateus Guimarães dos Santos, Guilherme J. M. Rosa, Renata Veroneze, Simone Eliza Facioni Guimarães
article en

Abstract

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.

Zenodo (CERN European Organization for Nuclear Research)
University of Wisconsin–Madison (US), Universidade Federal de Viçosa (BR), U.S. Dairy Forage Research Center (US), Embrapa Gado de Leite (BR)
Genetic and phenotypic traits in livestock
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon