GithubHelp home page GithubHelp logo

chris1221 / ancient_african_admixture Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 61.6 MB

Cole et al 2021 analysis pipeline and result files.

Home Page: https://www.biorxiv.org/content/10.1101/2020.06.01.127555v1

Shell 0.01% PostScript 75.42% R 20.30% Python 4.28%

ancient_african_admixture's Introduction

Ancient Admixture into Africa

This repository contains all of the source code required to reproduce our paper on ancient directional migration using an extention of smcsmc.

  • pipelines/ contains two different pipelines which implement all of the analyses in the paper. The first uses smcsmc and msmc2 to analyse real data from the SGDP and HGDP. The second uses scrm to simulate demographic scenarios and does inference with smcsmc and msmc. For instructions on reproducing these results, see directions in these directories. As a forewarning, these analyses are highly computationally intensive and may take several weeks or months of compute to run completely.
  • data/ contains all of the relevant results from the pipelines/ directory used in the paper, and in the plots.
  • r/ contains scripts for reproducing all of the plots from the paper. Note that r/MASTER.r, if run by itself, contains all of the code necessary to create all the plots using the data in the data/ directory.
  • plot/ has the output of the r/ directory, which are the plots used in the paper.
  • tex/ has the LaTeX source for the actual manuscript of the paper.
  • analyses contains configuration files for the different analyses performed using the pipelines. Similarly, lib/ has some useful files for the plotting scripts.

Setting up the Environment

To reproduce the analysis completely, please install the required conda environment. This allows us to package a majority of the software dependencies together. There are several methods to install conda, see here for details. Once conda is installed, create the environment for this analysis from our list of dependencies:

conda env create -f envs/aaa.yml

This will create a conda environemnt called aaa. Activate it:

conda activate aaa

There are a couple of dependencies that are not included in conda and must be installed manually.

  • msmc2 must be installed from the Github source here.
  • admixr must be installed from Github as well.
install.packages("devtools")
devtools::install_github("bodkan/admixr")

ancient_african_admixture's People

Contributors

chris1221 avatar

Watchers

 avatar  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.