GithubHelp home page GithubHelp logo

dmm's Introduction

DMM

DMM (Deep Mixed Model)

Implementation of DMM in this paper:

Wang, H., Yue, T., Yang, J., Wu, W., & Xing, E. P. (2019). Deep mixed model for marginal epistasis detection and population stratification correction in genome-wide association studies. BMC bioinformatics, 20(23), 1-11.

Introduction

DMM (Deep Mixed Model) aims to extend the power of linear mixed model in correcting population stratification and identifying the associated genetic markers with the universarial approximation power of deep neural networks to model epistasis.

Replication: This repository serves for the purpose to guide others to use our tool, if you are interested in the scripts to replicate our results, please contact us and we will share the repository for replication. Contact information is at the bottom of this page.

File Structure:

  • model/ main method for DMM
  • libs/ other helper files, and definitions of the two components.

Usage:

Instructions

  • Use loadData() in libs/helpingFun.py to load data. Users need to specify which data to load here.
  • Run model.py in model/ to run the program.
  • Parameter settings are in the model.py
    • parameters

      • epochs for both CNN and LSTM
      • learning rates for both CNN and LSTM
      • batch size
      • hidden state size (we use a percentage to control the hidden state size)
      • dropout rate

Data Support

  • DMM supports .npy file, as shown in loadData() in libs/helpingFun.py
    • X.npy is a n x p matrix, with n samples and p SNPs
    • Y.npy is a n x 1 matrix, with n samples and 1 phenotype
  • If one needs help to convert Plink data format into .npy data format, this script can be helpful.

Contact

The idea of the paper is mainly from Haohan Wang · @HaohanWang

The code in this repository is mainly written by Tianwei Yue and Jingkang Yang

dmm's People

Contributors

haohanwang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shouhengtuo

dmm's Issues

Runtime (Version?) Errors

Hello,

I have been attempting to run DMM on an HPC using Tensorflow 1.15.5.
I was initially crashing on line 67 of model.py "tf.reset_default_graph()".
Then I replaced all "import tensorflow as tf" statements with "import tensorflow.compat.v1 as tf" and now I crash on line 348 "runDMM(True, modelparams)" due to an error that occurs in line 89 "model2top = CNN_x(x, y, problem, n_input, n_output = n_output,".

I could use some advice on how to fix this. Thank you!

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.