Table of contents Hide

QuPath Practical Tutorial

QuPath 0.7.0 Practical Tutorial: From Browsing Full-Slice Images to...Cell detectionWith quantitative analysis

在Digital PathologyIn histological and biomedical imaging studies, whole-slide images (WSI) typically have very high spatial resolution, with single files potentially reaching billions of pixels. Ordinary image viewers struggle to efficiently browse this type of data, making it even more difficult to directly perform tissue region annotation, cell detection, staining intensity assessment, and batch measurements. QuPath is an open-source biological imaging tool designed for research applications.Image analysisThe software can read various whole-slice and microscopic image formats and provides functions such as project management, region annotation, cell detection, classification, measurement export, and script extension. This article focuses on... QuPath 0.7.0 Based on the version, this document introduces the installation methods for Windows, macOS, and Linux, and demonstrates the complete workflow from project creation, image parameter inspection, ROI annotation, to cell detection and result export through an immunohistochemistry image analysis example.

QuPath Introduction

Digital pathology and histology studies often require processing whole-slice images generated by scanners. Unlike ordinary JPG or PNG images, whole-slice images often employ a multi-resolution pyramid structure: multiple scaling levels are saved simultaneously for the same tissue slice, and the viewing software only reads the data blocks needed for the current field of view, without having to load the entire large image into memory at once.

QuPath It is an open-source biological image analysis software, especially commonly used in digital pathology research. It supports whole-slice images and partial microscopic images, can create tissue region annotations on images, detect cells or cell nuclei, perform object classification and pixel classification, and export measurement results for subsequent statistical analysis.

Official downloads and documentation:

QuPath's main functions

FeaturesMain usesCommon scientific research scenarios
Large image browsingBrowse full-slice and high-resolution microscopic imagesH&E, IHC, tissue section scanning
ROI labelingDraw rectangles, polygons, brushes, and other areas.Tumor region, tissue boundary, region of interest
Cell detectionIdentify cells or cell nuclei and generate detection targets.Cell count, nuclear area and morphology measurements
Staining analysisProcessing brightfield staining and fluorescence imagesH-DAB, hematoxylin, fluorescent labeling
Object classificationDistinguish objects based on measured values or training samplesPositive/negative cells, tissue type
Pixel ClassificationClassify image pixels or regionsDistinguishing between tissue and background, identifying stained regions
Measurement ExportExport results such as area, intensity, and cell number.Further analysis using R, Python, or statistical software
Extensions and scriptsAdd deep learning tools and batch processInstanSegGroovy automation process

QuPath's advantage is not that it “automatically replaces pathological judgment,” but rather that it puts large image browsing, region definition, object detection, and quantitative result processing in the same working environment, reducing repetitive operations and making analysis steps easier to save and review.

Suitable for using QuPathResearch work

  • Histology and Digital Pathology: Browse H&E and immunohistochemical sections, label tissue regions, and perform cell-level quantification.
  • Tumor microenvironment research: Within a predefined area, the number of cells, the positive rate, and the spatial distribution are statistically analyzed.
  • Immunohistochemical analysis: Cell detection, staining intensity grading, and measurement export were performed on H-DAB images.
  • Multiplex immunofluorescence: Multiple channels are processed under supported image formats and analysis workflows, and labeled signals are evaluated in conjunction with classification tools.
  • Tissue chip (TMA): Manage and perform batch analysis of multiple organization chip core areas.
  • Methodology and Image Analysis Teaching: Demonstrates ROI annotation, cell detection, classifier training, and result checking.

It needs to be clarified that QuPath is officially positioned as a scientific image analysis software.Not for clinical diagnosis, treatment decision-making or other clinical use.Software output cannot directly replace the judgment of pathologists, nor can it be used as a clinical conclusion without verification.

Differences between QuPath, Napari, and Fiji/ImageJ

They can all participate in the bioimaging workflow, but they have different focuses.

softwareMore proficient tasksTypical usage
QuPathWhole slide images, tissue regions, cell detection, and digital pathological quantificationWSI Project Management, ROI, Cell Analysis, Measurement Export
napariMulti-dimensional image browsing, layer overlay and interactive annotationZ-stack, multi-channel, time series, and 3D data viewing
Fiji/ImageJGeneral image processing, macros and plug-in workflowsThresholding, filtering, measurement, batch processing, and plugin extensions
GraphPad PrismStatistical Analysis and Results ChartsStatistical testing, data visualization, and paper chart organization

