Code Monkey home page Code Monkey logo

biaae's Introduction

Molecular Generation for Desired Transcriptome Changes with Adversarial Autoencoders

Recent advances in deep neural networks and the abundance of the experimental biological data enabled the development of systems for extracting new genomic, molecular and phenotypic features that could not be found using conventional methods. In this work, we build a conditional generative model that produces molecular descriptors based on the desired transcriptional response. However, experimental gene expression also captures cellular processes unrelated to the drug incubation, leading to overfitting of standard models. The proposed Bidirectional Adversarial Autoencoder explicitly separates these processes into related and unrelated, improving molecular descriptors generation. We validate our model on the LINCS L1000 dataset by generating fingerprints of compounds with the desired transcriptional response. We also demonstrate that our model implicitly learns a metric in the space of molecules and expressions, which can be useful downstream tasks of representation learning.

pipeline

Repository

In this repository, we provide an implementation of the proposed Bidirectional Adversarial Autoencoder (BiAAE) model and include an experiment on Noisy MNIST data.

Installation

  1. Install basic dependencies: conda install numpy pandas matplotlib tqdm
  2. Install pytorch via conda install pytorch torchvision -c pytorch
  3. Install and tensorboardX via pip install tensorboardX
  4. Download the dataset by running python download.py from the root of the repository

Training the model

To train a model, refer to train.py script, in which you can play with multiple hyperparameters. To train the model with default parameters, you can run python train.py --name my_BiAAE. To get more details on this script, run python train.py --help. We also provide a pretrained model saved at models/BiAAE that you can use for visualization. You can find example samples in the Visualization.ipynb notebook.

biaae's People

Contributors

danpol avatar

Watchers

James Cloos 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.