Conceptio › Archive › NCBI PubMed Central
NCBI PubMed Central open access

A modular framework for automated segmentation and analysis of AFM imaging of chromatin organization.

Sørensen EW et al. · ncbi_pmc
NCBI PubMed Central · Papers
Open Source ↗Direct PDF ↓
machine-learning-systems
Conceptio Open Archive

Analyze & explore related research in Conceptio

Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.

A modular framework for automated segmentation and analysis of AFM imaging of chromatin organization - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice Nucleic Acids Res . 2026 Jun 22;54(12):gkag632. doi: 10.1093/nar/gkag632 A modular framework for automated segmentation and analysis of AFM imaging of chromatin organization Emily Winther Sørensen 1, 2, 3, 4 , Sushil Pangeni 5, 6 , Raquel Merino Urteaga 7, 8 , Peter J Murray 9, 10 , Sergei Rudnizky 11, 12 , Ting-Wei Liao 13 , Fahad Rashid 14 , Jihee Hwang 15, 16 , Maryam Yamadi 17 , Xinyu A Feng 18 , Jonas Zähringer 19, 20 , Stephanie Gu 21, 22 , Iain F Davidson 23 , Laura Caccianini 24 , Manuel Osorio-Valeriano 25 , Lucas Farnung 26 , Seychelle M Vos 27 , Jan-Michael Peters 28 , James Berger 29 , Carl Wu 30 , Nikos S Hatzakis 31, 32, 33 , Julius B Kirkegaard 34, ✉ , Taekjip Ha 35, 36, ✉ Author information Article notes Copyright and License information 1 Department of Chemistry, University of Copenhagen, 2100 Copenhagen, Denmark 2 NNF Center for Optimized Oligo Escape and Control of Disease, University of Copenhagen, 2100 Copenhagen, Denmark 3 NNF Center for 4D Cellular Dynamics, University of Copenhagen, 2100 Copenhagen, Denmark 4 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 5 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 6 Department of Biophysics, Johns Hopkins University, Baltimore, MD 21218, United States 7 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 8 Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States 9 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 10 Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States 11 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 12 Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States 13 Department of Biophysics, Johns Hopkins University, Baltimore, MD 21218, United States 14 Department of Biophysics and Biophysical Chemistry, Johns Hopkins University, Baltimore, MD 21218, United States 15 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 16 Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States 17 Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States 18 Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States 19 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 20 Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States 21 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 22 Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States 23 Research Institute of Molecular Pathology, Vienna BioCenter, Vienna, 1030, Austria 24 Department of Biology, Massachusetts Institute of Technology and Howard Hughes Medical Institute, Cambridge, MA 02139, United States 25 Department of Cell Biology, Blavatnik Institute, Harvard Medical School, Boston, MA 02115, United States 26 Department of Cell Biology, Blavatnik Institute, Harvard Medical School, Boston, MA 02115, United States 27 Department of Biology, Massachusetts Institute of Technology and Howard Hughes Medical Institute, Cambridge, MA 02139, United States 28 Research Institute of Molecular Pathology, Vienna BioCenter, Vienna, 1030, Austria 29 Department of Biophysics and Biophysical Chemistry, Johns Hopkins University, Baltimore, MD 21218, United States 30 Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States 31 Department of Chemistry, University of Copenhagen, 2100 Copenhagen, Denmark 32 NNF Center for Optimized Oligo Escape and Control of Disease, University of Copenhagen, 2100 Copenhagen, Denmark 33 NNF Center for 4D Cellular Dynamics, University of Copenhagen, 2100 Copenhagen, Denmark 34 Department of Computer Science, University of Copenhagen, 2100 Copenhagen, Denmark 35 Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States 36 Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States ✉ To whom correspondence should be addressed. Email: juki@di.ku.dk ✉ Correspondence may also be addressed to Taekjip Ha. Email: taekjip.ha@childrens.harvard.edu Roles Emily Winther Sørensen : Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Project administration, Software, Validation, Visualization, Writing - original draft, Writing - review & editing Sushil Pangeni : Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Validation, Writing - review & editing Raquel Merino Urteaga : Data curation, Formal analysis, Investigation, Methodology, Validation, Writing - review & editing Peter J Murray : Data curation, Formal analysis, Investigation, Methodology, Validation, Writing - review & editing Sergei Rudnizky : Data curation, Formal analysis, Investigation, Methodology, Validation, Writing - review & editing Ting-Wei Liao : Data curation Fahad Rashid : Data curation Jihee Hwang : Data curation Maryam Yamadi : Data curation Xinyu A Feng : Data curation Jonas Zähringer : Formal analysis, Validation Stephanie Gu : Formal analysis, Validation Iain F Davidson : Data curation Laura Caccianini : Data curation Manuel Osorio-Valeriano : Data curation Lucas Farnung : Resources Seychelle M Vos : Resources Jan-Michael Peters : Resources James Berger : Resources Carl Wu : Resources Nikos S Hatzakis : Funding acquisition, Resources Julius B Kirkegaard : Conceptualization, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Writing - review & editing Taekjip Ha : Conceptualization, Formal analysis, Funding acquisition, Investigation, Project administration, Resources, Software, Supervision, Validation, Writing - review & editing Received 2026 Mar 11; Revised 2026 Apr 28; Accepted 2026 Jun 3; Collection date 2026 Jul 8. © The Author(s) 2026. Published by Oxford University Press. This is an Open Access article distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/4.0/ ), which permits unrestricted reuse, distribution, and reproduction in any medium, provided the original work is properly cited. PMC Copyright notice PMCID: PMC13284722  PMID: 42328787 Abstract Chromatin organization underlies essential genome functions, but its nanoscale organization remains challenging to capture and quantify with precision. Atomic force microscopy (AFM) offers direct structural readouts of DNA and chromatin, yet translating these rich images into reproducible biological metrics has been limited by the lack of standardized, scalable analysis tools. Here we present DNAsight, an automated analysis framework that integrates machine learning-based segmentation with modular, base-pair-calibrated quantification of DNA spatial organization, looping, nucleosome spacing, and protein clustering. Applied across diverse chromatin-associated proteins, DNAsight reveals protein-specific organizational signatures, including topology-dependent compaction by integration host factor, condition-dependent changes in loop-like DNA structures in cohesin–CTCF–precocious dissociation of sisters 5A reactions, and promoter-driven multimerization of GAGA factor clusters. The framework further enables direct extraction of nucleosome spacing distributions from raw AFM images, providing a label-free route to investigate chromatin fiber architecture. Together, these advances establish DNAsight as a generalizable and scalable approach for converting AFM measurements into quantitative insights into the physical principles of chromatin organization. Graphical Abstract Graphical Abstract. Open in a new tab Introduction Understanding chromatin organization at the nanoscale is essential for deciphering the regulatory mechanisms that govern genome accessibility, gene expression, and nuclear architecture [ 1 , 2 ]. Here, atomic force microscopy (AFM) enables direct visualization of individual DNA–protein complexes under near-physiological conditions [ 3–5 ], offering single-molecule (SM) resolution of DNA–protein organization. AFM imaging has revealed a broad spectrum of DNA and chromatin architectures, from naked and supercoiled DNA to nucleosome arrays, DNA-binding transcription factors, and higher-order chromatin assemblies, thus providing structural insights into chromatin topology across scales that help bridge the gap between atomic resolution structural studies and ensemble biochemical approaches [ 3 , 4 , 6 , 7 ]. High-throughput AFM pipelines have been used to analyze nucleosome conformations [ 8 ], allowing measurement of unwrapping states and height/shape differences across H3 versus CENP-A nucleosomes [ 9 ]. AFM has also been used to characterize DNA compaction by polyamines [ 10 ], revealing how multivalent cations such as spermidine or spermine can drive cooperative condensation of long DNA molecules into globular or toroidal structures [ 11 ]. Additionally, AFM has been used to explore how DNA–condensin interactions shape looping or bridging architectures [ 12 , 13 ]. Collectively, these studies demonstrate the versatility of AFM in resolving multiple organizational regimes of DNA, offering a comprehensive structural view that complements biochemical and genomic approaches. Despite these strengths, extracting quantitative information from AFM images remains a key bottleneck. Many studies have relied on careful manual or semi-automated contour tracing to quantify DNA or chromatin features [ 9 , 14 , 15 ]. While such expert-guided approaches are reliable and can capture subtle structural details, they are also subjective and are cumbersome to scale to large datasets. Even when automated steps, such as background flattening, threshold-based segmentation, or particle detection, are introduced, these pipelines are often customized for a specific dataset and rarely generalize beyond their original context [ 16–18 ]. Recent advances in computational AFM analysis have begun to address these limitations. Tools such as TopoStats [ 12 , 19 ] have automated the tracing of DNA molecules from static AFM images, enabling reproducible measurement of contour length, curvature, and height profiles. Other image-analysis frameworks have applied classical computer-vision methods to extract DNA backbones or identify nucleosome positions [ 9 , 20 , 21 ]. However, these pipelines focus primarily on individual DNA molecules rather than complex chromatin architectures and often require substantial manual supervision during segmentation and feature selection. Nevertheless, these works have established an important precedent for bringing computational rigor to AFM studies of nucleic acids. Building on this foundation, we introduce DNAsight, a modular computational framework that automates and standardizes the analysis of AFM images of chromatin. DNAsight integrates machine learning (ML)-based segmentation with quantification modules for DNA length, spatial organization, loop quantification, nucleosome spacing, and protein-mediated clustering. Beyond improving reproducibility and throughput, it expands the range of organizational features that can be systematically extracted from AFM data. The framework is designed to accommodate diverse experimental systems, here demonstrated on reconstituted chromatin fibers and chromatin-associated proteins such as GAGA factor (GAF), integration host factor (IHF), and cohesin regulators. Together, these results illustrate how automated analysis can broaden the scope of information extracted from AFM measurements of DNA and DNA–protein interactions, and provide new opportunities for quantitative studies of chromatin organization. Materials and methods Experimental methods High-speed AFM High-speed AFM, a commercial sample-scanning high-speed AFM (SS-NEX Ando model) from RIBM (Research Institute of Biomolecule Metrology Co., Ltd.), was used for experiments. Tapping mode was employed to minimize interference with the deposited sample, and all deposited samples were captured in solution. Ultra-short cantilevers (USC-F1.2k0.15–10), specifically designed for high-speed AFM with a resonance frequency of 1200 kHz, a spring constant of 0.15 N/m, and a length of 7 µm, were purchased from NanoAndMore and utilized in these experiments. A wide scanner was employed with scan speeds ranging from 0.05 to 6 s per frame, with the resolution set to 100 × 100 pixels to 500 × 500 pixels. Surface passivations and DNA imaging All experiments were carried out on mica functionalized with poly-lysine, closely following a published protocol [ 22 ]. Mica discs sized to fit the glass rod (and the corresponding rod) were obtained from RIBM. The mica disc was affixed to the glass rod with commercially available nail polish, and the rod was then installed on the AFM scanner. Immediately before each measurement, the mica was freshly cleaved by gently lifting the top layer with one-sided tape. The exposed surface was treated with poly(lysine) (MW ∼1000–5000; Sigma–Aldrich P0879) at 0.05 mg/ml for 3 min, followed by two rinses with distilled water. DNA prepared in the buffer of choice was diluted to 0.1–1 nM (as appropriate for each experiment), and 3 µl was applied to the poly-lysine-coated mica and allowed to adsorb for 3 min. The surface was then rinsed with distilled water and imaged in water using a high-speed AFM microscope. Although imaging in water may, in principle, perturb weakly bound or structurally unstable assemblies relative to their original buffer conditions, incomplete molecules were excluded during downstream filtering and analysis. AFM imaging of nucleic acids and nucleic acid–protein complexes in water has also been reported previously [ 23 , 24 ]. AFM image conversions HS-AFM images were viewed and analyzed using the software built by Prof. Toshio Ando’s laboratory-built software, Kodec 4.4.7.39, with available source code. Tilt and other image correction details are available in the literature [ 25 ]. Kodec was only used for the conversion of canonical asd files into bmp files that could be further used for the imaging analysis platforms discussed in the paper. Preparation of supercoiled DNA substrates Plasmid DNA (10 µg) was nicked with 35 U Nt.BbvCI in 210 µl 1× NEBuffer™ 2.1 (New England Biolabs). For low supercoiling, 400 U T4 DNA ligase and 5 U T4 DNA polymerase were added with 10 mM Dithiothreitol (DTT) and 2 mM Adenosine Triphosphate (ATP) (final). For mid and high supercoiling, ethidium bromide (EtBr) was added to 4 or 10 µM (final), respectively. Reactions were incubated at 37°C for 90 min, followed by treatment with 50 U T5 exonuclease at 37°C for 60 min. DNA was purified using the QIAquick Polymerase chain reaction Purification Kit (QIAGEN); EtBr-treated samples were subjected to butanol extraction prior to the final cleanup. IHF purification Escherichia coli IHF (ihfA–ihfB operon cloned in pET21) was overexpressed in BL21-AI cells grown in 2× YT medium supplemented with carbenicillin at 37°C. Expression was induced at an OD 600 of ∼0.8 with 0.5 mM Isopropyl β-D-1-thiogalactopyranoside (IPTG) and 2 g/l arabinose for 3 h. Cells were harvested by centrifugation, resuspended in lysis buffer (25 mM Tris–HCl, pH 7.4, 50 mM NaCl, 10% glycerol, 1 mM ethylenediaminetetraacetic acid (EDTA), 1 mM TCEP, and protease inhibitors), and lysed by incubation with lysozyme (1 mg ml −1 ) on ice followed by sonication. Lysates were clarified by centrifugation at 18 000 rpm for 45 min. Nucleic acids were removed by dropwise addition of 8 M LiCl to a final concentration of 1 M at 4°C, followed by centrifugation. Proteins were fractionated by sequential ammonium sulfate precipitation, discarding the 50% saturation pellet and retaining the 80% saturation pellet. The resulting pellet was resuspended and dialyzed into high-salt HEPES buffer (20 mM HEPES, pH 7.45, 400 mM NaCl, 10% glycerol, 1 mM EDTA, and 1 mM TCEP), then purified by heparin affinity chromatography [Cytiva] using a 0.4–1.5 M NaCl gradient. Final polishing was performed by Superdex 75 size-exclusion chromatography (50 mM HEPES, pH 7.5, 250 mM NaCl, 10% glycerol, 1 mM TCEP, and 1 mM EDTA) [Cytiva]. Peak IHF fractions were pooled, aliquoted, flash-frozen in liquid nitrogen, and stored at −80°C. GAF cluster measurements GAF cluster experiments were performed on the passivated surface described earlier. GAF–DNA binding reactions were prepared as a 10× mixture containing 1 nM DNA and 10 nM GAF in GAF binding buffer (12.5 mM HEPES–KOH, pH 7.6, 0.05 mM EDTA, 6.25 mM MgCl 2 , and 50 mM NaCl) and incubated for 10 min. The reaction was then diluted 10-fold in the same buffer to 1× working conditions (final concentrations: 0.1 nM DNA and 1 nM GAF) to obtain an appropriate surface density, followed by an additional 10 min incubation. Samples were deposited onto the passivated surface and incubated for 10 min to allow adsorption. The surface was washed once with 80 µl ultrapure water, and imaging was performed in water. During imaging, the setpoint/feedback parameters (and, when needed, the imaging height) were adjusted depending on cluster size to minimize tip–sample contact that can compress clusters or introduce blurring artifacts. GAF protein was expressed and purified as described previously [ 26 ]. IHF measurements IHF cluster experiments were performed on the same passivated surface and followed the same surface deposition, wash, and imaging procedure described earlier (including adjustment of imaging parameters for large assemblies to avoid tip-induced artifacts). IHF–DNA binding reactions were prepared as a 10× mixture containing 1 nM DNA and 10 nM IHF in buffer (50 mM HEPES, pH 7.5, and 100 mM NaCl) and incubated for 10 min. The reaction was then diluted 10-fold to 1× working conditions (final concentrations: 0.1 nM DNA and 1 nM IHF) to achieve an appropriate surface density, followed by an additional 10 min incubation. Samples were then deposited onto the passivated surface, incubated for 10 min, washed once with 80 µl ultrapure water, and imaged in water. Cohesin–CTCF–PDS5A looping measurements A 7979 bp DNA substrate containing two CTCF consensus motifs (the center of which were 511 or 514 bp from each DNA end), cohesin, STAG1, NIPBL-MAU2 (“NIPBL”), precocious dissociation of sisters 5A (PDS5A), and CTCF were prepared as previously described [ 27 ]. Cohesin and STAG1 were preincubated each at 25 nM in SMC buffer (50 mM HEPES, pH 7.5, 100 mM NaCl, 10 mM MgCl 2 ) for 10 min on ice. The cohesin reaction was performed by mixing 0.5 nM DNA, 5 nM CTCF, 7.5 nM cohesin-STAG1, 5 nM NIPBL, and 5 mM ATP in SMC buffer and incubating at 37°C for 5 min. For the PDS5A condition, 5 nM PDS5A was added after the 5 min, and a subsequent 1-min incubation at 37°C was performed. Following the incubation, the sample was diluted 5× in SMC buffer supplemented with 5 mM ATP and immediately deposited on a P-lysine-coated mica surface. The sample was incubated for 10 min on the surface, washed with 80 μl of water, and then imaged in water. The utilized proteins were expressed and purified as explained in a recent preprint [ 27 ]. Nucleosome reconstitutions Nucleosomal DNA construct formation Plasmids containing two or six repeats of the 601 nucleosome positioning sequence, separated by 80 bp of linker DNA, were cut using restriction enzymes to generate di- and hexanucleosomal DNA (394 and 1364 bp, respectively). The DNA fragments contained an additional 62- and 20-bp linker on the hexanucleosomal sequence, and 20 bp at one end of the dinucleosome. The following restriction enzymes were used: BstZ17-HF and XhoI - dinucleosomes, and PciI and XhoI - hexanucleosomes. To generate non-well positioned nucleosomes, the ScaI enzyme was used to generate a single cut on a 4-kb plasmid. Digested DNA was ethanol precipitated, and polyacrylamide gel electrophoresis (PAGE)-purified using Bio-Rad Prep cells of different acrylamide/bisacrylamide percentage. Reconstitution of polynucleosomes Nucleosomes were reconstituted using salt-gradient dialysis. Human histone octamer was titrated at around 6×, 2×, or 5× molar-fold excess to DNA concentration depending on the nucleosome construct (hexa-, di-, or non-well positioned, respectively). Bovine serum albumin was not included in reconstitutions for cleaner AFM nucleosome signals. Efficient assembly was checked on a native PAGE gel (3.5% hexa- and non-well positioned, 6% dinucleosomes). Reactions were pulled down and purified over a 15%–40% sucrose gradient (SW60Ti rotor, 45 000 rpm, 16 h, 4°C). Peak fractions were pooled, concentrated, and buffer-exchanged to nucleosome storage buffer (10 mM Tris, pH7.5, 1 mM EDTA, 50 mM NaCl, 3.5 mM BME, 0.02% NP40). Nucleosome imaging Nucleosomes were reconstituted as explained in the reconstitution section. A low salt buffer (LSB) was used to image the nucleosome. LSB buffer is 10 mM Tris, pH 7.5, 50 mM NaCl, 1 mM EDTA, 5 mM BME, and 0.02% NP40. Briefly, nucleosomes were diluted to equivalent of 0.1 nM in concentration in LSB and deposited to the poly-lysine-coated mica surface. Note that an LSB is essential to provide the integrity of nucleosomal constructs. Then, 3 μl was deposited on the surface and incubated for 5 min. Then, samples were washed with LSB buffer once, and then imaged in water in the reservoir. Scan size was varied from 2000 nm × 2000 nm to 300 nm × 300 nm based on the size of the constructs. DNAsight DNA segmentation Manual annotation AFM image output was converted into TIFF format (or other ImageJ-compatible format like BMP). Hereafter, the images were annotated using the “Freehand Line” tool in ImageJ, and the files were saved in TIFF format with the manual annotations. For this work, 258 images were manually annotated. Data acquisition and pre-processing TIFF images containing raw AFM data and corresponding manual annotation masks embedded as metadata (ImageJ overlays) were used to create a training dataset for DNA segmentation. Images were normalized by scaling pixel intensities to a range between 0 and 1, ensuring consistent contrast and brightness levels across all samples. This normalization provided uniform input data, reducing potential bias due to variable imaging conditions. Data augmentation To expand the effective dataset and improve model generalization, a diverse set of image augmentations was applied. Each image could be randomly rotated by up to ±30° and cropped to remove borders, while random horizontal and vertical flips introduced orientation variability. Moderate changes in brightness and contrast (±10%) simulated variations in imaging conditions. Additional stochastic perturbations included either image downscaling (to 30%–90% of original resolution) or advanced blurring, mimicking differences in AFM tip sharpness or focus. Gaussian noise (σ = 0.01–0.05) and sharpening were also added to emulate sensor noise and enhance structural variability. Finally, all images were randomly cropped to 128 × 128 pixels. Generation of proximity maps Rather than using binary annotations as ground truth, the model was trained using continuous backbone-proximity maps derived from manual DNA annotations. These maps were generated by computing the Euclidean distance to the nearest annotated DNA contour for each pixel. Distances were then clamped to a predefined maximum (default: five pixels) to limit the spatial extent of the signal. The clamped distance values were subsequently inverted and normalized to the range [0, 1], such that pixels on the DNA backbone attain the maximum value, and values decay smoothly with increasing distance into the background. This transformation yields a gradient-rich target representation that emphasizes the DNA medial axis and nearby boundary regions, providing a more informative and stable supervision signal during training. Model architecture The segmentation was performed using a convolutional neural network based on the widely established U-Net architecture. This model consists of two main pathways: (i) an encoder pathway (contracting path) that captures context by progressively reducing spatial dimensions through convolutional and max-pooling operations, and (ii) a decoder pathway (expanding path) that restores spatial resolution through upsampling and convolutional layers. Skip connections between the encoder and decoder pathways ensure the preservation of detailed spatial information, critical for accurately delineating narrow DNA strands. The final layer of the model employs a 1 × 1 convolution followed by a sigmoid activation function, outputting a predicted normalized proximity map with pixel values between 0 and 1. Training procedure The U-Net model was trained using an Adam optimizer with a learning rate of 0.001 over multiple epochs (default 1500 epochs). During each iteration, batches of augmented images, their corresponding binary annotation masks, and pre-computed proximity maps were input into the model. Model weights were updated through gradient descent optimization to minimize prediction error. Loss function Training employed a customized weighted mean squared error (WMSE) loss function designed specifically for proximity map regression: (1) Here, ​represents the ground truth proximity map, and is the predicted map. The weighting term 0.1+ ensures that errors near the boundaries—where ​is higher—are penalized more heavily, thus encouraging the network to focus on these critical regions. This approach provides a more refined supervisory signal compared to a standard binary segmentation loss and helps the model learn the fine details essential for accurate segmentation of DNA structures. Prediction and post-processing After the AFM images were passed through the trained network to produce continuous proximity maps, these were converted into skeletonized DNA backbones through a multi-step process. First, a high-confidence mask was defined by thresholding the proximity map. Second, small objects below a minimum area were removed to eliminate spurious detections. Third, backbone ridges were enhanced by a difference-of-Gaussians (DoG) filter, and a binary segmentation was created by combining this ridge response with the high-confidence proximity map. This binary segmentation was reduced to a one-pixel-wide backbone using skeletonization, and the skeleton was restricted to the previously validated components to ensure continuity within true DNA molecules. Finally, each skeletonized molecule was assigned a globally unique identifier, ensuring consistent indexing across all images in a dataset. Processed outputs were saved as two-layer image files: one layer containing the raw AFM image, the other containing the global skeleton ID map for the input folder. These global IDs are used and saved for all downstream analysis. Performance Segmentation accuracy was assessed using pixel-distance error between predicted skeletons and manually annotated centerlines. Akin to dynamic time warping [ 28 , 29 ], we calculate the average of the minimum distance from prediction to label and label to prediction (see Supplementary Fig. S1 ). For assessing performance, a separate model was trained on 90% (232 images) of the data randomly chosen, and then evaluated on the remaining 10% (26 images) of the data. DNA length calibration and pixel-to-bp conversion DNA backbone length measurement from skeletons DNA lengths were measured directly from skeletonized backbones generated by the segmentation pipeline. Each skeletonized component was represented as a graph on the pixel grid with full eight-neighbour connectivity, allowing both orthogonal and diagonal steps. To avoid artificially shortened paths at branch points, diagonal “corner cuts” across square junctions were excluded. The skeleton graph was then decomposed into continuous path segments by tracing along edges until reaching either an endpoint or a junction. For closed contours where all nodes had degree two, the entire loop was returned as a single segment. The Euclidean length of each segment was computed as the sum of one unit for orthogonal steps and √2 for diagonal steps, and the lengths of all segments belonging to a component were added to obtain its total contour length in pixels. As the length was calculated from the center of the pixels, half the length of each end-point pixel was added to the length (√2/2 for diagonal pixels and ½ for straight). Components that touched the image boundary were flagged as edge-touching to indicate possible partial molecules. Calibration constant by filtering For calibration, we used reference DNA molecules of known sequence length. To improve robustness of the calibration in datasets containing truncated molecules, overlapping DNA, edge-touching molecules, impurities, or occasional segmentation artifacts, DNAsight allows optional filtering of the reference population before estimating the calibration constant. In the implementation used here, edge-touching molecules were excluded, and additional quantile-based filtering was applied using user-defined lower and upper bounds (default: 25th and 75th percentiles). These thresholds are not fixed requirements of the framework and can be relaxed or disabled depending on dataset quality. For highly pure, well-resolved reference datasets, the full distribution can, in principle, be retained for calibration. The purpose of this filtering step is to obtain a stable estimate of the calibration constant from intact single reference molecules, rather than to characterize the full spread of the raw sample. This filtering step removed atypical fragments, overlapping molecules, and rare segmentation artifacts. After filtering, pixel lengths were converted to nanometers by multiplying by the pixel size recorded from the AFM scan settings. The calibration constant, expressed as nanometers per bp, was then estimated as the mean length in nanometers of the retained molecules divided by the known sequence length in bp (Equation 2 ). (2) Where is the mean length of the kept DNA molecules after filtration in pixels and is the known length of the DNA molecules in bp. The spread of values across the filtered set provided a measure of variation and reproducibility of the calibration. Geometric features Compaction For each labeled DNA molecule, we quantify spatial spread using the radius of gyration . Let be the pixel coordinates of all pixels belonging to that DNA. We first compute the geometric centroid (center of mass of the pixel set) as (3) Hereafter the root-mean-square distance from the center is calculated as (4) Intuitively, R g is small when the DNA pixels are tightly clustered around the centroid (compact object) and larger when pixels are spread out. Because R g naturally grows with the size of the object, we report the normalized and rescaled compaction, C , as seen in equation 5 , where L is the total skeleton length of that DNA in pixels. Multiplying by √2 × 3 and subtracting from 1 rescales the compaction to be between 0 and 1, for easier interpretability. (5) This normalization makes values comparable across molecules of different lengths. However, not across different pixel sizes. As such, when pixel size is provided C is further normalized to be comparable across varying pixel sizes. Crossings To find branching points or crosses, we identify pixels along the DNA mask which have ≥3 neighbouring annotated pixels in the DNA mask. Hereafter, nearby junctions are merged within a 3-pixel radius to not overestimate the number of crossings. Tortuosity We define tortuosity as the ratio of path length to the most distant end-to-end chord measured on the skeleton (Equation 6 ). (6) Where L is the total skeleton length (pixels) and D is the Euclidean distance between two endpoints on the skeleton. In the case of >2 endpoints in the skeleton, the two points furthest from each other are used. For closed loops (no endpoints), is undefined and omitted. Curvature Obtaining a single representative centerline per molecule is generally not possible, and when it is, finding such a path is computationally infeasible (NP hard). As a compromise, we traverse the graph by favoring straight continuation across junctions (as defined in crossings). Starting from an endpoint (or a crossing if no endpoints exist), we repeatedly choose the outgoing edge whose direction best aligns with the current travel direction. Direction is estimated from the last k steps (look-ahead/behind, by default), and alignment is measured by the dot product (i.e. the cosine of the turning angle). The traversal proceeds until no unused edges remain along a straight continuation. Among all such traversals, we retain the longest resulting path (maximum arclength in pixels). For closed loops (no endpoints), we walk the contours to produce the longest simple path available. This strategy allows us to follow the biologically most likely path when extracting curvature. The selected path [ordered pixel coordinates ] is lightly smoothed with a Savitzky–Golay filter to reduce pixel anisotropy and discretization noise introduced by skeletonization while preserving local geometry. Because this smoothing can influence absolute curvature values, the smoothing window is a user-adjustable parameter rather than a fixed requirement of the framework (note that it must be an odd number). Coordinates are then resampled to approximately uniform arclength spacing (default ≈ 1 px). We hereafter fit natural cubic splines and to the arclength-parameterized path and compute the unsigned curvature (7) To mitigate end effects, we discard a small fraction of points at both ends (default 2%). When pixel-to-nm calibration is available, in is converted to by dividing by pixel size. Per molecule, we report the mean, std, minimum, and maximum curvature computed over the trimmed spline sample. In the analyses presented here, we used a default smoothing window of 15 pixels. Sensitivity analysis across smoothing-window sizes showed that very small windows produced higher and more variable curvature estimates, consistent with stronger sensitivity to pixel-scale jaggedness, whereas the estimates stabilized over at window sizes around 11–17 ( Supplementary Fig. S2 ). Paths shorter than four points after preprocessing are excluded. If smoothing parameters are too large for short segments, the window is adaptively reduced to the nearest valid odd value (minimum ) to ensure a stable fit. Strong bends We detect strong bends from the unsigned curvature profile sampled at approximately uniform arc-length positions. Using a degrees and , we set a local curvature threshold as defined in equation 8 and a maintenance threshold . (8) A bend begins at the first sample where and continues while ; any dip longer than 1 px below ​ immediately ends the run. If the accumulated span of the run reaches at least , the event is counted as one strong bend; otherwise, it is discarded. Counting then resumes after the end of the run so that events do not overlap. Curvature is in (or if upstream pixel-size calibration is applied). Elongation Elongation is derived from the best-fit ellipse to each connected DNA mask. We report elongation as calculated as the ratio of the major to minor axis lengths ( a, b ) from region properties (9) Larger E indicates more anisotropic rod-like shapes. Loop detection and quantification For each segmented DNA, we searched for interior holes in the complement of the DNA mask (background) using connected-component labeling with border clearing, so that only fully enclosed holes were retained. A hole was considered a loop candidate if its contact length was above a minimum threshold (default ≥10 pixels). To represent each candidate loop by a single curve, we skeletonized the contacting-pixel set to one-pixel width and suppressed spurious branching. Branch points on the skeleton were detected by hit-or-miss transforms using a bank of rotated/reflected 3 × 3 templates, then pruned and relabeled to isolate the largest contacting strand. Branch points were then restored and the result re-skeletonized to yield a clean one-pixel curve along the DNA-hole interface. To remove pseudo loops on the same DNA (enclosed structures with many associated loops), we additionally filtered strongly overlapping loop candidates. Specifically, when two candidate loop paths overlapped by at least five pixels, candidates were sorted by loop size and the smaller candidate was preferentially retained. The rationale for this choice is that the larger enclosed contour often arose when a longer DNA segment bent back around an existing loop and re-contacted the DNA along its side, thereby generating an additional apparent closed contour in the 2D segmentation rather than a second independent looping event. Such geometries generally require a relatively long contour segment to extend away from the primary loop and return into contact. In this sense, the larger candidate is often more plausibly explained as a secondary enclosure created by self-overlap of an extended DNA segment than as a distinct loop. Retaining the smaller candidate was therefore used as a pragmatic way to reduce false-positive loop calls, while acknowledging that this distinction is not exact in all cases. For each retained loop, we are interested in identifying the loop location, which we define as the shortest distance of the loop attachment point to either DNA end. This nearest-end metric is convenient for comparing loops across molecules, but it is as blind to the directionality of linear DNA as the measurement is. Consequently, nonspecific background loops may fall by chance within a site-proximal window and be scored as apparent site-associated events, creating a risk of false positives. The metric is therefore best suited to symmetric constructs, where equivalent sites are located at the same distance from either end. However, in either case, because total DNA length is also measured, the complementary distance to the opposite end can additionally be calculated to inspect the full positional distribution. Together, these descriptors are therefore most useful for identifying positional trends or enrichments at the population level, rather than for making absolute assignments of individual loop-like structures to specific anchoring events. We identified the attachment point on the loop by removing the loop from the DNA mask, mildly smoothing the residual mask, and selecting the loop pixel with maximal contact to the remaining DNA; this point was then snapped to the nearest skeleton pixel on the DNA centerline. We then computed distances from this attachment to each true DNA endpoint (as explained in the DNA length calculation section), and reported the shortest of these. This distance includes loops along the path. Note that distance to the nearest end can be longer than half the length of the DNA in the case of the DNA having only one end point (the other end going over the edge of the image) or if the two ends of the DNA segmentation branch from the same single line skeleton DNA. Cluster segmentation To allow for segmentation of a wide range of sizes and shapes of clusters, we created two options of cluster segmentation: one for larger assemblies of various shapes and one for smaller circular clusters. Both segmentation types have the same output, where a global ID is saved and used for all downstream quantifications. Large assemblies AFM frames were segmented to isolate large protein assemblies with a marker-based random-walker approach [ 30 ]. Images were lightly smoothed (Gaussian, ) to suppress pixel noise. A coarse foreground seed was obtained by thresholding the blurred image at the desired multiplication above the mean intensity of the whole image. To provide robust markers for the random-walker, the seed was dilated to obtain confident foreground regions, and its complement was dilated to obtain confident background regions (both dilation parameters are user inputs). A binary random-walker diffusion assigned each pixel to foreground or background given these markers. Small interior voids were filled, and connected components were extracted with eight-connectivity. Components with an area below a minimum size (user input) were discarded. For each retained cluster, we recorded: centroid (center of mass), area (pixel count), and integrated intensity (sum of grayscale values within the region). To enable dataset-level analyses, clusters across all images were assigned global IDs and saved alongside per-image overlays. Small clusters Small puncta were handled by a two-stage “detect-then-segment” pipeline optimized for near-round spots. Firstly, candidate spots were first localized using a classical particle detection method [ 31 , 32 ], using an expected spot diameter (user input), separation at least as large as the diameter, and an intensity/mass cutoff to suppress noise. Around each center, we cropped a small window (user input) and produced a binary mask by either Otsu thresholding or a fixed percentile threshold. Very small specks were removed. If multiple blobs appeared in the window, the blob containing (or nearest to) the detection center was kept; otherwise a small fallback disk was used to represent the spot at image borders. Because windows can overlap, the stack of per-spot masks was converted into a single exclusive label map by assigning any overlapping pixel to the nearest spot center (nearest-center rule). Labeled spots were then screened with simple geometric criteria. We required the area to fall within a practical range (user input). Shape quality was assessed by circularity , eccentricity, and solidity. For each spot that passed screening, we recorded the centroid, area, and integrated intensity, and assigned a dataset-wide global identifier. Outputs share the same schema as the large-assembly pipeline. Cluster quantification and background correction Following segmentation, each detected protein cluster was quantified for its integrated intensity and projected area, with per-image normalization and local background subtraction to allow comparison across samples and imaging conditions. For each cluster, the segmentation mask defines the pixel region corresponding to that cluster. The summed intensity (sum of pixel values within the mask) and the mask area in pixels were extracted directly from the original AFM or fluorescence image. To correct for the local background, a ring-based method was used. Two binary dilations of the cluster mask were generated—one expanding the cluster boundary by 2 pixels and another by 5 pixels. The ring-shaped region between these two dilations represents a local shell surrounding the cluster but excluding the cluster itself. The mean pixel intensity within this ring was taken as the local background intensity. The background-corrected integrated intensity for each cluster was then computed as (10) Where ​ is the raw summed intensity inside the cluster, is the average intensity in the background ring, and A is the cluster area in pixels. For each cluster, additional parameters were derived; cluster area (px, nm 2 )—number of pixels multiplied by the squared pixel size; summed intensity per nm or per nm 2 —intensity normalized by area or linear scale; background-corrected intensities—both absolute and normalized forms as above; and edge-touch flag—a Boolean flag identifying clusters that intersected the image border, to allow optional exclusion from quantitative analyses. All corrected and normalized values were exported to a summary table (see supporting information for details). Cluster-DNA linking and quantification Linking segmentations To quantitatively relate DNA structures to the identified GAF clusters, a region-growing strategy was implemented. For each cluster, its binary mask was expanded using morphological dilation to account for positional uncertainty. This expanded cluster mask was then used to “capture” adjacent DNA components from the binary DNA segmentation. Analytical methods SNR of DNA molecules and images Manual DNA annotations were used as primary segmentation masks. To define measurement regions, three concentric zones were constructed by morphological dilation of the segmentation mask. Signal region : the segmentation mask dilated outward by 1 pixel, capturing the DNA signal while remaining robust to slight under-annotation. Gap ring (ignored) : a 1-pixel-wide buffer immediately outside the signal region (between +1 and +2 px dilations), excluded to prevent signal bleed or partial-volume effects from contaminating the background estimate. Background ring : a 2-pixel-wide annulus immediately outside the gap (between +2 and +4 px dilations), providing a local background matched to the same imaging field and surface. For each image, signal ( ) was defined as the mean intensity of all signal-region pixels across all DNA molecules identified by the segmentation mask. Background mean ( ) and background standard deviation ( ) were defined analogously from the background rings pooled across the same segmentation mask. The image-level SNR was defined as (11) Pooling signal and background statistics across the segmentation mask yields a single, robust signal-to-noise ratio (SNR) per image that is insensitive to local intensity variations along individual DNA molecules. The ignored gap prevents residual DNA signal from inflating background estimates, while the local background annulus controls for slow spatial variations in the AFM surface and scanner. Dominant peak and fit window for DNA contour length estimation To estimate the characteristic DNA length while minimizing contributions from incomplete or overlapping molecules, a Gaussian model was fitted only to the dominant population in the length distribution. Here, a histogram of DNA contour lengths was constructed using a fixed number of bins. The center of the histogram bin with the highest occupancy was identified and taken as an initial estimate of the dominant peak position. To determine an initial width of the distribution in a manner robust to outliers, the median absolute deviation of the full length distribution was calculated and converted to an equivalent Gaussian standard deviation using a factor of 1.4826 [ 33 ]. This value was used to define an initial fitting window centered on the dominant peak. All DNA molecules with contour lengths within ±2.5 times the estimated standard deviation around the peak center were included in the fit. A Gaussian distribution was then fitted to the selected subset using maximum likelihood estimation, yielding the mean contour length and standard deviation reported for the dataset. Fitting of lognormal mixture model to nucleosome-associated DNA segment lengths We estimated linker-length heterogeneity of the poly-nucleosomes by fitting a two-component lognormal mixture to the distribution of measured lengths of nucleosome-associated DNA segments. Before modeling, we removed groups whose constituent DNA contours touched the image boundary. The remaining per-group linker lists were flattened to a single sample of lengths, then restricted to positive values up to 500 bp to focus the model on the primary modes and avoid extreme tails. We then applied a Gaussian mixture model to the natural log of the lengths and used Akaike Information Criterion (AIC) and Bayesian information criterion (BIC) to determine the ideal number of states to be two. Model parameters were estimated by maximum likelihood via the expectation-maximization algorithm, allowing full covariance for each component. The fitted means and variances in log space and the mixing proportions were then mapped back to linear units to report the mean. Results DNAsight: a modular framework for analysis of chromatin in AFM images To systematically extract structural information from DNA and chromatin imaged by AFM, we developed DNAsight, a modular image-analysis framework that links segmentation with biologically meaningful quantification (Fig. 1 ). The pipeline is organized into two segmentation modules for DNA and proteins/clusters (Fig. 1A ) and four quantification modules (Fig. 1B ). The modules are designed to work both sequentially and independently, with some modules being coupled, depending on the experimental question. As input, DNAsight operates on raw AFM images of DNA or DNA–protein complexes and outputs standardized, interpretable metrics, such as DNA length, spatial organization, looping, and DNA–protein clustering. Figure 1. Open in a new tab A schematic representation of DNAsight contents and pipeline. ( A ) Segmentation modules, demonstrated on AFM image, S1: DNA segmentation (white outline) and S2: Cluster segmentation (red outline). Shown applied to an AFM image of GAF proteins and DNA (scale bar 100 nm). ( B ) Cartoon representations of post-segmentations quantification modules Q1: DNA length quantification, Q2: DNA spatial organization, Q3: DNA loop quantification, and Q4: Protein–DNA associations. ( C ) Possible mock application of DNAsight using S1 and Q2 to quantify DNA compaction caused by a compacting agent protein, real example shown later. ( D ) Another possible mock application of DNAsight using S1, S2, Q1, and Q4 to quantify clustering of a multimerizing protein and its correlation with DNA lengths, real example shown later. ( E ) Screenshot of the free-to-use graphical user interface (GUI) that integrates the multimodular pipeline of DNAsight. The user-friendly GUI allows users to perform all core functions of DNAsight directly on raw AFM images, both including segmentation and quantifications, as well as plotting and evaluation of data. The DNA segmentation module (S1) employs an ML-based approach to trace DNA molecules, establishing the structural skeleton for downstream analyses. The protein segmentation module (S2) detects protein features and clusters across multiple size scales, from compact puncta such as nucleosome-like particles to larger protein assemblies, using intensity-based thresholding and morphological filtering tailored to each regime. Downstream linking enables integration of protein architecture with the underlying DNA landscape. Together, S1 and S2 define the structural basis for all subsequent quantifications. The subsequent quantification modules (Q1–Q4) convert these segmentations into biological descriptors (Fig. 1B–D ). Q1 determines DNA lengths in nanometers and base pairs (bp) using reference molecules of known size, ensuring that all subsequent measurements are biologically interpretable and tailored to the experimental system. Q2 quantifies geometric features of DNA, including measures of compaction, curvature, tortuosity, and shape, thereby allowing systematic comparison of chromatin states across conditions. Q3 uses skeletonized DNA masks from S1 to detect loop-like structures, reporting their positions and lengths relative to DNA ends. Here, loops are defined as regions where the DNA backbone folds back and approaches or crosses itself, forming a topologically distinct closed or near-closed segment. Finally, Q4 integrates the DNA and protein masks generated in S1 and S2 to quantify the spatial relationship between proteins and DNA. This includes identifying where protein complexes bind along individual DNA molecules, measuring distances between adjacent binding sites or proteins, as well as determining cluster statistics in relation to DNA length or position. The modularity of DNAsight allows users to select relevant analysis modules to their experimental question (Fig. 1C and D ). For instance, combining S1 with Q2 enables quantification of DNA compaction induced by a compacting agent (Fig. 1C ), while integrating S1, S2, Q1, and Q4 allows measurement of protein clustering and its correlation with the length of recruited DNA (Fig. 1D ). DNAsight is implemented as a modular framework that allows users to select analysis modules based on the experimental question. A GUI provides guided access from raw AFM images to quantitative outputs (Fig. 1E ), while detailed usage instructions are provided in the online documentation available through the GitHub repository. Automated DNA tracing achieves human-level precision and base-pair calibration across imaging conditions At the core of DNAsight is the DNA segmentation module (S1), which extracts SM DNA segmentations directly from AFM topography images. Rather than predicting a binary DNA mask, we trained a U-Net convolutional neural network to output continuous backbone-proximity maps, where each pixel encodes its normalized proximity to the nearest DNA centerline. In these maps, values are maximal on the DNA backbone and decay smoothly toward zero with increasing distance into the background. This representation addresses the extreme class imbalance in AFM images, where DNA typically occupies only ∼1% of pixels. By spreading DNA information into the surrounding background, proximity maps ensure that every pixel contributes to the learning process. To further counteract imbalance, we optimized the model with a customized WMSE loss, in which pixels close to the backbone contribute most strongly while background pixels retain a small baseline weight (Materials and methods). Together, the proximity map formulation and WMSE loss prevent trivial all-background predictions, while prioritizing accurate recovery of the DNA medial axis (Fig. 2A ). Figure 2. Open in a new tab DNA segmentation and conversion to bp. ( A ) Workflow of the DNA segmentation module (S1). AFM topographs are processed by a U-Net trained on normalized proximity maps derived from manual annotations. Predicted proximity maps are refined through watershed segmentation, area filtering, and a DoG (ridge enhancement) filter to produce one-pixel-wide skeletons suitable for downstream analysis. ( B ) DNA segmentation results (purple) compared to manual annotation (gray) across different pixel sizes (Px) and SNRs (scale bar 100 nm). ( C ) Cartoon outline of inter-annotator pixel error measure. ( D ) Segmentation accuracy compared against a single manual annotation across SNRs, evaluated using pixel-distance error, shown in both directions, from DNAsight to manual (purple) and manual to DNAsight (blue), and the average (gray boxplot). ( E ) Pixel-distance error comparing four independent human annotators with DNAsight segmentation. ( F ) DNA length quantification module (Q1). Known-length molecules, here 1633 bp plasmids and linear fragments, are filtered post-segmentation to exclude outlier molecules such as overlapping molecules, truncated fragments, or edge-touching DNA (pixel size 4 nm and scale bar 100 nm). Colors indicate filtration, where molecules touching the edge are black, too short molecules are white, too long molecules are blue, and kept molecules are purple. ( G ) Histogram shows calibration result, colored by filtration; molecules filtered out because they were at an edge (black), too short (white), or too long (blue), as well as the kept lengths (purple) in bp. The distribution is centered around the known length of 1633 bp as a result of the calibration (Materials and methods). ( H ) Application of calibration constant to non-filtered DNA segmentations, here shown on 4 nm AFM image 1633 bp plasmids. The color bar indicates calculated length of given DNA molecule (scale bars, 100 nm). A Gaussian fit of the dominant peak found the mean to be 1610 bp with a standard deviation of 143 ( N = 43). Ground-truth proximity maps were generated from manual DNA annotations by computing the Euclidean distance to the nearest annotated DNA contour, and subsequently normalizing this distance to [0,1], and then inverting it (1 − d) so that backbone pixels (distance 0) have the maximum value and distant background approaches the minimum. Because manual annotation of AFM DNA molecules is time-consuming and therefore yields a limited training set, we substantially expanded the effective dataset through extensive augmentation (Materials and methods). These augmentations mimic experimental variability in pixel size and SNR, allowing the network to generalize to new datasets while reducing the need for additional manual tracings. Beyond generalization across imaging conditions, DNAsight also performs robustly across different AFM instruments without retraining ( Supplementary Figs S3 and S4 ), demonstrated on a previously published dataset [ 34 ]. During inference, DNAsight does not use the predicted proximity maps directly. Instead, they are processed through a multi-step skeletonization pipeline. A threshold is applied to the predicted proximity map to identify candidate DNA regions. Spurious detections are removed by area filtering, and a DoG filter enhances backbone ridges. A combined threshold on the DoG response and the predicted proximity map produces refined binary traces, which are then skeletonized to a one-pixel-wide backbone (Fig. 2A and B ; Supplementary Fig. S3). These skeletons form the output of S1 and provide continuous centerlines suitable for downstream quantifications. Segmentation accuracy was evaluated using pixel-distance error metrics (Fig. 2C and Supplementary Fig. S1, Materials and methods), which directly quantify deviations between predicted and manually annotated medial axes. Distances were computed in a directional nearest-neighbor manner, such that the average distance from annotation A to annotation B is not necessarily equal to the reverse comparison. Unlike typical overlap-based scores such as intersection over union [ 35 ] or Dice [ 36 ], which penalize small lateral offsets and are poorly suited to sparse, one-pixel-wide traces, distance errors directly assess the backbone precision required for downstream analyses. In Fig. 2D , predictions were compared against a manual annotation across a range of SNRs, where each image was assigned a single SNR value computed from the average signal and background statistics of all DNA molecules based on the segmentation mask (Materials and methods). DNAsight performed robustly under all conditions, with accuracy improving at higher SNRs, as expected. Across a range of SNRs from 1.04 to 2.15, DNAsight achieved 76% of skeleton points within 1.5 pixels of the manual trace on the 10% test dataset (trained on the remaining 90%), indicating that the automated backbone localizes the DNA contour with accuracy comparable to the spatial resolution of the AFM image and the precision of manual annotation. To place this in context, we compared DNAsight predictions against multiple independent human annotations and annotators (Fig. 2E ). The resulting inter-annotation distance map is asymmetric due to the directional nature of the metric, which may reflect differences in annotation style. Human annotations can exhibit local variability along the DNA contour, whereas DNAsight produces a comparatively smoother backbone representing regions that are consistently annotated across the training data. As a result, distances from human annotations to DNAsight tend to be smaller, while the reverse comparison can yield slightly larger values because the automated trace does not capture all local deviations present in individual human annotations. Crucially, because independent human annotations do not coincide, zero deviation from any single trace is neither expected nor the appropriate benchmark. Instead, the mean deviation between DNAsight and an individual human annotation falls within the same range as the deviations observed among independent human annotators, indicating agreement at the level of inter-annotator variability. To further evaluate segmentation accuracy, we benchmarked DNAsight against TopoStats [ 19 ] using three full-field AFM images of DNA-only samples with SNRs of 1.66, 1.75, and 1.81. Each image contained multiple DNA molecules, and segmentation accuracy was similarly quantified as the average pixel deviation between automated traces and manual annotations. DNAsight achieved mean deviations of 0.58, 0.60, and 0.68 pixels, respectively, compared to 2.05, 1.54, and 1.77 pixels for TopoStats ( Supplementary Fig. S5 ). The comparison was limited to the segmentation module of TopoStats, excluding its downstream analysis features. For TopoStats, segmentation parameters were individually optimized for each image to achieve optimal performance, whereas DNAsight operated directly on raw, full-field inputs without parameter adjustment. To ensure biological interpretability, DNAsight incorporates a DNA length quantification module (Q1). Calibration is first performed on images of DNA molecules of a known length, which are used to calculate a conversion factor from pixels or nanometers to bp. Users can supply either a single image with a known pixel size and DNA length or multiple images to refine and improve the overall calibration. Considering biological variability, outlier molecules such as truncated fragments, overlapping DNA, or edge-touching molecules can optionally be excluded to improve accuracy (Fig. 2F ). The length of each skeletonized DNA molecule is then extracted based on Euclidean distance principles, and a calibration constant is calculated from the mean length (Materials and methods). This dataset-specific calibration accounts for differences in microscope resolution, scan size, and surface chemistry. When such calibration is unavailable, users can optionally use the canonical B-form DNA value of 0.34 nm/bp [ 37 ] or another value, however, internal calibration is recommended as the calibration can vary depending on pixel size and experimental conditions ( Supplementary Figs S6 and S7 ). Notably, there is no single optimal pixel size for DNA segmentation or calibration across all experimental systems. Smaller pixel sizes can improve measurement and quantification precision by increasing spatial sampling density, but they typically also reduce the field of view and thereby lower throughput and potentially crop molecules. Conversely, overly large pixel sizes lead to pixelated DNA contours and loss of structural information needed for reliable tracing. Pixel size selection therefore reflects a practical compromise between resolution and sampling depth. The current ML model was trained on images spanning ~1–5 nm/pixel, reflecting the practically useful range represented in our data. In practice, a given Q1 calibration is ideally applied to AFM datasets acquired under similar imaging conditions. This is demonstrated in Fig. 2G and H , where a calibration derived from 10 images of a 1633-bp plasmid construct (Fig. 2G ) was applied to an independent image (Fig. 2H ) acquired under identical conditions but not used in the calibration procedure. As visualized with a colorbar in Fig. 2H , both plasmid and linear DNA lengths are accurately determined to be around 1633 bp, where truncated molecules are shorter and overlapping molecules are longer, further validating modules S1 and Q1. Fitting the dominant peak of the resulting length distribution ( Supplementary Fig. S8 , Materials and methods) yielded a mean contour length of 1610 bp with a standard deviation of 143 bp ( N = 43 molecules), demonstrating that the calibration generalizes well to unseen data. In addition, Q1 flags DNA molecules that touch the image edge, which can be optionally excluded, as they may not represent complete molecules. Together, segmentation and calibration convert AFM topographs into skeletonized, bp-calibrated DNA backbones at the SM level. This foundation enables robust downstream quantification of chromatin features and could be adapted to other nucleic acid substrates with additional training data. Quantification of supercoiling and protein-induced changes in DNA spatial organization With segmentation established and calibration available when needed, we next moved from backbone tracing to structural insight by applying DNAsight’s spatial organization module (Q2) (Fig. 3A ). Q2 extracts seven categories of features from skeletonized DNA traces, together providing a comprehensive description of DNA geometry. These include DNA compaction, defined as a rescaled radius of gyration normalized to the DNA length; the number of crossings; tortuosity, defined as the ratio of contour length to end-to-end distance; the frequency of strong bends (default is <60° [ 38–40 ], but can be adjusted by the user); curvature statistics (mean, standard deviation, minimum, and maximum of absolute curvature); persistence length; and degree of elongation (see “Materials and methods” section for details). Figure 3. Open in a new tab uantification of DNA spatial organization. ( A ) Overview of the Q2 module output. From skeletonized DNA traces, DNAsight extracts seven categories of descriptors: length-normalized radius of gyration (compaction), number of crossings (self-crossings), tortuosity, curvature statistics, persistence length, frequency of strong bends, and a shape descriptor (elongation). ( B ) Representative images of DNA molecules of a relaxed (light pink), medium-supercoiled (pink), and highly supercoiled plasmid (dark pink); pixel size (Px) is 4 nm for all images. ( C ) Boxplots of number of crossings (relaxed: 5.54 ± 5.25, medium: 8.68 ± 6.71, supercoiled: 10.67 ± 8.00), mean curvature (relaxed: 0.06 ± 0.05, medium: 0.13 ± 0.81, supercoiled: 0.09 ± 0.12), number of strong bends (relaxed: 2.09 ± 2.34, medium: 3.19 ± 3.08, supercoiled: 4.36 ± 3.66), and elongation parameter (relaxed: 1.96 ± 0.65, medium: 1.83 ± 0.60, supercoiled: 1.90 ± 0.61) of relaxed ( N = 92), medium ( N = 535), and supercoiled ( N = 349) DNA. ( D ) Cartoon of the expected effect of IHF on linear versus plasmid DNA. (E) Quantification of compaction (dashed line, mean; solid line, ±standard deviation) in plasmid DNA with (dark pink, mean = 0.57 ± 0.17, N = 2618) IHF and without (light pink, mean = 0.45 ± 0.17, N = 980). A higher value of compaction indicates stronger compaction. A higher value of compaction indicates stronger compaction. ( F ) Quantification of compaction in linear (bottom) with (dark pink, mean = 0.38 ± 0.20, N = 1520) and without (light pink, mean = 0.32 ± 0.16, N = 435 IHF. Importantly, Q2 can be applied independently of Q1. Several features, compaction, crossings, tortuosity and elongation, are unitless and directly comparable across datasets. The remaining features, curvature, persistence length, and strong bends, depend on spatial scale and require a known pixel size to be comparable across images of varying pixel size. Calibration (Q1) is only needed when relating geometric descriptors to DNA length in bp, where it adds interpretive value by connecting nanometer-scale measurements to sequence length. Thus, Q2 functions as a flexible module: it can be run entirely on its own for relative comparisons, requires pixel size for cross-dataset comparability, and can leverage calibration when length-dependent interpretation is desired. To demonstrate the breadth of Q2, we highlight two representative examples. DNA topology can vary through torsional strain that twists the double helix upon itself, producing structures known as supercoils [ 41 , 42 ]. Negative supercoiling generally promotes local DNA unwinding and looping, whereas relaxed molecules adopt more extended conformations. We applied DNAsight to DNA plasmids classified with varying levels of supercoiling (as shown in a previous publication [ 43 ]), namely as relaxed, medium-supercoiled, or highly supercoiled (Fig. 3B ), imaged with a pixel size ranging from 2 to 4 nm. Here, we show four of the aforementioned Q2 categories. We find that the number of crossings, strong bends, and curvature expectedly increase with supercoiling, whereas elongation remains largely unchanged (Fig. 3C , representative image outputs in Supplementary Fig. S9 ). Second, we applied Q2 to study protein-induced compaction of DNA using IHF. IHF is a small, heterodimeric DNA-binding protein from E. coli that introduces sharp bends in DNA and plays a crucial role in organizing bacteria chromatin architecture and regulating diverse DNA transactions such as replication, recombination, and transcription [ 41 ]. This process is expected to differ between linear and plasmid topologies because circular DNA is topologically constrained, whereas linear DNA is not (Fig. 3D ). Here, we applied the compaction feature, which is designed to range between 0 (low compaction) and 1 (high compaction), to images of pixel sizes ranging from 3 to 4 nm. Before the addition of IHF, the linear DNA showed a more varied compaction, where the plasmid compaction displayed less variation with a concentrated peak around 0.55 (Fig. 3E ). Upon addition of IHF, plasmids shifted markedly toward more compact configurations (mean compaction 0.45 ± 0.17 to 0.57 ± 0.17; Δ mean = +0.12, 26%), while linear DNA exhibited only a modest increase (mean compaction 0.32 ± 0.16 to 0.38 ± 0.20; Δ mean = +0.06, 13%) (see representative image outputs in Supplementary Fig. S10 ). Although the distributions remained broad (standard deviation shown), both plasmid and linear DNA showed significant IHF-induced increases in compaction (two-sided Mann–Whitney U test, plasmid: P = 7.5 × 10 −110 ; linear: P = 5.5 × 10 −8 ). However, the increase was larger for plasmids than for linear DNA (difference in mean shifts = 0.065; permutation test, P = 1.0 × 10 −4 ). This can be rationalized by DNA topology and length constraints. Plasmids provide a closed circular template that keeps distant segments in closer proximity, so IHF-induced bends and bridging can more readily stabilize compact configurations. By contrast, for linear DNA, particularly at the 1.7-kb length used here, distal segment encounters are expected to be less frequent, consistent with reports that bridging efficiency tends to increase with contour length in the kilobase regime [ 44 – 46 ]. Together, these examples illustrate how Q2 can resolve both global changes in DNA compaction and local structural perturbations such as bending and curvature. By combining seven complementary descriptors rather than relying on a single metric, DNAsight captures the complexity of chromatin folding states and facilitates quantitative comparisons across datasets and conditions. Automated detection of DNA loop-like structures reveals condition-dependent enrichment of CTCF-proximal loops Moving beyond the aforementioned geometric features, many biologically relevant rearrangements arise locally through DNA looping and bridging, e.g. when SMC complexes or transcription factors bring distant DNA segments, and their regulatory sites, into proximity [ 47 – 49 ]. To quantify such events, DNAsight includes a dedicated loop-quantification module (Q3), which detects loop-like closed structures along DNA molecules (Fig. 4A ). Computationally, Q3 operates on the skeletonized DNA traces produced in S1 and identifies regions where non-adjacent segments of the backbone approach each other within a defined spatial threshold and form a closed path along the skeleton. Loop-like structures are operationally defined as closed paths in the skeleton graph, corresponding to backbone segments that connect to form a closed contour. Each detected loop-like structure is reported with its contour length and position relative to the closest DNA end, enabling systematic quantification. Figure 4. Open in a new tab Detection and quantification of loop-like structures in DNA and cohesin–CTCF reactions. ( A ) Overview of logic of the Q3 module. Skeletonized DNA traces are analyzed to detect closed contours, with each loop reported by position and length. Loop-like structures are distinguished from simple overlaps when the contour is open. ( B ) Representative AFM images of DNA molecules of varying length, all in the absence of protein; blue tick marks indicate loops detected by Q3; pixel size is given as Px. ( C ) Cartoon illustrating the working model motivating analysis of loop-like structures in cohesin–CTCF reactions with and without PDS5A. ( D ) Representative raw image of DNA molecule of each experimental condition: DNA only, extrusion conditions w/o PDS5A, and extrusion conditions w/ PDS5A, showing Q3 output of loop outlines with labeled loop length (l) and position (p); pixel size is 3 nm for all images. ( E ) Loop frequency per bp for naked DNA with no proteins present ( N = 30), then for CTCF, cohesin–STAG1, NIPBL, and ATP in the absence ( N = 134) or presence ( N = 556) of PDS5A. ( F ) Loop frequency per bp within ±100 bp of the CTCF binding site for naked DNA ( N = 3) and with proteins with ( N = 5) and without PDS5A ( N = 32). ( G ) Violin and boxplots of the nearest-end distance or position of loop-like structures on DNA for naked DNA and with proteins with and without PDS5A. ( H ) Histograms show distribution of loop lengths in bp for naked DNA and with proteins with and without PDS5A. Significance stars were assigned from two-sided Mann–Whitney U tests with Bonferroni correction for multiple comparisons. Each P -value was multiplied by the number of tested pairs, and stars were displayed according to adjusted significance thresholds: *( P < .05), **( P < .01), ***( P < .001), and ****( P < .0001); comparisons not significant after correction were left unmarked. It is important to distinguish these loop-like structures from other forms of apparent self-contact. Crossings, reported in Q2, correspond to local crossings of the DNA backbone that do not necessarily form a closed path. Loop-like structures, in contrast, are only annotated when the skeleton topology contains a complete closed path. This algorithmic distinction provides a consistent and reproducible way to separate closed loop-like configurations from simple crossings (Fig. 4A ). As illustrated in Fig. 4B , loop-like structures can also arise spontaneously in the absence of bound proteins, particularly in longer DNA molecules that have more opportunities for self-contact. Thus, not all closed contours necessarily reflect protein-mediated looping. For this reason, loop quantification (Q3) should be interpreted relative to appropriate controls unless anchoring proteins can be directly visualized at the loop base. Q3 also records the mean and standard deviation of the intensity of each DNA contour and loop anchoring point, which can support interpretation in datasets where anchoring proteins are detectable. In practice, however, anchoring proteins are not always reliably visible in AFM images because of imaging conditions or because they become displaced or dissociate during sample preparation or imaging, particularly in the absence of cross-linking or other stabilizing treatments. For the datasets presented here, we therefore focus on comparison to appropriate no-protein controls as the basis for interpreting loop-like structures. To move from general loop-like geometries toward a defined biological system, we reconstituted DNA substrates under conditions that mimic cohesin-mediated loop extrusion. Previous studies have suggested that PDS5 stabilizes cohesin–CTCF–DNA loops by reinforcing cohesin residence and anchoring at CTCF sites [ 27 , 50 ]. To examine this proposed stabilization through direct AFM visualization, we designed a symmetric 8 kbp DNA construct containing two CTCF binding sites 493 bp from each end and performed in vitro looping reactions using an established minimal system for cohesin loading [ 51 ], extrusion, and stalling: CTCF, cohesin–STAG1–NIPBL (hereon referred to as “cohesin”), and ATP, with or without subsequent addition of PDS5A (Fig. 4C ). To establish a baseline for spontaneous DNA looping, we also conducted a DNA-only control under the same conditions. All conditions were imaged with a 3 nm pixel size. Across these conditions (Fig. 4D ), DNAsight detected a progressive increase in the frequency of loop-like structures occurring anywhere along the DNA molecules as proteins were added. The inclusion of CTCF and cohesin led to a 4.6-fold increase in detected loop-like structures relative to the DNA-only baseline, with a further 2.3-fold increase upon addition of PDS5A (Fig. 4E ). The increased frequency of loop-like structures in the presence of PDS5A is consistent with, but does not by itself establish, a contribution of PDS5A to loop stabilization under these reconstitution conditions [ 27 ]. A similar trend was observed for loop-like structures positioned within a ±100 bp window around expected CTCF sites. Because loop position is defined relative to the nearest DNA end, this enrichment should be interpreted cautiously, as nonspecific loops can also fall within this positional window by chance. The frequency of CTCF-site-proximal loop-like structures increased 1.7-fold from the DNA-only baseline to the cohesin–CTCF condition, and a further 3.5-fold increase upon the addition of PDS5A (Fig. 4F ). Notably, CTCF-site-proximal loop-like-structures constituted only a small fraction of the total (Fig. 4E and F ). Even when CTCF, cohesin, and PDS5A were present, >90% of loop-like-structures occurred away from the CTCF site, consistent with a substantial population of non-CTCF-anchored loop-like structures. DNA molecules overlapping the image edge, shorter than 5 kbp, or longer than 10 kbp were excluded to remove partially imaged, truncated, or overlapping DNA molecules, and loop counts were normalized to total detected DNA length to account for differences in image area and DNA density. To reduce duplicate counting of nested or partially overlapping closed contours on the same DNA (exemplified in Fig. 4A right), highly overlapping loop candidates were filtered as described in “Materials and methods” section; the corresponding analysis without this filter is shown in Supplementary Fig. S11 . These results show that, under the reconstitution conditions used here, PDS5A-containing samples exhibit a higher frequency of detected loop-like structures, increasingly so within a CTCF-proximal window (Fig. 4F and G ; see additional representative images with overlaid loop detection in Supplementary Fig. S12 ). However, because anchoring proteins were not directly visualized and most detected loop-like structures were not CTCF-proximal, these observations should be interpreted as suggestive rather than definitive evidence for specific cohesin–CTCF loop stabilization. Lengths of loop-like structures ranged from several hundred to a few thousand base pairs (Fig. 4H ), consistent with a heterogeneous population of DNA self-contacts and protein-associated loop-like configurations. Using an unbinned kernel density estimate, the most frequent loop lengths were 440.1 bp (95% bootstrap CI: 357.5–549.0 bp) for DNA only, 569.7 bp (95% bootstrap CI: 474.4–657.9 bp) for CTCF-cohesin, and 274.1 bp (95% bootstrap CI: 255.2–294.9 bp) for CTCF–cohesin–PDS5A. If loops were anchored between the two CTCF sites on the symmetric construct, they would be expected to span ~7 kbp. The substantially shorter most frequent loop lengths therefore suggest that the detected loop-like structures predominantly reflect a heterogeneous mixture of partial looped states and nonspecific overlaps rather than a dominant population of fully site-to-site anchored loops. Together, these experiments demonstrate how Q3 provides systematic, quantitative measurements of the number, size, and position of loop-like structures. Nevertheless, appropriate control samples are essential for interpreting these results, as they establish the baseline frequency of loop-like structures and spatial organization of DNA in the absence of protein-mediated effects. Quantifying protein–DNA assemblies and nucleosome architecture In addition to DNA segmentation (S1), DNAsight includes a protein segmentation module (S2) for detecting protein features across a broad range of sizes and morphologies, from compact nucleosome-like particles to large multi-protein assemblies (Fig. 5A ). To accurately segment protein assemblies that span a wide range of sizes and intensities, DNAsight employs two segmentation approaches. First, the large-cluster segmentation is designed for broad, continuous protein assemblies of various shapes. It applies a smoothed intensity-based segmentation, followed by region growing and area filtering, to delineate spatially contiguous, high-intensity regions while excluding small speckles and noise. In contrast, the small-spot segmentation targets compact foci like nucleosomes. It utilizes principles from single-particle detection with local thresholding around each detection to generate a refined mask for every spot, followed by geometric filtering based on area, circularity, and eccentricity. Together, these two strategies allow S2 to sensitively detect both sparse puncta and extended assemblies while providing a common set of descriptors, including position, area, and intensity, for downstream analysis (Materials and methods). Figure 5. Open in a new tab Quantification of protein–DNA associations and nucleosome spacing. ( A ) Overview of Q4. DNA (S1) and protein (S2) segmentation masks are integrated to quantify protein–DNA associations; filtering can optionally be applied to remove edge and/or too small clusters. ( B ) Cartoon demonstrating the hypothetical effect of the hsp70 promoter on GAF clustering, with more clustering happening in the presence of the hsp70 promoter. ( C ) Representative AFM images showing GAF binding to DNA with hsp70 motifs, producing a large protein cluster (pixel size 3.2 nm). (D) Quantification of cluster area versus length of associated DNA in the presence (N = 130) and absence (N = 170) of the hsp70 promoter. Groups at the image edge, clusters that were too small, and groups containing more than one cluster were filtered out; see details in the “Materials and methods” section. ( E ) Cartoon of di-nucleosome construct with 80 bp linker length. ( F ) Representative AFM image of di-nucleosomes (pixel size 1.6 nm). (G) Distribution of nucleosome-associated DNA segment lengths fitted with a lognormal model, yielding a median spacing of 79.3 bp with a 95% bootstrap CI of 74.5–84.7 bp (N = 127) for groups containing two nucleosomes. ( H ) Left: cartoon of the hexa-nucleosome construct with 80 bp linker length, with 62 and 20 bp at each end. Right: Representative AFM image of hexa-nucleosomes (pixel size 2 nm). (I) Distribution of the number of nucleosomes per group for hexa-nucleosome constructs (N = 100). ( J ) Distribution of nucleosome-associated DNA segment lengths in bp for hexa-nucleosome construct. The distribution is fit with a double lognormal mixture model (supported by BIC, Materials and methods), with means of 67.1 ± 23.2 bp and 250.2 ± 76.4 bp, representing 67% and 33% of the displayed data, respectively ( N = 300). ( K ) Left: cartoon of sequence-independent nucleosome construct (DNA construct lacking 601 positioning sequences) with unknown number of nucleosomes and linker length. Right: Representative AFM image of sequence-independent nucleosomes (pixel size 2 nm). (L) Distribution of the number of nucleosomes in sequence-independent nucleosome constructs (N = 58). (M) Distribution of nucleosome-associated DNA segment lengths in bp for sequence-independent nucleosome constructs (N = 184), fitted with a single lognormal model with a median length of 389.0 bp and a 95% bootstrap CI of 323.76–482.90 bp. The protein–DNA association quantification module (Q4) then integrates the DNA masks from S1 with the protein masks from S2 to quantify protein–DNA associations, including colocalization, binding position along DNA, spacing between protein features, and cluster statistics relative to DNA length or position. As a demonstration, we applied this S2–Q4 workflow to analyze GAF binding on linearized DNA substrates with and without the Drosophila hsp70 promoter, which contains several GAF-binding sites (Fig. 5B ), here using the large-cluster segmentation mode. The complexes were imaged with pixel sizes ranging from 2 to 4 nm. GAF is a sequence-specific transcription factor that recognizes GA-rich motifs and promotes the formation of accessible chromatin domains at heat-shock promoters such as hsp70 [ 52 , 53 ]. Its ability to multimerize and recruit additional factors is expected to drive cooperative clustering on DNA containing multiple GAF-binding sites [ 54 ]. To ensure reliable linking between clusters and DNA, we restricted the analysis to connected DNA–cluster groups, defined as DNA and protein-cluster mask components that spatially overlap after applying a 3-pixel dilation to the cluster mask. For analysis of the GAF constructs, we further restricted the dataset to groups containing a single protein cluster. This was done to ensure unambiguous matching of DNA to a single GAF cluster when quantifying the relationship between cluster size and recruited DNA. In the absence of the clustered motifs on the hsp70 promoter, GAF bound sparsely, producing smaller, compact protein clusters (representative image outputs in Supplementary Fig. S13 ). By contrast, DNA carrying the clustered sites on hsp70 promoter displayed large GAF assemblies bridging multiple DNA molecules (Fig. 5C ). Quantitative analysis confirmed that the presence of hsp70 promoter shifted the distribution toward larger cluster areas (Fig. 5D ), increasing the mean cluster area 1.9 times ( Supplementary Fig. S14 ), consistent with cooperative GAF recruitment to promoter-associated DNA elements. While cluster size increased substantially in the presence of the hsp70 promoter, the length of detectable DNA, estimated in number of bp, was 1.4-fold higher in constructs lacking the hsp70 promoter ( Supplementary Fig. S14 ). This difference likely reflects increased DNA compaction within large GAF clusters formed on hsp70 -containing substrates, which reduces the fraction of DNA that remains visible and quantifiable. Nevertheless, in both conditions, we observed a positive relationship between cluster size and the amount of recruited DNA (Fig. 5D ). Q4 can also be used to quantify nucleosome positioning from AFM images. Nucleosomes, the fundamental repeating units of chromatin, consist of DNA wrapped around a histone octamer, connected by short linker DNA segments. Here, we used the cluster segmentation for smaller clusters (see representative segmentation in Supplementary Fig. S15 ) and analyzed well-positioned di-nucleosome (394 bp) and poly-nucleosome (1364 bp) constructs. To resolve these compact constructs, we imaged them at comparatively small pixel sizes ranging from 0.6 to 2 nm. These were assembled using the 601 positioning sequence, with the poly-nucleosome containing six 601 sites separated by defined 80 bp linker lengths. For di-nucleosome constructs (Fig. 5E and F ) containing two detected nucleosomes (see unfiltered data in Supplementary Fig. S16 ), wthe nucleosome-associated DNA segments had a median of 79.3 bp from lognormal fitting (95% bootstrap CI: 74.5–84.7 bp; Fig. 5G ). Although the distribution of individual measurements was broad (standard deviation = 35.0 bp), the central tendency remained close to the expected linker length. The segment length is calculated as the distance of the segmented DNA between the outer edges of segmented nucleosomes (i.e. an edge-to-edge distance), as only exposed DNA is visible. We here characterize the full constructs, including visible terminal segments at the construct ends, although such end-associated segments can be excluded from the output by filtering if desired ( Supplementary Fig. S17 ). Notably, the segmented nucleosome size varied across particles, prompting us to test whether the lengths of nucleosome-associated DNA segments were associated with mean nucleosome size. For the di-nucleosome constructs, we observed no significant Spearman correlation between these variables ( Supplementary Fig. S18 ), indicating that variation in segmented nucleosome size is unlikely to be a major contributor to the measured linker-length distribution. Poly-nucleosome assemblies (Fig. 5H ) were analyzed after excluding incomplete and overlapping DNA molecules to focus on representative, interpretable groups. Specifically, DNA groups touching the image boundary were removed, as these correspond to partial molecules. In addition, groups with total detected DNA lengths shorter than two linker lengths (160 bp) were excluded to eliminate severely truncated constructs. To minimize contributions from overlapping assemblies, we further restricted the analysis to groups with total detected DNA lengths not exceeding 629 bp, corresponding to the expected exposed DNA (482 bp) plus one fully unwrapped nucleosome (147 bp). This upper bound was chosen to retain assemblies missing a single nucleosome, which were prevalent in the data, while excluding larger aggregates arising from molecular overlap. After applying these filters, the poly-nucleosome constructs exhibited a mean of 4.2 ± 2.0 nucleosomes per group, with the most frequent value being 5 (Fig. 5I , see unfiltered distributions in Supplementary Fig. S16 ). A small number of groups contained more than the theoretical maximum of six nucleosomes, which likely arise from residual overlapping molecules or local noise and imaging artifacts that were not fully removed by the filtering criteria. Here, the distribution of nucleosome-associated DNA segment lengths was broad and bimodal (supported by BIC; Materials and methods), with mean values of 67.1 and 250.2 bp (Fig. 5J ). Notably, the two fitted components differed substantially in their spread, with an approximate standard deviation of 23.2 bp for the shorter component and 76.4 bp for the longer component. This indicates that the longer-linker population spans a wider range of measured segment lengths, while the shorter-segment population is more concentrated around its fitted mean. The mean of the shorter component fell below the nominal 80 bp linker length, which may reflect that the construct contains 20 and 62 bp terminal flanking segments, which can shift apparent linker distances toward shorter values. In addition, the hexa-nucleosome construct contains multiple nucleosomes on a longer DNA molecule and is therefore more prone than the di-nucleosome construct to local overlap or partial obscuration of the DNA by neighboring nucleosomes. This may further contribute to underestimation of visible linker lengths. However, the fitted spread still places this component within range of the expected 80 bp spacing. The broad spread of the longer component is consistent with a heterogeneous ensemble of conformations, likely including different degrees of unwrapping, displacement, or absence of individual nucleosomes within the construct, rather than a single discrete structural state. One possible contribution to this population is loss or substantial displacement of an endmost nucleosome, particularly at the 20 bp flank, which would give an expected exposed distance of ~247 bp and is therefore close to the fitted mean of 250.2 bp. We similarly applied Q4 to a DNA construct lacking 601 positioning sequences (hereon referred to as “sequence-independent nucleosomes”), using a 4361 bp template (Fig. 5K ), imaged with pixel sizes ranging from 1.6 to 2 nm. The number of nucleosomes per group was more heterogeneous than for the hexa-nucleosome construct, with a median of 3 and mean of 4.17 ± 2.91 nucleosomes and a long-tailed distribution (Fig. 5L ). The distribution of nucleosome-associated DNA segment lengths was shifted toward substantially longer values relative to both di- and poly-nucleosome constructs, with a lognormal fit yielding a median length of 389.0 bp (95% bootstrap CI: 323.76–482.90 bp, Fig. 5M ). Together, these analyses demonstrate that DNAsight can extract structural parameters of chromatin fibers, including nucleosome repeat lengths and heterogeneity, without requiring labeling or external markers. Discussion This work establishes DNAsight as a unified framework for quantitative analysis of AFM images of DNA and chromatin. By combining ML-based segmentation with modular quantification, DNAsight converts nanoscale AFM topographs into biologically meaningful parameters such as DNA length, spatial organization, looping, nucleosome spacing, and protein clustering. The framework operates robustly across diverse imaging conditions, including variations in pixel size, SNR, DNA length, and substrate type, enabling analysis of both linear and plasmid DNA without per-image parameter tuning. Benchmarking against TopoStats confirmed improved segmentation accuracy and human-level agreement with manual backbone tracing, validating DNAsight as a scalable solution for systematic analysis of chromatin organization. Because the segmentation benchmark relies on manual annotations, the reported agreement is inherently relative to expert human tracing rather than an absolute physical ground-truth benchmark. Nevertheless, training on many annotated images allows DNAsight to capture the contour features most consistently identified by human annotators while reducing the influence of local irregularities in individual traces. A broader consideration is the quantitative precision achievable with automated AFM analysis. Although DNAsight provides standardized and reproducible structural readouts, the effective resolution depends not only on the analysis itself but also on the quality and information content of the underlying AFM data, including pixel size, signal-to-noise, tip convolution, calibration quality, surface effects, and molecular heterogeneity. Thus, the current limits on precision are likely driven more by experimental acquisition than by the analytical framework itself. In its current form, DNAsight is well suited to detecting robust population-level differences in features such as nucleosome spacing or loop size, whereas interpretation of very small differences, such as base-pair-scale shifts in nucleosome spacing [ 55 ], should be made with appropriate caution. Larger sample sizes can improve the precision of population estimates, but not the underlying per-molecule measurement uncertainty. Further gains in resolution are therefore likely to come from improved imaging, although continued analytical advances may also further improve precision. Beyond segmentation, DNAsight introduces analytical capabilities that were not previously readily accessible for AFM data. Its modular design integrates structural and biochemical perspectives within a single pipeline, enabling quantification of local curvature, loop-like structures, and protein–DNA associations in the same dataset. Applying DNAsight to reconstituted chromatin systems revealed topology-dependent DNA compaction by IHF, condition-dependent changes in loop-like DNA structures in cohesin–CTCF–PDS5A reactions, and hsp70 promoter-dependent clustering of GAF on DNA. Likewise, nucleosome-spacing analysis extracted precise linker-length distributions directly from raw AFM images, demonstrating how DNAsight enables biologically interpretable measurements that were previously limited to small-scale or manual analyses. This interpretability should, however, be considered in light of how the readouts are derived. DNAsight quantifies topology from 2D backbone-proximity maps and skeletonized segmentations, enabling robust and scalable analysis across heterogeneous AFM datasets, but without fully exploiting the height information in the underlying topographs. Consequently, some features are represented as reduced topological descriptors rather than complete structural reconstructions: (i) crossings in highly supercoiled DNA may underestimate apparent contour length, (ii) loop-like structures may sometimes reflect overlap rather than protein-mediated anchoring, and (iii) DNA embedded within dense protein clusters may be underrepresented in length-based measurements. Furthermore, certain analysis choices are pragmatic by design. For example, loop position is defined relative to the nearest DNA end, which is useful for comparing molecules but does not preserve directionality, limiting assignment of individual loops to specific genomic orientations or binding sites. These constraints are especially relevant for mechanistic interpretation of single events. Thus, in the cohesin–CTCF–PDS5A experiments, the enrichment of CTCF-proximal loop-like structures is best interpreted as suggestive rather than definitive. Overall, these considerations underscore both the analytical utility of DNAsight and the importance of interpreting AFM-derived topological features in the context of the structural information available in the images and, where possible, complementary biochemical controls. By unifying segmentation, calibration, and quantification within a user-friendly graphical interface, DNAsight enables reproducible, high-throughput AFM analysis of chromatin across experimental systems. This integration bridges molecular imaging with quantitative structural biology, allowing large-scale comparative studies and uncovering organizational features of DNA and DNA–protein assemblies that were previously inaccessible, even in existing AFM datasets. Supplementary Material gkag632_Supplemental_File gkag632_supplemental_file.pdf (20.2MB, pdf) Acknowledgements We thank members of the Hatzakis and Ha laboratories for helpful discussions and feedback, and we acknowledge the support of shared facilities and staff at the authors’ institutions. During the preparation of this work, the authors used OpenAI’s ChatGPT for assisting with programming and refining writing. After using this tool, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article. This article is subject to HHMI’s Immediate Access to Research policy, which requires that this article be made publicly available as initial and revised preprints deposited on a designated preprint server under a CC BY 4.0 license. Author contributions : Emily Winther Sørensen (Conceptualization [lead], Data curation [supporting], Formal analysis [lead], Investigation [lead], Methodology [lead], Project administration [equal], Software [lead], Validation [lead], Visualization [lead], Writing—original draft [lead], Writing—review & editing [lead]), Sushil Pangeni (Conceptualization [equal], Data curation [lead], Formal analysis [supporting], Investigation [supporting], Methodology [supporting], Validation [supporting], Writing—review & editing [supporting]), Raquel Merino Urteaga (Data curation [supporting], Formal analysis [supporting], Investigation [supporting], Methodology [supporting], Validation [supporting], Writing—review & editing [supporting]), Peter J. Murray (Data curation [supporting], Formal analysis [supporting], Investigation [supporting], Methodology [supporting], Validation [supporting], Writing—review & editing [supporting]), Sergei Rudnizky (Data curation [supporting], Formal analysis [supporting], Investigation [supporting], Methodology [supporting], Validation [supporting], Writing—review & editing [supporting]), Ting-Wei Liao (Data curation [equal]), Fahad Rashid (Data curation [supporting]), Jihee Hwang (Data curation [supporting]), Maryam Yamadi (Data curation [supporting]), Xinyu A. Feng (Data curation [supporting]), Jonas Zähringer (Formal analysis [supporting], Validation [supporting]), Stephanie Gu (Formal analysis [supporting], Validation [supporting]), Iain F. Davidson (Data curation [supporting]), Laura Caccianini (Data curation [supporting]), Manuel Osorio-Valeriano (Data curation [supporting]), Lucas Farnung (Resources [supporting]), Seychelle M. Vos (Resources [supporting]), Jan-Michael Peters (Resources [supporting]), James Berger (Resources [supporting]), Carl Wu (Resources [supporting]), Nikos S. Hatzakis (Funding acquisition [supporting], Resources [supporting]), Julius Bier Kirkegaard (Conceptualization [equal], Formal analysis [supporting], Funding acquisition [supporting], Investigation [supporting], Methodology [supporting], Project administration [equal], Resources [supporting], Software [equal], Supervision [equal], Validation [supporting], Writing—review & editing [supporting]), and Taekjip Ha (Conceptualization [equal], Formal analysis [supporting], Funding acquisition [equal], Investigation [supporting], Project administration [equal], Resources [lead], Software [supporting], Supervision [equal], Validation [supporting], Writing—review & editing [equal]). Contributor Information Emily Winther Sørensen, Department of Chemistry, University of Copenhagen, 2100 Copenhagen, Denmark; NNF Center for Optimized Oligo Escape and Control of Disease, University of Copenhagen, 2100 Copenhagen, Denmark; NNF Center for 4D Cellular Dynamics, University of Copenhagen, 2100 Copenhagen, Denmark; Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States. Sushil Pangeni, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Biophysics, Johns Hopkins University, Baltimore, MD 21218, United States. Raquel Merino Urteaga, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States. Peter J Murray, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States. Sergei Rudnizky, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States. Ting-Wei Liao, Department of Biophysics, Johns Hopkins University, Baltimore, MD 21218, United States. Fahad Rashid, Department of Biophysics and Biophysical Chemistry, Johns Hopkins University, Baltimore, MD 21218, United States. Jihee Hwang, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States. Maryam Yamadi, Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States. Xinyu A Feng, Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States. Jonas Zähringer, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States. Stephanie Gu, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States. Iain F Davidson, Research Institute of Molecular Pathology, Vienna BioCenter, Vienna, 1030, Austria. Laura Caccianini, Department of Biology, Massachusetts Institute of Technology and Howard Hughes Medical Institute, Cambridge, MA 02139, United States. Manuel Osorio-Valeriano, Department of Cell Biology, Blavatnik Institute, Harvard Medical School, Boston, MA 02115, United States. Lucas Farnung, Department of Cell Biology, Blavatnik Institute, Harvard Medical School, Boston, MA 02115, United States. Seychelle M Vos, Department of Biology, Massachusetts Institute of Technology and Howard Hughes Medical Institute, Cambridge, MA 02139, United States. Jan-Michael Peters, Research Institute of Molecular Pathology, Vienna BioCenter, Vienna, 1030, Austria. James Berger, Department of Biophysics and Biophysical Chemistry, Johns Hopkins University, Baltimore, MD 21218, United States. Carl Wu, Department of Biology, Johns Hopkins University, Baltimore, MD 21218, United States. Nikos S Hatzakis, Department of Chemistry, University of Copenhagen, 2100 Copenhagen, Denmark; NNF Center for Optimized Oligo Escape and Control of Disease, University of Copenhagen, 2100 Copenhagen, Denmark; NNF Center for 4D Cellular Dynamics, University of Copenhagen, 2100 Copenhagen, Denmark. Julius B Kirkegaard, Department of Computer Science, University of Copenhagen, 2100 Copenhagen, Denmark. Taekjip Ha, Program in Cellular and Molecular Medicine and Howard Hughes Medical Institute, Boston Children’s Hospital, Boston, MA 02115, United States; Department of Pediatrics, Harvard Medical School, Boston, MA 02115, United States. Supplementary data Supplementary data is available at NAR online. Conflict of interest None declared. Funding T.H. acknowledges support from the National Science Foundation Science and Technology Center for Quantitative Cell Biology (NSF STC-QCB, Grant No. 2243257). N.S.H. acknowledges funding from the Novo Nordisk Foundation Challenge Center for Optimised Oligo Escape (NNF23OC0081287), Novo Nordisk Foundation Center for 4D Cellular Dynamics (NNF22OC0075851), and Villum Foundation Experiment (40801). Research in the laboratory of J.-M.P. is supported by Boehringer Ingelheim and the European Union (ERC AdG 101020558 LoopMechRegFun, MSCA 101072505 CohesiNet). J.Z. was supported by a Feodor Lynen Research Fellowship of the Alexander von Humboldt Foundation. M.O.V. is a Damon Runyon Philip O’Bryan Montgomery, Jr., MD, Fellow supported by the Damon Runyon Cancer Research Foundation (DRG-2480-22). T.H. is an employee of the Howard Hughes Medical Institute. J.B.K. acknowledges funding from the Novo Nordisk Foundation, grant agreement NNF20OC0062047. Funding to pay the Open Access publication charges for this article was provided by Howard Hughes Medical Institute. Data availability All data underlying this study are publicly available in Zenodo under record 18953785 ( https://doi.org/10.5281/zenodo.18953785 ). The frozen software release associated with this publication is available in Zenodo under record 1895407 ( https://doi.org/10.5281/zenodo.18954075 ). The actively maintained development version of the DNAsight source code is available on GitHub at https://github.com/kirkegaardlab/dnasight . References 1. Bonev  B, Cavalli  G.  Organization and function of the 3D genome. Nat Rev Genet. 2016;17:661–78. https://doi.org/101038/nrg2016112 [ DOI ] [ PubMed ] [ Google Scholar ] 2. Misteli  T.  The self-organizing genome: principles of genome architecture and function. Cell. 2020;183:28–45. https://doi.org/101016/jcell202009014 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 3. Scheuring  S, Jiang  Y, Wang  Z  et al.  High-speed atomic force microscopy for dynamic single molecule structural biology. Biophys J. 2023;122:2a. https://doi.org/101016/jbpj202211247 [ Google Scholar ] 4. Ando  T, Uchihashi  T, Kodera  N.  High-speed AFM and applications to biomolecular systems. Annu Rev Biophys. 2013;42:393–414. https://doi.org/101146/annurev-biophys-083012-130324 [ DOI ] [ PubMed ] [ Google Scholar ] 5. Uchihashi  T, Watanabe  H, Fukuda  S  et al.  Functional extension of high-speed AFM for wider biological applications. Ultramicroscopy. 2016;160:182–96. https://doi.org/101016/jultramic201510017 [ DOI ] [ PubMed ] [ Google Scholar ] 6. Main  KHS, Provan  JI, Haynes  PJ  et al.  Atomic force microscopy—a tool for structural and translational DNA research. APL Bioeng. 2021;5:031504. https://doi.org/101063/50054294 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 7. North  JA, Šimon  M, Ferdinand  MB  et al.  Histone H3 phosphorylation near the nucleosome dyad alters chromatin structure. Nucleic Acids Res. 2014;42:4922–33. https://doi.org/101093/nar/gku150 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 8. van Vugt  J.J.F.A., de Jager  M., Murawska  M  et al.  Multiple aspects of ATP-dependent nucleosome translocation by RSC and Mi-2 are directed by the underlying DNA sequence. PLoS One. 2009;4:e6345. https://doi.org/101371/journalpone0006345 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 9. Konrad  SF, Vanderlinden  W, Frederickx  W  et al.  High-throughput AFM analysis reveals unwrapping pathways of H3 and CENP-A nucleosomes. Nanoscale. 2021;13:5435–47. https://doi.org/101039/D0NR08564B [ DOI ] [ PubMed ] [ Google Scholar ] 10. Singh  SB, Kumbhar  AS, Walke  G  et al.  An insight into the morphology of DNA compaction induced by homobinuclear Ru(II) polypyridyl complexes. J Inorg Biochem. 2022;234:111870. https://doi.org/101016/jjinorgbio2022111870 [ DOI ] [ PubMed ] [ Google Scholar ] 11. Nishio  T, Yoshikawa  Y, Shew  C-Y  et al.  Specific effects of antitumor active norspermidine on the structure and function of DNA. Sci Rep. 2019;9:14971. https://doi.org/101038/s41598-019-50943-1 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 12. Holmes  EP, Gamill  MC, Provan  JI  et al.  Quantifying complexity in DNA structures with high resolution atomic force microscopy. Nat Commun. 2025;16:5482. https://doi.org/101038/s41467-025-60559-x [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 13. Ganji  M, Shaltiel  IA, Bisht  S  et al.  Real-time imaging of DNA loop extrusion by condensin. Science. 2018;360:102–5. https://doi.org/101126/scienceaar7831 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 14. Stumme-Diers  MP, Sun  Z, Lyubchenko  YL.  Probing the structure and dynamics of nucleosomes using AFM imaging. J Vis Exp. 2019;143:e58820. 10.3791/58820 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 15. Yan  Y, Xiong  W, Li  X  et al.  Molecular packing parameter in bolaamphiphile solutions: adjustment of aggregate morphology by modifying the solution conditions. J Phys Chem B. 2007;111:2225–30. https://doi.org/101021/jp065235x [ DOI ] [ PubMed ] [ Google Scholar ] 16. Ficarra  E, Benini  L, Macii  E  et al.  Automated DNA fragments recognition and sizing through AFM image processing. IEEE Trans Inform Technol Biomed. 2005;9:508–17. https://doi.org/101109/TITB2005855546 [ DOI ] [ PubMed ] [ Google Scholar ] 17. Bangalore  DM, Heil  HS, Mehringer  CF  et al.  Automated AFM analysis of DNA bending reveals initial lesion sensing strategies of DNA glycosylases. Sci Rep. 2020;10:15484. https://doi.org/101038/s41598-020-72102-7 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 18. Würtz  M, Aumiller  D, Gundelwein  L  et al.  DNA accessibility of chromatosomes quantified by automated image analysis of AFM data. Sci Rep. 2019;9:12788. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 19. Beton  JG, Moorehead  R, Helfmann  L  et al.  TopoStats—a program for automated tracing of biomolecules from AFM images. Methods. 2021;193:68–79. https://doi.org/101016/jymeth202101008 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 20. Harini  K, Kihara  D, Michael Gromiha  M.  PDA-Pred: predicting the binding affinity of protein–DNA complexes using machine learning techniques and structural features. Methods. 2023;213:10–7. https://doi.org/101016/jymeth202303002 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 21. Schneider  M, Al-Shaer  A, Forde  NR.  AutoSmarTrace: automated chain tracing and flexibility analysis of biological filaments. Biophys J. 2021;120:2599–608. https://doi.org/101016/jbpj202105011 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 22. Alshareedah  I, Pangeni  S, Dewan  PA  et al.  The human RAD52 complex undergoes phase separation and facilitates bundling and end-to-end tethering of RAD51 presynaptic filaments. Nucleic Acids Res. 2026;54:gkag043. https://doi.org/101093/nar/gkag043 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 23. Nwokeoji  O, Kumar  S, Kilby  M  et al.  Analysis of long dsRNA produced in vitro and in vivo using atomic force microscopy in conjunction with ion-pair reverse-phase HPLC. Analyst. 2019;144:4985–94. https://doi.org/101039/C9AN00954J [ DOI ] [ PubMed ] [ Google Scholar ] 24. Wien  F, Gragera  M, Matsuo  T  et al.  Amyloid-like DNA bridging: a new mode of DNA shaping. Nucleic Acids Res. 2025;53:gkaf169. https://doi.org/101093/nar/gkaf169 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 25. Ngo  KX, Kodera  N, Katayama  E  et al.  Cofilin-induced unidirectional cooperative conformational changes in actin filaments revealed by high-speed atomic force microscopy. eLife. 2015;4:e04806. https://doi.org/107554/eLife04806 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 26. Feng  XA, Yamadi  M, Fu  Y  et al.  GAGA zinc finger transcription factor searches chromatin by 1D–3D facilitated diffusion. Nat Struct Mol Biol. 2025;32:2359–70. https://doi.org/101038/s41594-025-01643-0 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 27. Rudnizky  S, Murray  PJ, Sørensen  EW  et al.  Chromatin boundary permeability is controlled by CTCF conformational ensembles. bioRxiv, 10.1101/2025.11.25.690553, 12 February 2026, preprint: not peer reviewed. [ DOI ] 28. Itakura  F.  Minimum prediction residual principle applied to speech recognition. IEEE Trans Acoust, Speech, Signal Process. 1975;23:67–72. https://doi.org/101109/TASSP19751162641 [ Google Scholar ] 29. Sakoe  H, Chiba  S.  Dynamic programming algorithm optimization for spoken word recognition. IEEE Trans Acoust, Speech, Signal Process. 1978;26:43–9. https://doi.org/101109/TASSP19781163055 [ Google Scholar ] 30. Grady  L.  Random walks for image segmentation. IEEE Trans Pattern Anal Mach Intell. 2006;28:1768–83. https://doi.org/101109/TPAMI2006233 [ DOI ] [ PubMed ] [ Google Scholar ] 31. Allan  DB, Caswell  T, Keim  NC  et al.  soft-matter/trackpy: v0.6.1. Zenodo. 2023. 10.5281/zenodo.7670439 [ DOI ] 32. Crocker  JC, Grier  DG.  Methods of digital video microscopy for colloidal studies. J Colloid Interface Sci. 1996;179:298–310. https://doi.org/101006/jcis19960217 [ Google Scholar ] 33. Rousseeuw  PJ, Croux  C.  Alternatives to the median absolute deviation. J Am Statist Assoc. 1993;88:1273–83. https://doi.org/101080/01621459199310476408 [ Google Scholar ] 34. Pyne  ALB, Noy  A, Main  KHS  et al.  Base-pair resolution analysis of the effect of supercoiling on DNA flexibility and major groove recognition by triplex-forming oligonucleotides. Nat Commun. 2021;12:1053. https://doi.org/101038/s41467-021-21243-y [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 35. Everingham  M, Van Gool  L, Williams  CKI  et al.  The Pascal Visual Object Classes (VOC) challenge. Int J Comput Vis. 2010;88:303–38. https://doi.org/101007/s11263-009-0275-4 [ Google Scholar ] 36. Dice  LR.  Measures of the amount of ecologic association between species. Ecology. 1945;26:297–302. https://doi.org/102307/1932409 [ Google Scholar ] 37. Watson  JD, Crick  FHC.  Molecular structure of nucleic acids: a structure for deoxyribose nucleic acid. Nature. 1953;171:737–8. https://doi.org/101038/171737a0 [ DOI ] [ PubMed ] [ Google Scholar ] 38. Cal  S, Connolly  BA.  The EcoRV modification methylase causes considerable bending of DNA upon binding to its recognition sequence GATATC. J Biol Chem. 1996;271:1008–15. https://doi.org/101074/jbc27121008 [ DOI ] [ PubMed ] [ Google Scholar ] 39. Mysiak  ME, Bleijenberg  MH, Wyman  C  et al.  Bending of adenovirus origin DNA by nuclear factor I as shown by scanning force microscopy is required for optimal DNA replication. J Virol. 2004;78:1928–35. https://doi.org/101128/JVI7841928-19352004 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 40. Brown  ML, Schroth  GP, Gottesfeld  JM  et al.  Protein and DNA requirements for the transcription factor IIIA-induced distortion of the 5 S rRNA gene promoter. J Mol Biol. 1996;262:600–14. https://doi.org/101006/jmbi19960539 [ DOI ] [ PubMed ] [ Google Scholar ] 41. Rice  PA, Yang  S, Mizuuchi  K  et al.  Crystal structure of an IHF-DNA complex: a protein-induced DNA U-turn. Cell. 1996;87:1295–306. https://doi.org/101016/S0092-8674(00)81824-3 [ DOI ] [ PubMed ] [ Google Scholar ] 42. Dillon  SC, Dorman  CJ.  Bacterial nucleoid-associated proteins, nucleoid structure and gene expression. Nat Rev Micro. 2010;8:185–95. https://doi.org/101038/nrmicro2261 [ DOI ] [ PubMed ] [ Google Scholar ] 43. Lee  H, Rashid  F, Hwang  J  et al.  A high throughput single molecule platform to study DNA supercoiling effect on protein–DNA interactions. Nucleic Acids Res. 2025;53:gkaf581. 10.1093/nar/gkaf581 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 44. de Jager  M, Kolbeck  PJ, Vanderlinden  W  et al.  Exploring protein-mediated compaction of DNA by coarse-grained simulations and unsupervised learning. Biophys J. 2024;123:3231–41. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 45. Saiz  L, Vilar  JM.  DNA looping: the consequences and its control. Curr Opin Struct Biol. 2006;16:344–50. https://doi.org/101016/jsbi200605008 [ DOI ] [ PubMed ] [ Google Scholar ] 46. Marko  JF, Siggia  ED.  Driving proteins off DNA using applied tension. Biophys J. 1997;73:2173–8. https://doi.org/101016/S0006-3495(97)78248-1 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 47. Oldenkamp  R, Rowland  BD.  A walk through the SMC cycle: from catching DNAs to shaping the genome. Mol Cell. 2022;82:1616–30. https://doi.org/101016/jmolcel202204006 [ DOI ] [ PubMed ] [ Google Scholar ] 48. Panigrahi  A, O’Malley  BW.  Mechanisms of enhancer action: the known and the unknown. Genome Biol. 2021;22:108. https://doi.org/101186/s13059-021-02322-1 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 49. Hensel  Z, Weng  X, Lagda  AC  et al.  Transcription-factor-mediated DNA looping probed by high-resolution, single-molecule imaging in live E. coli cells. PLoS Biol. 2013;11:e1001591. https://doi.org/101371/journalpbio1001591 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 50. van Ruiten  MS, van Gent  D, Sedeño Cacciatore  Á  et al.  The cohesin acetylation cycle controls chromatin loop length through a PDS5A brake mechanism. Nat Struct Mol Biol. 2022;29:586–91. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 51. Davidson  IF, Barth  R, Zaczek  M  et al.  CTCF is a DNA-tension-dependent barrier to cohesin-mediated loop extrusion. Nature. 2023;616:822–7. https://doi.org/101038/s41586-023-05961-5 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 52. Tych  KM, Jahn  M, Gegenfurtner  F  et al.  Nucleotide-dependent dimer association and dissociation of the chaperone Hsp90. J Phys Chem B. 2018;122:11373–80. https://doi.org/101021/acsjpcb8b07301 [ DOI ] [ PubMed ] [ Google Scholar ] 53. Feng  XA, Ness  KM, Liu  C  et al.  DNA binding dynamics and target location mechanism of pioneer factor GAF. Biophys J. 2023;122:19a. https://doi.org/101016/jbpj202211332 [ Google Scholar ] 54. Katsani  KR, Hajibagheri  MA, Verrijzer  CP.  Co-operative DNA binding by GAGA transcription factor requires the conserved BTB/POZ domain and reorganizes promoter topology. EMBO J. 1999;18:698–708. https://doi.org/101093/emboj/183698 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 55. Bikova  M, Clarkson  CT, Teif  VB.  Nucleosome spacing across cell types, diseases, and ages. Nucleic Acids Res. 2026;54:gkag074. https://doi.org/101093/nar/gkag074 [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Data Citations Allan  DB, Caswell  T, Keim  NC  et al.  soft-matter/trackpy: v0.6.1. Zenodo. 2023. 10.5281/zenodo.7670439 [ DOI ] Supplementary Materials gkag632_Supplemental_File gkag632_supplemental_file.pdf (20.2MB, pdf) Data Availability Statement All data underlying this study are publicly available in Zenodo under record 18953785 ( https://doi.org/10.5281/zenodo.18953785 ). The frozen software release associated with this publication is available in Zenodo under record 1895407 ( https://doi.org/10.5281/zenodo.18954075 ). The actively maintained development version of the DNAsight source code is available on GitHub at https://github.com/kirkegaardlab/dnasight . Articles from Nucleic Acids Research are provided here courtesy of Oxford University Press ACTIONS View on publisher site PDF (4.9 MB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top

Related documents

Record · ID 305094 · SHA-256 1b9fba8b87bccbac
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Bring this data into your agent: Connect via MCP or API · 20 free credits to start · no card required
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive