Session 1- Getting Started#

Goal: How to set up a project, view multiplex files, and export images

1. Create a Project.#

The first step in any QuPath work is to create a “Project”, which is a folder that will hold all of the files QuPath needs.

  1. Create an empty folder (if you place the images into the folder first, it will not work!).

  2. Drag the folder into QuPath. Click Yes to create project.

  3. Drag the 3 lung images (from Google Drive) into the open QuPath window.

    _images/CreateProject.gif

2. Open an image#

  1. Double click LungImg2.ome.tiff to open. You’ll see this message:
    imageType.png

    • It may take some time to open the image for the first time!

    • Change to auto-estimate and hit apply

    • It will look too bright! We’ll fix that next


      _images/OpenImageBC.gif

3. Adjust Visualization Settings
#

  1. Open ‘Brightness/Contrast’
    _images/BrightnessContrast.png

  2. Click ‘Show Grayscale’
    _images/BrightnessContrastSettings.png

  3. Make sure the Hoescht channel (at the top of the list) is selected

  4. Look at the open image and zoom in (mouse wheel). Adjust Minimum and Maximum until the non-tissue background is gone and nuclei are just saturated enough.

  5. Repeat for all channels.

    • For blank channels (Argo874 and Argo890), I like to move both the min and max to a very high value so that they are never accidentally displayed.

    • Biological insight is essential to setting display settings correctly. LAG3 is very rare and punctate, S100 is very common and broad. In your own projects, make sure you know what to expect.

    • It is very common for there to be a large spike in the histogram near the left side - this usually represents a large number of background pixels, so you will want the minimum to be set to the right of this spike. _images/ChannelAdjustmentStart.gif

  6. Uncheck ‘Show Grayscale’

  7. Turn on everything except the blank channels by clicking on the +/- box next to Show and then uncheck individual channel boxes after. _images/BrightnessContrastShow-.png

    _images/channelAdjustmentFinal.gif

  8. It should look better, but there will still be confusion between channels. That’s ok, we’ll fix it next. Save the Display Settings.
    _images/BrightnessContrastSave.png

_images/SaveChannelSettings.gif

  1. In the Projects Tab, right click on the image thumbnail. Click Refresh Thumbnail to get a prettier / more descriptive Project Tab entry.

_images/RefreshThumbnail.PNG

4. Create sets of visualization settings
#

  1. Select a combination of channels that is relevant for different biological processes- Cancer, T cells, Myeloid, etc. Turn those on and the rest off. Some recommendations for those unfamiliar with immune markers:

    • Cancer: S100a, Hoechst, AF1, PDL1

    • T cells: CD45, CD4, CD8, FoxP3

    • Myeloid: CD68, CD163, AF1

  2. Adjust the settings so to maximize clarity for that combination.

    • Click on colored square to change channel color.

    • Play with gamma to see how it changes, but be careful! Adjusting the gamma in scientific publications can be seen as fraudulent behavior when not reported!
      _images/ChannelColor.gif

  3. Save the display settings descriptive names of channels or biological meaning. Then, repeat for a few more combos.

5. Exporting Region Images
#

Use these steps for manuscripts or PowerPoint presentations. Exporting images for further scientific processing is more involved and covered separately.

  1. Create Annotation Regions

    1. Objects > Annotations > Specify Annotation
      _images/SpecifyAnnotation.png

      _images/CreateSpecificAnnotation.gif

    2. Check ‘Use um’ and type the width and length (Note: the values in the image above may be too large for your image)

    3. Give it a name

    4. Click “Add annotation”

  2. Move the created box to somewhere interesting by double clicking within the annotation box, then left clicking and dragging.

  3. With rectangle selected, File > Export images > Rendered RGB (with overlays)
    _images/ExportRegion.PNG

6. Viewing Options#

Channel Viewer#

Any time you have more than 3 channels, it is impossible to clearly differentiate all potential overlapping colors. The channel viewer can help clear up confusion by showing the channels independently.

  1. Open the channel viewer with View > Show channel viewer

  2. Adjust the Zoom level by right clicking inside the channel viewer > Zoom > 200%

  3. Adjust the Field-of-view by expanding the window

  4. Turn on and off channels in the B/C settings and watch it immediately update!

_images/ChannelViewer.PNG

Channel names and colors for presentations pop up
#

  1. First, you should set up your scripts folder.

    1. Settings - the icon should be in the upper right and look like this!
      _images/Settings.png
      If your monitor resolution is too low or QuPath window too small, you may need to click on the >> at the top right of QuPath to show this button, and others.

    2. Search for “script” and select the “Scripting” dropdown

    3. Set Script Directory - this should be somewhere on your computer where you can store a set of small text files that you can access from any QuPath project.
      _images/SettingsScriptDirectory.png

    4. In the Google Drive folder with the image data, there is a Scripts subfolder. Put everything there into the Script Directory you just set.

  2. Find the script for displaying channels: Automate > Shared Scripts > ChannelNames

    1. In Automation window, Run > Run

      _images/RunRun.PNG

    2. Results:
      _images/ChannelNames.PNG

  3. To export the image along with the names: File > Export Snapshot > Main Window Screenshot

  • Good enough for a presentation, not good enough for a manuscript!