Nov 21, 2024

Public workspaceQuPath Immunofluorescence Sequential Slice Analysis: Warpy Extension

  • 1University of Toronto
Icon indicating open access to content
QR code linking to this content
Protocol CitationPatricia Lumanto, Sonya Macparland, Diana Nakib 2024. QuPath Immunofluorescence Sequential Slice Analysis: Warpy Extension. protocols.io https://dx.doi.org/10.17504/protocols.io.e6nvw13n2lmk/v1
License: This is an open access protocol distributed under the terms of the Creative Commons Attribution License,  which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited
Protocol status: Working
We use this protocol and it's working
Created: October 07, 2024
Last Modified: November 21, 2024
Protocol Integer ID: 109286
Abstract
This protocol is an application of the Warpy Extension tool to Qupath for the quantification of IF and IHC markers from sequential tissue slices. This protocol builds upon prior work outlining how to quantify singular and co-localizing IHC and IF markers in the liver, in addition to performing this analysis in the context of liver architecture.
Materials
QuPath v0.4.3
QuPath Extension Warpy v0.3.1

Warpy Download and Installation
Warpy Download and Installation
Download the open-source Warpy image alignment software from https://github.com/BIOP/qupath-extension-warpy.
Note: To avoid incompatible features, download the Warpy version that is specific to the version of QuPath previously downloaded. In this protocol, QuPath v0.4.3 and QuPath Extension Warpy v0.3.1 were used.
Unzip the full Warpy installation package to a local folder.
Tip: Unzip files to the same local folder as Qupath to avoid plugin issues.
Drag and drop the .jar file titled "qupath-extension-warpy-version number.jar" to the QuPath window, or click on File: Open, then select the .jar file to add the Warpy extension to Qupath.
Note: It should show up on the Extensions tab on QuPath.
QuPath Extensions tab showing the successful installation of the Warpy plugin.

Brightness and Contrast Adjustment
Brightness and Contrast Adjustment
Click on File: Project to start a project.
Note: A project must be created in order for multiple images to be imported.
Tip: Prepare an empty folder with an appropriate folder name prior to starting the project.
Import the sequential slices to be analyzed by clicking on File: Open.
Note: Both slices should be stained with a nuclei stain (e.g. DAPI), as it would be used as the main point of reference and alignment.
Tip: Obtaining an H&E scan of the slices would also help in the image alignment process, as key tissue architectural features can be used as a reference for alignment.
Select View: Brightness/Contrast and select the desired channels for visualization (e.g. DAPI, AF647, AF555)
Note: Double click on any channel to change its name and color.
Tip: Select complementary colors (e.g. red and green, purple and yellow) for the different channels, as they would be the easiest to distinguish.

Table containing the different markers and stain colors selected for this experiment.

Adjust the brightness and contrast of the image by changing the min and max display values using the slider.
Note: To ensure easier visualization in future steps, ensure that the brightness of the first slice matches that of the second slice, individual markers can be adjusted to be hyper-saturated if it helps with the image alignment process.
Tip: Refer to marker-specific IHC experiments (e.g. from The Human Protein Atlas) to help visualize expected stain localization and intensity.
Image Alignment
Image Alignment
Select and open one of the image files of the sequential slices from the image list, then click on Analyze: Interactive image combiner warpy.
Note: The image currently opened and selected will be the top slice on the overlay.
Tip: Ensure that the image to be used is opened in the viewer. To do this, double click on the image located in the Image List.
QuPath Analyze tab showing the Interactive image combiner warpy menu option.

Click on Choose images from project on the pop up window and select the second slice.
Image Combiner Warpy pop up window showing its different elements.

Align the second slice to the first by adjusting its size, rotation and translation using the interactive alignment menu.
  • Move slices by holding down the shift key and dragging on the image.
  • Rotate the image by clicking Rotate Left or Rotate Right.
  • Scale the image by clicking Scale Down or Scale Up.
Tip: Adjust the opacity and zoom in closer to notable tissue architecture to aid in image alignment.
Image alignment viewer showing the un-aligned sequential slices overlain.

Image alignment viewer showing the aligned sequential slices overlain.

Once image alignment is completed, click Create. A new image file with the full list of markers should be created and can be opened from the Image List.
Note: There will be two copies of the nuclei marker (e.g. DAPI) on the list of channels, turn off one of the channels to allow for easier visualization.
Tip: Rename and readjust the brightness of each stain once image alignment is complete.
QuPath window showing the new overlain image on the image list and the different markers listed on the Brightness & contrast window.

Cell Detection and Co-localization
Cell Detection and Co-localization
For any downstream quantification, including positive cell detection and marker-specific co-localization, please refer to QuPath Immunofluorescence Cell Detection and Co-localization Protocol.

Example visualization of a hepatic portal vein using 4 different markers (VCAM1, CD32, CK7, and HNF4A) on a healthy liver tissue sample.

Example visualization of a hepatic portal vein using 4 different markers (VCAM1, CD32, CK7, and HNF4A) on a healthy liver tissue sample, demonstrating the potential of viewing different combinations of markers.

Protocol references
1. Nicolas Chiaruttini*, Olivier Burri, Peter Haub, Romain Guiet, Jessica Sordet-Dessimoz, Arne Seitz* 2022. An open-source whole slide image registration workflow at cellular precision using Fiji, QuPath and Elastix. Frontiers in Computer Science.

2. Patricia Lumanto, Diana Nakib, Xinle Wang, Sonya Macparland 2024. QuPath Immunofluorescence Cell Detection and Co-localization Protocol. protocols.io.