Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# A virtual reality interface for the immersive manipulation of live microscopic systems

## Abstract

For more than three centuries we have been watching and studying microscopic phenomena behind a microscope. We discovered that cells live in a physical environment whose predominant factors are no longer those of our scale and for which we lack a direct experience and consequently a deep intuition. Here we demonstrate a new instrument which, by integrating holographic and virtual reality technologies, allows the user to be completely immersed in a dynamic virtual world which is a simultaneous replica of a real system under the microscope. We use holographic microscopy for fast 3D imaging and real-time rendering on a virtual reality headset. At the same time, hand tracking data is used to dynamically generate holographic optical traps that can be used as virtual projections of the user hands to interactively grab and manipulate ensembles of microparticles or living motile cells.

## Introduction

During the second half of the 17th century, scientists like Hooke and van Leeuwenhoek revealed to the world the beauty and complexity of a microscopic universe that was made visible for the first time by microscope lenses. Centuries of developments in optical design have perfected optical hardware to produce detailed and aberration free images. In more recent years, lasers, digital cameras, spatial light modulators and consumer high performance computing are transforming the optical microscope into an active investigation tool with ever expanding possibilities for interactions with microscopic systems. Using optical tweezers1,2,3 we can trap individual cells4, measure their mechanical stiffness5 or arrange them in precisely controlled 3D micro-environments6. Although a few advanced interfaces have been proposed to replace the computer mouse with a multi-touch interface7 or force-feedback devices8, the visual feedback has always been limited to 2D projections viewed through the window of a computer display. Computational approaches to microscopy allow high frame volumetric imaging by numerical reconstructions based on 2D holographic patterns that encode the full 3D structure of the scene9,10,11,12,13,14. On a parallel track, virtual reality (VR), augmented reality and mixed reality are transforming the way we explore and acquire information from the macroscopic world around us. Applications in science are still very limited but potentially transformative in many fields. Neuroscientists are increasingly using virtual reality to explore the inner workings of animal and human brains15 by simulating real world inputs. In the context of molecular dynamics simulations, virtual reality interfaces are found to facilitate sophisticated molecular modeling tasks16. It has also been shown that virtual reality can play an important role in scientific education and training, allowing safe and economical experiments to be performed in virtual laboratories17. In all of these applications, however, virtual reality is doubly artificial being a software rendering of software objects. More than simulating presence in artificial environments, using virtual reality we can be virtually present in real but physically unaccessible worlds to explore and manipulate them from “within”. This idea of teleoperation in the nano and micro world was first put forward using the Scanning Tunneling Microscope (STM)18. By connecting a haptic device to the scanning tip of a STM and using a virtual reality headset to render topographic reconstructions, the user could either “fly” over the surface or “feel” the surface under her hand or deposit gold mounds over it19. Following this pioneering work, the field of telenanorobotics has shifted towards the use of the Atomic Force Microscope (AFM)20 which offers the advantages of being more suitable for a wider range of samples, including biological cells and macromolecules, and also to provide direct force measurements for tactile feedback. Using a haptic device and 3D topographic reconstructions for visual feedback, it is possible to manipulate strands of DNA, nanotubes and other macromolecules that lie on a surface21. However, the use of a scanning tip involves a few drawbacks: (1) imaging and manipulation need the same tip and cannot be simultaneous, (2) 3D reconstructions are slow and limited to topographic surfaces preventing applications to objects that float and move in a 3D space, (3) manipulation is limited to “pushing with the tip” and although more complex operations could be performed using two tips for grabbing, this is actually slow, cumbersome and invasive22. Here we introduce a novel approach to tele-micromanipulation that is fully based on optical tools for simultaneous 3D visualization and real-time manipulation of micro-systems through an immersive Virtual Reality interface. Through this instrument we can be virtually “shrunk ” by a million times and sent inside a sealed microscope slide where we can grab swimming cells on the fly and use our hands to interactively arrange colloidal particles in precise 3D geometric configurations. A 3-axis implementation of holographic microscopy23,24 allows the real-time reconstruction of a 3D scene that is the simultaneous replica of a real microscopic sample sitting under a microscope in a separate laboratory room. Using hand tracking devices we project our hands in this virtual micro-reality and use them to grab and move microscopic objects by means of optical traps that are reconfigured in real time based on hand tracking data. We report a series of exploratory experiments with microscopic systems composed of both synthetic microspheres and live swimming bacteria. Further developments in computational microscopy will allow direct interaction with more complex objects like larger eukaryotic cells or complex micromachines25 which could be assembled and operated in an immersive environment.

