ALL Metrics
-
Views
-
Downloads
Get PDF
Get XML
Cite
Export
Track
Software Tool Article

MosaicExplorerJ: Interactive stitching of terabyte-size tiled datasets from lightsheet microscopy

[version 1; peer review: 2 approved with reservations]
PUBLISHED 10 Nov 2020
Author details Author details
OPEN PEER REVIEW
REVIEWER STATUS

This article is included in the Software and Hardware Engineering gateway.

This article is included in the NEUBIAS - the Bioimage Analysts Network gateway.

Abstract

We introduce MosaicExplorerJ, an ImageJ macro to stitch 3D tiles from terabyte-size microscopy datasets. As opposed to existing software, stitching does not require any prior information on the actual positions of the tiles, sample fiducials, or conversion of raw TIFF images, and the stitched images can be explored instantly. MosaicExplorerJ was specifically designed to process lightsheet microscopy datasets from optically cleared samples. It can handle multiple fluorescence channels, dual-side lightsheet illumination and dual-side camera detection.

Keywords

3D stitching, Lighsheet microscopy, Tiled scan, Mosaic, ImageJ

Introduction

A number of open source tools are available to stitch mosaics from optical microscopy 3D tiled scans14 but they all implement automated algorithms, potentially converging to a suboptimal solution. This is especially likely if the initial positions are far from the optimal positions, or if the data suffers from unexpected artifacts. Even worse, this situation can be difficult to detect in practice since these tools bring no or scarce support to check the results and correct for errors manually. Additionally, some software limits the size of the datasets1,2, or requires the data to be redundantly converted to ad-hoc formats3. Finally, none of these solutions handles both dual-side illumination and dual-side camera detection, two useful lightsheet microscopy5 modalities that can advantageously be combined (Figure 1, Left). We developed MosaicExplorerJ to address these shortcomings and bring a complementary alternative to ImageJ BigStitcher4, the reference in the field.

fd6463d6-0501-4925-bf19-120983199507_figure1.gif

Figure 1.

Left: Illuminating the sample and collecting the light from both sides enables to image a sample by lightsheet microscopy in the best conditions. Middle: Overlapping tiles (green, blue, red) from a 3D mosaic are shifted axially to compensate for the tilt of the lightsheet (here exaggerated around Y axis). Right: Reconstructed mosaics from both cameras are aligned before stacking their best section.

Methods

Implementation

Whereas stitching the tiles of confocal microscopy datasets chiefly consists in compensating for the scanning head to sample stage tilt, stitching lightsheet microscopy datasets is compounded by the fact that the lightsheet is not necessarily perfectly collinear to the object plane of the detection objective. This can lead to 1) a distortion of the aspect ratio of the images (often negligible), 2) an apparent axial displacement of the tiles while moving across the mosaic. This second effect can be simply compensated by axially offsetting the 3D tiles accordingly (Figure 1, Middle), but additional lightsheet non-uniformity (or lateral misalignment) can lead to differences in the features visible in the regions of tile overlap; potentially weakening correlation based algorithms. To address these issues, MosaicExplorerJ does not implement any automated stitching but instead assists the user in visually aligning the tiles along their possible degrees of freedom. This is basically achieved by following a step-by-step procedure to compensate for the misalignments highlighted in the regions of overlap between adjacent tiles.

Operation

ImageJ/Fiji should be installed and MosaicExplorerJ run from ImageJ macro editor. If no other data is available, the software can be tested with the data provided.

First, the mosaics from both cameras (and illumination sides) should be aligned independently before being aligned together. This first operation can be as simple as joining two matching features between two adjacent tiles (Figure 2B), while compensating lightsheet tilt (Figures 2C, 2D) and the axial wobbling of the motors forming the mosaics might respectively require to adjust the axial shift of the tiles forming the top left corner or the first row and first column of the mosaic. Dual-camera alignment includes a calibration step to compensate for discrepancy between the magnifications of both detection objectives (Figure 1, Right). Finally, the user can save the overall mosaic alignment for further inspection, or export the stitched dataset as a TIFF series. Several tile blending modes are available.

fd6463d6-0501-4925-bf19-120983199507_figure2.gif

Figure 2.

A: Two mosaics (2×8 tiles each with a full overlap in the central column along Y) from a dual illumination side scan aligned with MosaicExplorerJ, the arrows show the directions of the light sheets (the view is turned and cropped to fit the figure). Scale bar: 1 mm. B: Zoomed region from the red square prior to adjusting the XY positions of the tiles but after axial shift (Z) correction. The user joins two matching features (white arrow) from two adjacent tiles. C: The XY positions of the tiles are adjusted based on the previous user input and for correct alignment matching features are highlighted in white in the region of overlap. D: Same view but prior to axial shift correction to compensate for lightsheet tilt: no matching features are apparent in the region of overlap. Scale bar: 100 µm.

Testing

MosaicExplorerJ has been extensively tested by stitching several large lightsheet microscopy datasets acquired from diverse optically cleared biological samples (see Data availability).

Use cases

All datasets were successfully aligned, each time in under 30 minutes. The results were checked visually by scrolling through the slices and ensuring that the alignment was correct in the regions of overlap between the tiles. The dataset Brain2_izq_2x8Mosaic_LeftSide_300GB was also aligned by BigStitcher, leading to similar results both visually and quantitatively (Extended Data Table S16). It took about 2h30 to process this dataset with BigStitcher (from 3D TIF tiles to computed alignment), excluding the conversion from TIFF series (the original format of this dataset) to 3D TIFF tiles. This time is expected to scale at least linearly with increasing dataset size for BigStitcher while alignment time in MosaicExplorerJ is relatively constant, and mostly conditioned by the degrees of freedom of the 3D tiles. After alignment, the exportation of the stitched images to TIFF series could be achieved in a comparable time with both tools.

