bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.10.13.757650

DiffuChannel: A Conditional Denoising Diffusion Model that Synthesises Single-Molecule Patch-Clamp Data with Exactly Known Idealisation (Ground Truth)

Abstract

Development of computational models for single-channel patch-clamp analysis is hampered by limited availability of labelled (idealised) data. Since experiment alone cannot provide a genuine ground truth, two simulation methods are commonly employed; Stochastic sampling from a specified Markov model, augmented with synthetic noise allows creation of unlimited, flawlessly idealised/annotated datasets, yet its authenticity hinges entirely on the premises underlying data and noise generation. A more recent method uses GAN-based generation, this also replicates real-world noise and artefacts, but does not include a ground truth idealisation or annotation and training is notoriously unstable. Here, we introduce DiffuChannel, a conditional noise-removal diffusion model that addresses these drawbacks. Channel dynamics come directly from a user-defined discrete-time Markov chain (or a model fitted to biological seed data), thus, the state assignment for each synthetic trace is precisely determined by design. The diffusion model is then trained exclusively to capture the noise distribution of raw current conditioned on a given idealisation, thereby replicating genuine noise, filtering, and artefact patterns observed in real data without needing to hand craft noise models. We use a two-step coarse-to-fine workflow that starts with a defined slow-envelope component conditioned on longer-term dwell-time features extracted from the input idealisation. This allows a degree of baseline drift and time-dependent relaxations to be captured over timescales far longer than the network's field of view. At generation time, we use a context-preserving inpainting method that enables creation of relatively seamless traces of any desired duration. We demonstrate that with only a limited set of labelled seed traces, synthetic records yield realistic all-points amplitude distribution, noise power spectrum, autocorrelation pattern, and slow envelope comparable to the source data. The model achieves a maximum mean discrepancy (MMD) between windowed real and generated data of 0.005 (median across the five phenotypes). This compares to a within real-split-half MMD value of 0.002 and an amplitude-matched white noise MMD value of 0.108. In this paper, we benchmark this against DeepGANnel. Since the underlying Markov model is defined rather than estimated, DiffuChannel generates infinite, perfectly labelled, phenotype-consistent training data ideal for developing and testing idealisation algorithms. We find that, in practice, this new method is far more stable than previous GAN models and runs start to end without human intervention. We provide the model open-source along with an interactive web-based training and synthesis interface/app.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Ball, S. T. M., Barrett-Jolley, R.. 2026-10-14. DiffuChannel: A Conditional Denoising Diffusion Model that Synthesises Single-Molecule Patch-Clamp Data with Exactly Known Idealisation (Ground Truth). https://doi.org/10.64898/2026.10.13.757650

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related preprints

Structural order emerges without mechanical order inside living cells

Intracellular organization is vital for cell function, and disruption of organelle positioning is connected to severe diseases, such as cancer. Given the small length scale of cells and the importance of Brownian motion, maintaining intracellular organization requires mechanical interactions to remain stable. Here, we test the common view that intracellular organization is reflected in intracellular mechanical properties. Using the recently introduced active mechanical fingerprint, we quantify intracellular mechanical properties and active forces to create mechanical maps of patterned RPE1 cells. The organization of actin, microtubules, the Golgi apparatus, the endoplasmic reticulum, and the nucleus reveals pronounced structural polarization across the cell population. To overcome limitations of simple averages, we use a Wasserstein barycenter to calculate an optimal intracellular organization that explains all measurements with minimal cellular distortion. To our surprise, and in contrast to previous reports, we find neither a statistically significant spatial mechanical pattern nor any relevant correlation between the tested structures and intracellular mechanical properties. While there is clear local mechanical anisotropy, the large heterogeneity of mechanical values outweighs any intracellular mechanical gradient. This is further supported by large cell-to-cell variability. Thus, despite having the same genome, cells function properly while their intracellular mechanical properties vary over two orders of magnitude.

biophysics↗

CALISTO: A Standardized and Open-Source Software for Magnetic Tweezer Force Calibration

Magnetic tweezers (MT) enable multiplexed single-molecule force spectroscopy while applying controlled forces and torques to biomolecules. They resolve forces below 1 pN and maintain constant forces over extended periods, but accurate calibration remains challenging due to drift, tracking artifacts, camera noise, and bead variability. Here, we present CALISTO (CALIbration Suite for magnetic Tweezer Operation), an open-source software for MT force calibration. CALISTO analyzes position traces of DNA-tethered magnetic beads and surface-bound reference beads for drift correction. It implements three thermal-motion-based calibration methods: power spectral density, Allan variance, and Hadamard variance, with the latter providing increased robustness against drift and correlated measurement noise. The graphical user interface combines automated analysis with user-guided quality control, including reference bead selection, z-offset determination, magnet-position classification, bead-wise force estimation, and tether extension analysis. Together, these steps generate a master force calibration curve. We systematically evaluated their effects on calibration performance. The largest improvement resulted from automated filtering of problematic force plateaus using time-series characterization to identify traces affected by drift, tracking artifacts, or irregular fluctuations. Filtering reduced scatter and improved force estimation while preserving the underlying force-magnet position relationship. CALISTO thus provides a standardized, reproducible framework for reliable magnetic-tweezers force calibration.

biophysics↗

A Planar Switching Neuron Shares Logarithmic First-Spike Latency with Its Three-Dimensional Parent But Not Its Onset Mechanism

Reducing an electronic neuron from three variables to two can preserve a familiar voltage trace while changing the underlying dynamics that create it. We examine this distinction in a piecewise-linear planar reformulation of the three-dimensional neurosimilator. The planar model produces repetitive spike-like excursions without an imposed reset and admits an exact linear solution inside each of six switching regions. Direct comparison reveals only partial agreement between the two models. Although both generate large voltage excursions and an event rate that rises with applied drive, their waveforms and frequency-current gains differ substantially. A reanalysis of the three-dimensional, near-threshold data also corrects an earlier interpretation: over the resolved interval, the first-spike latency depends logarithmically on the normalized distance from threshold, matching the behavior of the planar model. However, this common functional form does not imply a shared onset mechanism. The three-dimensional equilibrium branch reaches a saddle-node limit point, whereas the planar equilibrium remains a stable node until it exits its admissible region at a switching boundary. While a stagewise analytical reconstruction captures individual voltage excursions, crossing-time errors accumulate unless Newton corrections are applied. The reduced system is therefore a useful electronic neuron model with transparent switching dynamics, rather than a dynamically equivalent copy of its three-dimensional parent. \

biophysics↗