Giter Club home page Giter Club logo

syntalinker's Introduction

SyntaLinker (Automatic Fragment Linking with Deep Conditional Transformer Neural Networks)

This is the code for the "SyntaLinker: Automatic Fragment Linking with Deep Conditional Transformer Neural Networks" paper found on ChemRxiv.

To implement our models we were based on OpenNMT-py (v0.4.1).

Install requirements

Create a new conda environment:

conda env create -f environment.yml
conda activate SyntaLinker

Pre-processing

The tokenized datasets can be found on the data/ folder.

For Input file generation, we the preprocess.sh script:

We use a shared vocabulary. The vocab_size and seq_length are chosen to include the whole datasets.

Training

The data has already been preprocessed for training the SyntaLinker

Model training can be started by running the training.sh script

To achieve the best results with single models, we average the last 10 checkpoints by running average_models.sh script.

Testing (beam search)

To generate the predictions use the translate.py script:

Model testing of beam search can be started by running the testing_beam_search.sh script.

Metrics

Run the the recovery.sh script to get the top-10 recovery. The other metrics, such as RMSD, 3D smiliarity in case study can be found in Utils/ folder.

Citation

If you find this work useful in your research, please consider citing the paper: "SyntaLinker: Automatic Fragment Linking with Deep Conditional Transformer Neural Networks".

syntalinker's People

Contributors

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