arXiv:2608.28788q-bio.QMAug 2026

Manuscript Offprint

arXiv:2608.28788

FoldKit: A Python library for efficient storage and retrieval of co-folding predictions

Jonathan A. Levine, Melissa Pathil, Samuel Nitz, Olga Lyudovyk, Benjamin D. Greenbaum

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jonathan A. Levine,¹,²,³, * Melissa Pathil,³,⁴,⁵ Samuel Nitz,¹,⁶ Olga Lyudovyk,³ and Benjamin D. Greenbaum³,⁵,⁷

¹Tri-Institutional Program in Computational Biology and Medicine, Weill Cornell Medicine, New York, NY USA

²Laboratory of Lymphocyte Dynamics, Rockefeller University, New York, NY USA

³The Halvorsen Center for Computational Oncology, Department of Epidemiology and Biostatistics, Memorial Sloan Kettering Cancer Center, New York, NY USA

⁴Computational and Systems Biology Program, Sloan Kettering Institute, Memorial Sloan Kettering Cancer Center, New York, NY, USA

⁵Physiology, Biophysics & Systems Biology, Weill Cornell Medicine, Weill Cornell Medical College, New York, NY USA

⁶Laboratory of Host-Pathogen Biology, The Rockefeller University, New York, NY 10065, USA

⁷The Olayan Center for Cancer Vaccines, Memorial Sloan Kettering Cancer Center, New York, NY USA (Dated: September 1, 2026)

AlphaFold 3 (AF3) enables structure prediction of biomolecular complexes through co-folding multiple interacting molecules, making it increasingly useful for de novo protein design and for large-scale studies of protein–protein, protein–peptide, and other biomolecular interactions. However, systematic co-folding experiments can produce large volumes of output data, particularly when multiple random seeds and samples are generated for each input complex. We introduce FoldKit, a Python package for efficient storage and analysis of large-scale AF3 co-folding results. FoldKit converts raw AF3 outputs into a compact, structured representation while preserving the metadata needed for downstream analysis. The FoldKit Python library provides convenient programmatic access to global, single chain, and interface confidence metrics such as pLDDT, pTM, ipTM, ipAE, and ipSAE, as well as an ensemble-level interface for accessing and aggregating these metrics for a single input across multiple seeds and samples. We benchmark FoldKit on three types of AF3 co-folding datasets: (i) a protein design campaign with 2 chains per input, (ii) a TCR-pMHC dataset with 4 chains per input, and (iii) a pooled-AF3 protein–protein interaction dataset with up to 22 chains per input. We find that FoldKit reduces storage requirements by approximately 5–15-fold compared to native AF3 outputs, depending on dataset composition, while maintaining direct programmatic access to individual predictions, ensembles, and confidence metrics. By reducing storage requirements and facilitating programmatic access to relevant outputs, FoldKit facilitates large-scale computational studies of biomolecular interactions. FoldKit is available from PyPI and can be installed using pip.

INTRODUCTION

In recent years, co-folding has become an increasingly popular approach for a variety of tasks in computational biology. Multiple molecules are folded together using a structure prediction model, such as AlphaFold 3 (AF3) [1], and the resulting structures and confidence metrics can then be used to assess putative interactions between the input molecules, which are represented as separate chains within a single complex. Co-folding has become an important component of de novo binder design pipelines, where predictions of a designed protein sequence in com-

plex with its target can effectively prioritize candidates prior to validation, increasing the experimental success rate [2–8]. These methods have been subsequently adapted to study the binding of larger, native protein complexes, such as antibodies [1, 9, 10] or T cell receptors (TCRs) [10–13], or for more general protein–protein interaction predictions [14–19]. More recently, a “pooled” version of AlphaFold3-based co-folding was developed, where as many as 25 proteins are folded together at once, allowing numerous potential pairwise interactions to be screened simultaneously in one prediction [20].

These methods utilize a variety of outputs from the AlphaFold pipeline, including the predicted local distance difference test (pLDDT), the predicted

Figure

FIG. 1. The FoldKit Package

FoldKit can process AlphaFold 3 results from either the AlphaFold 3 Server or from a local installation. The FoldKit command-line interface (CLI) exports AF3 results into a compressed format using NPZ files. The FoldKit Python API (application programming interface) can read AF3 results from either the raw output or the FoldKit compressed storage. The API enables users to programmatically access customizable metrics for the global complex, individual chains, subchains, or pairs of chains. The AF3Ensemble API enables convenient access to predictions across ensembles of multiple seeds and samples for the same input, where users can access metrics for the entire ensemble or choose how to aggregate them by passing in a custom function.

alignment error (PAE), and the predicted template-modeling score (pTM). Usually the most informative metrics for binding are computed by aggregating and/or transforming these confidence values over the interchain interfaces (in the typical notation they get prefixed with an “i”), like ipAE, ipTM, or ipSAE [21].

Confidence values are output by the AlphaFold 3 pipeline or the AlphaFold 3 Server in large JSON (JavaScript Object Notation) files alongside the predicted structure file. JSON is a text-based format for storing structured data, in which numerical values and other objects are represented as human-readable text. While these JSON files contain all of the infor-

mation needed for downstream analyses, their storage format leads to two major pain points for scientists:

  1. Extracting specific interchain or subchain metrics from these files can require substantial parsing and custom code, particularly when analyzing many predictions or heterogeneous input complexes.

  2. The data is stored inefficiently, as numerical values are represented as text, and the storage needed for directories of co-folding results for large datasets can become prohibitively expensive.

To solve these issues, we developed FoldKit.

References (25)