For example, Napari is better suited for viewing multidimensional microscopic images and overlaying different layers; QuPath, on the other hand, focuses more on the ROI, cellular objects, and quantitative analysis in whole-section tissue images. Both can be used in the same research workflow and should not be considered as interchangeable.

Download and install QuPath 0.7.0

This article is based on QuPath 0.7.0 This serves as the operational benchmark. Based on the official GitHub Releases and QuPath 0.7.x documentation, as of... November 15, 20260.7.0 is still the latest stable release officially indicated; development content for 0.8.0 has appeared in the repository changelog, but it is marked as in progress and should not be regarded as the official stable release.

Download link:

Windows installation

Windows users can choose from two distribution options:

Installation packageFeaturesSuitable for
.msi InstallerInstall using the standard software installation method; it can be launched from the Start Menu.Users who want to install and manage the software normally
.zip Portable bagRun directly after decompression; no traditional installation process is required.Users without administrator privileges or who wish to place the file in a specific directory

Operating steps:

  1. Open the official QuPath 0.7.0 Release page.
  2. Download from Assets QuPath-v0.7.0-Windows.msiAlternatively, you can choose the Windows ZIP package.
  3. When using MSI, double-click the installer and follow the prompts to complete the installation.
  4. When using ZIP, first completely extract the compressed file to a fixed directory, then run it. QuPath.exe。
  5. After the first launch, check if the welcome screen displays correctly.

Regarding Windows security tips: QuPath's official installation documentation states that the current distribution package is not a regularly code-signed application, therefore Windows may display a security warning. If you confirm that the file comes from the official QuPath website or the official GitHub release, you can check the file source and attributes according to the official installation instructions before deciding whether to continue. Do not use “Run anyway” for installers from unknown sources.

If the installer fails to launch and your computer does not have administrator privileges, you can try the official ZIP portable version.

macOS installation

QuPath offers macOS installation packages for both Intel and Apple Silicon devices:

  • QuPath-v0.7.0-Mac-x64.pkgIntel processor version.
  • QuPath-v0.7.0-Mac-arm64.pkgApple Silicon version.

The Apple Silicon version typically runs faster on compatible devices, but official documentation notes that a few image formats may be limited by Bio-Formats support, especially those using JPEG-XR compression. .czi Documents, and some .ndpis Files. If your lab frequently uses Zeiss or Hamamatsu scan data, it is recommended to test format compatibility with actual samples first, rather than judging solely by the file extension.

macOS may display a message indicating that the application cannot verify the developer or cannot be opened. Please first verify the download source, and then follow the instructions in the QuPath official installation documentation to resolve the initial opening prompt in “System Settings → Privacy & Security”. Do not disable overall system security protection to run unknown files.

Linux installation

Linux users can download .tar.xz The compressed file. After decompression, add execute permissions to the launcher according to the official instructions, and then launch QuPath from the decompressed directory.

tar -xf QuPath-v0.7.0-Linux.tar.xz chmod u+x QuPath/bin/QuPath ./QuPath/bin/QuPath

The actual compressed file name and extraction directory are subject to the downloaded file.

Preparations before the first launch

QuPath does not require all users to have a GPU. Regular image browsing, manual annotation, and some basic analysis can begin with a CPU workflow. Deep learning extensions may utilize GPUs or MPS acceleration from Apple M-series chips on supported devices, but hardware acceleration involves PyTorch, CUDA, or other runtime environments and should not be simply understood as “GPUs being automatically enabled after installing QuPath”.

Recommendations for first-time practice:

  • Use a small, clearly sourced example image;
  • Place the project on a local disk with stable read/write access.
  • Do not directly modify the single, original experimental data experimentally;
  • First verify whether the image can be opened correctly and whether the pixel size is accurate before proceeding with quantitative operations.

QuPath's Interface and Core Concepts

QuPath's interface mainly consists of an image viewing area, a toolbar, a project list, and an analysis panel. Beginners don't need to master all the buttons at once; understanding a few core objects is sufficient.

Image: Image

Image directs the raw image or slice file to QuPath. After opening the image, you should first check:

  • Is the image type correct?
  • Do pixel width and height have reliable physical units?
  • Are the image channels complete?
  • Are the image pyramid and zoom browsing functions correctly?
  • Is the original file path stable?

