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

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

[version 2; peer review: 2 approved]
PUBLISHED 04 Feb 2021
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 organized on a regular 2D grid. As opposed to existing software, stitching does not require any prior information on the actual positions of the tiles, or conversion of raw TIFF images to a multi-resolution format for interactive exploration and fast processing. MosaicExplorerJ was specifically designed to process lightsheet microscopy datasets from optically cleared samples. It can handle multiple fluorescence channels, dual-sided lightsheet illumination and dual-sided camera detection.

Keywords

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

Revised Amendments from Version 1

This new version of the article essentially corrects some incorrectly reported features of BigStitcher. It also introduces new video tutorials. Finally, some new software features were introduced (contextual help and illumination correction).

See the authors' detailed response to the review by Stephan Preibisch
See the authors' detailed response to the review by Francesco Pampaloni

Introduction

A number of open source tools are available to stitch mosaics from optical microscopy 3D tiled scans14 but they systematically implement automated algorithms which results might depend on the starting positions of the tiles and potentially converge 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 often bring no or scarce support to check the results and finely correct for the observable residual 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, until now only BigStitcher4 could handle dual-sided illumination and dual-sided 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 BigStitcher, the reference in the field.

ebf49f72-5485-4e4d-88ef-a7728d532c77_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 (assuming a perfectly orthogonal XYZ translation system), 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 stitching algorithms. To address these issues, MosaicExplorerJ assists the user in visually aligning the tiles along the possible degrees of freedom set by a predefined physical model by following a step-by-step procedure to compensate for mismatches highlighted in the regions of tiles overlap.

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 sample data provided (Extended Data S16). 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, Extended Data S3-V16), while compensating lightsheet tilt (Figures 2C, 2D) and the axial wobbling of the motors forming the mosaics might require to adjust the axial shift of a selected number of tiles in the top row/column of the mosaic (Extended Data S3-V26). Dual-sided camera datasets alignment includes an extra calibration step to compensate for discrepancy between the magnifications of both detection objective lenses (Figure 1, Right, Extended Data S3-V36), while dual-sided illumination datasets can be stitched by following a similar procedure (Extended Data S3-V46). Intensity correction can be achieved from either external correction masks or interactively adjusted from XY separable shading correction masks (Extended Data S3-V56). Finally, the user can save the overall mosaic alignment for further inspection, or export the stitched dataset as a TIFF series.

ebf49f72-5485-4e4d-88ef-a7728d532c77_figure2.gif

Figure 2.

A: Two mosaics (2×8 tiles each with a full overlap in the central column along Y) from a dual-sided illumination dataset 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

Even though it only supports a subset of its features, MosaicExplorerJ brings a complementary alternative to BigStitcher and presents a number of advantages (Extended Data S26 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, 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 S16. 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. 10.5281/zenodo.44557616.

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: http://www.doi.org/10.5281/zenodo.44535067.

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 2; peer review: 2 approved]. F1000Research 2021, 9:1308 (https://doi.org/10.12688/f1000research.27112.2)
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 2
VERSION 2
PUBLISHED 04 Feb 2021
Revised
Views
8
Cite
Reviewer Report 11 Mar 2021
Stephan Preibisch, Berlin Institute for Medical Systems Biology, Berlin, Germany;  HHMI Janelia, Ashburn, VA, USA 
Approved
VIEWS 8
Thanks so much to the authors for addressing my concerns, ... 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 2; peer review: 2 approved]. F1000Research 2021, 9:1308 (https://doi.org/10.5256/f1000research.54151.r78912)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Views
6
Cite
Reviewer Report 01 Mar 2021
Francesco Pampaloni, Buchmann Institute for Molecular Life Sciences, Goethe University, Frankfurt am Main, Germany 
Approved
VIEWS 6
The authors added links to five video tutorials in the documentation available on GitHub. The videos greatly support the first user of the MosaicExplorerJ macro in understanding the different steps to align and merge the tiles and to perform the ... 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 2; peer review: 2 approved]. F1000Research 2021, 9:1308 (https://doi.org/10.5256/f1000research.54151.r78911)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response 12 Mar 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    12 Mar 2021
    Author Response
    Thank you for your review. Indeed, pressing Cancel in a dialog box always exits an ImageJ macro, this is unfortunately a hard wired behavior that cannot be bypassed. Yes, as ... Continue reading
COMMENTS ON THIS REPORT
  • Author Response 12 Mar 2021
    Sebastien Tosi, Institute for Research in Biomedicine - IRB Barcelona, the Barcelona Institute for Science and Technology - BIST, Barcelona, Spain
    12 Mar 2021
    Author Response
    Thank you for your review. Indeed, pressing Cancel in a dialog box always exits an ImageJ macro, this is unfortunately a hard wired behavior that cannot be bypassed. Yes, as ... Continue reading
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 2; peer review: 2 approved]. F1000Research 2021, 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 2; peer review: 2 approved]. F1000Research 2021, 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.