Coder Social home page Coder Social logo

paubellot / dl-biobank Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 12.0 26.32 MB

Can deep learning improve genomic prediction of complex human traits? by Pau Bellot, Gustavo de los Campos, Miguel Pérez-Enciso, Genetics

Home Page: http://www.genetics.org/content/210/3/809

License: MIT License

Python 100.00%
deep-learning genomic-prediction

dl-biobank's Introduction

Can deep learning improve genomic prediction of complex human traits? by Pau Bellot, Gustavo de los Campos, Miguel Pérez-Enciso, Genetics.

This repo contains the code to reproduce the experiments of the paper Can deep learning improve genomic prediction of complex human traits?.

Before you start

  • Download and install Tensorflow and Keras.
    • The file requirements.txt contains a simple list of all the packages in the current environment, and their respective versions.
  • Download the biobank dataset and traits.
    • Save genotypes
    • Save phenotypes in a csv, each trait should be in a column
  • Run a GWAS for all traits and save the results in a csv file
    • This csv should have the p-values of each SNP for each trait (in columns)

data

  • data/ folder contains the GWAS for all the traits used in the paper

To run

Train MLPs models for height with 10k Best SNPS

python main.py --mlp --trait height

Train CNNs models for height with 10k Unif SNPS

python main.py --cnn --trait height --unif

Train MLPs models for BHMD with 50k Best SNPS

python main.py --mlp --trait BHMD --unif -k 50000

Deep learning hyperparamer tuning

  • see GA directory

To generate the figures eneration

  • see notebook and R code

License

MIT

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.