## Results

### A virtual interface to micro-reality

The use of a virtual reality environment as a live interface for a microscopic system requires the ability to perform interactive 3D manipulations while simultaneously observing a 3D real-time reconstruction of the scene being manipulated. On the one hand, holographic tweezers3 offer a powerful and mature technology for multi-particle, 3D manipulation of micron sized objects. On the other hand, latest implementations of digital holographic microscopy (DHM) allow a high frame rate volumetric reconstruction with a good resolution in the three directions of space. These trapping and microscopy techniques are called “holographic” since in both cases a 3D structure is encoded in a 2D light field that is the principle of holography. In the case of holographic trapping, a collection of laser spots is created in 3D space by modulating the light field on the Spatial Light Modulator (SLM) plane, while, in holographic microscopy, a volumetric light distribution is obtained from a 2D interference pattern recorded by the camera. We integrate these two technologies through a virtual reality interface as schematically illustrated in Fig. 1. Based on hand tracking data, digital holograms are dynamically generated on a computer and displayed on a SLM. The SLM shapes the wavefront of a collimated laser beam in such a way that, after propagation through a microscope objective, an array of focal spots is generated in a 3D volume around the focal plane. Each of these spots provides an independent optical trap that can be used to grab and move a micron sized object such as a colloidal particle or a living cell.

