Home | About | Journals | Submit | Contact Us | Français |

**|**Genet Sel Evol**|**v.49; 2017**|**PMC5738850

Formats

Article sections

Authors

Related links

Genet Sel Evol. 2017; 49: 91.

Published online 2017 December 20. doi: 10.1186/s12711-017-0368-4

PMCID: PMC5738850

0000 0004 1937 0060grid.24434.35Department of Animal Science, University of Nebraska-Lincoln, PO Box 830908, Lincoln, NE 68583-0908 USA

Gota Morota, Email: ude.lnu@atorom.

Received 2017 July 3; Accepted 2017 December 11.

Copyright © The Author(s) 2017

Deterministic formulas for the accuracy of genomic predictions highlight the relationships among prediction accuracy and potential factors influencing prediction accuracy prior to performing computationally intensive cross-validation. Visualizing such deterministic formulas in an interactive manner may lead to a better understanding of how genetic factors control prediction accuracy.

The software to simulate deterministic formulas for genomic prediction accuracy was implemented in R and encapsulated as a web-based Shiny application. Shiny genomic prediction accuracy simulator (ShinyGPAS) simulates various deterministic formulas and delivers dynamic scatter plots of prediction accuracy versus genetic factors impacting prediction accuracy, while requiring only mouse navigation in a web browser. ShinyGPAS is available at: https://chikudaisei.shinyapps.io/shinygpas/.

ShinyGPAS is a shiny-based interactive genomic prediction accuracy simulator using deterministic formulas. It can be used for interactively exploring potential factors that influence prediction accuracy in genome-enabled prediction, simulating achievable prediction accuracy prior to genotyping individuals, or supporting in-class teaching. ShinyGPAS is open source software and it is hosted online as a freely available web-based resource with an intuitive graphical user interface.

Prediction of breeding values from high-dimensional single nucleotide polymorphisms is a primary interest in quantitative genetics [1–3]. This is particularly true for the application of genomic selection in animal and plant breeding programs, where genetic improvement of agricultural species relies on the performance of a model to predict unknown breeding values, also known as prediction accuracy. Here prediction accuracy is defined as the correlation between true and predicted genomic values. A deterministic formula such as the one proposed by Daetwyler et al. [4] highlights the relationship between prediction accuracy and potential factors that influence prediction accuracy. In general, deterministic formulas compute the expected predictive correlation (or squared prediction accuracy *R*^{2}) on the basis of a number of factors that are potentially useful to assess prediction accuracy before performing computationally demanding cross-validation (CV). It also allows us to decide the optimal design for reference populations (e.g., reference population size) to achieve a desired level of accuracy in selection candidates. Not only theoretical derivations of deterministic formulas but also their applications are active research areas. For instance, Brard and Ricard [5] recently performed comparison and meta-analysis of deterministic formulas. Erbe et al. [6] inferred parameters that influence prediction accuracy in deterministic formulas via maximum likelihood. Collectively, these studies have shed new light on alternative aspects of factors influencing predictive performance that may not be obvious from empirical genome-enabled prediction analysis based on CV.

In particular, visualizing such deterministic formulas may lead to a better understanding of how genetic factors control prediction accuracy. Typically, visualization involves generating a static two-dimensional graph, where the y-axis is the genomic prediction accuracy and the x-axis is one of the factors influencing prediction accuracy, while keeping the other factors constant. Given that this type of static graph is a snapshot of a complex dynamic system, if users want to change parameters, they need to re-type and re-execute the code. To provide an overview of the whole landscape of genomic prediction simulation, we need an efficient visualization tool that is capable of generating interactive as well as dynamic graphs. The objective of this article is to describe a Shiny-based web application called Shiny genomic prediction accuracy simulator (ShinyGPAS), which produces interactive graphs and offers an intuitive graphical user interface (GUI) for simulating genomic prediction accuracy based on deterministic formulas.

