Giter Site home page Giter Site logo

twineqtl's Introduction

TwinEQTL: Ultra Fast and Powerful Association Analysis for eQTL and GWAS in Twin Studies

Introduction

TwinEQTL is a computationally efficient alternative to a linear mixed-effects model (LMM) for twin genome-wide association study (GWAS) or expression quantitative trait loci (eQTL) analyses. Instead of analyzing all twin samples together with LMM, TwinEQTL first randomly splits twin samples into two independent groups on which multiple linear regression analysis is performed separately, followed by an appropriate meta-analysis to combine the two non-independent test results. Our approaches provide a huge leap in terms of computing performance for GWAS data with twin pairs.

Key features

  1. Fast alternative to linear mixed effect model with no inflation of type I error and negligible power loss
  2. Fast standard GWAS analysis for twin or correlated subjects
  3. Fast expression quantitative trait loci (eQTL) analysis for twin or correlated subjects
  4. Implemented as an easy-to-use R package similar to MatrixEQTL

Install GitHub Version

To install TwinEQTL directly from GitHub, run

if(!requireNamespace("devtools", quietly = TRUE))
    install.packages("devtools")
devtools::install_github("andreyshabalin/TwinEQTL@main")

The package includes reference manual, sample data and a Vignette.

Basic Usage

library(TwinEQTL)

# Number of MZ twin pairs
Nm = 1000

# Number of DZ twin pairs
Nd = 2000

# Number of singleton samples
Ns = 3000

# Number of genes
Ngene = 1000

# Number of SNPs
Nsnps = 1000

# Number of covariates
Ncvrt = 10

# Gerenate artificial data
sim = TwinEQTL_simulate(Nm, Nd, Ns, Ngene, Nsnps, Ncvrt)

# Pick a p-value threshold
pvthreshold = 1000 / (Ngene * Nsnps)

# Run eQTL analysis on the data with twins
eqtls = TwinEQTL_testAll(
    gene = sim$gene,
    snps = sim$snps,
    cvrt = sim$cvrt,
    twininfo = sim$twininfo,
    pvthreshold = pvthreshold)

# Display the results
head(eqtls)

Citation

K Xia, AA Shabalin, ..., F Zou. Ultra Fast and Powerful Association Analysis for eQTL and GWAS in Twin Studies. (Submitted)

Contact

Kai Xia: [email protected]

Andrey A Shabalin: [email protected]

Fei Zou: [email protected]

twineqtl's People

Contributors

andreyshabalin avatar

Watchers

 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.