Giter Club home page Giter Club logo

penguins's Introduction

R scripts for conducting CubSFS and SNAPP analyses for:

Receding ice drove rapid expansions in eight Southern Ocean penguins

Theresa L. Cole, Ludovic Dutoit, Nic Dussex, Tom Hart, Alana Alexander, María José Frugone, Jane L. Younger, Gemma V. Clucas, Yves Cherel, Richard Cuthbert, Ursula Ellenberg, Steven R. Fiddaman, David Houston, Pierre Jouventin, Thomas Mattern, Gary Miller, Colin Miskelly, Paul Nolan, Michael J. Polito, Petra Quillfeldt, Peter G. Ryan, Adrian Smith, Alan JD Tennyson, David Thompson, Barbara Wienecke, Juliana A. Vianna, Jonathan M. Waters

Input

For CubSFS analyses, the input were folded SFS files formatted for fastsimcoal2. Although they were folded, the full number of sites were present (but the second half of the SFS file had '0' counts, reflecting this).

For the SNAPP analysis, the input was a tab delimited file with the following variables (also detailed in the R script comments):
Replicate - 1, 2 or 3
Delta_theta - change in theta for each replicate, inferred from comparing theta at terminal to theta at nearest internal node
Location - name of terminal lineages used in each SNAPP replicate
Location_code - standardized location code across all replicates
Taxa_common_name - common name of species included in analysis
Taxa_scientific - scientific name of species included in analysis
Taxa_order_for_graphing - desired order (left to right) for plotting of taxa
Location_order_for_graphing - desired order (left to right) for plotting of locations
Overall_order - overall order for plotting of locations (order fields were used to sort data before importing into R) Node_height - in substitutions per site
Gen_time - generation time in years

Description

The CubSFS scripts describe the steps taken to infer demographic history from an SFS, and to plot this comparatively across species (more details are given in the comments in the R scripts).

The SNAPP script describes the steps taken to plot the change in theta inferred from SNAPP across species.

To cite:

Theresa L. Cole, Ludovic Dutoit, Nic Dussex, Tom Hart, Alana Alexander, María José Frugone, Jane L. Younger, Gemma V. Clucas, Yves Cherel, Richard Cuthbert, Ursula Ellenberg, Steven R. Fiddaman, David Houston, Pierre Jouventin, Thomas Mattern, Gary Miller, Colin Miskelly, Paul Nolan, Michael J. Polito, Petra Quillfeldt, Peter G. Ryan, Adrian Smith, Alan JD Tennyson, David Thompson, Barbara Wienecke, Juliana A. Vianna, Jonathan M. Waters. Receding ice drove rapid expansions in eight Southern Ocean penguins. Proceedings of the National Academy of Sciences 116, no. 52 (2019): 26690-26696.

Please also cite R and these packages, without which the analyses would not be possible:

  • CubSFS
  • gridExtra
  • parallel
  • scales
  • tidyverse

penguins's People

Contributors

laninsky avatar

Watchers

James Cloos avatar  avatar

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.