Exploiting the computational power of modern Graphics Processing Units (GPU), optimized digital holograms can be generated in a few milliseconds and follow user input with a negligible time lag29. Although it is possible to manipulate multiple objects in 3D and dynamically following user input7,29,30, the visual feedback we get is typically limited to a 2D slice of the sample scene, obtained by bright field or epifluorescence microscopy7,31. Three dimensional reconstructions of optically trapped particles can be produced by confocal microscopy32 but they are usually much slower than video rate due to the need for mechanical focus scanning. An alternative 3D and label-free imaging tool is diffraction tomography that allows for a 3D reconstruction of the sample refractive index from stacks of 2D frames acquired while changing the illumination angle9,10,11,13,14 or while scanning the focal plane position along the optical axis12. These frames stacks could be acquired with a real-time framerate, however, diffraction tomography is computationally very intense and consequently too time consuming to be used for real-time visualization of the sample. In this respect, direct numerical back propagation of scattered field is preferable. This method, which is usually referred to as in-line holographic microscopy33,34,35, combines a high speed acquisition rate with relatively light computational load at the cost of having volumetric images with a poor axial resolution. We recently introduced an implementation of in-line holographic microscopy that significantly improves the resolution along the optical axis (lateral and axial resolution, respectively: 0.4 $$\upmu$$m and 0.8 $$\upmu$$m)23,24. Three collimated LEDs, each having a different color (RGB), impinge on the sample from three different directions. Each channel of a digital color camera records an independent hologram produced by the interference between incident light and the light scattered by the object. These three digital images are transferred to a GPU device where three corresponding volumetric reconstructions are calculated using the Rayleigh-Sommerfeld back propagation36. Although each of those reconstructions suffers from poor axial resolution, their overlap returns a volumetric image whose isosurface contours represent quite closely the surface of simple microscopic objects such as colloidal spheres23 or E. coli bacteria24 as shown in Fig. 2. We integrated these two technologies using a game engine that supports user interaction through VR devices as schematized in Fig. 1). Optical traps are implemented as game objects that can be interactively and independently created, destroyed, selected and moved around using hand gestures (i.e. “grab”) or more sophisticated remote control tools. When the engine detects an event related to the creation, destruction or displacement of traps, the data describing the updated traps configuration is sent through an ethernet connection to the “holographic engine”. The “holographic engine” runs on a computer controlling the optical hardware in a separate lab. When an update request is received from the “VR engine” the “holographic engine” computes an optimized digital hologram on the GPU and directly displays it on a liquid crystal spatial light modulator. A collimated infrared laser beam ($$\lambda$$=1064 nm) reflects off the SLM and acquires a phase modulation such that, after propagation through a microscope objective (Nikon 100x, Plan Apo $$\lambda$$, NA=1.45) produces diffraction limited spots having a spatial arrangement that is the same of their virtual counterparts. Each of these spots serves as an optical trap that can be used to grab and manipulate small dielectric objects, such as the colloidal beads in Fig. 3, in a 3D region covering the entire field of view. Typically trap rearrangements will result in the rapid motion of nearby objects which are captured in holographic images at 40 fps and processed in real time by the “holographic engine”. The obtained volumetric reconstructions are segmented to extract the relevant geometric features of all identified objects. These geometric data are sent back to the “VR engine” to update the geometric parameters of game objects providing a virtual representation of the real objects that are being interactively manipulated under the microscope. This closed complex flow of data and light starting from the “VR engine” is summarized in Fig. 1b. For trapping alone, the maximum achievable refresh rate is limited to 20 Hz the main bottleneck being the slow response dynamics 45 ms of the SLM liquid crystals. Even if we neglect this slow response the SLM is refreshed at a 60 Hz rate corresponding to a minimum lag time for hologram display of 17 ms. Optimized phase masks are generated using a GSW algorithm29,30 with a computation time that scales linearly with the number of traps as well as the number of optimization steps. We set the number of GSW iterations to 3 giving an expected efficiency (ratio of trapping spots power over the total power) of about 80%. The resulting total computation time is 0.48 ms per trap so that most of the computational time (blue bars in Fig. 1b) is used for image analysis. On the imaging side, the main framerate limiting factor is the computational time of the tasks performed by the “holographic engine”. Starting from a 512$$\times$$512 RGB frame, whose acquisition time is negligible, we obtain a volumetric image of 512$$\times$$512$$\times$$61 voxels (corresponding to a field of view of $$56 \times 56\times 20\,\upmu$$m$$^3$$) in 9.7 ms. The segmentation of the volumetric image takes about 5.8 ms while the extraction of position and orientation of each of the identified objects takes about 0.5 ms. For instance, if two objects are present in the field of view as in Fig. 3, the total time required to obtain a full geometric description of the scene is 16.5 ms. System latency, i.e. the time interval between a trap rearrangement input from hand tracking devices and the actual observation of the resulting beads motions, can be estimated from data in Fig. 1 by summing the total trapping time (62 ms) to the total imaging time (16.5 ms) which gives an overall latency of about 80 ms. This latency is low enough to guarantee a smooth and interactive manipulation experience. In order to match coordinates between trapping and imaging space, we trap a glass microsphere (1 $$\upmu$$m radius) and scan its position $${\mathbf{r}}^\prime$$ in trapping space on a three dimensional grid. During scanning, the trapping laser power is maximum to minimize displacements from the trap’s equilibrium position caused by Brownian fluctuations and gravity. We extract the corresponding bead’s coordinates $${\mathbf{r}}=(x,y,z)$$ in imaging space from the 3D reconstructions. Finally we compute the transform $${\mathbf{r}}^{\prime }=T {\mathbf{r}}+{\mathbf{r}}_{0}+\alpha z^2{\hat{\mathbf{z}}}$$ by fitting the matrix T, a linear transform operator, the vector $${\mathbf{r}}_{0}$$ which represents the displacement between the two origins and the empirical factor $$\alpha$$ which takes into account small displacements in the position of the trap due to spherical aberrations.

### Application example 1: falling bodies

