GithubHelp home page GithubHelp logo

fbgan's Introduction

Feedback GAN for DNA

System Requirements and Installation

pip install -r requirements.txt

  • Python 3.6.3
  • Pytorch version 0.4.0a0+cb4f6c3
    • CUDA (optional) 8.0
  • Ubuntu 16.04 operating system
  • PSIPRED libraries should be installed by downloading from here and following this installation guide

Demo Instructions

All default arguments for demo are provided.

  1. Run python wgan_gp_gene to pretrain WGAN with Gradient Penalty to produce valid gene sequences.
  • Expected Output
    • sample/$RUN_NAME will contain sample gene sequences from every 100 iterations, as well as loss and distance curves.
    • checkpoint/$RUN_NAME will contain checkpoints for both generator and discriminator
  1. Pretrain Analyzer:
  • AMP Analyzer: run python amp_predictor_pytorch
    • Expected Output
      • checkpoint/$RUN_NAME will contain analyzer checkpoints
      • At end of training, model will print training accuracy, test accuracy, etc.
  • Psipred Secondary Structure Analyzer: No pretraining necessary. psipred_wrapper.py provides a wrapper around the PSIPRED libraries.
  1. Train FBGAN:
  • With AMP analyzer: run python wgan_gp_lang_gene_analyzer. Default arguments for demo are provided.
  • With Psipred analyzer: run python wgan_psipred. Default arguments for demo are provided.
  • Expected Output
    • checkpoint/$RUN_NAME will contain FBGAN checkpoints
    • samples/$RUN_NAME/sampled_*_preds.txt will contain sampled outputs from generator and their scores from analyzer from every epoch.
    • $RUN_NAME for AMP demo is default "fbgan_amp_demo"
    • $RUN_NAME for Psipred demo is default "fbgan_psipred_demo" -Expected Runtime
    • With a Nvidia GEFORCE GTX GPU, it takes roughly 2 minutes per epoch for FBGAN. Expect this to take at least 10 minutes per epoch on a desktop.

LICENSE

Source files are made available under the terms of the GNU Affero General Public License (GNU AGPLv3). See GNU-AGPL-3.0.txt for details.

fbgan's People

Contributors

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