Skip to content

Source code from the paper: "Elevated genetic risk for multiple sclerosis emerged in steppe pastoralist populations" (2024) Nature

License

Notifications You must be signed in to change notification settings

ekirving/ms_paper

Repository files navigation

Polygenic selection analysis for Multiple Sclerosis (MS)

This repository contains code for the ancestry stratified polygenic selection analyses from Elevated Genetic Risk for Multiple Sclerosis Originated in Steppe Pastoralist Populations.

Figure 2

If you reuse any of this code then please cite the paper:

Barrie, W.*, Yang, Y.*, Irving-Pease, E.K.* et al. Elevated genetic risk for multiple sclerosis emerged in steppe pastoralist populations. Nature 625, 321–328 (2024). https://doi.org/10.1038/s41586-023-06618-z

Installation

Download the code:

git clone git@github.com:ekirving/ms_paper.git && cd ms_paper/

The easiest way to install all the dependencies is with the conda package manager.

conda env create --name ms --file environment.yaml

Then activate the environment:

conda activate ms

Running the code

Assuming you have all the input data, you can reproduce the analyses by running:

snakemake all

In practice, computing the DAG of the rule chain will take a long time, and you will need a lot of computational resources to perform an end-to-end replication (e.g., about 1 week of wall-time on a cluster of three 96-core nodes).

Author

Evan K. Irving-Pease, GLOBE Institute, University of Copenhagen

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Source code from the paper: "Elevated genetic risk for multiple sclerosis emerged in steppe pastoralist populations" (2024) Nature

Resources

License

Stars

Watchers

Forks