As a first application we choose a simple experiment that demonstrates the potential impact of our instrument for physics education. If we grab two balls, one made of plastic and the other one made of glass and release them from the same height, they will accelerate with constant speed along the vertical direction and hit the ground at approximately the same time. Now we can do the same experiment but on a microscopic scale. As shown in Supplementary Video 1 (representative frames in Fig. 3) we can virtually walk over a microscope coverslip, look around and find two spheres, this time having a radius of 1 $$\upmu$$m, floating above it. Using our own virtual hands we can grab (Fig. 3a), lift (Fig. 3b) and release them (Fig. 3c) and then watch them falling in front of our eyes (Fig. 3d). We can directly experience that a falling body experiment on the microscale looks very different that on the macroscale. The spheres do not move on a vertical line but have a strong Brownian random motion. Although they slowly sediment, it often happens to see them moving up against gravity which constitutes an apparent violation of the second law of thermodynamics37. Our interface also implements a series of tools to track objects and watch the time evolution of their coordinates on a display. The video shows that two balls have very different sedimentation speeds with the glass ball drifting down with a higher mean speed. All this can be explained to students with words, pictures and movies but doing the experiment in first person and watching all this happening in front of our eyes offers a unique and powerful experience of the physical laws that govern the micro-world populated by cells and colloidal particles.

### Application example 2: handcrafting microstructures

The primary advantage of using holographic optical tweezers is the ability to dynamically arrange multiple traps in 3D. With holographic optical tweezers we can precisely arrange multiple colloidal particles or living cells in controlled spatial configurations to iteratively study their stochastic behavior following reproducible initial conditions24,39 or their biological interactions during growth6. Using multiple traps it is also possible to grab and rotate microfabricated objects with complex shapes which can be used as tools for advanced microscopy applications31,40 or for the study of Brownian motion and hydrodynamics of non spherical objects41,42. In this regard, a virtual reality interface could simplify and accelerate the assembly of a multi-component microsystem43 and allows its direct operation with hand gestures and immersive feedback in real time. As a demonstration of this we show in Fig. 4 the live manipulation of a cubic structure made of 8 silica beads (2 $$\upmu$$m diameter). Grabbing a virtual handle the full structure can be rigidly translated, rotated and scaled following hand movements in real time (Fig. 4a). Panel (b) in Fig. 4 shows the phase modulation that is simultaneously displayed on the SLM to generate optical traps at the location dictated by the 3D arrangement of the virtual handle. Panel (c) shows instead the raw holograms recorded on the three color channels of the camera before numerical reconstruction, tracking and rendering on the VR headset. The possibility of using virtual hands to grab objects and to arrange them in 3D configurations that can be inspected immersively and in real time can simplify enormously microassembly tasks, especially for users with no previous experience in microscopy and trapping. In support of this claim, we asked six researchers and students from our University to complete a simple 3D assembly operation consisting of placing a bead mid-point between two other beads. Each user performs the task three times using both our VR interface and a desktop user interface (keyboard or mouse) while the sample is viewed using bright field microscopy on the computer display (See Fig. 4d,e). In both cases we calculate the time to completion as the mean time interval from the moment the trap is created until the trap reaches its target within a tolerance of $$0.2\,\upmu$$m. The time to completion using VR is significantly shorter than when using the standard interface (p<0.0001) with an overall speed up factor of 6 (Fig. 4f).

### Application example 3: fishing for bacteria

