MVGNN-PPIS

Model Introduction

MVGNN-PPIS is an open-source protein-protein interaction site prediction model developed by WW-AILab. Given precomputed protein sequence and structural features, the model predicts the probability that each amino acid residue belongs to a protein-protein interaction site.

MVGNN-PPIS uses a multi-view graph neural network to jointly model local sequence adjacency relationships and three-dimensional spatial neighborhood relationships.

Paper: MVGNN-PPIS: A novel multi-view graph neural network for protein-protein interaction sites prediction based on Alphafold3-predicted structures and transfer learning

Model Description

MVGNN-PPIS integrates ProtT5 residue representations, DSSP secondary-structure features, and AlphaFold3-predicted structures. Graph convolution and graph Transformer modules are then used to extract complementary local and global information.

The model provides the following main capabilities:

  • Uses 1038-dimensional residue-level node features composed of ProtT5 and DSSP features;
  • Builds a spatial K-nearest-neighbor graph based on side-chain atom centroid coordinates;
  • Uses sequence adjacency matrices to capture local residue relationships;
  • Performs ensemble prediction using five official checkpoints;
  • Outputs residue-level protein-protein interaction site probabilities;
  • Computes AUC, AUPRC, MCC, Accuracy, Precision, Recall, and F1 on labeled test datasets.

Use Cases

Use Case Description
Protein-protein interaction site prediction Predict residue-level interaction probabilities from precomputed sequence and structural features.
Test60 benchmark evaluation Reproduce evaluation using the upstream PRO-Test60 dataset, precomputed features, and five-fold model checkpoints.
Protein functional-site screening Rank candidate residues by predicted interaction probability for downstream experimental analysis.
DCU inference validation Validate five-fold model loading and full-dataset inference in a DTK/HIP-enabled PyTorch environment.

Usage

1. OneCode

You can use the OneCode online environment for an intelligent one-click AI4S programming experience:

Try OneCode for AI4S Programming

2. Manual Installation

Hardware Requirements

  • PyTorch must be installed;
  • GPU/DCU memory usage and runtime depend on protein length, batch size, and the number of parallel worker processes.

Download the Model Package

Install the Hugging Face command-line tool and download the model repository:

pip install -U huggingface_hub

hf download OneScience-Group/MVGNN-PPIS --local-dir ./MVGNN-PPIS
cd MVGNN-PPIS

Install the Runtime Environment

DCU Environment

# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311

pip install onescience[bio-dcu] \
  -i http://mirrors.onescience.ai:3141/pypi/simple/ \
  --trusted-host mirrors.onescience.ai

Install the additional dependencies declared in requirements.txt:

conda activate onescience311
python -m pip install -r requirements.txt

Weights and Data Preparation

Basic inference requires five official checkpoints, the test-set CSV file, and the corresponding precomputed features:

Asset Location Purpose
MVGNN checkpoint weight/fold0.ckpt Five-fold ensemble member 0
MVGNN checkpoint weight/fold1.ckpt Five-fold ensemble member 1
MVGNN checkpoint weight/fold2.ckpt Five-fold ensemble member 2
MVGNN checkpoint weight/fold3.ckpt Five-fold ensemble member 3
MVGNN checkpoint weight/fold4.ckpt Five-fold ensemble member 4
Test60 dataset weight/datasets/PRO_Test60.csv Protein IDs, sequences, and labels
Precomputed features weight/feature/ Model inference inputs

Each protein ID must have the following five tensor files:

weight/feature/<ID>_X.tensor
weight/feature/<ID>_adj.tensor
weight/feature/<ID>_node_feature.tensor
weight/feature/<ID>_mask.tensor
weight/feature/<ID>_label.tensor

By default, scripts/inference.py loads these assets according to conf/config.json and validates all checkpoint and feature files before inference.

If required files are missing, the script reports the number of missing files and their expected locations.

Basic inference directly uses the precomputed features released by the original authors. ProtT5, AlphaFold3, and DSSP do not need to be downloaded or executed at runtime for this workflow.

Quick Inference

Run the following command from the root directory of the Hugging Face model package:

HIP_VISIBLE_DEVICES=0 python scripts/inference.py

