You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

CyclicPE

CyclicPE provides PyTorch implementations of chemical effective-interaction positional encoding (CEI) for cyclic peptide structure prediction. It follows both directed paths around a head-to-tail backbone ring and maps their residue-pair features onto the folding model's tokens. The repository includes the 9D interaction readout, the complete 24D readout, and a candidate-specific 3D extension.

Run a CPU example

Clone or download this repository. In its root directory, use Python 3.11 or newer with PyTorch:

python -m pip install -e '.[test]'
python examples/two_arc.py
python -m pytest -q tests

The example constructs a synthetic six-residue ring. It prints the feature shape and the change in one nonadjacent pair when the candidate coordinates change. It also verifies that a fresh output projection exactly preserves the incoming pair tensor.

Choose an encoding

Input Interface Features per ordered residue pair
Directed chemical graph CEIPE 9 effective interaction coordinates
Same graph, with the two paths kept distinguishable CompleteCEIPE 24 coordinates in row-major [F, alpha, beta, C] order
Chemical graph, candidate N鈥揅伪鈥揅 coordinates and noise level geometry_two_arc_features The same 24 coordinates, with geometry embedded in each local edge potential

Use build_ring_input with graph-verified C鈥揘 bonds, including the closing bond. Supply the actual token-to-parent assignment for atomized residues. Assign a distinct instance to each ring. Only pairs of distinct residues on the same supported ring receive a residual. The candidate-specific path uses the current noisy coordinates in 脜 and the denoiser's actual noise level. The endpoint control uses direct pair geometry. Setting gamma=0 recovers static CEI. Mathematical formulation

Folding model integrations

Tested backbone version Injection point Experiment code
Protenix 2.0.0 with v1.0.0 weights Diffusion pair cache after both native Transitions. Rebuilds the dependent atom caches. Pair-cache adapter
Boltz-2 2.2.1 Pairwise conditioner. Recomputes atom and token attention biases for each candidate when geometry is enabled. Static adapter and LoRA
OpenFold3 0.5.1 Diffusion conditioning pair output with the sample axis retained. Static adapter and LoRA

The three dynamic adapters share the geometry implementation. Native model weights, CEI training checkpoints, chemical dictionaries and model-specific environments are external inputs. The benchmark catalog records their expected identities. Dynamic adapters 路 Assets and environments 路 Training and inference recipes

For a fitted geometry model, run the following from the repository root in its backbone environment. Select protenix, boltz2 or openfold3. The worker reads the mode and coupling from a geometry checkpoint by default. --gpu indexes devices visible to the process.

python tools/cei_geometry.py predict --backbone openfold3 --gpu 0 \
  --checkpoint /path/to/geometry_checkpoint.pt --split cpb --output runs/my-predictions
python tools/cei_geometry.py train --help
sh bin/cpb-cei recipes

Benchmark

The unified CPB leaderboard reports native Top-1 backbone, ring and heavy-atom RMSD, geometric Success@1 脜 and chemically qualified CQSuccess@1 脜. Backbone and ring means use 59 fixed cases, heavy-atom means use 58, and success rates use 83. The geometry sweep contains 180 checkpoint/arm/seed evaluations and 60 three-training-seed means. Training and inference repeats have separate columns. CPB was inspected during development. Interpret checkpoint sweeps accordingly. The score columns in the CSVs express rates as fractions.

Licensing

Original CyclicPE source code is available under the MIT License. The CycPepBenchmark material follows its upstream MIT notice. The HighFold compatibility patches follow HighFold's GPL-3.0 terms, and the AlphaFold3-derived reconstruction patch follows CC BY-NC-SA 4.0. Obtain each model and its parameters separately under its original terms. Third-party notices

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support