Coder Social home page Coder Social logo

mrcieu / mr-e-values Goto Github PK

View Code? Open in Web Editor NEW
0.0 6.0 0.0 6 KB

Code to calculate effect estimates and descriptive statistics to be used as inputs for the MR-E-Values shiny app (https://mark-gibson.shinyapps.io/mr-e-values_shiny_app/), using the applied example of the potential causal effect of smoking behaviour on schizophrenia.

Shell 30.93% R 69.07%

mr-e-values's Introduction

The MR-E-Value: Smoking and Schizophrenia

This pipeline produces linear regression and Mendelian randomisation estimates for the potential causal relationship between smoking initiation and schizophrenia, using UK Biobank data, to be used to calculate the MR-E-Values.

Directory Structure

The project folder has the following structure:

MR-E-Value/code
MR-E-Value/code/a_extract_data
MR-E-Value/code/b_process
MR-E-Value/code/c_analysis
MR-E-Value/data
MR-E-Value/output

Input Files

data/data-mr.txt

This file contains data for schizophrenia (ICD 10 codes F20-F24,F28-29), smoking (ever versus never), risk-taking (risk-taker versus not) and beta-weighted genetic risk scores for smoking (Liu, 2019) and risk-taking (Linner, 2019). This file combines data created for Mendelian randomisations by two other pipelines. These are MRCIEU/MultiverseMR_Smoking_Schizophrenia and MRCIEU/Confounder-MR (risk-taking).

Scripts

a_extract_data

This section of the pipeline extracts dates for schizophrenia diagnoses and calculates whether these were before or after baseline for each individual.

b_process

This section of the pipeline excludes individuals with schizophrenia diagnoses before baseline and those with missing data for smoking initiation.

c_analysis

This section of the pipeline conducts a linear regressions of schizophrenia on smoking initiation and an analogous MR. These effect estimates can then be entered into my shiny application (https://mark-gibson.shinyapps.io/mr-e-values_shiny_app/) which conducts the MR-E-Value analysis. This section of the pipeline also conducts MRs of both smoking initiation and schizophrenia on risk-taking to investigate it's strength as a potential confounder.

mr-e-values's People

Contributors

markjgibson avatar

Watchers

Louise avatar Ben Elsworth avatar Peter Matthews avatar gibran hemani avatar Matthew S Lyon 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.