Coder Social home page Coder Social logo

jjmpal / gwasvcf Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrcieu/gwasvcf

0.0 0.0 0.0 19.19 MB

Reading, querying and writing GWAS summary data in VCF format

Home Page: https://mrcieu.github.io/gwasvcf

License: Other

Shell 0.52% R 5.20% HTML 94.28% Dockerfile 0.01%

gwasvcf's Introduction

Reading, querying and writing GWAS summary data in VCF format

Lifecycle: experimental codecov R-CMD-check

Complete GWAS summary datasets are now abundant. A large repository of curated, harmonised and QC'd datasets is available in the IEU GWAS database. They can be queried via the API directly, or through the ieugwasr R package, or the ieugwaspy python package. However, for faster querying that can be used in a HPC environment, accessing the data directly and not through cloud systems is advantageous.

We developed a format for storing and harmonising GWAS summary data known as GWAS VCF format which can be created using gwas2vcf. All the data in the IEU GWAS database is available for download in this format. This R package provides fast and convenient functions for querying and creating GWAS summary data in GWAS VCF format (v1.0). See also pygwasvcf a Python3 parser for querying GWAS VCF files.

This package includes:

  • a wrapper around the bioconductor/VariantAnnotation package, providing functions tailored to GWAS VCF for reading, querying, creating and writing GWAS VCF format files
  • some LD related functions such as using a reference panel to extract proxies, create LD matrices and perform LD clumping
  • functions for harmonising a dataset against the reference genome and creating GWAS VCF files.

See also the gwasglue R package for methods to connect the VCF data to Mendelian randomization, colocalisation, fine mapping etc.

Installation

remotes::install_github("mrcieu/gwasvcf")

Usage

See vignettes here: https://mrcieu.github.io/gwasvcf.

Citation

If using GWAS-VCF files please reference the studies that you use and the following paper:

The variant call format provides efficient and robust storage of GWAS summary statistics. Matthew Lyon, Shea J Andrews, Ben Elsworth, Tom R Gaunt, Gibran Hemani, Edoardo Marcora. bioRxiv 2020.05.29.115824; doi: https://doi.org/10.1101/2020.05.29.115824

Reference datasets

Example GWAS VCF (GIANT 2010 BMI):

1000 genomes reference panels for LD for each superpopulation - used by default in OpenGWAS:

RSID index for faster querying:

1000 genomes annotations in vcf format harmonised against human genome reference:


Notes

Example data

data.vcf.gz and data.vcf.gz.tbi are the first few rows of the Speliotes 2010 BMI GWAS

The eur.bed/bim/fam files are the same range as data.vcf.gz, from here http://fileserve.mrcieu.ac.uk/ld/data_maf0.01_rs_ref.tgz

gwasvcf's People

Contributors

explodecomputer avatar remlapmot avatar jjmpal avatar marynias 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.