Skip to content

Commit

Permalink
Improves the RONA explanation using plots
Browse files Browse the repository at this point in the history
  • Loading branch information
StuntsPT committed Jan 16, 2018
1 parent e15d3d3 commit bc50690
Show file tree
Hide file tree
Showing 12 changed files with 2,234 additions and 6 deletions.
357 changes: 357 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/RONA_frames/RONA_generic_plot_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
373 changes: 373 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot_0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/RONA_frames/RONA_generic_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
372 changes: 372 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot_1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/RONA_frames/RONA_generic_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
371 changes: 371 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/RONA_frames/RONA_generic_plot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
370 changes: 370 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot_3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/RONA_frames/RONA_generic_plot_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
369 changes: 369 additions & 0 deletions docs/assets/RONA_frames/RONA_generic_plot_4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 22 additions & 6 deletions docs/description.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The RONA method requires a matrix of set grouped individuals characterized for t
* Future predictions of the provided environmental variables


## Overview
## 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".
Expand All @@ -21,12 +21,28 @@ The **average difference** between **current** and **future expected** allele fr

The original RONA method is described in [Rellstab et al. 2016](doi.wiley.com/10.1111/mec.13889). 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](doi.wiley.com/10.1111/mec.13889), the software *LFMM* [Frichot et al. 2013](doi:10.1093/molbev/mst063) 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 was removed.
In [Rellstab et al. 2016](doi.wiley.com/10.1111/mec.13889), the software *LFMM* [Frichot et al. 2013](doi:10.1093/molbev/mst063) 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 were then compared using paired *t*-tests and ranked according to the resulting *p*-values. Only the **three** most differentiated factors were further analysed.
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.

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 was assessed. This required average change in allele frequency is defined as the risk of nonadaptedness (RONA) to future conditions.
![RONA explained frame 0](assets/RONA_frames/RONA_generic_plot_0.png)

To infer RONA, first, simple linear regressions of the selected environmental factors of the present climate (EF present) with the alternative allele frequencies (compared to the reference sequence, AAF present) for all loci were performed.
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.

<!-- Per environmental factor tested, we then selected, if possible, the top 20 loci from significant (P < 0.05) linear regressions that were also candidate loci in the LFMM analysis. These loci are the same for all three species. To exclude linked loci, only one locus per target was included. -->
![RONA explained frame 1](assets/RONA_frames/RONA_generic_plot_1.png)

To infer RONA, first, simple linear regressions of the selected environmental factors of the present climate (EF<sub>present</sub>) with the alternative allele frequencies (compared to the reference sequence, AAF<sub>present</sub>) for all loci are performed.

![RONA explained frame 2](assets/RONA_frames/RONA_generic_plot_2.png)

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 (S<sub>present</sub>=slope, I<sub>present</sub>=intercept) of these relevant loci are then used to predict AAF<sub>future</sub>, the allele frequency of the population that matches the regression at values of the future climate scenario for the given location (EF<sub>future</sub>).

![RONA explained frame 3](assets/RONA_frames/RONA_generic_plot_3.png)

The average absolute difference between AAF<sub>present</sub> and AAF<sub>future</sub> 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](assets/RONA_formula.png)

![RONA explained frame 4](assets/RONA_frames/RONA_generic_plot_4.png)

0 comments on commit bc50690

Please sign in to comment.