This is a private testing repository for creating a testing environment for running population genetics simulations using the stdpopsim open-source library. The original testing repository popsim-consortium/analysis is copied and modified to our objectives. For further reading see:
https://github.com/popsim-consortium/analysis https://github.com/popsim-consortium/stdpopsim
src folder
done by changing Dockerfile and environment.yml
You need to install Git and Docker before going any further:
https://www.docker.com/products/docker-desktop
The Dockerfile takes care of all the installations and dependencies required. just follow the 'usage' section below.
first time only:
-
Clone the popsimenv directory from git (current page if you are reading these lines from the popsimenv repository)
-
Inside popsimenv directory, run the following command to build the image docker using the Dockerfile:
docker build -t popsimenv-image .
Opening a working session:
-
Open Docker Desktop app.
-
Inside popsimenv directory, run the container interactively with the src folder as shared volume:
-
for Mac/Linux users:
docker run --rm -t -i --name popsimenv --mount type=bind,source=$(pwd)/src,target=/code/src popsimenv-image /bin/bash
-
for Windows users:
docker run --rm -t -i --name popsimenv --mount type=bind,source=%cd%/src,target=/code/src popsimenv-image //bin/bash
- Activate the conda environment:
conda activate popsim_env_test
- The shared volume of the image and your file system is (through image):
/code/src
Running Snakefile:
- for example: (run from a directory of an experiment, as in the template directory)
snakemake -j 1 --config config="experiment"