pyCurves: a modernized and expanded implementation of the Curves algorithm for DNA helical analysis
DNA shape provides a quantitative linkage between nucleotide sequence, molecular recognition, and genome regulation. The legacy Curves algorithm established an influential framework based on a global and deformable helical axis, but its requirements for a manually prepared topology, specialized input formats, and legacy Fortran77 code create barriers to integration with modern workflows. Here, we present pyCurves, a Python reimplementation and extension of Curves. pyCurves retains the global curvilinear-axis optimization while replacing derivatives with automatic differentiation and numerical optimization. It integrates PDB/mmCIF input, automatic topology inference, chemically modified nucleotides, machine-readable output, and workflows for experimental structures and molecular-dynamics trajectories. In a Protein Data Bank-scale benchmark, pyCurves expands structural coverage while reproducing Curves and Curves+ parameters for canonical DNA within the precision of the legacy output. Comparisons between globally optimized and locally smoothed axes show that these constructions provide distinct, non-interchangeable descriptions of DNA shape. To extend the analysis beyond canonical Watson-Crick base pairs, pyCurves introduces contact-geometry reference frames anchored to the interacting base edges. For molecular-dynamics trajectories, a vectorized in-memory pipeline using local-axis smoothing reduces the processing time relative to Curves+/Canal workflows. Together, pyCurves provides a compatible and extensible framework for analyzing DNA geometry across structure size and simulation scales.
Authors
- Jinsen Li (ORCID: https://orcid.org/0000-0002-1015-5263)
- Remo Rohs (ORCID: https://orcid.org/0000-0003-1752-1884)
Institutions
- University of Southern California (US)
Publication Details
- Journal
- bioRxiv (Cold Spring Harbor Laboratory)
- Published
- 2026-12-02
- DOI
- https://doi.org/10.64898/2026.12.01.770694
- Primary Topic
- DNA and Nucleic Acid Chemistry
- Type
- preprint