In this last example, we demonstrate that, thanks to the high volume-rate achieved by 3-axis holographic microscopy and the reduced lag times in the information loop running between the holographic and VR engine, we can immersively explore a microenvironment populated by fast swimming bacteria. We implemented an augmented reality system by which looking at a cell triggers the visibility of a panel displaying morphological and dynamical information on the cell such as length and speed (Fig. 5a). This feature could be very useful for future applications when a rapid characterization of motility is important, such as for sperm cells in artificial insemination, that could in addition take advantage of the trapping and sorting capabilities of optical tweezers. The trapping interface for bacteria has been optimized for rapidly moving objects. Colloidal particles diffuse by Brownian motion which gives enough time to navigate in the immediate vicinity of the target bead and grab it with our virtual hands. With a speed of about 20 $$\upmu$$m/s bacteria can cross the entire field of view (56 $$\upmu$$m) in less than 3 seconds. We then implemented a virtual laser pointer tool that allows to quickly point at a distant target cell and, when clicking on a trigger, generate an optical trap at the 3D location of the nearest intersection point between the virtual laser pointer beam and the game objects representing real cells. Previously created traps can be also selected with the “pointer” and rapidly moved across the entire field of view “fishing for bacteria” (Fig. 5a). Once a cell falls in a trap we can move it around or bring it closer using the pointer as a virtual “tractor beam” that actually pulls the real optical trap towards the user hand. Last frame in Fig. 5a shows the same cell that, after switching off the traps, is set free and swims away with its initial speed. We can choose to record the tracks of selected objects for subsequent analysis. As an example we show in Fig. 5c the 3D trajectory of the cell during the observation. The plot shows the typical circular trace swept by a swimming cell in presence of a bounding wall44,45,46 (the coverglass in our case). The circles are followed by short trace in which the cell is trapped and a nearly straight line that the cell draws after it is released.

## Discussion

Holographic imaging of objects that, like bacteria, are comparable in size to the wavelength of light is quite a challenging task. At best, volumetric reconstructions represent the convolution of the actual object shape by a point spread function which is approximately a 3D Gaussian and which results in a blurring of the final 3D image (especially along the vertical axis) . For the objects we used in this work, we have a reliable a priori information on the shape: colloids have a spherical shape while bacteria are spherocylinders with a varying length but a pretty constant thickness. In this situation it may be preferable to use volumetric reconstructions to infer the geometric parameters of these shapes and if we render them as perfect spheres and spherocylinders on the VR headset we get a reconstruction of the scene that is closer to reality. However, this is not always the case and there are situations where a more direct and unbiased representation of holographic reconstructions is what we want to see and interact with. To implement that we used a marching cubes algorithm47 to obtain isosurfaces of the $$512\times 512 \times 61$$ reconstructued volumetric images. The routine, executed on the “holographic engine” GPU, outputs a polygonal mesh, whose vertices and triangles are sent over ethernet to the “VR engine” for live rendering. The time taken for marching cubes algorithm to compute all polygons vertices of a given volumetric reconstruction is 3 ms which is faster than the segmentation routine used before. As a benchmark for this imaging modality we demonstrate the real time and immersive exploration of a sample crowded with swimming bacteria (see Fig. 6 and related Supplementary video 4).

A current limitation of our system lies in the difficulty of discriminating nearby objects in conditions of high density. When we propagate scattered fields backwards, interference between scattered fields from nearby objects can give rise to imaging artifacts23. For example, our three-axis implementation of DHM fails to return two disconnected regions when two objects are separated by less than 0.5 $$\upmu$$m in $$x-y$$ plane. A safer distance along the vertical direction z is approximately 1 $$\upmu$$m.

In conclusion, we have shown that virtual reality provides a powerful interface to merge holographic techniques for 3D microscopy and micromanipulation. The resulting instrument offers an immersive and interactive experience of microscopic phenomena. We can enter our lab on a chip, “walk” on a microscope slide, observe the dynamic phenomena that occur around us in real time and use virtual hands to grab, move and build 3D spatial arrangements of microscopic objects and living cells. This approach can be extended in many different directions. Using tomographic reconstructions we could interact with larger and more complex cells although better algorithms will be required to reach the real time capabilities of the instrument in this paper. Moreover, optical lithography could be brought in as an interactive microfabrication tool where we design our structures using a VR CAD and then monitor the fabrication process in real time by holographic microscopy of the material being photopolymerized.

## Methods

### Computer hardware and software

