Git Product home page Git Product logo

mr_tricks's Introduction

Post-GWAS analysis and Mendelian Randomization

During the study based on Mendelian Randomization, several functions were proposed to solve several common problems, including:

Special note

Recently, I noticed that some uploaders in Bilibili seem to sell my codes, such as Shining94. The original purpose of this project is to share my solutions to certain problems in Mendelian Randomization without charge. I urge those guys stop selling my codes, and I decide to not share my recent findings on MR. If you have any questions, leave me a message.

Preprocessing for exposure GWASs

  • how to get rsID from chromosome and position: get_rsID_from_chr_pos
  • how to find allele frequency, proxy of a given SNP: snp_add_eaf, snp_add_eaf_manual,find_proxy
  • how to search pleiotropy for a given SNP: snp_phenoscanner

Exposure and outcome data harmonization

  • how to harmonize if direct removal is not allowed and proxy is required: snp_replace_proxy, harmonise_data_modified

Main analysis for Mendelian Randomization

  • mr_meta is helpful conduct meta-analysis to pool estimates from different cohorts
  • mr_modified is alternative function to mr in TwoSampleMR package, since the mr-raps cannot not be conducted in the original function
  • get_cohort_from_number transforms a number into a name of cohort
  • get_method_from_abbr transforms an abbreviation version of MR method into a full name
  • get_protein_from_uniprot transforms a UniProt ID to full name of protein, with UniProtRefPanel.xlsx as the reference panel

More functions are under developing...

  • data visualization: volcano plot, forest plot...
  • colocolization
  • TWAS
  • ...

Useful references

mr_tricks's People

Contributors

linjf15 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.