The default configuration uses:

weight/datasets/PRO_Test60.csv
weight/feature/
weight/

and writes the results to:

output/prediction/result.csv
output/prediction/test.log

To view all command-line options:

python scripts/inference.py --help

Custom Paths and Runtime Parameters

The inference script uses paths relative to the model package and does not depend on the current working directory.

You can modify conf/config.json or override the default configuration through command-line arguments:

python scripts/inference.py \
  --dataset weight/datasets/PRO_Test60.csv \
  --feature-path weight/feature \
  --weight-path weight \
  --output-path output/prediction \
  --device cuda \
  --num-workers 8

Command-line arguments take precedence over the configuration file.

A custom dataset must still provide the following columns:

ID
sequence
label

For each protein ID, the corresponding five precomputed tensor files must also be provided.

Prediction Outputs

result.csv stores:

  • Protein IDs;
  • Amino acid sequences;
  • Residue-level predicted interaction probabilities.

test.log stores:

  • Model configuration;
  • Evaluation metrics for labeled datasets.

Feature Generation

The scripts/process_feature/ directory retains the upstream feature-generation code involving ProtT5, AlphaFold3-predicted structures, and DSSP.

This workflow requires additional resources, including:

  • ProtT5 model files;
  • Complete protein structure files;
  • DSSP and other required external tools.

Feature generation is not part of the basic inference workflow.

For benchmark reproduction and standard inference, it is recommended to use the precomputed features released by the original authors.

Only when processing new proteins or regenerating features is it necessary to prepare ProtT5, AlphaFold3, DSSP, and the associated resources according to the upstream repository documentation.

Training

The upstream MVGNN-PPIS repository does not provide a directly executable complete training entry point or the complete training dataset.

It primarily provides official pretrained checkpoints and prediction-related code.

Therefore, this Hugging Face model package does not provide training commands.

OneScience Official Resources

Citation and License


中文说明

模型简介

MVGNN-PPIS 是 WW-AILab 开发的开源蛋白质-蛋白质相互作用位点预测模型。给定预计算的蛋白质序列和结构特征,模型预测每个氨基酸残基属于蛋白质-蛋白质相互作用位点的概率。

MVGNN-PPIS 采用多视图图神经网络,对局部序列邻接关系和三维空间邻域关系联合建模。

论文MVGNN-PPIS:基于 Alphafold3 预测结构和迁移学习的新型蛋白质-蛋白质相互作用位点预测多视图图神经网络

模型描述

MVGNN-PPIS 集成了 ProtT5 残基表征、DSSP 二级结构特征和 AlphaFold3 预测结构,再使用图卷积和图 Transformer 模块提取互补的局部和全局信息。

模型主要功能如下。

  • 使用由 ProtT5 和 DSSP 特征组成的 1038 维残基层面节点特征。
  • 基于侧链原子质心坐标构建空间 K 近邻图。
  • 使用序列邻接矩阵捕捉局部残基关系。
  • 使用五个官方模型权重(检查点)(checkpoints)进行集成预测。
  • 输出残基层面蛋白质-蛋白质相互作用位点概率。
  • 在带标注的测试数据集上计算 AUC、AUPRC、MCC、Accuracy、Precision、Recall 和 F1。

使用场景

使用场景 说明
蛋白质-蛋白质相互作用位点预测 根据预计算的序列和结构特征预测残基层面的相互作用概率。
Test60 基准评估 使用上游 PRO-Test60 数据集、预计算特征和五折模型权重(检查点)复现评估。
蛋白质功能位点筛选 按预测的相互作用概率对候选残基排序,供后续实验分析。
DCU 推理(inference)验证 在启用了 DTK/HIP 的 PyTorch 环境中验证五折模型加载及全数据集推理。

使用方法

1. OneCode

可使用 OneCode 在线环境体验智能一键 AI4S 编程。

使用 OneCode 体验 AI4S 编程

2. 手动安装

硬件要求

  • 必须安装 PyTorch。
  • GPU/DCU 内存占用和运行时间取决于蛋白质长度、批大小和并行工作进程数。

下载模型包

