EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

TorchRef : an open-source PyTorch framework for crystallographic refinement

Hans-Peter Seidel, Jörg Standfuss, Tobias Weinert

Journal of Applied Crystallography · 01.12.2026 · 59 (6)

DOI: 10.1107/s1600576726009258 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Journal of Applied Crystallography, online erschienen am 27.10.2026. Verfasst von Hans-Peter Seidel und 2 weiteren Autor:innen. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Macromolecular crystallographic refinement is central to structural biology, with a long history of methodological development. Differentiable-programming frameworks now offer a natural base for extending this toolbox with new targets and parameterizations, with access to hardware acceleration. Here we present TorchRef , a PyTorch -based refinement framework that exposes all refinable parameters (atomic coordinates, atomic displacement parameters, occupancies and scale factors) to automatic differentiation. The framework implements fast Fourier transform based structure factor calculations, the French–Wilson treatment of intensities, bulk-solvent modelling and stereochemical restraints from the CCP4 Monomer Library. A modular target architecture allows loss functions to be combined, weighted and extended independently of the core refinement machinery. Across 725 Phaser -placed AlphaFold predictions refined head to head with phenix.refine , REFMAC5 and TorchRef , the three engines reach median R free values within 0.30 percentage points of each other while maintaining comparable geometry. TorchRef 's structure factor calculation is comparable to existing methods and benefits from multiple CPU cores and GPU acceleration. TorchRef 's differentiable, modular design also enables workflows beyond conventional refinement: as an example, we implemented direct refinement against amplitude differences for time-resolved data, where the refined model reproduced the observed difference density more closely than the deposited extrapolation-refined model. TorchRef is released under the MIT licence with full API documentation and tutorials, providing an accessible platform for developing and testing new crystallographic refinement protocols.

Förderung

  • Schweizerischer Nationalfonds zur Förderung der Wissenschaftlichen Forschung

Zitieren

APA

Seidel, H., Standfuss, J., & Weinert, T. (2026). TorchRef : an open-source PyTorch framework for crystallographic refinement. Journal of Applied Crystallography, 59(6). https://doi.org/10.1107/s1600576726009258

Vancouver

Seidel H, Standfuss J, Weinert T. TorchRef : an open-source PyTorch framework for crystallographic refinement. Journal of Applied Crystallography. 2026;59(6). doi:10.1107/s1600576726009258

BibTeX
@article{Seidel2026,
  author = {Seidel, Hans-Peter and Standfuss, Jörg and Weinert, Tobias},
  title = {TorchRef : an open-source PyTorch framework for crystallographic refinement},
  journal = {Journal of Applied Crystallography},
  year = {2026},
  volume = {59},
  number = {6},
  doi = {10.1107/s1600576726009258}
}
Kostenlos starten →