Git Product home page Git Product logo

seascape_rda_tutorial's Introduction

Redundancy analysis in a seascape genetics framework

The scripts in this repository cover how to conduct a redundancy analysis (RDA) using environmental and spatial data as explanatory (independent) variables and allele frequencies as response (dependent) variables.

The tutorial has been put together such that you can clone this repository and run the scripts on your own computer. There are currently four folders of R scripts and data files that cover the following steps:

  1. Prepare genetic data
  2. Prepare spatial data
  3. Prepare environmental data
  4. Perform redundancy analysis

Disclaimer

This tutorial uses biallelic SNP genotypes from a population genetics study on European lobster (Homarus gammarus) published in Evolutionary Applications (Jenkins et al. 2019). Although the data required to run the R scripts in this repository are provided, the raw data from this study are freely available at the Dryad Digital Repository. Please note that the results presented in this tutorial are not published, but they are part of my PhD thesis. In addition, I have made no attempt to interpret or discuss the findings of this redundancy analysis because the purpose of this repository is get people up and running with their own analyses!

Example plots

Allele frequencies for nine SNP loci. Each bar represents a sampling site and the colours denote the region of origin.


Maps of present-day sea temperature and salinity in the northeast Atlantic and the Mediterranean.


Redundancy analysis biplot.

Useful links and resources

Segments of code from other sources have been included in this tutorial. Below are several links to some fantastic resources that provide further information for performing and interpreting redundancy analyses.
https://popgen.nescent.org/2018-03-27_RDA_GEA.html
http://www.randigriffin.com/2017/05/23/mosquito-community-ecology-in-vegan.html
https://mb3is.megx.net/gustame/constrained-analyses/rda
https://cran.r-project.org/web/packages/adespatial/vignettes/tutorial.html
https://cran.r-project.org/web/packages/vegan/vignettes/intro-vegan.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.