Skip to content

Commit

Permalink
Update to version 1.1.0 of DeepInteract and update Zenodo links
Browse files Browse the repository at this point in the history
  • Loading branch information
amorehead committed Feb 26, 2022
1 parent d0781de commit a9d639d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 27 deletions.
56 changes: 33 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# DeepInteract (ICLR 2022)

[![Paper](http://img.shields.io/badge/paper-arxiv.2110.02423-B31B1B.svg)](https://openreview.net/forum?id=CS4463zx6Hi) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5797024.svg)](https://doi.org/10.5281/zenodo.5797024)
[![Paper](http://img.shields.io/badge/paper-arxiv.2110.02423-B31B1B.svg)](https://openreview.net/forum?id=CS4463zx6Hi) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6299835.svg)](https://doi.org/10.5281/zenodo.6299835)

[<img src="https://twixes.gallerycdn.vsassets.io/extensions/twixes/pypi-assistant/1.0.3/1589834023190/Microsoft.VisualStudio.Services.Icons.Default" width="50"/>](https://pypi.org/project/DeepInteract/)

Expand Down Expand Up @@ -248,8 +248,8 @@ Now that we know Docker is functioning properly, we can begin building our Docke
```bash
mkdir -p project/checkpoints
wget -P project/checkpoints https://zenodo.org/record/5797024/files/LitGINI-GeoTran-DilResNet.ckpt
wget -P project/checkpoints https://zenodo.org/record/5797024/files/LitGINI-GeoTran-DilResNet-DB5-Fine-Tuned.ckpt
wget -P project/checkpoints https://zenodo.org/record/6299835/files/LitGINI-GeoTran-DilResNet.ckpt
wget -P project/checkpoints https://zenodo.org/record/6299835/files/LitGINI-GeoTran-DilResNet-DB5-Fine-Tuned.ckpt
```
3. Build the Docker image (Warning: Requires ~13GB of Space):
Expand Down Expand Up @@ -400,18 +400,39 @@ referenced in `project/datasets/builder/psaia_config_file_input.txt`.**
### Download training and cross-validation DGLGraphs
To train, retrain, or cross-validate DeepInteract models using DIPS-Plus and/or CASP-CAPRI targets, we first need to download the preprocessed DGLGraphs from Zenodo:
To train, fine-tune, or test DeepInteract models using CASP-CAPRI, DB5-Plus, or DIPS-Plus targets, we first need to download the preprocessed DGLGraphs from Zenodo:
```bash
# Download and extract preprocessed DGLGraphs for DIPS-Plus and CASP-CAPRI
# Download and extract preprocessed DGLGraphs for CASP-CAPRI, DB5-Plus, and DIPS-Plus
# Requires ~55GB of free space
mkdir -p project/datasets/DIPS/final
cd project/datasets/DIPS/final
# Download CASP-CAPRI
mkdir -p ../../CASP_CAPRI/final
cd ../../CASP_CAPRI/final
wget https://zenodo.org/record/6299835/files/final_raw_casp_capri.tar.gz
wget https://zenodo.org/record/6299835/files/final_processed_casp_capri.tar.gz
# Extract CASP-CAPRI
tar -xzf final_raw_casp_capri.tar.gz
tar -xzf final_processed_casp_capri.tar.gz
rm final_raw_casp_capri.tar.gz final_processed_casp_capri.tar.gz
# Download DB5-Plus
mkdir -p ../../DB5/final
cd ../../DB5/final
wget https://zenodo.org/record/6299835/files/final_raw_db5.tar.gz
wget https://zenodo.org/record/6299835/files/final_processed_db5.tar.gz
# Extract DB5-Plus
tar -xzf final_raw_db5.tar.gz
tar -xzf final_processed_db5.tar.gz
rm final_raw_db5.tar.gz final_processed_db5.tar.gz
# Download DIPS-Plus
wget https://zenodo.org/record/5797024/files/final_raw_dips.tar.gz
wget https://zenodo.org/record/5797024/files/final_processed_dips.tar.gz.partaa
wget https://zenodo.org/record/5797024/files/final_processed_dips.tar.gz.partab
mkdir -p project/datasets/DIPS/final
cd project/datasets/DIPS/final
wget https://zenodo.org/record/6299835/files/final_raw_dips.tar.gz
wget https://zenodo.org/record/6299835/files/final_processed_dips.tar.gz.partaa
wget https://zenodo.org/record/6299835/files/final_processed_dips.tar.gz.partab
# First, reassemble all processed DGLGraphs
# We split the (tar.gz) archive into two separate parts with
Expand All @@ -423,17 +444,6 @@ cat final_processed_dips.tar.gz.parta* >final_processed_dips.tar.gz
tar -xzf final_raw_dips.tar.gz
tar -xzf final_processed_dips.tar.gz
rm final_processed_dips.tar.gz.parta* final_raw_dips.tar.gz final_processed_dips.tar.gz
# Download CASP-CAPRI
mkdir -p ../../CASP_CAPRI/final
cd ../../CASP_CAPRI/final
wget https://zenodo.org/record/5797024/files/final_raw_casp_capri.tar.gz
wget https://zenodo.org/record/5797024/files/final_processed_casp_capri.tar.gz
# Extract CASP-CAPRI
tar -xzf final_raw_casp_capri.tar.gz
tar -xzf final_processed_casp_capri.tar.gz
rm final_raw_casp_capri.tar.gz final_processed_casp_capri.tar.gz
```
Navigate to the project directory and run the training script with the parameters desired:
Expand All @@ -455,8 +465,8 @@ cd "$DI_DIR"
# Download our trained model checkpoints
mkdir -p project/checkpoints
wget -P project/checkpoints https://zenodo.org/record/5797024/files/LitGINI-GeoTran-DilResNet.ckpt
wget -P project/checkpoints https://zenodo.org/record/5797024/files/LitGINI-GeoTran-DilResNet-DB5-Fine-Tuned.ckpt
wget -P project/checkpoints https://zenodo.org/record/6299835/files/LitGINI-GeoTran-DilResNet.ckpt
wget -P project/checkpoints https://zenodo.org/record/6299835/files/LitGINI-GeoTran-DilResNet-DB5-Fine-Tuned.ckpt
```
### Predict interface contact probability maps
Expand Down
2 changes: 1 addition & 1 deletion project/datasets/CASP_CAPRI/casp_capri_dgl_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ def raw_path(self) -> str:
@property
def url(self) -> str:
"""URL with which to download TAR archive of preprocessed pairs."""
return 'https://zenodo.org/record/5546775/files/final_processed_casp_capri.tar.gz'
return 'https://zenodo.org/record/6299835/files/final_processed_casp_capri.tar.gz'
2 changes: 1 addition & 1 deletion project/datasets/DB5/db5_dgl_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,4 +254,4 @@ def raw_path(self) -> str:
@property
def url(self) -> str:
"""URL with which to download TAR archive of preprocessed pairs."""
return 'https://zenodo.org/record/5546775/files/final_raw_db5.tar.gz?download=1'
return 'https://zenodo.org/record/6299835/files/final_processed_db5.tar.gz'
2 changes: 1 addition & 1 deletion project/datasets/DIPS/dips_dgl_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@ def raw_path(self) -> str:
@property
def url(self) -> str:
"""URL with which to download TAR archive of preprocessed pairs (Need to manually download Part B)."""
return 'https://zenodo.org/record/5546775/files/final_processed_dips.tar.gz.partaa'
return 'https://zenodo.org/record/6299835/files/final_processed_dips.tar.gz.partaa'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='DeepInteract',
version='1.0.9',
version='1.1.0',
description='A geometric deep learning pipeline for predicting protein interface contacts.',
author='Alex Morehead',
author_email='[email protected]',
Expand Down

0 comments on commit a9d639d

Please sign in to comment.