Skip to content
A collection of scripts to run GWAS, regional, gene-oriented, or per-variant analyses.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ARCHIVED
EXAMPLE
SCRIPTS
SUPPORT
.gitignore
LICENSE
README.md
_config.yml
gwastoolkit.analyzer.sh
gwastoolkit.cleaner.sh
gwastoolkit.clumper.sh
gwastoolkit.conf
gwastoolkit.locuszoomer.sh
gwastoolkit.plotter.qc.sh
gwastoolkit.plotter.sh
gwastoolkit.qc.sh
gwastoolkit.run.sh
gwastoolkit.wrapper.sh
resource.creator.sh
summariser.sh

README.md

GWASToolKit

DOI

This repository contains various scripts in Perl, BASH, and Python scripts to use in genome-wide association studies, single variant analyses, regional analyses, and gene-centered analyses. The genotypes are expected to be imputed using IMPUTE2 and the core of the collection of scripts makes use of SNPTEST v2.5.

All scripts are annotated for debugging purposes - and future reference. The scripts will work within the context of a certain Linux environment (in this case a CentOS7 system on a SUN Grid Engine background). As such we have tested GWASToolKit on CentOS6.6, CentOS7, and OS X El Capitan (version 10.11.[x]).


Installing the scripts locally

You can use the scripts locally to run analyses on a Unix-based system, like Mac OS X (Mountain Lion+). We need to make an appropriate directory to download 'gits' to, and install this 'git'.

Step 1: make a directory, and go there.
mkdir -p ~/git/ && cd ~/git
Step 2: clone this git, unless it already exists.
if [ -d ~/git/GWASToolKit/.git ]; then \
		cd ~/git/GWASToolKit && git pull; \
	else \
		cd ~/git/ && git clone https://github.com/swvanderlaan/GWASToolKit.git; \
	fi

USAGE

The only script the user should use is the gwastoolkit.analyzer.sh script in conjunction with a configuration file gwastoolkit.conf.

By typing...

bash gwastoolkit.analyzer.sh $(pwd)/gwastoolkit.conf

...the user will control what analysis will be done. Simply typing bash gwastoolkit.analyzer.sh will produce an extensive error-message explaining what arguments are expected. Note: it is absolutely pivotal to use $(pwd) to indicate the whole path to the configuration file, because this is used by the script(s) for the creation of directories etc.


GWAS

A GWAS will be run on the selected dataset. LocusZoom style figures, Manhattan plots, QQ-plots and other informative plots will be made automatically made. Some relevant statistics, such as HWE, minor allele count (MAC), and coded allele frequency (CAF) will also be added to the final summarized result.


Per-Variant analyses

The user must supply a variant list with chromosome and base pair position per variant. The final analyses results will be concatenated into a summary file.


Regional analyses

The user must supply a region of interest in a file. The final analyses results will be concatenated into a summary file. Regional association plots will automatically be generated.


Per-Gene analyses

The user must supply a variant list with chromosome and base pair position per variant. The final analyses results will be concatenated into a summary file. Regional association plots will automatically be generated.


TO DO

There are definitely improvements needed. Below of things I'd like to add or edit in the (near) future.

  • edit the variant selection to work with non-rsID variants
  • add proper --help flag
  • clean up codes further, especially with respect to the various error-flags
  • add in checks of the environment, similar to slideToolkit scripts
  • add in some code to produce a simple report

The MIT License (MIT)

Copyright (c) 2010-2017 Sander W. van der Laan | s.w.vanderlaan [at] gmail [dot] com.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Reference: http://opensource.org.

You can’t perform that action at this time.