Skip to main content

X-PAIR

Paper Models Datasets

X-PAIR is a multi-task deep learning framework designed to jointly predict protein–protein interactions (PPI) and localize residue-level interaction interfaces. It operates directly on protein sequences, leveraging pretrained protein language model (PLM) embeddings and a cross-attention architecture to model interactions between residue representations.

Given pairs of protein sequences, X-PAIR can be trained in three modes:

  • interaction-only: predict whether two proteins interact
  • interface-only: predict which residues belong to the interaction interface, assuming the pair is interacting
  • multi-task: predict both interaction and residue-level interface labels

The full documentation for the package is available in the X-PAIR documentation.

⚙️ Installation

X-PAIR requires Python 3.10 or newer. The package and its required Python dependencies can be installed from PyPI by running:

pip install xpair

Typical installation time: approximately 1 minute on a standard desktop computer with a standard internet connection.

📌 Usage

This package provides three command-line entry points:

  • xpair-train: train an interaction-only, interface-only, or multi-task model
  • xpair-test: evaluate a trained checkpoint on labeled test data
  • xpair-predict: run inference on unlabeled protein pairs

The package already includes a pretrained version of the model (multitask_xfair.ckpt), which is used by default for prediction unless a different checkpoint is specified. This model is trained in a multi-task setting to jointly predict protein–protein interactions and residue-level interfaces for protein sequences ranging from 50 to 2000 amino acids. Interaction data comes from STRING v12 across four different species (H. sapiens, G. gallus, D. melanogaster and S. cerevisiae), while interface data comes from PPI3D (which uses PDB structural information) without species restriction.

All other pretrained models used in the experiments reported in the paper can be found and downloaded from the pretrained_models directory and on Hugging Face.

More detailed instruction of use can be found in X-PAIR documentation. A minimal demo is provided to verify the installation and test X-PAIR workflows on a small example dataset.

🚀 Quick start

X-PAIR predicts whether two proteins interact and, if so, identifies the residues involved in interaction interface.

The simplest way to use X-PAIR is:

xpair-predict --predict_pairs_path pairs_id.tsv --predict_fasta_path sequences.fasta --predict_output_path ./predictions/my_predictions.csv

The file pairs_id.tsv contains protein ID pairs separated by tabs. Example:

id1	id2
protA	protB
protA	protC

The xpair-predict command generates a CSV file that contains both interaction predictions and residue-level interface predictions for all protein pairs listed in pairs_id.tsv.

📚 Citation

If you find this useful, please cite:

Rescalli, S. and Carbone, A. X-PAIR: an ultrafast multitask framework for proteome-scale reconstruction of PPI networks and partner-specific interfaces from sequence. bioRxiv preprint (2026). https://doi.org/10.64898/2026.07.20.739596

Metadata

Release files for xpair 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xpair 0.1.1
File Size Uploaded
xpair-0.1.1.tar.gz 5.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for xpair 0.1.1
File Interpreter ABI Platform
xpair-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 MB

Release files / xpair-0.1.1.tar.gz

Download URL xpair-0.1.1.tar.gz
Size 5.2 MB
Tags Source
SHA-256 checksum
How to use checksums
afdaa330efea9ca8900fdf850a06dd1aeccd8c28504105f23175545fa9aaec30
BLAKE2b-256 checksum
How to use checksums
be8c254fb39525f08916ec2c6feb6ec8731f2d65d1c83198caa4d993aa11817e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / xpair-0.1.1-py3-none-any.whl

Download URL xpair-0.1.1-py3-none-any.whl
Size 5.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1bb6d7230300a492422e8f739925bb9e5dfdfc44d13af91c097cdba3ff611f06
BLAKE2b-256 checksum
How to use checksums
58f6763d73e2436e61e7eeed34997317f705e9de56ede030a42c3859f53fc203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page