Conclusion

MosaicExplorerJ brings a complementary alternative to BigStitcher, and presents a number of advantages (Extended Data S2 and Table S26). No fiducials or detectable feature points are required, which makes the tool robust, versatile, and compatible with large optically cleared samples for which introducing fiducials is virtually impossible. The processing is fast, and terabyte-size datasets can be explored on the fly without conversion to an intermediate format, even on laptop computers with limited memory. Finally, dual-side camera detection is supported and all alignment steps are performed visually, which brings direct control and feedback both on the imperfections of the datasets and on the quality of the results, minimizing the risk of leaving coarse errors unnoticed.

Data availability

Underlying data

A complete description of the datasets used to test MosaicExplorerJ, including sample preparation and imaging can be found in Extended Data S1. The full datasets are too large (1.5TB) to feasibly host on a data repository; however, datasets can all be accessed publicly on the IRB Barcelona Google Drive at: https://bit.ly/37iocrP.

Extended data

Zenodo: MosaicExplorerJ F1000Research article extended data. https://doi.org/10.5281/zenodo.41560306.

Data are available under the terms of the Creative Commons Attribution 4.0 International license (CC-BY 4.0).

Software availability

Source code and documentation are available from: https://github.com/SebastienTs/MosaicExplorerJ

Archived source code at time of publication: https://doi.org/10.5281/zenodo.41068487.

License: GNU General Public License v3.0.

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 10 Nov 2020
Comment
Author details Author details
Competing interests
Grant information
Copyright
Download
 
Export To
metrics
Views Downloads
F1000Research - -
PubMed Central
Data from PMC are received and updated monthly.
- -
Citations
CITE
how to cite this article
Tosi S, Bardia L, Barallobre MJ et al. MosaicExplorerJ: Interactive stitching of terabyte-size tiled datasets from lightsheet microscopy [version 1; peer review: 2 approved with reservations]. F1000Research 2020, 9:1308 (https://doi.org/10.12688/f1000research.27112.1)
NOTE: If applicable, it is important to ensure the information in square brackets after the title is included in all citations of this article.
track
receive updates on this article
Track an article to receive email alerts on any updates to this article.

Open Peer Review

Current Reviewer Status: ?
Key to Reviewer Statuses VIEW
ApprovedThe paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approvedFundamental flaws in the paper seriously undermine the findings and conclusions
Version 1
VERSION 1
PUBLISHED 10 Nov 2020
Views
20
Cite
Reviewer Report 11 Dec 2020
Francesco Pampaloni, Buchmann Institute for Molecular Life Sciences, Goethe University, Frankfurt am Main, Germany 
Approved with Reservations
VIEWS 20
Overview

The MosaicExplorerJ ImageJ macro-code described in the manuscript is a useful tool to stitch very large data sets recorded with light sheet microscopy. Indeed, the amount of data acquired in a typical session of light-sheet imaging ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Pampaloni F. Reviewer Report For: MosaicExplorerJ: Interactive stitching of terabyte-size tiled datasets from lightsheet microscopy [version 1; peer review: 2 approved with reservations]. F1000Research 2020, 9:1308 (https://doi.org/10.5256/f1000research.29948.r75056)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response 04 Feb 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    04 Feb 2021
    Author Response
    Thank you for reviewing the article and for pointing out these weaknesses of the documentation. We have tried to substantially improve the documentation accordingly and we have created five video tutorials ... Continue reading
COMMENTS ON THIS REPORT
  • Author Response 04 Feb 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    04 Feb 2021
    Author Response
    Thank you for reviewing the article and for pointing out these weaknesses of the documentation. We have tried to substantially improve the documentation accordingly and we have created five video tutorials ... Continue reading
Views
33
Cite
Reviewer Report 07 Dec 2020
Stephan Preibisch, Berlin Institute for Medical Systems Biology, Berlin, Germany;  HHMI Janelia, Ashburn, VA, USA 
Approved with Reservations
VIEWS 33
The authors present MosaicExplorerJ, an ImageJ macro for manual alignment of tiled lightsheet acquisitions.

I think it can be useful as it provides simple, editable source code. I personally found it quite hard to use, but more practice ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Preibisch S. Reviewer Report For: MosaicExplorerJ: Interactive stitching of terabyte-size tiled datasets from lightsheet microscopy [version 1; peer review: 2 approved with reservations]. F1000Research 2020, 9:1308 (https://doi.org/10.5256/f1000research.29948.r74555)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response 04 Feb 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    04 Feb 2021
    Author Response
    First of all, we thank the reviewer for his thorough comments and we would like to apologize for overlooking some of BigStitcher's features that we were genuinely unaware of. Also, ... Continue reading
COMMENTS ON THIS REPORT
  • Author Response 04 Feb 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    04 Feb 2021
    Author Response
    First of all, we thank the reviewer for his thorough comments and we would like to apologize for overlooking some of BigStitcher's features that we were genuinely unaware of. Also, ... Continue reading

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 10 Nov 2020
Comment
Alongside their report, reviewers assign a status to the article:
Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions
Sign In
If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password.

The email address should be the one you originally registered with F1000.

Email address not valid, please try again

You registered with F1000 via Google, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Google account password, please click here.

You registered with F1000 via Facebook, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Facebook account password, please click here.

Code not correct, please try again
Email us for further assistance.
Server error, please try again.