Coder Social home page Coder Social logo

mr-maternal-smoking's Introduction

Proxy gene × environment Mendelian randomization study

This study uses UK Biobank participants' 'smoking heaviness' SNP rs16969968 in gene CHRNA5 as a proxy of their mother's rs16969968.

This repository accompanies the paper:

Yang Q, et al. A proof of principle proxy gene × environment Mendelian randomization study: Testing causal effects of maternal smoking heaviness during pregnancy. bioRxiv (2019).

Our analyses mainly have 5 steps:

(1) Extract genotype information

(2) Extract phenotype information

(3) Conduct MR analyses

(4) Visualize MR results

(5) Compare statistical power of G-by-E MR with that of proxy G-by-E MR in the simulation

Set enviromental variables

To extract genotype information from UKB shared data using Linux, we set the following environment variable:

export UKB_DATA="/path/to/ukb/data"

We run all R scripts in Windows by setting the folders containing extracted input data, output results and UKB shared data in R (version 3.5.1) as below:

Sys.setenv(Mydata="/path/to/extracted/input/data")
Sys.setenv(Myresults="/path/to/output/results")
Sys.setenv(UKB_DATA="/path/to/ukb/data")

mr-maternal-smoking's People

Stargazers

Xianwei-Guo avatar  avatar  avatar  avatar

Watchers

Louise avatar James Cloos avatar Ben Elsworth avatar Peter Matthews avatar gibran hemani avatar Tom Gaunt avatar  avatar

Forkers

yanch86

mr-maternal-smoking's Issues

Running the analysis on local computer

Hi I am new to the MR analysis and in need to conduct GXE and I am wondering for step 1 can I use my computer, I guess that will require a lot of computational power right? what do you advise?

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.