GithubHelp home page GithubHelp logo

metro's Introduction

METRO (Multi-ancEstry TRanscriptOme-wide analysis)

METRO is a new computational method that leverages expression data collected from multiple genetic ancestries to enhance Transcriptome-wide association studies (TWAS). METRO incorporates expression prediction models constructed in multiple genetic ancestries through a likelihood-based inference framework, producing calibrated test statistics with substantially improved TWAS power.

Installation

Install METRO R package maintained in github through the "devtools" package.

if(!require(devtools))
  install.packages(devtools)
devtools::install_github("zhengli09/METRO")
library(METRO)
?METRO

Usage

There are three main functions in METRO package:

  1. METROIndStat: multi-ancestry TWAS analysis with individual level gene expression data and individual level GWAS data.
  2. METROSumStat: multi-ancestry TWAS analysis with individual level gene expression data and GWAS summary statistics.
  3. METRO2SumStat: multi-ancestry TWAS analysis with summary level gene expression data and GWAS summary statistics.

We have also extended METRO to adjust for SNP horizontal pleiotropy with the Egger assumption. The relevant functions are METROEggerIndStat, METROEggerSumStat, and METROEgger2SumStat.

[Please refer to the paper and documentations for the detailed instructions]

Example

We exemplify the usage of METRO by analyzing the gene PLTP with GEUVADIS expression data and GLGC HDL GWAS summary statistics. The two datasets are publically available. Please refer to the paper for the detailed processing of the two datasets.

data(PLTP_GEUVADIS)
METRORes <- METROSumStat(eQTLGeno, eQTLExpression, GWASzscores, 
  LDMatrix, n, verbose = T)
Starting METRO...
***** info *****
  - Handling data with 124 SNPs
  - Handling data with 2 expression studies 
***** Starting EM algorithm unter the null (no effects) *****
    log-likelihood: -47352
    sigma2: 1
    sigma2beta: 0.000788926 0.0015376
    sigma2m: 0.883093 0.836214
    alpha: 0 0
***** Starting EM algorithm unter the alternative (positive effects) *****
    log-likelihood: -47287.6
    sigma2: 0.999843
    sigma2beta: 0.000782837 0.00157566
    sigma2m: 0.88352 0.835781
    alpha: 0 0
***** Starting EM algorithm unter the alternative (negative effects) *****
    log-likelihood: -47118.6
    sigma2: 0.992376
    sigma2beta: 0.000132166 0.00161972
    sigma2m: 0.993455 0.835366
    alpha: -1.67004 -0.0288259
***** done *****
# Key parameter estiamtes and statistics:
METRORes$alpha # -1.70
METRORes$weights # c(0.98, 0.02)
METRORes$pvalueLRT # 4.2e-102

metro's People

Contributors

zhengli09 avatar

Watchers

James Cloos 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.