The VR engine runs on a desktop computer with a TRIX B250F GAMING motherboard, an Intel(R) Core(TM) i7-7700 CPU, 16 gb RAM, a NVIDIA TITAN Xp GPU and Microsoft Windows 10 Pro as the operating system. The holographic engine runs on a desktop computer with a motherboard MPG Z390 GAMING EDGE AC (MS-7B17), an Intel(R) Core(TM) i5-9600K CPU, 32 gb RAM, a GeFrorce RTX 2060 super GPU and a Linux OS (Ubuntu 20.04.1 LTS). We used Unity28 as the game engine and the VR system Oculus Rift CV1. Game objects in the Unity application implement clients that connect to two separate UDP sockets running on the holographic server and managing data transfer for trap coordinates and sample geometric parameters.

### Optical hardware

RGB light sources: Prizmatix UHP-T-LED-460, UHP-T-LED-520 and UHP-T-LED-630. Spatial Light Modulator: Hamamatsu X10468-03. Camera: Basler avA1000-100gc.

### Sample preparation

Bacteria of the strain RP43748 (wild type) and HCB43749 (smooth swimmer) were grown overnight in 10 mL of LB supplemented with 100 $$\upmu$$M ml$$^{-1}$$ streptomicyn or 30 $$\upmu$$M ml$$^{-1}$$ kanamicyn respectively, at 30 $$^\circ$$C, 200 rpm. In the morning the culture was diluted 1:100 in 5 mL of Tryptone Broth (1% Tryptone, 0.5% NaCl) with kanamicyn or streptomicyn and grown at 30 $$^\circ$$C, 200 rpm until an OD600 of 0.6-0.8. Then the cells were washed through centrifugation three times at 1500 g in motility buffer (67 mM NaCl, 10 mM potassium phosphate, 0.1 mM EDTA, 10mM glucose, 0.02% Tween20 at pH 7.0).

## References

1. Ashkin, A. Optical Trapping and Manipulation of Neutral Particles Using Lasers: A Reprint Volume with Commentaries (World Scientific, Singapore, 2006).

2. Jones, P. H., Maragò, O. M. & Volpe, G. Optical Tweezers: Principles and Applications (Cambridge University Press, Cambridge, 2015).

3. Padgett, M. & Di Leonardo, R. Holographic optical tweezers and their relevance to lab on chip devices. Lab Chip 11, 1196. https://doi.org/10.1039/c0lc00526f (2011).

4. Min, T. L. et al. High-resolution, long-term characterization of bacterial motility using optical tweezers. Nat. Methods 6, 831–835 (2009).

5. Guck, J. et al. The optical stretcher: a novel laser tool to micromanipulate cells. Biophys. J. 81, 767–784 (2001).

6. Kirkham, G. R. et al. Precision assembly of complex cellular microenvironments using holographic optical tweezers. Sci. Rep. 5, 1–7 (2015).

7. Bowman, R. et al. itweezers: optical micromanipulation controlled by an Apple Ipad. J. Opt. 13, 044002 (2011).

8. Pacoret, C. et al. Touching the microworld with force-feedback optical tweezers. Opt. Express 17, 10259–10264 (2009).

9. Choi, W. et al. Tomographic phase microscopy. Nat. Methods 4, 717–719 (2007).

10. Kim, Y. et al. Common-path diffraction optical tomography for investigation of three-dimensional structures and dynamics of biological cells. Opt. Express 22, 10398–10407 (2014).

11. Jung, J., Kim, K., Yoon, J. & Park, Y. Hyperspectral optical diffraction tomography. Opt. Express 24, 2006–2012 (2016).

12. Soto, J. M., Rodrigo, J. A. & Alieva, T. Label-free quantitative 3D tomographic imaging for partially coherent light microscopy. Opt. Express 25, 15699–15712 (2017).

13. Chowdhury, S. et al. High-resolution 3D refractive index microscopy of multiple-scattering samples from intensity images. Optica 6, 1211–1219 (2019).

14. Lim, J., Ayoub, A. B., Antoine, E. E. & Psaltis, D. High-fidelity optical diffraction tomography of multiple scattering samples. Light Sci. Appl. 8, 1–12 (2019).

