- Clone project repo form GitHub:
- ssh: [email protected]:renshuangxia/ResGitDR.git
- http: https://github.com/renshuangxia/ResGitDR.git
- Prepare python environment with conda (for installing conda, please refer to https://docs.anaconda.com/free/miniconda/):
- conda create -n your_env_name python=3.10
- In a terminal, export PYTHONPATH to your repo directory with command:
- export PYTHONPATH=”{ABSOLUTE_PATH_TO_YOUR_GIT_REPO}”
- Go to project repo root directory, run command:
- pip install -r requirements.txt
You can download all the input data from the following link:
https://drive.google.com/drive/folders/1cdpyX-Qsp4ilhhf4Zay0FeG6X8cSXDyZ?usp=sharing
After downloading, unzip the files and place them in your repository in a folder named “data”.
To obtain the cross-validation results, you must first run ResGit_train_cross_validation.py and then run DR_train_cross_validation.py. Our model has two parts: the first part (ResGit) generates hidden representations, which are then used by the second part for drug sensitivity prediction.
- python ResGit_train_cross_validation.py
- python DR_train_cross_validation.py
To get the all the parameter and then do the parameter analysis, please first run ResGit_train_parameter_analysis.py and then run python DR_train_parameter_analysis.py
- python ResGit_train_parameter_analysis.py
- python DR_train_parameter_analysis.py
To train the two end to end models (multi-task or SGA2DR), you will need to choose the “model name” in Multitask_and_SGA2DR_train_cross_validation.py to be either "Multitask" or "SGA2DR", and then run:
- python Multitask_and_SGA2DR_train_cross_validation.py