For histological quantification, pixel size is crucial. QuPath uses pixel width and height to calculate measurements such as area and length. If the original metadata is missing or misidentified, subsequent area and distance results may also be incorrect.

Annotation: Manually annotated objects

Annotations are areas or shapes that researchers manually draw on an image, for example:

  • Tumor area;
  • Normal tissue area;
  • Organizational periphery;
  • Region of Interest (ROI);
  • Necrotic or folded areas that need to be excluded.

Common drawing tools include rectangles, ellipses, polygons, lines, and brushes. The main function of annotations is to define “which areas to analyze,” but they can also be used directly for measuring the area or length of a region.

Detection: Detection object

Detections are typically generated by software algorithms, such as cells, cell nuclei, or other objects being identified. An annotation can contain a large number of detection objects.

Do not confuse the two:

  • Annotations are typically created by researchers to delineate larger areas of analysis.
  • Detection is typically generated by an algorithm and is used to represent smaller objects such as cells.

Classification: Classification results

Classification is used to assign categories to objects or pixels, for example:

  • Positive / Negative;
  • Tumor / Stroma;
  • Tumor cell/Non-tumor cell;
  • Different intensity levels of staining categories.

The classification result depends on the selected features, threshold, training data, and image quality. The classification result should not be assumed to be correct simply because the software automatically generated a color or category.

Measurements: Measurement data

Measurements are quantitative information about an object, such as:

  • Area, perimeter;
  • Cell nucleus area;
  • Staining strength;
  • Cell count;
  • Percentage of positive cells;
  • The object's shape or spatial characteristics.

This data can be exported as a table and further processed using R, Python, or statistical software.

Create a project and import the full slice image.

If you only want to view one image temporarily, you can use it directly. File → OpenHowever, if you need to save annotation, classification, and measurement results, it is recommended to create a QuPath Project.

Create an empty project folder

First, create an empty folder on your computer, for example:

QuPath_Study/

Note: The official tutorial requires the new project directory to be empty. QuPath will create and manage its own files in the project directory, so it is not recommended to put existing files into this directory before creating a project.

Select in QuPath:

File → Project… → Create new project

Then select the empty folder you just created.

Add images to the project

The simplest way is to drag the image file into the QuPath main window. Alternatively, you can:

File → Project… → Add images

Select the file you want to import.

During import, you may encounter options such as image server, image type, rotation, and pyramid generation. Beginners can initially leave the automatic selection enabled, but should carefully check the image type and the read results.

Select the correct image type

The image type in QuPath can affect the behavior of some analysis commands. Common scenarios include:

  • Brightfield H&E: Hematoxylin-Eosin Bright Field Image;
  • Brightfield H-DAB: Immunohistochemical images showing hematoxylin and DAB staining;
  • Fluorescence: Fluorescence image.

Do not choose an image based solely on filename or color appearance. Incorrect image type identification may affect staining separation, intensity measurement, or positive detection. Automatic estimation may also be inaccurate; manual adjustments can be made in the image properties panel if necessary.

Check pixel size

After opening the image, find the Image tab in the Analysis panel on the left and view it:

  • Pixel width;
  • Pixel height;
  • Image type;
  • Image channels and related attributes.

If the image file already contains reliable pixel size metadata, QuPath can usually read it automatically. If not, it should be filled in based on scanner or microscope metadata, lab records, or calibrated scale information.

Do not estimate pixel size with the naked eye. If the original file is not reliably calibrated, the pixel unit should be retained first, and pixels should not be arbitrarily converted to micrometers.

Understanding the relationship between project files and original images

QuPath Project typically saves image paths along with image-related annotations, measurements, and project data; it does not mean that all original images will be copied to the project folder.

This means:

  1. Do not move or rename the original image file arbitrarily;
  2. When backing up a project, also back up the original images;
  3. When migrating a project to another computer, you need to check if the image paths are still valid.
  4. If the project indicates that an image is missing, you can use the path repair function to relocate the file.

ROI labeling: Define the analysis region first, then perform quantification.

For tissue section analysis, it's generally not advisable to run cell detection on the entire section immediately. A more prudent approach is to first define the region of interest, exclude areas that are clearly unsuitable for analysis, and then fine-tune the parameters within a small range.

Common annotation tools

