pip install -r requirements.txt
- Python 3.6.3
- PSIPRED libraries should be installed by downloading from here and following this installation guide
All default arguments for demo are provided.
- Run
python wgan_gp_geneto pretrain WGAN with Gradient Penalty to produce valid gene sequences.
- Expected Output
sample/$RUN_NAMEwill contain sample gene sequences from every 100 iterations, as well as loss and distance curves.checkpoint/$RUN_NAMEwill contain checkpoints for both generator and discriminator
- Pretrain Analyzer:
- AMP Analyzer: run
python amp_predictor_pytorch- Expected Output
checkpoint/$RUN_NAMEwill contain analyzer checkpoints- At end of training, model will print training accuracy, test accuracy, etc.
- Expected Output
- Psipred Secondary Structure Analyzer: No pretraining necessary.
psipred_wrapper.pyprovides a wrapper around the PSIPRED libraries.
- 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_NAMEwill contain FBGAN checkpointssamples/$RUN_NAME/sampled_*_preds.txtwill 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.
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.