Giter VIP home page Giter VIP logo

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

dl-biobank's People

Contributors

dependabot[bot] avatar paubellot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dl-biobank's Issues

'requirments.txt' lacks packages

theano
pandas
...
I tried to reimplement this project, but it seems some packages' settings are missing.
Although installed successfully by hand, still recommend add them in. XD

problem of hck_data.py

Hi,
I would like to know how I can get bin data of genotype data, such as .bed? I think the n and p is the same in the read function in hck_data.py. It is right?

Best,
Sheng

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.