------Supplementary Data and Codes: Twin-Airy point-spread function for extended-volume particle localization------ Authors: Yongzhuang Zhou, Paul Zammit, Vytautas Zickus, Jonathan M. Taylor and Andrew R. Harvey Contact Information: andy.harvey@glasgow.ac.uk ------------------------------------------------ ------------------------------------------------ ------General Introduction------ This supplementary contains experimental data and necessary codes for the zebrafish blood flow measurement and the localization precision assessments. Besides, the simulation codes for Cramer-Rao lower bounds and some pre-saved results, e.g. a list of tracer trajectories and a video visualization, are also included. One can find the codes for this work and their detailed description on Github (https://github.com/Glasgow-ICG/Twin-Airy_PSF_extended-volume_localization) as well. The raw datasets including the calibration point-spread function (PSF) stacks, precision assessments and the blood flow measurements were collected in the Imaging Concepts Group lab at the University of Glasgow between November 2017 and January 2019. ------------------------------------------------ ------------------------------------------------ ------Experiment Equipment------ Experiments were performed on a Nikon Eclipse Ti microscope equipped with a 20x 0.5NA and a 60x, 1.4NA objectives. It was modified to have a home-built laser illumination and a 4f relay imaging system which employs a twin-Airy phase mask that was custom-made by PowerPhotonic Ltd., Scotland. The 20x, 0.5NA objective was used to measure the zebrafish blood flow with a 2048x2048 pixel Andor Zyla sCMOS camera (6.5 micron pixel size) to record the raw data. The 60x, 1.4NA system was used to perform the precision test using quantum dots with a 1024x1024 pixel Andor EMCCD camera (13 micron pixel size) to record the raw data. ------------------------------------------------ ------------------------------------------------ ------Description of Contents------ This supplementary includes the following files: "Raw_data_and_codes_for_blood_flow_tracking.zip" "Raw_data_and_codes_for_precision_test.zip" "Codes_for_Cramer_Rao_lower_bound_analysis.zip" "Some_presaved_results.zip" ------------------------------------------------ ***Raw_data_and_codes_for_blood_flow_tracking.zip*** "Raw_data_and_codes_for_blood_flow_tracking.zip" has three folders: **Raw_data_PSF_stack** Folder "Raw_data_PSF_stack" contains the calibration PSF stack, recorded with a single fluorescent bead scanned through the depth range of 181 microns with 1 micron step size. The PSF images are named as "psf (i).tif" with i indicating its numbering in the axial direction. psf (91).tif corresponds to the in-focus position. **Raw_data_blood_flow** Folder "Raw_data_blood_flow" contains the raw images of tracers flowing in the blood vessels of a 3-day-post-fertilization zebrafish, recorded at a frame rate of 50Hz. A total of 5000 frames are included, and the recorded images are named as "tk.tif" with k indicating the frame number. **Codes_blood_flow_tracking** Folder "Codes_blood_flow_tracking" contains the matlab scripts and functions that were used to process the zebrafish blood flow measurement data, i.e. to localize and track the tracer beads in 3D. "calib.m" performs the xyz calibration using the recorded PSF calibration stack, outputting file named "CALIB.mat" with its three columns being the two-lobe disparity, the axial coordinate and the lateral shift of the PSF; "gaussFit.m" is a function that takes an input image (i.e. a deconvolved image) and an initial guess of the centroid coordinates, and returns the estimated coordinates by fitting a 2D Gaussian function; "twoD_Gauss_func.m" determines the 2D Gaussian function used for centroiding; "IMREC.m" is a function that recovers the images with a Wiener filter, it performs the deconvolution of the input image with the input PSF; "Centro.m" is a function that employs "gaussFit.m" to find the intensity centroids within a deconvolved image, returning a list of centroids with the Gaussian fitting parameters; "MatchCentroids.m" performs the task of matching the centroids of the deconvolved upper lobe and the deconvolved lower lobe; "Multi_frame_localization.m" performs the 3D localization of each tracer bead frame by frame, using the calibration data. It generates and saves the localization results in "LocsList.mat". "Flow_tracking_plot.m" links the 3D tracer locations using the particle tracking software developed by Crocker et al., in particular, the function track.m was used here (see http://www.physics.emory.edu/faculty/weeks//idl/ for more information). It also displays the successfully tracked trajectories. "Plot_trajectories.m" shows the successfully localized and tracked tracers in a 3D plot. Note: The correct order to run the above code as indicated in the algorithm is: (1) "calib.m" to perform the xyz calibration. (2) "multiframe.m" to localize detected tracer particles frame by frame. (3) "Flow_tracking.m" to link the localized tracer coordinates and to show the particle tracking results. However, since intermediate results have been pre-saved, one may run "Flow_tracking_plot.m" directly. ------------------------------------------------ ***Raw_data_and_codes_for_precision_test.zip*** "Raw_data_and_codes_for_precision_test.zip" contains two folders: **High_NA_quantum_dots_scenario** is the quantum dots measurement using the 1.4NA system, it further has three subfolders: *Raw_data_PSF_stack* Folder "Raw_data_PSF_stack" contains the calibration PSF stack, recorded with a single fluorescent bead scanned through the depth range of 11 microns with 1 micron step size. The PSF images are named as "psfi_X1.tif" with i indicating its numbering in the axial direction. Note that these data were recored on a 1.4NA, 60x imaging system, in contrast to the blood flow data where a 0.5NA, 20x imaging system was used. *Raw_data_precision_test* Folder "Raw_data_precision_test" contains the raw images of an immobilized quantum dot recorded at 11 different axial positions corresponding to the 11 sub-folders. At each axial position, 1000 frames were taken in a time sequence to quantify the precision of the 3D localization. The images are named "t_Xi.tif" with i indicating the number of frames. *Codes_precision_test* In addition to the functions and scripts mentioned above, this folder contains the following scripts: "Precision_depth.m" performs the precision test, i.e. the localization of 1000 frames throughout the whole depth range and estimate the standard deviation in the estimated x, y and z coordinates. The list of locations and the result of deconvolved images will be saved after running this script. "Show_results.m" displays the results of the precision test, including the precision as a function of depth, two-lobe-disparity as a function of depth, PSF lateral shift as a function of depth and the recovered PSFs for each depth superimposed. It can run with the save results of the script "Precision_depth.m", namely Xs.mat, Ys.mat, Zs.mat, SRP.mat and SRN.mat. **Low_NA_fluorescent_beads_scenario** is the fluorescent bead measurement approximating the blood flow scenario using the 0.5NA system, it has a similar substructure as **High_NA_quantum_dots_scenario**. ------------------------------------------------ ***Code_for_Cramer_Rao_lower_bound_analysis.zip*** "Code_for_Cramer_Rao_lower_bound_analysis.zip" contains two matlab scripts for the Cramer-Rao lower bound simulations. "Calculate_Cramer_Rao_lower_bounds.m" calculates and saves the Cramer-Rao lower bounds for the twin-Airy PSFs and single airy PSFs with various peak modulations (i.e. alpha) based on shot given the specified parameters including wavelength, numerical aperture, magnification, pixel size, number of detected photons etc. "Show_CRLB_results.m" loads and displays the saved results from "Calculate_Cramer_Rao_lower_bound.m". ------------------------------------------------ ***Some_presaved_results.zip*** "Some_presaved_results.zip" holds saved results for both the precision test and the blood flow measurement. In case one does not want to run the time consuming matlab scripts but would like to know more details about the experimental results. "Flow_trajectory_list.xlsx" is a list of the locations and trajectories of the successfully localized and tracked tracer beads. There are four columns in the excel file with its first three being the xyz coordinates in microns, the fourth column being the frame number and the fifth column being the assigned trajectory number. "Supplementary video_In-vivo blood flow tracking with TA-PSF.mp4". shows on the left the raw data frames and on the right the corresponding reconstructed tracer trajectories with red dots indicating tracers in the current frame. "Precision_test_highNA" are the estimated xyz locations of a quantum dot for 1000 frames (row) at 9 axial positions (column), the standard deviation of which gives the experimental localizaiton precision. "Precision_test_lowNA" are the estimated xyz locations of a fluorescent bead for 100 frames (row) at 12 axial positions (column). ------------------------------------------------