Skip to content

Commit 79bb273

Browse files
committed
Fix README instructions' syntax and otherwise update in batch
1 parent 7646956 commit 79bb273

20 files changed

Lines changed: 44 additions & 31 deletions

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Now that we know Docker is functioning properly, we can begin building our Docke
229229
1. Clone this repository and `cd` into it.
230230
231231
```bash
232-
git clone https://github.com/amorehead/DeepInteract
232+
git clone https://github.com/BioinfoMachineLearning/DeepInteract
233233
cd DeepInteract/
234234
DI_DIR=$(pwd)
235235
```
@@ -281,7 +281,7 @@ First, install and configure Conda environment:
281281
282282
```bash
283283
# Clone this repository:
284-
git clone https://github.com/amorehead/DeepInteract
284+
git clone https://github.com/BioinfoMachineLearning/DeepInteract
285285
286286
# Change to project directory:
287287
cd DeepInteract
@@ -372,7 +372,8 @@ To train, retrain, or cross-validate DeepInteract models using DIPS-Plus and/or
372372

373373
```bash
374374
# Download and extract preprocessed DGLGraphs for DIPS-Plus and CASP-CAPRI
375-
# Requires 7GB of free space
375+
# Requires ~55GB of free space
376+
mkdir -p project/datasets/DIPS/final
376377
cd project/datasets/DIPS/final
377378

378379
# Download DIPS-Plus
@@ -392,6 +393,7 @@ tar -xzf final_processed_dips.tar.gz
392393
rm final_processed_dips.tar.gz.parta* final_raw_dips.tar.gz final_processed_dips.tar.gz
393394

394395
# Download CASP-CAPRI
396+
mkdir -p ../../CASP_CAPRI/final
395397
cd ../../CASP_CAPRI/final
396398
wget https://zenodo.org/record/5546775/files/final_raw_casp_capri.tar.gz
397399
wget https://zenodo.org/record/5546775/files/final_processed_casp_capri.tar.gz
@@ -402,6 +404,16 @@ tar -xzf final_processed_casp_capri.tar.gz
402404
rm final_raw_casp_capri.tar.gz final_processed_casp_capri.tar.gz
403405
```
404406

407+
Navigate to the project directory and run the training script with the parameters desired:
408+
409+
```bash
410+
cd project
411+
python3 lit_model_train.py --lr 1e-3 --weight_decay 1e-2
412+
cd ..
413+
```
414+
415+
## Inference
416+
405417
### Download trained model checkpoint
406418

407419
```bash
@@ -413,15 +425,6 @@ mkdir -p project/checkpoints
413425
wget -P project/checkpoints https://zenodo.org/record/5546775/files/LitGINI-GeoTran-DilResNet.ckpt
414426
```
415427

416-
Navigate to the project directory and run the training script with the parameters desired:
417-
418-
```bash
419-
cd project
420-
python3 lit_model_train.py --lr 1e-3 --weight_decay --1e-2
421-
cd ..
422-
```
423-
424-
## Inference
425428
### Predict interface contact probability maps
426429

427430
Navigate to the project directory and run the prediction script

project/datasets/CASP_CAPRI/casp_capri_dgl_data_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
# -------------------------------------------------------------------------------------------------------------------------------------
11-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
11+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1212
# -------------------------------------------------------------------------------------------------------------------------------------
1313

1414

project/datasets/CASP_CAPRI/casp_capri_dgl_dataset.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,11 @@ def num_chains(self) -> int:
256256
"""Number of protein chains in each complex."""
257257
return 2
258258

259+
@property
260+
def num_classes(self) -> int:
261+
"""Number of possible classes for each inter-chain residue pair in each complex."""
262+
return 2
263+
259264
@property
260265
def num_node_features(self) -> int:
261266
"""Number of node feature values after encoding them."""

project/datasets/DIPS/dips_dgl_data_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
# -------------------------------------------------------------------------------------------------------------------------------------
11-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
11+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1212
# -------------------------------------------------------------------------------------------------------------------------------------
1313

1414

project/datasets/DIPS/dips_dgl_dataset.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
# -------------------------------------------------------------------------------------------------------------------------------------
15-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
15+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1616
# -------------------------------------------------------------------------------------------------------------------------------------
1717

1818

@@ -274,6 +274,11 @@ def num_chains(self) -> int:
274274
"""Number of protein chains in each complex."""
275275
return 2
276276

277+
@property
278+
def num_classes(self) -> int:
279+
"""Number of possible classes for each inter-chain residue pair in each complex."""
280+
return 2
281+
277282
@property
278283
def num_node_features(self) -> int:
279284
"""Number of node feature values after encoding them."""

project/datasets/PICP/picp_dgl_data_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
# -------------------------------------------------------------------------------------------------------------------------------------
12-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
12+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1313
# -------------------------------------------------------------------------------------------------------------------------------------
1414

1515

project/datasets/builder/check_percent_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
# -------------------------------------------------------------------------------------------------------------------------------------
12-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
12+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1313
# -------------------------------------------------------------------------------------------------------------------------------------
1414

1515

project/datasets/builder/collect_dataset_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
# -------------------------------------------------------------------------------------------------------------------------------------
9-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
9+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1010
# -------------------------------------------------------------------------------------------------------------------------------------
1111

1212

project/datasets/builder/impute_missing_feature_values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
# -------------------------------------------------------------------------------------------------------------------------------------
11-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
11+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1212
# -------------------------------------------------------------------------------------------------------------------------------------
1313

1414
@click.command()

project/datasets/builder/log_dataset_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
# -------------------------------------------------------------------------------------------------------------------------------------
9-
# Following code curated for DeepInteract (https://github.com/amorehead/DeepInteract):
9+
# Following code curated for DeepInteract (https://github.com/BioinfoMachineLearning/DeepInteract):
1010
# -------------------------------------------------------------------------------------------------------------------------------------
1111

1212
@click.command()

0 commit comments

Comments
 (0)