/nf-gwas

A nextflow pipeline to perform state-of-the-art genome-wide association studies.

Primary LanguageNextflowMIT LicenseMIT

nf-gwas

nf-gwas nf-test

nf-gwas is a Nextflow pipeline to run biobank-scale genome-wide association studies (GWAS) analysis. The pipeline automatically performs numerous pre- and post-processing steps, integrates regression modeling from the REGENIE package and currently supports single-variant, gene-based and interaction testing. All modules are structured in sub-workflows which allows to extend te pipeline to other methods and tools in future. nf-gwas includes an extensive reporting functionality that allows to inspect thousands of phenotypes and navigate interactive Manhattan plots directly in the web browser.

The pipeline is tested using the unit-style testing framework nf-test and includes a schema definition to run with Nextflow Tower.

image

Documentation

Documentation can be found here.

image

Citation

Please cite this preprint if you use nf-gwas:

Performing highly parallelized and reproducible GWAS analysis on biobank-scale data. Sebastian Schönherr, Johanna Schachtl-Riess, Silvia Di Maio, Michele Filosi, Marvin Mark, Claudia Lamina, Christian Fuchsberger, Florian Kronenberg, Lukas Forer bioRxiv 2023.08.08.552417; doi: https://doi.org/10.1101/2023.08.08.552417

Quick Start

  1. Install Nextflow (>=22.10.4)

  2. Run the pipeline on a test dataset

nextflow run genepi/nf-gwas -r v1.0.4 -profile test,<docker,singularity,slurm,slurm_with_scratch>
  1. Run the pipeline on your data
nextflow run genepi/nf-gwas -c <nextflow.config> -r v1.0.4 -profile <docker,singularity,slurm,slurm_with_scratch>

Please click here for available test config files.

Development

git clone https://github.com/genepi/nf-gwas
cd nf-gwas
docker build -t genepi/nf-gwas . # don't ignore the dot
nextflow run main.nf -profile test,development

nf-test

nf-gwas makes use of nf-test, a unit-style test framework for Nextflow.

cd nf-gwas
curl -fsSL https://code.askimed.com/install/nf-test | bash
./nf-test test

License

nf-gwas is MIT Licensed and was developed at the Institute of Genetic Epidemiology, Medical University of Innsbruck, Austria.

Contact