Code Monkey home page Code Monkey logo

gwas's Introduction

GWAS

This repository provides a description of workflow for analysing GWAS data. All the required scripts are also included. A GWAS analysis can be subdivided into 5 major steps:

  1. QC of unimputed data
  2. Imputation
  3. QC of imputed data
  4. Association testing & filtering
  5. Regional clustering and plotting

Note: In some cases, scripts, parameters and thresholds need to be adapted to consider certain data proporties.

Reference files

GRCh37 reference (fasta.gz)
1000 Genomes allele frequency annotations (vcf.gz)
1000GP_Phase3_combined.legend.gz

1. QC of unimputed data

Script: qc_unimputed.sh
Input data: Seperate Plink files for cases and controls with sex info and both family id and individual id set
Required programs: plink2.0, plink1.9, bcftools, python3.7, Rscript with libraries qqman and data.table
Annotation files: reference genome (fasta), allele frequency file

2. Imputation

For imputation I recommend the Sanger imputation server (free of charge) at https://imputation.sanger.ac.uk/. Either select "pre-phase with EAGLE2 and impute" or "pre-phase with SHAPEIT2 and impute" and upload the final VCF files from step 1. After successfull imputation download the VCF files.

3. QC of imputed data

Script: qc_imputed.sh
Input data: Input files (*.vcf.gz) from Sanger imputation server.
Required programs: bcftools, vcfparse, IC, Perl module Benchmark
Annotation files: allele frequency file, 1000GP_Phase3_combined.legend

4. Association testing & filtering

Script: assoc_tests.sh
Input data: Genotypes and sample information in .gen/.sample format (final output of step 3)
Required programs: snptest

gwas's People

Contributors

matmu avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.