ToolsMain uses
RectangleQuickly select the rule area
EllipseDelineate an approximately circular or elliptical area
PolygonDrawing irregular ROIs along tissue boundaries
BrushApply paint to the tissue area using a brush.
Line / PolylineMarking linear structures or measurement paths

For example, to define a region, you can select the Polygon tool, click on the boundary point by point, and finally double-click to complete the polygon. If you need to quickly paint over more complex areas, you can use the Brush tool.

Set categories for different areas

After completing the annotations, you can view the annotation list in the Annotations tab of the Analysis panel, and set names and categories for different annotations.

For example:

  • Tumor;
  • Stroma;
  • Necrosis;
  • Background;
  • Excluded.

It is recommended to establish a unified naming convention at the beginning of the project. If different researchers use different names, the subsequent data merging will increase the processing costs.

Notes on labeling

  • ROI should follow predefined inclusion and exclusion criteria;
  • Do not include artifact areas such as folds, tears, bubbles, and stains in the analysis;
  • There should be consistent treatment rules for marginal areas and areas with tissue defects;
  • First, test on a representative small area, then expand to the entire slice;
  • After saving the annotations, we randomly checked different areas to confirm that there was no significant boundary shift.

The definition of ROI itself can affect the statistical results, so the labeling criteria should be recorded and the same rules should be used for different samples as much as possible.

Examples of cell detection and immunohistochemical quantification

The following example, using bright-field H-DAB immunohistochemistry images, illustrates how to perform preliminary cell analysis in QuPath. This example is for demonstrating the software workflow and does not represent any specific disease or clinical interpretation criteria.

First, confirm the image type and staining information.

After opening the H-DAB image, ensure that the Image type is set to the corresponding Brightfield H-DAB type. Check if the hematoxylin and DAB colors are clearly visible in the image, and whether there are obvious scanning artifacts or tissue folds.

If the image type is incorrect or the staining and separation effect is abnormal, it should not be directly included in the positive cell proportion statistics.

Create a smaller ROI

Use the Polygon or Brush tool to draw annotations within a representative tissue area.

It is recommended to first select an area with relatively clear cell morphology and uniform staining. Do not select the entire slide on the first try, as large-scale detection during parameter adjustment will increase waiting time and is not conducive to locating errors.

Running Positive cell detection

Select the annotation you just drew, and then select:

Analyze → Cell detection → Positive cell detection

In the pop-up dialog box, focus on:

  • Cell detection related parameters;
  • The staining measurement area used to determine positive/negative results;
  • Positive threshold;
  • Whether to use single threshold or multi-level staining intensity classification.

For DAB markers that primarily determine location based on the cell nucleus, the official tutorial example uses... Nucleus: DAB OD mean This serves as the scoring area. If the target marker is located on the cytoplasm or membrane, this setting cannot be mechanically applied; instead, an appropriate measurement area should be selected based on the marker's location and the experimental protocol.

Run it on a small scale first, then check the results.

After clicking Run, QuPath will generate Detection objects within the selected area. At this point, don't just look at the positive percentage displayed on the left; you should also check:

  1. Whether the cell nucleus is correctly identified;
  2. Did a large number of cases go undetected?
  3. Whether to identify background, debris, or non-target cells as cells;
  4. Do the positive and negative classifications correspond to the image staining patterns?
  5. The test is to determine if any abnormalities are present at the tissue edges or in adjacent areas.

You can use the Detection display switch in the toolbar to check the detected objects, or select a single cell to view its measurement information.

Adjusting threshold and detection parameters

If the result is clearly unreasonable, you should go back to the parameter settings instead of directly accepting the automatic output.

We recommend debugging in the following order:

  1. First, confirm the image type;
  2. Check pixel dimensions;
  3. Choose a suitable ROI;
  4. Adjust cell detection parameters;
  5. Select an appropriate staining scoring area;
  6. The positive threshold was tested using a small, representative area.
  7. Repeated checks were performed in different tissue areas;
  8. Record the final parameters and version used.

Significant differences can occur due to variations in scanners, staining batches, tissue types, and experimental conditions. A threshold that performs well on one sample may not be applicable to all samples.

Result verification

QuPath's automatic detection results should be compared with the original image. It is recommended to perform at least a random check.

  • High staining intensity areas;
  • Areas with low staining intensity;
  • Organizational periphery;
  • Densely populated areas of cells;
  • Uneven staining or areas with high background.