安装 Hugging Face 命令行工具并下载模型仓库。

pip install -U huggingface_hub

hf download OneScience-Group/MVGNN-PPIS --local-dir ./MVGNN-PPIS
cd MVGNN-PPIS

安装运行环境

DCU 环境

# Activate DTK and Conda first
conda create -n onescience311 python=3.11 -y
conda activate onescience311

pip install onescience[bio-dcu] \
  -i http://mirrors.onescience.ai:3141/pypi/simple/ \
  --trusted-host mirrors.onescience.ai

安装 requirements.txt 中声明的额外依赖。

conda activate onescience311
python -m pip install -r requirements.txt

权重与数据准备

基础推理需要五个官方模型权重(检查点)、测试集 CSV 文件及对应的预计算特征。

资源 位置 用途
MVGNN 模型权重(检查点) weight/fold0.ckpt 五折集成成员 0
MVGNN 模型权重(检查点) weight/fold1.ckpt 五折集成成员 1
MVGNN 模型权重(检查点) weight/fold2.ckpt 五折集成成员 2
MVGNN 模型权重(检查点) weight/fold3.ckpt 五折集成成员 3
MVGNN 模型权重(检查点) weight/fold4.ckpt 五折集成成员 4
Test60 数据集 weight/datasets/PRO_Test60.csv 蛋白质 ID、序列及标签
预计算特征 weight/feature/ 模型推理输入

每个蛋白质 ID 必须有以下五个张量文件。

weight/feature/<ID>_X.tensor
weight/feature/<ID>_adj.tensor
weight/feature/<ID>_node_feature.tensor
weight/feature/<ID>_mask.tensor
weight/feature/<ID>_label.tensor

默认情况下,scripts/inference.py 根据 conf/config.json 加载这些资源,在推理前验证所有模型权重(检查点)和特征文件。

如果所需文件缺失,脚本会报告缺失文件数量及其预期位置。

基础推理直接使用原作者发布的预计算特征。该流程运行时无需下载或执行 ProtT5、AlphaFold3 及 DSSP。

快速推理

在 Hugging Face 模型包根目录运行以下命令。

HIP_VISIBLE_DEVICES=0 python scripts/inference.py

默认配置使用以下设置

weight/datasets/PRO_Test60.csv
weight/feature/
weight/

并将结果写入以下位置。

output/prediction/result.csv
output/prediction/test.log

可通过以下命令查看全部命令行选项。

python scripts/inference.py --help

自定义路径和运行参数

推理脚本使用相对于模型包的路径,不依赖当前工作目录。

可修改 conf/config.json 或通过命令行参数覆盖默认配置。

python scripts/inference.py \
  --dataset weight/datasets/PRO_Test60.csv \
  --feature-path weight/feature \
  --weight-path weight \
  --output-path output/prediction \
  --device cuda \
  --num-workers 8

命令行参数优先于配置文件。

自定义数据集仍须提供以下列。

ID
sequence
label

每个蛋白质 ID 也须提供对应的五个预计算张量文件。

预测输出

result.csv 保存以下内容。

  • 蛋白质 ID。
  • 氨基酸序列。
  • 残基层面的预测相互作用概率。

test.log 保存以下内容。

  • 模型配置。
  • 带标注数据集的评估指标。

特征生成

scripts/process_feature/ 目录保留了涉及 ProtT5、AlphaFold3 预测结构及 DSSP 的上游特征生成代码。

此流程需要额外资源,包括以下内容。

  • ProtT5 模型文件。
  • 完整蛋白质结构文件。
  • DSSP 和其他所需外部工具。

特征生成不属于基础推理流程。

对于基准复现和标准推理,建议使用原作者发布的预计算特征。

仅在处理新蛋白质或重新生成特征时,需要依据上游仓库文档准备 ProtT5、AlphaFold3、DSSP 及相关资源。

训练

上游 MVGNN-PPIS 仓库未提供可直接执行的完整训练入口或完整训练数据集。

上游主要提供官方预训练模型权重(检查点)和预测相关代码。

因此,此 Hugging Face 模型包不提供训练命令。

OneScience 官方资源

引用与许可证

Downloads last month
19
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support