The QuPath Cloud Healthcare API provides viewing whole-slide images online without full downloading and synchronize annotations with the help of Google Cloud Healthcare API.
- Install QuPath v0.3.0 from here.
- Download the latest JAR from the releases tab.
- When you install QuPath, folder for extensions is set to /home/user/QuPath/extensions by default (in Linux). You can put the JAR in this folder or just drag-and-drop it in the QuPath window.
If you already have QuPath and want to install the new version a new QuPath user directory is recommended. You can set another user directory by going to Edit -> Preferences -> Set another user directory in QuPath. Also, you can delete the previous extension version, if you don't want to use another QuPath user directory.
- Create empty project in QuPath.
- Click Cloud on the button bar. Login with OAuth in your default browser with your account which has access permission to Cloud Healthcare API (1 time).
- Select the desired Project and click NEXT in extension window.
- Select an existing Dataset or create a new one. Steps to create a new Dataset:
- Click New Dataset.
- Input the Dataset name.
- Select the location where the Dataset should be stored.
- Click CREATE.
- Click NEXT.
- Select an existing DICOM Store which contains whole-slide images or create a new one. Steps to
create a new DICOM Store:
- Click New DICOM Store.
- Input the DICOM Store name.
- Click CREATE.
- Click OK.
- Upload dicomized images into created DICOM Store and Dataset in chosen Location:
- If you want to use the embedded wsi-to-dicom-converter in the qupath-chcapi-extension, just add images to the project. When you click Synchronize images will be dicomized and uploaded.
- Alternatively you can use OrthancWSIDicomizer. Once source images have been dicomized, you can upload them via gcloud.
- Click Synchronize on the button bar in QuPath to synchronize DICOM Store with your project.
Extension saved in your chosen dicom store for existing project and saved your access permission on the computer.
Supported formats for qupath-chcapi-extension and pathology test data you can see here.
- Add/Edit image annotations in existing project.
- Save changed annotations via File->Save.
- Click Synchronize (annotations will be uploaded in chosen DICOM Store).
- If DICOM Store contains dicomized annotations that are locally absent they will be downloaded.
- If DICOM Store contains different versions of annotations for the same images, user will be presented window with conflict list and asked to resolve them (with defaults set based on last modified timestamp).
- (Re)open annotated image - need to reload ImageData containing annotations.
QuPath uses embedded Java and may cause some errors. If you get any errors with it, follow these steps:
- Download and install Java SE Development Kit 11.
- Open QuPath/app folder in the terminal.
- Launch QuPath with following parameters
java -Djava.library.path=. -jar qupath-0.2.0-m10.jar
Perform the following steps for compiling extension and packaging to qupath-chcapi-extension.jar:
- git clone https://github.com/qupath/qupath.git in the terminal in your local folder (for adding dependencies from QuPath).
- git checkout v0.2.0-m10 to switch to QuPath v0.2.0-m10.
- Add apply plugin: 'maven' string in build.gradle(Build all projects - all projects point) in qupath folder.
- ./gradlew install in qupath folder in the terminal.
- Copy openslide folder to .m/repository/org/ from qupath/maven/repo/org/ folder. It's necessary to copy openslide dependencies to the local maven repository.
- git clone https://github.com/GoogleCloudPlatform/qupath-chcapi-extension.git
- mvn package in qupath-chcapi-extension folder in the terminal (for packaging to jar).
Resulting qupath-chcapi-extension-X.Y.Z.jar will be put into qupath-chcapi-extension/target folder.
This extension is licensed under GPL v3. Full license text is available in LICENSE.