ShinyGPAS is implemented entirely in R, which is an open source programming language and environment for performing statistical computing and data visualization [7]. The GUI is provided by the shiny R package [8], a web application framework for R. ShinyGPAS is a Shiny application that leverages R and the shiny package to construct an intuitive framework for deterministic formulas using dynamic interaction and visualization. The ShinyGPAS user interface is shown in Fig. 1. Although ShinyGPAS is R-based software, it does not require users to be familiar with the programming language or download the software on a local computer. The underlying R code is encapsulated by Shiny and offered as cohesive web-based software to be usable solely by mouse navigation in a web browser. This increases accessibility to the software, especially for users with less R programming experience. ShinyGPAS is deployed through the cloud-based shinyapps.io platform for hosting Shiny web applications (https://www.shinyapps.io/).

ShinyGPAS currently delivers eight simulators based on deterministic formulas described in (a) Daetwyler et al. [4, 9], (b) Goddard [10], (c) Goddard et al. [11], (d) Rabier et al. [12], (e) Rabier et al. [12], (f) de los Campos et al. [13], (g) Karaman et al. [14] and (h) Wientjes et al. [15]. The first seven formulas predict accuracy within populations whereas the last one is designed for multipopulation scenarios, including multi-environment and multitrait. Deterministic formulas are functions derived from the combinations of the number of individuals in a reference set, the number of independent chromosome segments underlying the trait, the effective population size, the number of markers, the proportion of genetic variance explained by the molecular markers, and heritability. Shiny-based interactive application offers the implementation of dynamic deterministic formulas, allowing to evaluate the simultaneous impact of all the parameters described above on the prediction accuracy. A user can click a link located within each deterministic formula simulator to access original journal articles. Below are deterministic formulas currently implemented in ShinyGPAS.

- Daetwyler et al. [4, 9] developed the first deterministic formula that computes the prediction accuracy of additive genomic values. The formula was derived by treating genetic markers as fixed with the following assumptions: (a) independence of quantitative trait loci (QTL), (b) regression of phenotypes on genotype one locus at a time with ${\mathit{\sigma}}_{\mathit{\u03f5}}^{2}=1$ and ${\mathit{\sigma}}_{g}^{2}+{\mathit{\sigma}}_{\mathit{\u03f5}}^{2}=1$ (${\mathit{\sigma}}_{g}^{2}$ and ${\mathit{\sigma}}_{\mathit{\u03f5}}^{2}$ are the genetic and residual variances, respectively), (c) identical accuracy of QTL effect size estimates across QTL allele frequencies and (d) perfect linkage disequilibrium (LD) between marker and QTL pairs.where$$\begin{array}{c}\hfill r=\sqrt{\frac{N{h}^{2}}{N{h}^{2}+{M}_{e}}},\end{array}$$
*N*is the number of individuals in the reference population,*h*^{2}is the heritability, and*M*_{e}is the number of independent chromosome segments. - Goddard [10] developed an alternative formula by treating markers as random and assuming complete LD between marker and QTL pairs. The QTL effects were assumed to be sampled from a normal distribution. In addition, the equation assumes that QTL with high minor allele frequencies have more accurate effect size than QTL with low minor allele frequencies.where$$\begin{array}{c}\hfill r=\sqrt{1-\frac{\mathit{\lambda}}{2N\sqrt{\mathit{\alpha}}}ln\left(\frac{1+\mathit{\alpha}+2\sqrt{\mathit{\alpha}}}{1+\mathit{\alpha}-2\sqrt{\mathit{\alpha}}}\right)},\end{array}$$
*λ*is*M*_{e}/(*h*^{2}ln(2*N*_{e})),*α*is 1 + 2(*M*_{e}/*N**h*^{2}ln(2*N*_{e})), and*N*_{e}is the effective population size. The definition of*λ*was adopted from Hayes et al. [16, 17]. Note that here*M*_{e}and*N*_{e}are related because*M*_{e}can be expressed as a function of*N*_{e}[10]. - Goddard et al. [11] extended the equations in [4, 9, 10] so that the deterministic formula accounts for incomplete LD between markers and QTL. This equation also accounts for the fact that the number of markers is finite.where$$\begin{array}{c}\hfill r=\sqrt{b\frac{Nb{h}^{2}/{M}_{e}}{1+Nb{h}^{2}/{M}_{e}}},\end{array}$$
*b*=*M*/(*M*+*M*_{e}) is the proportion of genetic variance explained by the markers and*M*is the number of markers. Note that when*b*is equal to 1, this deterministic formula is identical to that of Daetwyler et al. [4, 9]. - Rabier et al. [12] developed a deterministic formula by relaxing the assumption of ${\mathit{\sigma}}_{\mathit{\u03f5}}^{2}=1$ and ${\mathit{\sigma}}_{g}^{2}+{\mathit{\sigma}}_{\mathit{\u03f5}}^{2}=1$ in Daetwyler et al. [4]. This formula can be applied with any value of ${\mathit{\sigma}}_{g}^{2}$ and ${\mathit{\sigma}}_{\mathit{\u03f5}}^{2}$.Moreover, under the ridge regression best linear unbiased prediction framework,$$\begin{array}{c}\hfill r=\sqrt{\frac{{h}^{2}/(1-{h}^{2})}{{M}_{e}/N+{h}^{2}/(1-{h}^{2})}}.\end{array}$$
*M*_{e}/*N*is equal to $\mathbb{E}(||{\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}{\mathbf{X}}^{\prime}{\mathbf{V}}^{-1}|{|}^{2})$, where ${\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}$ is the vector of markers belonging to the testing set individual,**X**is the training set allele content matrix,**V**=**XX**^{′}+*λ***I**,*λ*is the regularization parameter, and ||.||^{2}is the squared norm. Therefore, an alternative form of prediction accuracy when fitting the all markers simultaneously in a high-dimensional setting [18] is obtained by replacing*M*_{e}with $N\xb7\mathbb{E}(||{\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}{\mathbf{X}}^{\prime}{\mathbf{V}}^{-1}|{|}^{2})$ [12].Note that if we can assume individuals in training and testing sets were sampled from the same population, $\widehat{\mathbb{E}}(||{\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}{\mathbf{X}}^{\prime}{\mathbf{V}}^{-1}{||}^{2})\le 1$ then, $N\ast \widehat{\mathbb{E}}(||{\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}{\mathbf{X}}^{\prime}{\mathbf{V}}^{-1}{||}^{2})$ is bounded by$$\begin{array}{c}\hfill r=\sqrt{\frac{{h}^{2}/\left(1-{h}^{2}\right)}{\mathbb{E}\left(||{\mathbf{x}}_{{n}_{\text{TRN}+1}}^{\prime}{\mathbf{X}}^{\prime}{\mathbf{V}}^{-1}{||}^{2}\right)+{h}^{2}/\left(1-{h}^{2}\right)}}.\end{array}$$*N*. - de los Campos et al. [13] developed an equation that yields a theoretical upper limit for the achievable accuracy. This formula was motivated by the assumption that the patterns of allele sharing between markers and causal loci are different. Under the genomic best linear unbiased prediction frameworkwhere$$\begin{array}{c}\hfill r=\sqrt{\left[1-{(1-b)}^{2}\right]{h}^{2}},\end{array}$$
*b*is the average regression coefficient of the marker-based genomic relationships on genomic relationships at QTL. This deterministic formula does not rely on*M*_{e}, which is difficult to infer from data. - Karaman et al. [14] expressed the deterministic equations of Daetwyler et al. [4, 9] and Goddard et al. [11] in terms of the correlation between phenotypes and estimated breeding values. Note that this equation and also that of de los Campos et al. [13] can be viewed as the measure of prediction accuracy.where ${h}_{M}^{2}$ is the genomic heritability, which is the proportion of phenotypic variance that is explained by regression on markers.$$\begin{array}{c}\hfill r=\sqrt{{h}_{M}^{2}\left[\frac{N{h}_{M}^{2}}{N{h}_{M}^{2}+{M}_{e}}\right]},\end{array}$$
- Wientjes et al. [15] developed the deterministic formula that combines two populations A and B to predict prediction accuracy in population C. This can be used for multipopulation genomic prediction scenarios.where$$\begin{array}{cc}\hfill r& =\sqrt{\left[\begin{array}{cc}{b}_{\mathit{AC}}{r}_{{G}_{\mathit{AC}}}\sqrt{\frac{{h}_{A}^{2}}{{M}_{{e}_{A,C}}}}& {b}_{\mathit{BC}}{r}_{{G}_{\mathit{BC}}}\sqrt{\frac{{h}_{B}^{2}}{{M}_{{e}_{B,C}}}}\end{array}\right]}\hfill \\ \hfill & \phantom{\rule{1em}{0ex}}\times \sqrt{{\left[\begin{array}{cc}\frac{{h}_{A}^{2}}{{M}_{{e}_{A,C}}}+\frac{1}{{N}_{A}}& {r}_{{G}_{\mathit{AB}}}\sqrt{\frac{{h}_{A}^{2}{h}_{B}^{2}}{{M}_{{e}_{A,C}}{M}_{{e}_{B,C}}}}\\ {r}_{{G}_{\mathit{AB}}}\sqrt{\frac{{h}_{A}^{2}{h}_{B}^{2}}{{M}_{{e}_{A,C}}{M}_{{e}_{B,C}}}}& \frac{{h}_{B}^{2}}{{M}_{{e}_{B,C}}}+\frac{1}{{N}_{B}}\end{array}\right]}^{-1}}\hfill \\ \hfill & \phantom{\rule{1em}{0ex}}\times \sqrt{\left[\begin{array}{c}{b}_{\mathit{AC}}{r}_{{G}_{\mathit{AC}}}\sqrt{\frac{{h}_{A}^{2}}{{M}_{{e}_{A,C}}}}\\ {b}_{\mathit{BC}}{r}_{{G}_{\mathit{BC}}}\sqrt{\frac{{h}_{B}^{2}}{{M}_{{e}_{B,C}}}}\end{array}\right]},\hfill \end{array}$$
*b*_{AC}is the square root of the proportion of the genetic variance in predicted population C explained by the markers in training population A,*r*_{GAC}is the genetic correlation between populations A and C, ${h}_{A}^{2}$ is heritability in population A,*b*_{BC}is the square root of the proportion of the genetic variance in predicted population C explained by the markers in training population B,*r*_{GBC}is the genetic correlation between populations B and C, ${h}_{B}^{2}$ is heritability in population B,*N*_{A}is the number of individuals in population A,*N*_{B}is the number of individuals in population B,*r*_{GAB}is the genetic correlation between populations A and B, and*M*_{eA,C}and*M*_{eB,C}are the effective numbers of chromosome segments shared between populations A and C, and B and C, respectively. Note that the*b*values of Goddard et al. [11] are the squares of the*b*values in the above equation.

Prediction of genomic values is a challenging task and there is no universally best deterministic formula that accounts for all potential factors. Therefore, we will continue adding newly developed deterministic formula to ShinyGPAS.

A typical workflow starts from selecting one of the tab panels on the top (Fig. 1) and then moving to a preferred deterministic formula simulator. Each deterministic formula captures a different aspect of the genotype–phenotype map in the context of genomic prediction accuracy. Thus, navigate through interactively visualized deterministic formulas may highlight the common patterns as well as differences among them. A suite of available parameters such as *h*^{2}, ${h}_{M}^{2}$
*N*, *M*_{e}, *N*_{e}, *M*, and *b* are located in the sidebar panel. Shiny slider provides possible input values that can be chosen from pre-defined ranges. Users can pick a preferred value by a simple mouse navigation. A radio button located on the top offers possible options for factors that influence prediction accuracy to be used to determine the x-axis. The Shiny reactive expressions are used in ShinyGPAS to efficiently cache results and ease computational burden to ensure high speed of processing during an interactive session.

Rendering interactive graphs from deterministic formulas are achieved by the plotly R package [19]. The main engine plotly.js, which is built on top of JavaScript and the visualization library D3.js, was used to create a scatter plot. The y-axis is pre-fixed with prediction accuracy (*r*). Users can choose the x-axis from one of the parameters such as *h*^{2}, ${h}_{M}^{2}$, *N*, *M*_{e}, *N*_{e}, *M*, or *b*. A scatter plot is dynamically updated when users vary slider input values of factors that influence prediction accuracy. The plotly.js generates a scatter plot with a toolbar coupled with useful zooming in and zooming out capabilities. Also, hovering the mouse pointer over a specific point of plot shows the exact values of x and y axes. A multipopulation genomic prediction simulation is enabled by the plotly 3D scatter plot functionality, where x and y axes take parameters from two training populations and the z-axis shows prediction accuracy. Rotating the 3D scatter plot is possible around all x, y and z axes to inspect prediction accuracy from different surfaces. In addition, the toolbar provides features such as a download button, box select, lasso select, autoscale, reset, and toggle spike lines for interactivity. ShinyGPAS is available at: https://chikudaisei.shinyapps.io/shinygpas/.

A Shiny application has great potential to deliver interactive data analysis and visualization in a web browser. Yet there is limited application of this type of tool in breeding and quantitative genetics. The Shiny framework allows users to convert deterministic formulas of genomic prediction accuracy into interactive graphics in an engaging and straightforward manner. ShinyGPAS can be used for interactive exploration of potential factors that influence prediction accuracy in genome-enabled prediction, simulation of achievable prediction accuracy prior to genotyping individuals, or supporting in-class teaching. The ShinyGPAS source code has been made publicly available on GitHub: https://github.com/morota/ShinyGPAS.

The author declare that he has no competing interests.

Not applicable.

GM acknowledges funding from the University of Nebraska startup funds and the National Science Foundation under Grant No. 1736192.

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

1. Meuwissen TH, Hayes BJ, Goddard ME. Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001;157:1819–1829. [PubMed]

2. Goddard ME. Can we make genomic selection 100% accurate? J Anim Breed Genet. 2017;134:287–288. doi: 10.1111/jbg.12281. [PubMed] [Cross Ref]

3. Gianola D. It is unlikely that genomic selection will ever be 100% accurate. J Anim Breed Genet. 2017;134:438–440. doi: 10.1111/jbg.12307. [PubMed] [Cross Ref]

4. Daetwyler HD, Villanueva B, Woolliams JA. Accuracy of predicting the genetic risk of disease using a genome-wide approach. PLoS One. 2008;3:e3395. doi: 10.1371/journal.pone.0003395. [PMC free article] [PubMed] [Cross Ref]

5. Brard S, Ricard A. Is the use of formulae a reliable way to predict the accuracy of genomic selection? J Anim Breed Genet. 2015;132:207–217. doi: 10.1111/jbg.12123. [PubMed] [Cross Ref]

6. Erbe M, Gredler B, Seefried FR, Bapst B, Simianer H. A function accounting for training set size and marker density to model the average accuracy of genomic prediction. PLoS One. 2013;8:e81046. doi: 10.1371/journal.pone.0081046. [PMC free article] [PubMed] [Cross Ref]

7. R Core Team. R: a language and environment for statistical computing. Vienna, Austria; 2017.

8. Chang W, Cheng J, Allaire J, Xie Y, McPherson J. Shiny: web application framework for R; 2017. R package version 1.0.3. Available from: https://CRAN.R-project.org/package=shiny.

9. Daetwyler HD, Pong-Wong R, Villanueva B, Woolliams JA. The impact of genetic architecture on genome-wide evaluation methods. Genetics. 2010;185:1021–1031. doi: 10.1534/genetics.110.116855. [PubMed] [Cross Ref]

10. Goddard ME. Genomic selection: prediction of accuracy and maximisation of long term response. Genetica. 2009;136:245–257. doi: 10.1007/s10709-008-9308-0. [PubMed] [Cross Ref]

11. Goddard ME, Hayes BJ, Meuwissen THE. Using the genomic relationship matrix to predict the accuracy of genomic selection. J Anim Breed Genet. 2011;128:409–421. doi: 10.1111/j.1439-0388.2011.00964.x. [PubMed] [Cross Ref]

12. Rabier CE, Barre P, Asp T, Charmet G, Mangin B. On the accuracy of genomic selection. PloS One. 2016;11:e0156086. doi: 10.1371/journal.pone.0156086. [PMC free article] [PubMed] [Cross Ref]

13. de los Campos G, Vazquez AI, Fernando R, Klimentidis YC, Sorensen D. Prediction of complex human traits using the genomic best linear unbiased predictor. PLoS Genet. 2013;9:e1003608. doi: 10.1371/journal.pgen.1003608. [PMC free article] [PubMed] [Cross Ref]

14. Karaman E, Cheng H, Firat MZ, Garrick DJ, Fernando RL. An upper bound for accuracy of prediction using GBLUP. PloS One. 2016;11:e0161054. doi: 10.1371/journal.pone.0161054. [PMC free article] [PubMed] [Cross Ref]

15. Wientjes YC, Bijma P, Veerkamp RF, Calus MP. An equation to predict the accuracy of genomic values by combining data from multiple traits, populations, or environments. Genetics. 2016;202:799–823. doi: 10.1534/genetics.115.183269. [PubMed] [Cross Ref]

16. Hayes BJ, Visscher PM, Goddard ME. Increased accuracy of artificial selection by using the realized relationship matrix. Genet Res (Camb) 2009;91:47–60. doi: 10.1017/S0016672308009981. [PubMed] [Cross Ref]

17. Hayes B, Daetwyler H, Bowman P, Moser G, Tier B, Crump R, et al. Accuracy of genomic selection: comparing theory and results. Proc Assoc Advmt Anim Breed Genet. 2009;18:34–37.

18. Bühlmann P, Van De Geer S. Statistics for high-dimensional data: methods, theory and applications. Berlin: Springer; 2011.

19. Sievert C, Parmer C, Hocking T, Chamberlain S, Ram K, Corvellec M, et al. Plotly: create interactive web graphics via ’plotly.js’; 2017. R package version 4.6.0. Available from: https://CRAN.R-project.org/package=plotly.

Articles from Genetics, Selection, Evolution : GSE are provided here courtesy of **BioMed Central**

PubMed Central Canada is a service of the Canadian Institutes of Health Research (CIHR) working in partnership with the National Research Council's national science library in cooperation with the National Center for Biotechnology Information at the U.S. National Library of Medicine(NCBI/NLM). It includes content provided to the PubMed Central International archive by participating publishers. |