An accessible Python framework for real-time magnetic tweezers microscope control and image processing
Magnetic tweezers are a popular biophysical instrument for manipulating and measuring single molecules. Most groups rely on custom-built setups tailored to specific experiments, making it challenging to implement and share software. Typically, image acquisition and hardware control are automated via LabVIEW, while real-time video processing is implemented in C++/CUDA libraries. Live processing can eliminate the need to store raw video, enabling high throughput, fast acquisition rates, and simplified experimental workflows. However, no open-source general-purpose software framework currently unifies these capabilities for magnetic tweezers experiments. Here, we introduce MagTrack and MagScope open-source Python-based tools designed to fill this gap. MagTrack is an image-processing library that efficiently determines bead-positions from magnetic-tweezers videos using CPU and/or GPU computation. MagScope is a comprehensive software framework offering a graphical user interface, real-time hardware control, data acquisition, and video processing. It is built on a multiprocessing architecture for responsive, high-throughput computation. Together, MagTrack and MagScope offer a fully customizable, end-to-end, open-source Python alternative to proprietary or fragmented systems, enabling laboratories to adapt and extend the framework according to their experimental needs.
Authors
- Richard A. Fishel (ORCID: https://orcid.org/0000-0001-8753-2269)
- Abhishek K. Singh (ORCID: https://orcid.org/0000-0003-3895-198X)
- Naciye Esma Tirtom (ORCID: https://orcid.org/0000-0003-4637-8466)
- James A. London (ORCID: https://orcid.org/0000-0003-2638-0868)
- Zachary Root
Institutions
- The Ohio State University Wexner Medical Center (US)
- The Ohio State University (US)
Publication Details
- Journal
- Nature Communications
- Published
- 2026-11-04
- DOI
- https://doi.org/10.1038/s41467-026-78849-3
- Citations
- 1
- Primary Topic
- Force Microscopy Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.14
Funders
- Ohio State University
- Thomas Jefferson University
- National Institutes of Health
- National Cancer Institute
- National Institute of General Medical Sciences
- National Institute of Allergy and Infectious Diseases