How isblab/disobind works
Purpose and operational entry point
Disobind is a Python deep-learning pipeline that predicts partner-dependent inter-protein contact maps and interface residues for a binary complex containing an intrinsically disordered region (IDR). The user-facing entry point is run_disobind.py; installation is orchestrated by install.sh. Inputs are CSV batches keyed by UniProt fragments or paired FASTA records, with optional AlphaFold2 structure and PAE inputs.
Inference orchestration
run_disobind.py parses CLI options for input format, output location, CPU/GPU device, contact-map mode, and coarse-graining level. It coordinates sequence acquisition or parsing, embedding generation, model loading, inference, and serialization. Outputs comprise a tabular prediction CSV and Predictions.npy, a nested prediction dictionary. Example inputs and AF2 artifacts are under example/test.csv, example/test.fasta, and example/.
Input, sequence, and structural boundary
CSV inputs identify UniProt accessions and residue ranges; FASTA supports sequences without accessions. Sequence retrieval and input preparation are implemented in dataset-oriented modules, notably dataset/from_APIs_with_love.py and dataset/prep_idppi_input2.py. Optional AF2 PDB/PAE paths, chain IDs, and residue offsets establish a separate structural-evidence boundary; the predictor remains sequence-based, while AF2-supported workflows are represented by supplied artifacts such as example/unrelaxed_model_4_multimer_v3_pred_4.pdb.
Representation and prediction model
The model stack is defined in src/build_model.py, src/models/Epsilon_3.py, and src/models/get_model.py. Pretrained Epsilon_3 checkpoints are versioned beneath models/Epsilon_3/, with matching architecture/hyperparameter definitions in params/Model_config_Epsilon_3_*.yml. Inference supports CPU or CUDA, with GPU use requiring CUDA 11.8 and NVIDIA drivers. Coarse-grained resolutions 1, 5, and 10 control output granularity; contact-map prediction is optional, while interface predictions are the default.
Dataset construction and reproducibility pipeline
Dataset generation is an ordered offline workflow: source aggregation, dataset-file creation, binary-complex derivation, then redundancy reduction. Its core stages are dataset/1_disobind_databases.py, dataset/2_create_database_dataset_files.py, dataset/3_create_merged_binary_complexes.py, and dataset/4_create_non_redundant_dataset.py. Inputs include curated disorder/interaction sources and PDB-derived records under database/raw/ and database/input_files/. Embedding preparation is separated in dataset/create_input_embeddings.py.
Training and evaluation
Training infrastructure is in src/, with dataset loading, objectives, metrics, model-version selection, and hyperparameter search separated across src/dataset_loaders.py, src/loss.py, src/metrics.py, and src/hparams_search.py. This boundary consumes prepared embeddings/datasets and produces versioned checkpoints/configurations rather than being part of routine CLI inference.
Analysis and external integrations
Post-training benchmarking and comparative analysis reside in analysis/analysis.py and analysis/side_analysis.py. Integration scripts obtain or compare external predictions, including AF2 and DisoBind-related outputs, via analysis/get_af_prediction.py, analysis/get_disobind_predictions.py, and analysis/get_other_method_preds.py. External dependencies include UniProt sequence access, curated biological databases used during dataset assembly, optional AlphaFold2/ColabFold outputs, Zenodo-hosted data, PyTorch model execution, and CUDA-capable hardware.
Main entry points: run_disobind.py DisoBind CLI · build_model.py Model loading · 4_create_non_redundant_dataset.py Nonredundant dataset · hparams_search.py Training & tuning
Components 18
CLI Inference
- DisoBind CLI · Coordinates end-to-end prediction.
run_disobind.py - CSV / FASTA batches · UniProt fragments or paired sequences.
example/test.csv - Sequence preparation · Retrieves UniProt sequences and prepares IDPPI inputs.
dataset/from_APIs_with_love.py - Input embeddings
dataset/create_input_embeddings.py - Optional AF2 evidence · PDB/PAE, chains, and offsets supplement the workflow without driving prediction.
example/unrelaxed_model_4_multimer_v3_pred_4.pdb - Prediction outputs · Prediction CSV and nested Predictions.npy dictionary.
Dataset Pipeline
- Curated source records · Disorder, interaction, and PDB-derived inputs.
- Source aggregation
dataset/1_disobind_databases.py - Dataset-file creation
dataset/2_create_database_dataset_files.py - Binary complex derivation
dataset/3_create_merged_binary_complexes.py - Nonredundant dataset
dataset/4_create_non_redundant_dataset.py
Model & Training
- Epsilon_3 predictor · Predicts interface residues and optional contact maps.
src/models/Epsilon_3.py - Model loading
src/build_model.py - Pretrained checkpoints
- Model configurations
- Training & tuning · Loads datasets, optimizes objectives, evaluates metrics, and selects model versions.
src/hparams_search.py
Analysis & Integrations
- Benchmarking & comparisons · Evaluates DisoBind alongside external prediction methods.
analysis/analysis.py - External services · UniProt, curated databases, Zenodo, and optional AlphaFold2/ColabFold.
Connections 23
- CSV / FASTA batches → DisoBind CLI: submitted to
- DisoBind CLI → Sequence preparation: prepares sequences
- Sequence preparation → Input embeddings: sequences
- Optional AF2 evidence → DisoBind CLI: optional structural inputs
- Input embeddings → Epsilon_3 predictor: representations
- DisoBind CLI → Model loading: loads model
- Model loading → Epsilon_3 predictor: constructs
- Pretrained checkpoints → Model loading: weights
- Model configurations → Model loading: architecture settings
- Epsilon_3 predictor → Prediction outputs: interface/contact predictions
- DisoBind CLI → Prediction outputs: serializes
- External services → Sequence preparation: UniProt access
- External services → Curated source records: curated sources
- Curated source records → Source aggregation: records
- Source aggregation → Dataset-file creation: assembled data
- Dataset-file creation → Binary complex derivation: dataset files
- Binary complex derivation → Nonredundant dataset: reduce redundancy
- Nonredundant dataset → Input embeddings: training representations
- Nonredundant dataset → Training & tuning: training data
- Training & tuning → Pretrained checkpoints: produces
- Training & tuning → Model configurations: selects settings
- Prediction outputs → Benchmarking & comparisons: evaluates
- External services → Benchmarking & comparisons: external predictions