AlphaPart variance partition pipeline
Jul 1, 2023
·
2 min read
This repository accompanies Oliveira et al. (2023, Genetics Selection Evolution) and provides the full pipeline behind the paper “A method for partitioning trends in genetic mean and variance to understand breeding practices.” It simulates cattle breeding programmes, runs AlphaPart on true breeding values and on posterior samples (via Gibbs sampling), and produces the figures in the manuscript.
Structure at a glance
- Simulation (
simulation5Males/)globalParameters.R,CreateFounders.R,burnin.R, plus scenarios 1 and 2 scripts generate medium- and high-accuracy breeding programmes (via AlphaSimR).RunME.Rorchestrates the entire simulation.
- True trend analysis (
Analysis/)AlphaPart_TruePartition.R(single replicate) andAlphaPart_TruePartition30reps.R(30 replicates) partition true breeding values.
- Posterior/MCMC analysis
gibbs1f90*.Rscripts call the blupf90 suite to sample from (p(a \mid y)) with and without inbreeding.AlphaPart_Gibbs_*scripts validate medium- and high-accuracy scenarios using phenotypes or TBVs, again with/without inbreeding.
- Supplementary runs (
Analysis/Supplementary/30_Replicates/)RUNME.Rexecutes 30-replicate analyses;AlphaPart_Results.Raggregates and plots outputs.
Prerequisites
- R ≥ 4.0 with packages such as AlphaSimR, AlphaPart, tidyverse, etc. (install via the scripts).
- BLUPF90 family installed under
$HOME/bin/if you wish to run the Gibbs sampling pieces (gibbs1f90.R). - AlphaSimR-compatible simulation tools for generating founder populations.
How to run
- Clone the repo and start with
RunME.Rto generate simulated data. - Execute the analysis scripts (true trend, Gibbs/MCMC) inside
Analysis/. - Use the supplementary 30-replicate folder for extended results and
AlphaPart_Results.Rfor visualisation.
The pipeline mirrors the GSE publication and serves as a template for partitioning genetic trends in other breeding-programme designs.