Coder Social home page Coder Social logo

psgnet's Introduction

PSGNet

Source code and data for "PSGNet: a pre-training strategy-based GraphSAGE and Transformer for interpretable drug response prediction in cancer cell lines"

Data

  • Releases -Some data is available inside Releases due to size restrictions.
  • Cell_line_RMA_proc_basalExp.csv -Gene expression data used for model training.
  • Cell_line_RMA_proc_basalExp.txt -Gene expression data used for model training.
  • Cell_list.csv -List of cancer cell line data information.
  • drug_smiles.csv -Contains information about all drug smiles.
  • Druglist.csv -All drugs involved in the training of the model.
  • METH_CELLLINES_BEMs_PANCAN.csv -DNA methylation data used for model training.
  • PANCANCER_Genetic_feature.csv -Genomic mutation data used for model training.
  • PANCANCER_IC.csv -Drug response data for known cancer cell lines in the GDSC2 database.
  • pychem_cid.csv -pychem cid information for model training drugs.
  • small_molecule.csv -Small molecule information for model training drugs.
  • unknow_drug_by_pychem.csv-No drugs listed for pychem cid.

Source codes

  • Data_encoding.py:The drug data and cancer cell line data are encoded into pytorch tensor format for subsequent model training. Partitioning of the data into training, test and validation sets will also be completed.
  • Model_training.py:Contains the overall framework for the model, using drug data and cancer cell line data for drug response prediction.
  • Model_utils.py:Function call support for the data encoding, model training and model validation sections of the code.
  • Model_validation.py:The trained model is validated to check the generalisation and accuracy of the model.

Requirements

requirements.yaml contains all the installation packages required for the model runtime environment

  • Operating environment: Linux
  • torch==1.10.2+cu114
  • python==3.8.3
  • rdkit==2022.3.3
  • deepchem==2.4.0
  • pandas==1.4.3
  • numpy==1.21.4
  • scipy==1.8.1
  • torch-cluster==1.5.9
  • torch-geometric==2.0.4
  • torch-scatter==2.0.9
  • torch-sparse==0.6.12
  • torch-spline-conv==1.2.1
  • torchaudio==0.10.2+cu114
  • torchsummary==1.5.1
  • torchvision==0.11.3+cu114

Step-by-step running:

1. Create data in pytorch tensor format

 python Data_encoding.py

xxxxxx

2. Train a MTrsDRP model

python Model_training.py --model 0 --train_batch 1024 --val_batch 1024 --test_batch 1024 --lr 0.0002 --num_epoch 300 --log_interval 20 --cuda_name "cuda:0"

xxxx

psgnet's People

Contributors

pipi0315 avatar

Watchers

 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.