2025-07-21 14:31:12 -04:00
rtd
2022-04-29 10:36:47 -04:00
2022-06-23 12:50:38 -04:00
2023-05-09 13:46:22 -04:00
2023-08-28 10:53:03 -07:00
2022-06-24 10:35:47 -04:00
2020-11-18 16:16:08 -05:00
2025-07-21 10:50:55 -04:00

D-SCRIPT

D-SCRIPT Architecture

D-SCRIPT PyPI DOI License Code style: black

D-SCRIPT is a deep learning method for predicting a physical interaction between two proteins given just their sequences. It generalizes well to new species and is robust to limitations in training data size. Its design reflects the intuition that for two proteins to physically interact, a subset of amino acids from each protein should be in contact with the other. The intermediate stages of D-SCRIPT directly implement this intuition, with the penultimate stage in D-SCRIPT being a rough estimate of the inter-protein contact map of the protein dimer. This structurally-motivated design enhances the interpretability of the results and, since structure is more conserved evolutionarily than sequence, improves generalizability across species.

You can now make predictions with D-SCRIPT via the interface on HuggingFace!

Installation

pip install dscript

Usage

Protein sequences need to first be embedded using the Bepler+Berger protein language model; this requires a .fasta file as input. Everything before the first space will be used as the key.

dscript embed --seqs [sequences] --outfile [embedding file]

Candidate pairs should be in tab-separated (.tsv) format with no header, and columns for [protein key 1], [protein key 2]. Optionally, a third column with [label] can be provided, so predictions can be made using training or test data files (but the label will not affect the predictions only the first two columns will be read).

While pre-trained model files can be downloaded directly, we recommend instead passing the name of a pre-trained model that will be automatically downloaded from HuggingFace. Available models include:

  • samsl/dscript_human_v1
  • samsl/topsy_turvy_human_v1 (recommended)
  • samsl/tt3d_human_v1
dscript predict --pairs [input data] --embeddings [embedding file] --model [model file] --outfile [predictions file]

References

Description
No description provided
Readme MIT Cite this repository 161 MiB
Languages
Python 69.5%
Jupyter Notebook 29.7%
Shell 0.8%