AbFold Extended
AbFold Extended packages the abfold Python modules used by the AbDiff
pipeline. The PyPI distribution name is abfold-extended, while the Python
import package remains abfold for compatibility with existing AbDiff code.
This repository is based on the original HK-GSAS/AbFold implementation, with engineering changes for packaging and AbDiff integration.
Installation
Install the package from PyPI:
pip install abfold-extended==0.2.0
Code should continue to import abfold:
from abfold.config import config
from abfold.model import AbFold
For the AbDiff H3-mask stage, install the optional ANARCI extra:
pip install "abfold-extended[h3]==0.2.0"
Optional extras:
pip install "abfold-extended[diffusion]==0.2.0"
pip install "abfold-extended[train]==0.2.0"
pip install "abfold-extended[all]==0.2.0"
Package Scope
This MVP package is intended to make AbDiff's AbFold-facing imports stable:
from abfold.config import config
from abfold.model import AbFold
from abfold.data.data_process import process_repr, process_fasta
from abfold.data.data_process import get_CDRs_mask_with_anarci
from abfold.np import protein
from abfold.np.residue_constants import str_sequence_to_aatype
from abfold.train_ema import tensor_dict_to_device
from abfold.training_config import config as training_config
The package does not include pretrained checkpoints, benchmark data, AF2
representations, IgFold embeddings, or a standalone predict.py entry point.
Those assets must be supplied by the calling workflow.
AbDiff Usage
AbDiff can depend on this package by installing abfold-extended while keeping
its existing source imports as from abfold ....
For a full AbDiff pipeline environment, use the optional extras needed by the stages you run. In particular, Stage 4 requires ANARCI:
pip install "abfold-extended[h3]==0.2.0"
Development Checks
Run the lightweight smoke tests:
python -m unittest discover -s tests -v
Run the wheel build and install smoke test:
ABFOLD_WHEEL_SMOKE=1 python -m unittest discover -s tests -v
On Windows PowerShell:
$env:ABFOLD_WHEEL_SMOKE = "1"
python -m unittest discover -s tests -v
Notes
- The distribution name and import name are intentionally different:
pip install abfold-extended, thenimport abfold. - Optional dependencies such as
diffusers,deepspeed, andanarciare loaded only by the features that need them. - Published PyPI files are immutable. If a release is flawed, publish a new version and yank the flawed release instead of trying to replace it.
Citation
@article{abfold,
title = {AbFold -- an AlphaFold Based Transfer Learning Model for Accurate Antibody Structure Prediction},
author = {Peng, Chao and Wang, Zelong and Zhao, Peize and Ge, Weifeng and Huang, Charles},
journal = {bioRxiv},
year = {2023}
}
Metadata
Release files for abfold-extended 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| abfold_extended-0.2.0.tar.gz | 137.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abfold_extended-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 296.2 kB
Release files / abfold_extended-0.2.0.tar.gz
| Download URL | abfold_extended-0.2.0.tar.gz |
|---|---|
| Size | 137.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
740adc2d593b6a7f80778c6c93c96212f16aaf1ca40f892a59367ea6ab3944e7
|
|
BLAKE2b-256 checksum How to use checksums |
ee8bdacc12cf9002419007b0282ed384692e4f2fcfb854bb860a5a5dd8858722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / abfold_extended-0.2.0-py3-none-any.whl
| Download URL | abfold_extended-0.2.0-py3-none-any.whl |
|---|---|
| Size | 158.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55e3193ecb767b3f095017537d0f12fdcbd4b6cce266d265f6f6d2ac9b851eb7
|
|
BLAKE2b-256 checksum How to use checksums |
e39d057202d16f7f67307b8037fc0cb69c194c5c9caa80cdc5cdfb51c40ff6a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for abfold-extended 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.