Giter VIP home page Giter VIP logo

rna-seq-vae's Introduction

Conditional Variational Auto-Encoder for GTEx dataset (V8)

This project aims to generate synthetic gene expression data using generative models.
We first investigate the 3D representation of the data and possible variables to condition on in order to effectively separate the distributions. Currently model is conditioned on tissue.

3D Representations (UMAP, TSNE, PCA) of the GTEx dataset (1000 random genes) coloured by tissue:

3D reprsentation

Current reconstruction quality for CVAE, conditional on tissue.

reconstruction

Based on:

  1. https://www.tensorflow.org/tutorials/generative/cvae
  2. https://github.com/greenelab/tybalt
  3. https://arxiv.org/pdf/1908.06278.pdf
  4. https://github.com/timbmg/VAE-CVAE-MNIST
  5. https://gtexportal.org/home/
  6. Papers on loss of variance for VAE: https://arxiv.org/pdf/2002.09860.pdf, https://arxiv.org/pdf/2002.07514.pdf, https://github.com/asperti/BalancingVAE/blob/master/computed_gamma.py

Progress of the project:

  • Baseline model creation

  • Functions for evaluating mean, absolute difference and grouping in the latent space

  • Model tuning

    • latent space size
    • batch size, learning rate (epochs number should be determined with early stopping)
    • number of additional dense layers, number of neurons in each additional layer
  • Conditional VAE model (one of conditions: tissue or age)

  • b-VAE model (MSE / KL-divergence weight in the loss function)

  • Correlated VAE (https://arxiv.org/pdf/1905.05335.pdf)

  • torch_model.py - Layers and properties of the neural network

  • gtex_loder.py - Loading gene expression dataset

  • torch_training.py - Model training and testing

python3 torch_training.py to start the generation algorithm

tensorboard --logdir logs/run{number_of_run} to start tensorboard

Snapshots of TensorBoard scalars:

ELBO from epoch 1 to n_epochs

ELBO

KL Divergence (latent loss) from epoch 1 to n_epochs

KL Divergence (latent loss)

MSE (reconstruction loss) from epoch 1 to n_epochs

MSE (reconstruction loss)

rna-seq-vae's People

Contributors

lovelyscientist 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.