Giter Site home page Giter Site logo

zhaohanm / fusiongda Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1012 KB

we propose a novel FusionGDA model, which utilises a pre-training phase with a fusion module to enrich the gene and disease semantic representations encoded by pre-trained language models.

Shell 0.53% Python 17.86% Jupyter Notebook 81.61%
contrastive-learning pretrained-language-model fusion-module predicting-gene-disease-associations

fusiongda's Introduction

Heterogeneous biomedical entity representation learning for gene-disease association prediction

FusionGDA

Installation

# Download the latest Anaconda installer
wget https://repo.anaconda.com/archive/Anaconda3-latest-Linux-x86_64.sh

# Install Anaconda
bash Anaconda3-latest-Linux-x86_64.sh -b

# Clean up the installer to save space
rm Anaconda3-latest-Linux-x86_64.sh

# Set path to conda
ENV PATH /root/anaconda3/bin:$PATH

# Updating Anaconda packages
conda update --all

# Install the latest version of PyTorch and related libraries with CUDA support
# Note: Replace 'cudatoolkit=x.x' with the version compatible with your CUDA version
RUN conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

# Install other Python packages
pip install pytdc
pip install wandb
pip install lightgbm
pip install -U adapter-transformers
pip install pytorch-metric-learning

Executing program

Make sure you are in the directory ~/dpa_pretrain/scripts You adjust the required parameters directly.

Pre-training phase

bash run_pretrain_gda_ml_adapter_infoNCE.sh

Fine-tuning phase

TDC Dataset

bash run_finetune_gda_lightgbm_infoNCE_tdc.sh

DisGeNET Dataset

bash run_finetune_gda_lightgbm_infoNCE.sh

Check your results in the wandb account.

Datasets

We store all required datasets in the Google Drive. Here

fusiongda's People

Contributors

zhaohanm avatar

Stargazers

 avatar

Watchers

Zaiqiao Meng 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.