If the study requires reporting the positive rate, cell density, or other quantitative indicators, the analysis subjects, ROI rules, threshold settings, and quality control methods should be clearly stated.

Exporting results:

Feed QuPath measurement data to R or Python

After completing cell detection or object measurement, the data can be exported for subsequent statistical analysis, graphing, and research recording.

QuPath provides three common methods:

  1. Measurement table;
  2. Measurement Exporter;
  3. Script.

Single image: using a measurement table

If you only need to export the measurement results of the currently open image, you can click the Table button in the toolbar and select the type of object you want to export, such as Detection or Annotation.

After confirming that the table contains the necessary columns, click Save to save it as a text table file.

Multiple images: using Measurement Exporter

If you need to summarize multiple samples or multiple slices, it is recommended to use Measurement Exporter.

Common access points:

Measure → Export measurements

In the export interface, you can set:

  • Output file: The full path to the output file;
  • Export type: The type of object to be exported, such as cells;
  • Separator: Column separator, such as Tab;
  • Columns to include: The measurement columns that need to be exported.

If you only need some of the fields, you can first use Populate to get the available columns, and then select the fields you want to export. Before exporting, you should save the current image and project data.

Subsequent statistical analysis

The exported tables can be processed by R, Python, or other statistical software. For example:

  • Summarize the number of cells in each sample;
  • Calculate the positive rate for different ROIs;
  • Comparing cell densities in different experimental groups;
  • Grouping and statistical analysis based on sample metadata;
  • Draw box plots, scatter plots, or distribution maps.

It is important to note that cell-level data exported by QuPath is not equivalent to independent biological replicates. Statistical analysis should be performed using the units of measurement determined according to the experimental design to avoid misinterpreting a large number of cells from the same tissue sample as a large number of independent samples.

Extended functionality:

Using InstanSeg for deep learning cell segmentation

In addition to QuPath's built-in image analysis capabilities, deep learning analysis capabilities can be added through extensions.InstanSeg It is the cell and nucleus instance segmentation extension described in the QuPath official documentation.

InstanSeg official documentation:

https://qupath.readthedocs.io/en/latest/docs/deep/instanseg.html

Install extensions

Select in QuPath:

Extensions → Manage extensions

Find and install it in the extension manager:

  • Deep Java Library;
  • InstanSeg.

The Deep Java Library is one of the extensions required by InstanSeg. After installation, it is recommended to restart QuPath and then check if InstanSeg appears in the Extensions menu.

Download Model

InstanSeg requires a pre-trained model. Upon first run, you need to select a model storage directory and download a model suitable for the current image type.

The official documentation lists typical models including:

  • brightfield nuclei;
  • fluorescence nuclei and cells.

The model selection should be matched to the staining method, channel structure, and research task of the input image. Do not directly treat bright-field models as a universal model applicable to all fluorescence images.

Select ROI and run.

It is recommended to draw a smaller annotation first, then open:

Extensions → InstanSeg

Run the program after selecting the model, equipment, and other parameters.

The official documentation states:

  • CPU is a basic option with good compatibility, but it is usually slower.
  • MPS can be used on some Macs;
  • After configuring a suitable NVIDIA GPU and CUDA, GPU acceleration can be used;
  • Large areas will be divided into multiple tiles for processing. Common tile sizes can be tested starting from around 512 or 1024 pixels.
  • Tile padding can affect whether edge cells are truncated, and needs to be checked in conjunction with actual images.

InstanSeg may require an internet connection to download the model and PyTorch runtime components. Even if PyTorch is already installed on your computer, the extension may not directly reuse the existing environment; the specific configuration depends on the Deep Java Library.

The results of deep learning still need to be validated.

InstanSeg can help generate cell or nucleus segmentation results, but the model is not guaranteed to be applicable to all tissues, staining, scanners, and imaging conditions.

suggestion:

  1. First, run it in a representative small area;
  2. Check for cell boundaries, missed detections, and oversegmentation;
  3. Compare with manually annotated or existing reference results;
  4. Evaluate stability on different samples and batches;
  5. Record the model name, version, running device, and parameters;
  6. When officially published, InstanSeg and QuPath should be cited according to the extended requirements.

Batch Analysis and Project Management Recommendations

When a study involves dozens or even hundreds of slices, manual processing of each slice can easily lead to inconsistencies in parameters. QuPath supports project-level processing, batch export of scripts and measurements, and can progressively standardize the workflow.

