%0 Journal Article %A Syed Islamuddin Shah %A Angelo Demuro %A Don-On Daniel Mak %A Ian Parker %A John E. Pearson %A Ghanim Ullah %T TraceSpecks: a software for automated idealization of noisy patch-clamp and imaging data %D 2018 %R 10.1101/299875 %J bioRxiv %P 299875 %X Experimental records of single molecules or ion channels from fluorescence microscopy and patch-clamp electrophysiology often include high-frequency noise and baseline fluctuations that are not generated by the system under investigation and have to be removed. More-over, multiple channels or conductance levels can be present at a time in the data that need to be quantified to accurately understand the behavior of the system. Manual procedures for removing these fluctuations and extracting conducting states or multiple channels are laborious, prone to subjective bias, and hinder the processing of often very large data-sets. We introduce a maximum likelihood formalism for separating signal from a noisy and drifting background such as fluorescence traces from imaging of elementary Ca2+ release events called puffs arising from clusters of channels and patch-clamp recordings of ion channels. Parameters such as the number of open channels or conducting states, noise level, and back-ground signal can all be optimized using the expectation-maximization (EM) algorithm. We implement our algorithm following the Baum-Welch approach to EM in the portable java language with a user-friendly graphical interface and test the algorithm on both synthetic and experimental data from patch-clamp electrophysiology of Ca2+ channels and fluorescence microscopy of a cluster of Ca2+ channels and Ca2+ channels with multiple conductance levels. The resulting software is accurate, fast, and provides detailed information usually not available through manual analysis. Options for visual inspection of the raw and processed data with key parameters, and exporting a range of statistics such as the mean open probabilities, mean open times, mean close times, and dwell time distributions for different number of channels open or conductance levels, amplitude distribution of all opening events, and number of transitions between different number of open channels or conducting levels in asci format with a single click are provided. %U https://www.biorxiv.org/content/biorxiv/early/2018/04/11/299875.full.pdf