15. Minderer, M., Harvey, C. D., Donato, F. & Moser, E. I. Neuroscience: virtual reality explored. Nature 533, 324 (2016).

16. O’Connor, M. et al. Sampling molecular conformations and dynamics in a multiuser virtual reality framework. Sci. Adv. 4, eaat2731 (2018).

17. De Jong, T., Linn, M. C. & Zacharia, Z. C. Physical and virtual laboratories in science and engineering education. Science 340, 305–308 (2013).

18. Hollis, R. L., Salcudean, S. & Abraham, D. W. Toward a tele-nanorobotic manipulation system with atomic scale force feedback and motion resolution. In booktitleIEEE Proceedings on Micro Electro Mechanical Systems, An Investigation of Micro Structures, Sensors, Actuators, Machines and Robots., 115–119, https://doi.org/10.1109/MEMSYS.1990.110261 (1990).

19. Taylor, R. M. et al. The nanomanipulator: a virtual-reality interface for a scanning tunneling microscope. In booktitleProceedings of the 20th annual conference on Computer graphics and interactive techniques, 127–134 (1993).

20. Sitti, M. & Hashimoto, H. Tele-nanorobotics using atomic force microscope. In booktitleProceedings. 1998 IEEE/RSJ International Conference on Intelligent Robots and Systems. Innovations in Theory, Practice and Applications (Cat. No.98CH36190), vol. 3, 1739–1746 vol.3, https://doi.org/10.1109/IROS.1998.724849 (1998).

21. Guthold, M. et al. Controlled manipulation of molecular samples with the nanoManipulator. IEEE/ASME Trans. Mechatron. 5, 189–198. https://doi.org/10.1109/3516.847092 (2000).

22. Bolopion, A., Xie, H., Haliyo, D. S. & Regnier, S. Haptic teleoperation for 3-D microassembly of spherical objects. IEEE/ASME Trans. Mechatron. 17, 116–127. https://doi.org/10.1109/TMECH.2010.2090892 (2012).

23. Saglimbeni, F., Bianchi, S., Lepore, A. & Di Leonardo, R. Three-axis digital holographic microscopy for high speed volumetric imaging. Opt. Express 22, 13710–13718 (2014).

24. Bianchi, S., Saglimbeni, F. & Di Leonardo, R. Holographic imaging reveals the mechanism of wall entrapment in swimming bacteria. Phys. Rev. X 7, 011010 (2017).

25. Vizsnyiczai, G. et al. Light controlled 3d micromotors powered by bacteria. Nat. Commun. 8, 1–7 (2017).

26. howpublished http://www.apple.com/keynote/.

27. Ramachandran, P. & Varoquaux, G. Mayavi: 3D visualization of scientific data. Comput. Sci. Eng. 13, 40–51 (2011).

28. howpublished http://www.unity3D.com.

29. Bianchi, S. & Di Leonardo, R. Real-time optical micro-manipulation using optimized holograms generated on the GPU. Comput. Phys. Commun. 181, 1444 (2010).

30. Di Leonardo, R., Ianni, F. & Ruocco, G. Computer generation of optimal holograms for optical trap arrays. Opt. Express 15, 1913–1922 (2007).

31. Vizsnyiczai, G. et al. Multiview microscopy of single cells through microstructure-based indirect optical manipulation. Biomed. Opt. Express 11, 945–962 (2020).

32. Curran, A. et al. Decoupled and simultaneous three-dimensional imaging and optical manipulation through a single objective. Optica 1, 223–226. https://doi.org/10.1364/OPTICA.1.000223 (2014).

33. Garcia-Sucerquia, J. et al. Digital in-line holographic microscopy. Appl. Opt. 45, 836–850 (2006).

34. Lee, S.-H. & Grier, D. G. Holographic microscopy of holographically trapped three-dimensional structures. Opt. Express 15, 1505–1512 (2007).

35. Brodoline, A., Rawat, N., Alexandre, D., Cubedo, N. & Gross, M. 4D compressive sensing holographic microscopy imaging of small moving objects. Opt. Lett. 44, 2827–2830 (2019).

