Git Product home page Git Product logo

cafe-mpp's Introduction

CAFE-MPP: Self-Supervised Learning with Chemistry-aware Fragmentation for Effective Molecular Property Prediction

Briefings in Bioinformatics[Paper] [PDF]

Ailin Xie, Ziqiao Zhang, Jihong Guan, Shuigeng Zhou
Fudan University, Tongji University

This is the official implementation of CAFE-MPP: " Self-Supervised Learning with Chemistry-aware Fragmentation for Effective Molecular Property Prediction ".

Setup

Installation

# conda environment
conda create --name CAFE-MPP python=3.8
conda activate CAFE-MPP

# install requirements
conda install pytorch==1.11.0 torchvision==0.12.0 torchaudio==0.11.0 cudatoolkit=11.3 -c pytorch
conda install pyg -c pyg
conda install -c conda-forge rdkit
conda install -c anaconda cython

# clone the source code
git clone https://github.com/shiokoo/CAFE-MPP.git
cd CAFE-MPP

Dataset

We provide the preprocessed pre-training fragment dataset used in this project. Besides, You can download the benchmarks MoleculeNet used in this project by running the following command:

cd ./Data
bash download_data.sh

Pre-training

To pre-train the CAFE-MPP, where the configurations and hyperparameters are defined in ./Config/config_pretrain.yaml.

cd ./Pretrain
python trainer.py

Prediction

To fine-tune the CAFE-MPP, where the configurations and details are can be found in ./Config/config_prediction.yaml.

cd ./Prediction
python setup.py build_ext --inplace # generate .so
python trainer.py

If you find our work is helpful in your research, please cite:

@article{xie2023cafe-mpp,
    author = {Xie, Ailin and Zhang, Ziqiao and Guan, Jihong and Zhou, Shuigeng},
    title = "{Self-supervised learning with chemistry-aware fragmentation for effective molecular property prediction}",
    journal = {Briefings in Bioinformatics},
    pages = {bbad296},
    year = {2023},
    month = {08},
    issn = {1477-4054},
    doi = {10.1093/bib/bbad296},
    url = {https://doi.org/10.1093/bib/bbad296},
    eprint = {https://academic.oup.com/bib/advance-article-pdf/doi/10.1093/bib/bbad296/51175671/bbad296.pdf},
}

cafe-mpp's People

Contributors

shiokoo avatar

Stargazers

Xie Zhaoyang avatar  avatar

Watchers

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