Coder Social home page Coder Social logo

sc2mol's Introduction

Sc2Mol: A Scaffold-based Two-step Molecule Generator with Variational Autoencoder and Transformer

Requirements

python 3.7
tensorflow-gpu >= 2.3.0
rdkit >= 2020.03.2.0
pandas >= 1.0.3
numpy >= 1.19.2

Data

See data fold to get data and preprocess data.

Training

python training.py --input_npy ./data/training_raw_chain --target_npy ./data/training_raw_target --npy_num 10
More arguments setting can be found and changed in code file training.py.

Evaluating (random generation)

python eval_random.py --num_sample NUM_SAMPLE --output OUTPUT --ckpt CHECKPOINT
More arguments setting can be found and changed in code file eval_random.py.

Evaluating (given scaffold)

python eval_from_scaffold.py --input INPUT_NPY --target TARGET_NPY --num_sample NUM_SAMPLE --output OUTPUT_FILE --ckpt CHECKPOINT_PATH
More arguments setting can be found and changed in code file eval_from_scaffold.py.

Citation

Zhirui Liao, Lei Xie, Hiroshi Mamitsuka, Shanfeng Zhu, Sc2Mol: a scaffold-based two-step molecule generator with variational autoencoder and transformer, Bioinformatics, Volume 39, Issue 1, January 2023, btac814, https://doi.org/10.1093/bioinformatics/btac814

Contacts and bug reports

Please feel free to send bug reports or questions to Zhirui Liao: [email protected] and Prof. Shanfeng Zhu: [email protected]

Declaration

It is free for non-commercial use. For commercial use, please contact Zhirui Liao and Prof. Shanfeng Zhu ([email protected]).

sc2mol's People

Contributors

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