BACPI
A bi-directional attention network that predicts whether a compound and a protein interact.
Molecules, proteins and genomics · 308 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 1.8M
- Operations
- 308
- Framework
- PyTorch
- Recurrent
- No
- Published
- Bioinformatics 38(7):1995-2002
- Cited by
- 107 (as of 29 October 2026)
- Authors
- Min Li, Zhangli Lu, Yifan Wu, YaoHang Li
- Source
- GitHub: CSUBioGroup/BACPI
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14796
- Graph hash
- afded64af043aa02d557c1bef4a07607a0acd11875c4496e28146c8d98dd886a
- Skeleton hash
- 5d0a755867ae45311c415a7ad7a4cdae4e4fd9c77a34bb10ba6cd634eae0979c
- Architecture hash
- 4e735403791d55a901bf4220be9a974a2c2de326b51b35bb72b48cf6395361af
- Diagram SHA-256
- d611e1a86cf4435b25e9e72cd668a6b1164dc3765f107572d4e94ba96f0148ee
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
BACPI is an end-to-end neural network that predicts compound-protein interactions (CPIs) and binding affinity. The paper notes that most supervised models treat the problem as binary classification, while binding affinity is a continuous value that reflects how tightly the compound binds to a target protein. A graph attention network and a convolutional neural network learn the representations of compounds and proteins, and a bi-directional attention network integrates them.
The authors evaluated BACPI on three CPI datasets and four binding affinity datasets. This model is set up for interaction prediction, which the code treats as a binary classification task. The code's other task, affinity prediction, is a regression.
Key idea. BACPI learns compound and protein representations with a graph attention network and a CNN, integrates them with bi-directional attention, and predicts both interaction and binding affinity.
- bacpi
- compound-protein interaction
- cpi prediction
- binding affinity prediction
- bi-directional attention
- drug discovery
- graph attention network
- drug-target interaction
AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Li_2022, title={BACPI: a bi-directional attention neural network for compound–protein interaction and binding affinity prediction}, volume={38}, ISSN={1367-4811}, url={http://dx.doi.org/10.1093/bioinformatics/btac035}, DOI={10.1093/bioinformatics/btac035}, number={7}, journal={Bioinformatics}, publisher={Oxford University Press (OUP)}, author={Li, Min and Lu, Zhangli and Wu, Yifan and Li, YaoHang}, editor={Lu, Zhiyong}, year={2022}, month=Jan, pages={1995–2002} }