Method description

This section describes how the Risk of non-adaptedness (RONA) method works, and how it was implemented in pyRona.

Requirements

The RONA method requires a matrix of set grouped individuals characterized for three different components:

  • Genetic information (in this case, allele frequencies across a set of loci)
  • Current environmental data
  • Future predictions of the provided environmental variables

In a nutshell

After establishing marker-environmental associations, based on present allele frequencies and present environmental variables, the inferred linear model is used to estimate future expected allele frequencies. The average difference between current and future expected allele frequencies can be viewed as the required average change in allele frequency for the species to adapt to future local conditions. This value is called the "RONA value".

Original description

The original RONA method is described in Rellstab et al. 2016. Here is a brief recap of the main points from the original research paper. For a more detailed understanding it is recommended that you actually read the research paper.

In Rellstab et al. 2016, the software LFMM Frichot et al. 2013 is used to calculate environmental associations between environmental factors and allele frequencies. In order to reduce the amount of false positives, any associations with a Spearman's rank coefficient below 0.3 are removed.

Present and future environmental factors values are then compared using paired t-tests and ranked according to the resulting p-values. Only the three most differentiated factors are further analysed.

RONA explained frame 0

To estimate the adaptedness of populations to future local conditions, the extent to which the present allele frequencies at climate-related SNPs differ in average from those expected under modelled future climate, given the respective linear model of environmental association is assessed. This required average change in allele frequency is defined as the risk of nonadaptedness (RONA) to future conditions.

RONA explained frame 1

To infer RONA, first, simple linear regressions of the selected environmental factors of the present climate (EFpresent) with the alternative allele frequencies (compared to the reference sequence, AAFpresent) for all loci are performed.

RONA explained frame 2

Per environmental factor tested, the top 20 loci from significant (P < 0.05) linear regressions that are also candidate loci in the LFMM analysis are selected. To exclude linked loci, only one locus per target is included.

The regression coefficients (Spresent=slope, Ipresent=intercept) of these relevant loci are then used to predict AAFfuture, the allele frequency of the population that matches the regression at values of the future climate scenario for the given location (EFfuture).

RONA explained frame 3

The average absolute difference between AAFpresent and AAFfuture represents the RONA of a population to future conditions, or, in other words, the average change in allele frequency at the n relevant loci that is needed to be adapted to altered conditions. This results in the following formula:

RONA formula

RONA explained frame 4

Implementation in pyRona

The RONA method as implemented in pyRona is not performed exactly as the original from Rellstab et al. 2016.

Instead of ranking the environmental factors by p-value of the difference teste between present and future values, pyRona will calculate the RONA value for the "N" environmental variables ranked by the number of associated loci. By default "N" is 3, but pyRona can take any user provided value.

pyRona offers an option to remove outliers before calculating the regression. This removal uses the "Mahalanobis distance" to remove 0, 1 or "all" the outliers in the data. By default, no outlier removal is performed.

In addition to relying on LFFM like the original, pyRona is also prepared to get association data from the software Baypass. The method can be red about in Gautier 2015. When Baypass results are provided as input, instead of using allele frequencies, pyRona uses the normalized allele frequencies calculated by Baypass. This is in our opinion superior to using the allele frequencies directly, since it removes any potential effect of population structuring.

Finally, similar to the original method, pyRona provides an average RONA value for each selected environmental variable, but unlike the the original method,our implementation will calculate the average RONA weighted by the regression R² value. This means that associations with a lower regression coefficient will contribute less to the final RONA value than those with higher R² values.