36. Shen, F. & Wang, A. Fast-fourier-transform based numerical integration method for the Rayleigh–Sommerfeld diffraction formula. Appl. Opt. 45, 1102–1110 (2006).

37. Jarzynski, C. Equalities and inequalities: irreversibility and the second law of thermodynamics at the nanoscale. Annu. Rev. Condens. Matter Phys. 2, 329–351 (2011).

38. Hunter, J. D. Matplotlib: a 2D graphics environment. Comput. Sci. Eng. 9, 90–95 (2007).

39. Di Leonardo, R. et al. Eigenmodes of a hydrodynamically coupled micron-size multiple-particle ring. Phys. Rev. E 76, 061402 (2007).

40. Phillips, D. B. et al. An optically actuated surface scanning probe. Opt. Express 20, 29679–29693 (2012).

41. Di Leonardo, R., Cammarota, E., Bolognesi, G., Schäfer, H. & Steinhart, M. Three-dimensional to two-dimensional crossover in the hydrodynamic interactions between micron-scale rods. Phys. Rev. Lett. 107, 044501 (2011).

42. Bianchi, S., Sosa, V. C., Vizsnyiczai, G. & Di Leonardo, R. Brownian fluctuations and hydrodynamics of a microhelix near a solid wall. Sci. Rep. 10, 1–8 (2020).

43. Rodrigo, P. J. et al. Optical microassembly platform for constructing reconfigurable microenvironments for biomedical studies. Opt. Express 17, 6578–6583. https://doi.org/10.1364/OE.17.006578 (2009).

44. Frymier, P. D. & Ford, R. M. Analysis of bacterial swimming speed approaching a solid-liquid interface. AIChE J. 43, 1341–1347 (1997).

45. DiLuzio, W. R. et al. Escherichia coli swim on the right-hand side. Nature 435, 1271–1274 (2005).

46. Bianchi, S., Saglimbeni, F., Frangipane, G., Dell’Arciprete, D. & Di Leonardo, R. 3d dynamics of bacteria wall entrapment at a water-air interface. Soft Matter 15, 3397–3406 (2019).

47. Lorensen, W. E. & Cline, H. E. Marching cubes: a high resolution 3d surface construction algorithm. ACM Siggraph Comput. Gr. 21, 163–169 (1987).

48. Parkinson, J. S. Complementation analysis and deletion mapping of Escherichia coli mutants defective in chemotaxis. J. Bacteriol. 135, 45–53 (1978).

49. Wolfe, A. J., Conley, M. P., Kramer, T. J. & Berg, H. C. Reconstitution of signaling in bacterial chemotaxis. J. Bacteriol. 169, 1878–1885 (1987).

## Acknowledgements

This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement no. 780333), the ATTRACT project funded by the EC under Grant Agreement 777222 and the 3D GATE project (prot. 85-2017-15246 - Avviso Pubblico “Progetti di Gruppi di Ricerca - Conoscenza e Cooperazione per un nuovo modello di Sviluppo” Legge 13/2008 - art.4, CUP B86C18000970002). We also acknowledge NVIDIA for support with GPU hardware.

## Author information

Authors

### Contributions

These authors contributed equally: S.F., S.B. S.B. and R.D.L. conceived and designed the experiment. S.F., S.B. and R.D.L. wrote software. S.F. and S.B. performed experiments. G.F. provided bacteria. S.F., S.B. and R.D.L. wrote the manuscript.

### Corresponding author

Correspondence to Roberto Di Leonardo.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

### Publisher's note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Supplementary Information

Supplementary Information 2.

Supplementary Information 3.

SupplSupplementary Information 4.

Supplementary Information 5.

## Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and Permissions

Ferretti, S., Bianchi, S., Frangipane, G. et al. A virtual reality interface for the immersive manipulation of live microscopic systems. Sci Rep 11, 7610 (2021). https://doi.org/10.1038/s41598-021-87004-5

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41598-021-87004-5