rwaples / lai-sim

MIT License
7 stars 1 forks source link

lai-sim

A Snakemake workflow for simulating admixture and evaluating local ancestry inference programs.

Required external programs

create and activate a conda environment

Snakemake suggest mamba (and it is much faster, but it breaks msprime on my machine)

So I am using conda below

uses mamba, rather than conda, as suggested by Snakemake

mamba env create -f environment.yml --prefix ./env conda env create -f environment.yml --prefix ./env

activate conda environment (from base directory)

conda activate ./env

Install MOSAIC package

requires R v4

mkdir ./programs/MOSAIC cd ./programs/MOSAIC wget https://maths.ucd.ie/~mst/MOSAIC/MOSAIC_1.3.9.tar.gz # within R install.packages("programs/MOSAIC/MOSAIC_1.3.9.tar.gz")

dry run of the test pipeline

defined in profiles/test/config.yaml

test analyses described in:

run the test pipeline

snakemake --configfile ./profiles/test/config.yaml --cores 11

results will be stored in: