Skip to content

SY575/Decoys

Repository files navigation

Decoys

The code was built based on MOSES. Thanks a lot for their code sharing!

Requirements

  • Python 3.6
  • PyTorch 1.6
  • CUDA 10.2
  • RDKit

Quick start

Installation

python setup.py install

Dataset preparation

Unzip file zinc_all.7z, and run code python build_dataset.py --path PATH --target TARGET to preprocess the active molecules,

where <PATH> is the path of input file, <TARGET> is the name of dataset.

Running MolSty

To train model using MolSty, use:

python ./scripts/train.py MolSty --target TARGET --model_save ./checkpoints --n_batch 16 --n_ins 2

To generate molecules using MolSty, use:

sh generate.sh PATH_CHECKPOINT

where, <PATH_CHECKPOINT> is the checkpoint path, for example, ./checkpoints/ckpt_100.pt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages