Authors: Oliveira, T. P., Obšteter, J., Pocrnic, I., Heslot, N., Gorjanc, G.
https://gsejournal.biomedcentral.com/articles/10.1186/s12711-023-00804-3
The code can be executed at once by following the RunME.R
script.
However, I am pointing out below a step-by-step on the order the script should be executed.
- Generating the Cattle Breeding Programme
- Go to the folder
simulation5Males
and open the scriptbreedingProgrammeScheme.R
. - The script
breedingProgrammeScheme.R
calls the following scripts: -
globalParameters.R
- Global Parameter of the simulation -
CreateFounders.R
- Create Parents -
burnin.R
- to run the Burnin phase -
Scenario1.R
- to run the Medium-accuracy scenario -
Scenario2.R
- to run the high-accuracy scenario
- Go to the folder
- Analysis of true trends in genetic mean and variance
- Go to the folder
Analysis
- Analysis of true breeding value
-
AlphaPart_TruePartition.R
- for 1 replicate -
AlphaPart_TruePartition30reps.R
- for 30 replicate
-
- Go to the folder
- Using MCMC approach to get samples from the posterior distribution of
$p(a|y)$ - 1 replicate- Model and Samples
-
gibbs1f90.R
- runblupf90
family of programmes (it is assumed the programmes are already installed in the path$HOME/bin/
) -
gibbs1f90NoInb.R
- runblupf90
family of programmes without considering inbreeding
-
-
AlphaPart
analysis-
AlphaPart_Gibbs_Pheno_Validation.R
- analysis of medium-accuracy scenario -
AlphaPart_Gibbs_Pheno_ValidationNoInb.R
- analysis of medium-accuracy scenario without considering inbreeding -
AlphaPart_Gibbs_TBV_Validation.R
- analysis of high-accuracy scenario -
AlphaPart_Gibbs_TBV_ValidationNoInb.R
- analysis of high-accuracy scenario without considering inbreeding
-
- Model and Samples
- Using MCMC approach to get samples from the posterior distribution of
$p(a|y)$ - 30 replicate- Go to the folder
./Analysis/Supplementary/30_Replicates
- You can run the script
RUNME.R
- The script
AlphaPart_Results.R
can be used to visualise and generate the outputs.
- Go to the folder