GithubHelp home page GithubHelp logo

lianghsun / drug_discovery Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.17 MB

This project uses a Variational Autoencoder (VAE) to generate SMILES strings for novel compound generation. The VAE model is trained on a dataset of existing chemical compounds and can generate new, valid SMILES strings, which may represent potentially new and useful chemical entities.

License: Apache License 2.0

Jupyter Notebook 100.00%
aidd drug-discovery python smiles tensorflow vae

drug_discovery's Introduction

Prerequisites

  • Install the required packages by running the following command:
    pip install -r requirements.txt

Dataset

  • Download the SMILES dataset from Kaggle ZINC 250k. Change the file extension to .smi and remove the header row.
  • Place the prepared .smi file in the datasets folder.

Preprocessing

  • Use preprocess.ipynb and run the notebook to preprocess the .smi file and obtain the tokenization mapping table.

Running the Main Script

We have provided a token file for this project, so you can skip the Load Training Data section and proceed with running the rest of the code.

Note: Due to the nature of Variational Autoencoders (VAE), there might be instances where new compounds are not generated (sampling problem). If this happens, please run the code multiple times to obtain a valid compound.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

drug_discovery's People

Contributors

lianghsun avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

aiaaiintaiwan

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.