SkillAgentSearch skills...

Pairwise

No description available

Install / Use

/learn @Mew233/Pairwise
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PAIRWISE

PAIRWISE is an all-in-one package for drug synergy prediction. This package allows the user to conduct standardized experiments to compare the prediction performance between reviewed methods.

The user can freely include new datasets, and select preferential cell/drug features to train the deep learning model.


Installation

# Unzip 
unzip pairwise.zip
cd pairwise/

#create conda environment
conda env create --name pairwise --file=environment.yml
conda activate pairwise
#To install for PyTorch 1.10.0, simply run on your mac
pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.10.0+${cpu}.html
pip install torch-geometric -f https://pytorch-geometric.com/whl/torch-1.10.0+${cpu}.html
pip install torch-cluster -f https://pytorch-geometric.com/whl/torch-1.10.0+${cpu}.html 
pip install torch-sparse -f https://pytorch-geometric.com/whl/torch-1.10.0+${cpu}.html 
pip install torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.10.0+${cpu}.html

#install pairwise
pip install -e .

#Please download data/ and put it in the same path as setup.py
[data folder] https://zenodo.org/records/18263823

If you are using Mac M1 chip, we recommend checking out this github issue for installation of required dependencies


Getting strarted

 python pairwise/main.py --model 'deepsynergy_preuer' --synergy_df 'p13' --train_test_mode train

Features explained

| Model | Input feature format | | Feature encoders | | Features concatenated ||Drug1 and drug2 summed | |----------------------------------|:------------------------:|:------------------------------------------------------------------------------------:|:----------------:|:--------------------------------:|:----------------:|:----:|:----------------:| | | Cell line | Drug | Cell line | Drug | Cell line | Drug |
| PAIRWISE | exp | Chemical structures, Drug-target interaction from DrugTargetCommons v2.0 | Autoencoders | Pretrained foundation model, DNN | | | False | | ML approaches: LR,RF,XGBoost,ERT | exp or cnv or mut | Drug-target interaction | | | | | True|
| DeepSynergy | exp | Drug chemical descriptor or fingerprints | DNN | DNN | | | True | | MatchMaker | exp | Drug chemical descriptor or fingerprints | DNN | DNN | | | False | | Multitask_DNN | exp | Morgan or MACCS fingerprints, Drug-target interaction | DNN | DNN | | False| False | | DeepDDS | exp | SMILES2Graph | MLP | GCN | | | False | | TGSynergy | exp | SMILES2Graph | GCN | GCN | | | False | | TranSynergy | exp | Network propagated Drug-target interaction or morgan_fingerprint,smiles,smiles2graph | Transformer | GCN(RWR)+Transformer | | | False | | GraphSynergy | cell_protein,PPI network | drug_protein,PPI network | GCN | GCN | | | False |


Data downloaded

PAIWISE used multi-omics datasets.

  1. We have provided a cleaned benchmark synergy truset. For details of reporducing, please go to trueset_generation/ to follow the instructions.
  2. CCLE dataset including exp, cnv, mut
  3. Drug-target interaction dataset from DrugComb, and structures.sdf which enables fingerprints calculation or smiles2graph Link and please put into Data/ folder

Models included

In detail, the following drug synergy prediction models were implemented.


Customized dataset

Use customized dataset to test. The testing drug combos are sourced from specialized tissues. The testing results are stored in /results/predicts_"Model"_"Customized".csv


License

MIT

Related Skills

View on GitHub
GitHub Stars486
CategoryDevelopment
Updated7d ago
Forks33

Languages

Python

Security Score

75/100

Audited on Mar 26, 2026

No findings