How do I export results?#
What will I learn?
How to export results from a single image.
How to export results from all images in a project.
Viewing measurements (again)#
After you’ve analyzed images with QuPath, you may want to export the results for analysis in suitable software.
In “How do I count cells?”, we saw how to access the measurement tables for the various object types in the current image via
button.
This allowed us to view a table of annotation measurements or detection measurements.
QuPath makes it easy to copy and paste this table into other software.
What to do
Select .
Fig. 74 The annotation measurement table#
Select some annotations using Control/Command or Shift
Copy the data to the system clipboard by clicking Copy or pressing Control/Command+C.
Paste the data into a text editor or spreadsheet program of your choice.
Fig. 75 Annotation measurements opened in a spreadsheet program#
If you would prefer to export all annotations then you can select all entries in the table using Command/Control+A. To re-order the annotations based on a specific value, you can click on a column.
Exporting measurements from multiple images#
Returning to OS-2.ndpi, let’s try to export measurements from multiple images.
To do this, QuPath includes a more comprehensive exporting tool.
But first, we need multiple images! For convenience, we’ll just duplicate the current one.
What to do
Open
OS-2.ndpi.Select .
Keep the Also duplicate data files checkbox selected.
Click OK.
Now, let’s get exporting.
What to do
Open
In the resulting dialog, select one or multiple images within Available and click > to move images across into the Selected list.
Fig. 76 Export measurement window#
Alternatively, if all of the images are of interest then select >>. 7. Complete the remaining fields:
Output file: Determine where your file is going and what its going to be called.Export type: Choose which objects you want to export.
Here, we’ll select Detections.Separator: Controls the value separator, i.e., controls whether the output is csv or tsv.Columns to include: Define which measurements you want to export. Here we will be selecting them all. If you are choosing specific measurements, click Populate after selectingExport type. This may take a few seconds.
Fig. 77 Export measurement window#
You can now choose a subset of the available measurements, rather than exporting everything.
Click Export.