We recommend organizing the project in the following way:

QuPath_Study/ ├── project.qpproj ├── data/ │ └── Raw image files (recommended for independent management) ├── scripts/ │ └── Analysis scripts ├── classifiers/ │ └── Classifier files ├── exports/ │ ├── measurements.tsv │ └── summary.csv └── notes/ └── analysis_parameters.md

The directory structure above is an example of research data management and does not imply that QuPath requires this structure. In particular, whether to place raw image files in the project directory should be determined based on project size, storage strategy, and laboratory data specifications.

Unified sample naming

Stable sample numbers can be used, for example:

CTRL_001 CTRL_002 TREAT_001 TREAT_002

Do not include patient names, ID numbers, or other directly identifiable information in project file names. When human samples are involved, ethical approval, de-identification, and institutional data management requirements should be followed.

Record analysis parameters

It is recommended to keep a record of parameters for each batch of images:

ProjectRecord content
QuPath version0.7.0
Image sourceScanner model, data source, or publicly available test data
Image typeH&E, H-DAB, Fluorescence, etc.
Pixel sizePixel width, Pixel height and units
ROI RulesInclusion and Exclusion Criteria
Detection methodsBuilt-in detection or specific extensions
Parameter settingsDetection thresholds, models, and other key parameters
Quality controlManual sampling areas and methods for handling abnormal samples
Output fileTSV, CSV or other result files

When are scripts needed?

If the same annotation, measurement, or export operations need to be performed repeatedly on multiple samples, you can further explore QuPath's Groovy scripting capabilities.

Script is suitable for:

  • Batch processing of images in a project;
  • Automatically perform repeated measurements;
  • Export specified fields uniformly;
  • Record the analysis steps;
  • Reduce repetitive manual clicks.

Beginners are advised to first complete the analysis of a single image using the GUI, and then convert the stable workflow into a script. Do not attempt to run batches of samples without first confirming the parameters and quality control methods.

Frequently Asked Questions and Troubleshooting

Image cannot be opened

Possible reasons include:

  • The file format or compression method is not supported by the current reading library;
  • The image file itself is incomplete;
  • The QuPath build version used has platform compatibility limitations;
  • Bio-Formats or OpenSlide offer limited support for specific variants of this format.

QuPath supports multiple image formats through Bio-Formats and OpenSlide. Their capabilities are not entirely the same: OpenSlide typically supports 2D, 8-bit RGB images; Bio-Formats can handle more types, including some multidimensional data. Even if a format name appears in the supported list, it doesn't guarantee that all compressed variants of that format will open correctly.

It is recommended to first use a publicly available test image to verify the software, and then check the file format, compression method, and scanner information of the actual sample.

The image can be opened, but the units of measurement are incorrect.

First check the pixel width and pixel height in the Image panel.

If the pixel size is inaccurate, measurements of physical quantities such as area, length, and cell density may be affected. Do not substitute pixel size calibration for adjusting the display magnification.

The cell test results were significantly too many or too few.

First check:

  1. Image type;
  2. Is the ROI reasonable?
  3. Staining quality;
  4. Detection parameters;
  5. Cell density and tissue structure;
  6. Does the image contain folds, debris, or background noise?

Do not pursue a certain desired ratio simply by repeatedly raising or lowering the threshold. The parameters should be judged to be reasonable based on the original image and manual verification.

The project displays a message indicating that the image is missing.

QuPath projects typically record the original image paths. If image files are moved or renamed, the project may become unable to find them.

Image files can be relocated using the path repair feature provided by QuPath. To avoid repeated repairs, it is recommended to keep the original image directory stable during formal analysis.

The extension was not displayed after installation.

suggestion:

  • Check if the extension was installed successfully;
  • Confirm that the extension version is compatible with the current QuPath version;
  • Install dependencies according to the extension instructions;
  • Restart QuPath;
  • Check the QuPath user directory and log information.

Prioritize installing extensions from the official catalog via Extension Manager. When manually downloading third-party JAR files, verify the project source, version compatibility, and maintenance status.

Quality control issues

QuPath can make image analysis workflows more efficient, but the software itself does not automatically guarantee the reliability of experimental data. The following issues are of particular concern.

Pixel size must be reliable

If the pixel dimensions are inaccurate, all area, length, and density results based on physical units may be affected. Scanner metadata and experimental records should be verified before formal analysis.

