# Proteins (Sequence & Structure)

> Protein sequence and 3D structure overview, common datasets, and MPBind / ATOM3D PSR benchmark results.

---

LLMS index: [llms.txt](/Sage-SciPerception/llms.txt)

---

![Protein interface site annotation demo](https://raw.githubusercontent.com/InternLM/Sage-SciPerception/main/assets/protein-en.gif)

## Overview

Protein modeling spans two complementary representations:
- **Amino-acid sequences (1D)** encode evolutionary conservation and residue-level interaction propensities across long polypeptide chains.
- **Backbone structures (3D)** capture atomic coordinates (`N`, `CA`, `C`, `O`) that govern fold stability, packing quality, and binding interfaces.

Sage-SciPerception supports both levels: **ESM-2 (650M)** per-residue states (`1280`-dim) paired with 2-dim per-residue side features and `atom_numbering` for windowed sequence interface prediction, and **ProteinMPNN (`v48-020`)** three-layer concatenated states (`384`-dim, binned to at most 256 contiguous tokens) for 3D structure ranking.

## Common datasets

| Dataset | Level | Scope and characteristics | Usage in Sage-SciPerception |
| --- | --- | --- | --- |
| **MPBind (BA1)** | Sequence (1D) | Reconstructed biological-assembly-1 PPI interface residues (< 5 Å cross-chain contact) | `mpbind-ba1` (PDB- and sequence-disjoint train/test splits) |
| **ATOM3D PSR** | Structure (3D) | CASP decoy structures scored by GDT_TS under a year-based split | `atom3d-psr` (per-target Spearman across 85 targets) |
| **PDB / UniRef / TAPE** | Sequence & Structure | Canonical experimental structure and sequence benchmarks | Share ESM-2 / ProteinMPNN representations |

## Sage-SciPerception capabilities & results

| Task | Encoder & channels | v0.1.0 benchmark score | Spec page |
| --- | --- | --- | --- |
| **MPBind PPI interface sites** | ESM-2 (`1280`-dim) + per-residue 2-dim `side` + `atom_numbering` | Per-protein F1 = **61.12%** | [MPBind task reference](/docs/tasks/protein-seq-mpbind/) |
| **ATOM3D PSR structure ranking** | ProteinMPNN `v48-020` (`384`-dim, ≤ 256 bins) | Mean Spearman = **35.36%** | [ATOM3D PSR task reference](/docs/tasks/protein-struct-psr/) |

- Inference example: [`examples/vllm_projector.py`](https://github.com/InternLM/Sage-SciPerception/blob/main/examples/vllm_projector.py) (supports `--side` and `--payload-labels` for MPBind 1-based numbering)
- Public training slices: [`samples/protein-seq/mpbind/`](https://huggingface.co/datasets/internlm/Sage-SciPerception-Training/tree/main/samples/protein-seq/mpbind) · [`samples/protein-struct/psr/`](https://huggingface.co/datasets/internlm/Sage-SciPerception-Training/tree/main/samples/protein-struct/psr)