Batch variations in staining can affect the threshold.

Different batches may vary in staining intensity, background, scanner, and tissue preparation methods. A positive threshold set for one batch should not be applied to all samples without validation.

Automatic segmentation is not the same as manual review.

Cell detection and deep learning segmentation may result in missed detections, oversegmentation, adhesion, or misidentification. Manual sampling and quality control rules should be established, with particular attention to checking edges, densely populated areas, and abnormally stained regions.

Pay attention to data security and privacy.

If you are dealing with human tissue slices or research data containing clinical information, you should manage it in accordance with the ethical approval, data anonymization, and access control requirements of your institution. Do not upload unauthorized raw images to third-party services or public repositories.

Distinguishing between scientific research analysis and clinical applications

QuPath explicitly states that this software is not intended for clinical diagnosis, treatment, or other clinical decision-making. Research analysis results should be interpreted within the framework of study design and quality control, and should not be directly used as clinical reports.

Recommended learning path

If you are new to QuPath, you can learn it in the following order:

  1. Phase 1: Install QuPath, open a public sample full-slice image, and familiarize yourself with scaling, panning, and image properties.
  2. Phase Two: Create a project, import multiple images, and learn about annotations and categorized naming.
  3. Phase Three: Perform cell detection on small ROIs, and examine the detection objects and measurement tables.
  4. Phase Four: Learn Measurement Exporter to export measurement results from multiple images in a unified manner.
  5. Phase 5: Install extensions such as InstanSeg as needed for research, and compare the results of automatic segmentation with those of manual annotation.
  6. Phase 6: Learn Groovy scripts to build a reviewable batch analysis workflow.

The official documentation provides step-by-step tutorials on project management, image annotation, cell detection, cell classification, density mapping, and measurement export. It is recommended to complete the official basic tutorials first before applying these techniques to your own experimental data.

Conclusion

QuPath provides a relatively complete analytical environment for digital pathology and tissue image research. From browsing whole-slice images and annotating ROIs to cell detection, object classification, and measurement export, researchers can save image analysis-related data and operational results within the same project.

For beginners, the most important thing is not to immediately enable all automation and deep learning features, but to first establish a standardized project structure, confirm the image type and pixel size, clarify the ROI rules, and verify the detection parameters on a small scale. Batch analysis only becomes meaningful after image quality, annotation standards, and measurement procedures have all been checked.

QuPath is not a standalone piece of software. It can be combined with Fiji/ImageJ, Napari, R, Python, and other research tools to handle tasks such as image browsing, preprocessing, object analysis, and statistical summarization. Placing each tool in the appropriate context is often more reliable than trying to complete all steps with a single software.

refer toLink

  1. QuPath official website:https://qupath.github.io/
  2. QuPath GitHub repository:https://github.com/qupath/qupath
  3. QuPath 0.7.0 Release:https://github.com/qupath/qupath/releases/tag/v0.7.0
  4. QuPath 0.7.x Official Documentation:https://qupath.readthedocs.io/en/latest/
  5. QuPath Installation Instructions:https://qupath.readthedocs.io/en/latest/docs/intro/installation.html
  6. QuPath supports the following image formats:https://qupath.readthedocs.io/en/latest/docs/intro/formats.html
  7. QuPath First steps:https://qupath.readthedocs.io/en/latest/docs/starting/first_steps.html
  8. QuPath Projects Tutorial:https://qupath.readthedocs.io/en/stable/docs/tutorials/projects.html
  9. QuPath Image Annotation Tutorial:https://qupath.readthedocs.io/en/latest/docs/starting/annotating.html
  10. QuPath Cell detection tutorial:https://qupath.readthedocs.io/en/latest/docs/tutorials/cell_detection.html
  11. QuPath Measurement Exporter Tutorial:https://qupath.readthedocs.io/en/latest/docs/tutorials/exporting_measurements.html
  12. QuPath Extensions Explanation:https://qupath.readthedocs.io/en/latest/docs/intro/extensions.html
  13. QuPath InstanSeg Explanation:https://qupath.readthedocs.io/en/latest/docs/deep/instanseg.html
  14. OpenSlide test image:https://openslide.cs.cmu.edu/download/openslide-testdata/
  15. QuPath software reference notes:https://qupath.readthedocs.io/en/latest/docs/intro/citing.html