Skip to content

Commit 43097d9

Browse files
authored
Updates Warpy documentation
1 parent 0963e38 commit 43097d9

File tree

5 files changed

+65
-30
lines changed

5 files changed

+65
-30
lines changed

_pages/plugins/bdv/warpy/warpy-extension.md

Lines changed: 46 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ This page documents a way to register whole slide images in Fiji and analyze the
99

1010
If you are registering serial sections, you can modify the registration parameters in order to have a match at the tissue level instead of at a cellular/subcellular level.
1111

12-
# Installation - Option 1 - Automated procedure with bash scripts
12+
# Videos tutorials
13+
14+
[Playlist](https://www.youtube.com/watch?v=cgRA9NZ-AOo&list=PL2PJpdamvnti8PqyMdcezGLeAtH6LSy69)
15+
16+
# Installation
17+
18+
## Option 1 - Automated procedure with bash scripts
1319

1420
This is an experimental install procedure which is performing all the steps detailed in the Complete procedure below, but with bash scripts. It is the one explained in the video tutorial:
1521

@@ -33,31 +39,31 @@ This is an experimental install procedure which is performing all the steps deta
3339
{% include notice icon="warning"
3440
content="On Mac, If you get an error message, please [grant the terminal application with full disk access](https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/)" %}
3541

36-
# Installation - Option 2 - Manual procedure
42+
## Installation - Option 2 - Manual procedure
3743

38-
## ImageJ / Fiji
44+
### ImageJ / Fiji
3945

40-
### PTBIOP update site
46+
#### PTBIOP update site
4147

4248
Enable the [PTBIOP](https://imagej.github.io/update-sites/following) update site, then restart Fiji.
4349

44-
### Elastix - To enable automated registrations capabilities
50+
#### Elastix - To enable automated registrations capabilities
4551
- Download the [latest release of elastix for your OS](https://github.com/SuperElastix/elastix/releases/tag/5.0.1). This documentation has been tested for elastix 5.0.1.
4652
- Unzip it somewhere convenient ( `C` drive on windows, in `Applications` for Mac )
4753

48-
#### Windows
54+
##### Windows
4955

5056
For windows users, you also need to install [Visual C++ redistributable](https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist), you'll most probably need `vc_redist.x64.exe`
5157

52-
#### Mac
58+
##### Mac
5359

5460
Fiji will be calling the elastix executables, which are recognized as ‘unknown developers’ by Mac OS. Thus you need to [make security exceptions for both elastix and transformix](https://support.apple.com/en-hk/guide/mac-help/mh40616/mac) to avoid clicking indefinitely on the OS warning messages.
5561

56-
#### Linux (not tested)
62+
##### Linux (not tested)
5763

5864
Nothing particular should be required for linux system. If it works, please contact the BIOP and let us know!
5965

60-
### Indicate `elastix` and `transformix` executable location in Fiji
66+
#### Indicate `elastix` and `transformix` executable location in Fiji
6167

6268
- Execute {% include bc path="Plugins|BIOP|Set and Check Wrappers"%} then indicate the proper location of the executable files
6369

@@ -69,12 +75,12 @@ Nothing particular should be required for linux system. If it works, please cont
6975

7076
Once elastix is installed, you can run [the following script](https://gist.githubusercontent.com/NicoKiaru/b91f9f3f0069b765a49b5d4629a8b1c7/raw/0744676341b16ee4f37ed203130f0e0b761c08c8/TestRegister.groovy) in Fiji to test elastix functionality. Save the file with a `.groovy` extension, open it Fiji, and run it.
7177

72-
## QuPath
78+
### QuPath
7379

7480
* Install the [latest QuPath version (0.3+)](https://qupath.github.io/)
7581
* Install the [QuPath Warpy extension by following its readme](https://github.com/BIOP/qupath-extension-warpy).
7682

77-
# WSI registration - step by step procedure
83+
# Step by step registration procedure
7884

7985
To follow the WSI registration procedure, a demo dataset, consisting of a fluorescent image which can be registered to a RGB H-DAB image, can be [downloaded from Zenodo](https://doi.org/10.5281/zenodo.5674521). Only the files with the `.ome.tiff` extensions are necessary.
8086

@@ -302,9 +308,11 @@ Transformation file successfully written to QuPath project: Path\id_moving\trans
302308

303309
This means that the result of the registration has been stored as a file into your QuPath project. It can then be used from within QuPath to transfer annotations and or detections from one slide to another one, as explained in the next section.
304310

305-
NOTE: the transformation is stored as a json file in the data entry folder of the fixed moving image. It is named by convention `transform_{i}_{j}.json` where `i` and `j` are the entry ids of the fixed and the the moving image in the QuPath project.
311+
{% include notice icon="info"
312+
content="the transformation is stored as a json file in the data entry folder of the fixed moving image. It is named by convention `transform_{i}_{j}.json` where `i` and `j` are the entry ids of the fixed and the the moving image in the QuPath project." %}
313+
306314

307-
## Editing a previous registration
315+
# Editing a previous registration
308316

309317
Once the registration has been performed, you may have second thoughts regarding a region which has not been registered well enough. If that's the case, you can go back to Fiji, re-open your QuPath project, and run the command
310318
`QuPath - Edit Warpy Registration`:
@@ -315,7 +323,7 @@ You will need to select the moving and fixed image (a warning message is display
315323

316324
Running this command will launch the BigWarp interface, in which you can modify, remove, or add new landmarks. Click the appropriate button in the BigWarp bigdataviewer window in order to save and override your previous registration (which is lost, unless you save the BigWarp landmark file).
317325

318-
## Analysis in QuPath
326+
# Analysis in QuPath
319327

320328
From within QuPath, annotations and or detections can be transferred within registered images, one way or another. Indeed, provided transformations are regular enough, they are invertible.
321329

@@ -366,20 +374,33 @@ The above scripts consists of two parts:
366374

367375
- transfered annotations/detections does not contain the standard measurements provided by QuPath (fluorescent intensity / DAB value, etc.) In order to add the measurements on the target image, the function `Warpy.addIntensityMeasurements` can be called
368376

369-
## Troubleshooting
377+
# Saving the registered image
378+
379+
You have several options, but please be aware that computing the fully transformed image is not as safe as working with transfered ROIs. The image can be modified significantly.
380+
381+
{% include notice icon="warning"
382+
content="Computing a fully transformed image, created with ImageCombinerWarpy or with the Fiji Warpy exporter, is a transformation over the pixel contents of the original images! The pixel difference between the original and the transformed image depends on the transformation, the used interpolation as well as the downsampling used in the current viewer. This must be taken into account in all analysis steps performed on such transformed images." %}
383+
384+
## With Image Combiner Warpy
385+
386+
This requires using QuPath and the Image Combiner capabilities. For more informations, go to
387+
[export combined image to OME-TIFF.](/plugins/bdv/warpy/warpy-image-combiner-additional-info#project-entry--image-file)
388+
389+
## With Warpy in Fiji
390+
391+
In Fiji, you can type ‘export warpy’ into Fiji’s search bar and you should get a window like this:
392+
393+
{% include img name="Warpy - export choose images" src="/media/plugins/bdv/warpy/warpy-fiji-export-window0.png" %}
394+
395+
After clicking ok, you’ll get a second window with writing options:
396+
397+
{% include img name="Warpy - export options" src="/media/plugins/bdv/warpy/warpy-fiji-export-window1.png" %}
398+
399+
And if everything’s right, you’ll get a progress bar during image writing (click on the bottom right square of Fiji’s main bar):
370400

371-
Something's wrong in this documentation ? Please post your issue or question in the [image.sc forum](forum.image.sc).
401+
{% include img name="Warpy - export progress bar" src="/media/plugins/bdv/warpy/warpy-fiji-export-progress.png" %}
372402

373-
## References (papers)
374403

375-
- [Fiji](http://www.nature.com/nmeth/journal/v9/n7/full/nmeth.2019.html)
376-
- [QuPath](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5715110/)
377-
- [BigWarp](http://ieeexplore.ieee.org/document/7493463/)
378-
- [Elastix (1)](http://dx.doi.org/10.1109/TMI.2009.2035616) [Elastix (2)](http://dx.doi.org/10.3389/fninf.2013.00050)
379-
- [BigDataViewer](http://www.nature.com/nmeth/journal/v12/n6/full/nmeth.3392.html)
380404

381-
## References (github)
382405

383-
The code to perform this workflow is splitted in several parts:
384406

385-
[Qupath warpy extension](https://github.com/BIOP/qupath-extension-warpy) and several repositories for the Fiji side. On the Fiji side, the main components are [Bigdataviewer-playground](https://github.com/bigdataviewer/bigdataviewer-playground) for the management of multiple sources and [Bigdataviewer-biop-tools](https://github.com/BIOP/bigdataviewer-biop-tools).

_pages/plugins/bdv/warpy/warpy.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,28 @@ It consists of two components:
4141

4242
{% include video platform="youtube" id="ckqdrx0OvsI" aspect="1:1" %}
4343

44+
# Troubleshooting
4445

45-
# Code
46+
Something's wrong in this documentation ? Please post your issue or question in the [image.sc forum](forum.image.sc).
4647

47-
All code of the Warpy workflow can be found within these repositories:
48+
List of solved issues encountered and reported in the forum:
4849

49-
* [bigdataviewer-playground](https://github.com/bigdataviewer/bigdataviewer-playground)
50-
* [bigdataviewer-biop-tools](https://github.com/BIOP/bigdataviewer-biop-tools)
51-
* [qupath-extension-warpy](https://github.com/BIOP/qupath-extension-warpy)
50+
[https://forum.image.sc/search?q=warpy%20status%3Asolved](https://forum.image.sc/search?q=warpy%20status%3Asolved)
51+
52+
# References
53+
54+
## Papers
55+
- [Fiji](http://www.nature.com/nmeth/journal/v9/n7/full/nmeth.2019.html)
56+
- [QuPath](https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5715110/)
57+
- [BigWarp](http://ieeexplore.ieee.org/document/7493463/)
58+
- [Elastix (1)](http://dx.doi.org/10.1109/TMI.2009.2035616) [Elastix (2)](http://dx.doi.org/10.3389/fninf.2013.00050)
59+
- [BigDataViewer](http://www.nature.com/nmeth/journal/v12/n6/full/nmeth.3392.html)
60+
61+
## Source code
62+
63+
The code to perform this workflow is splitted in several parts:
64+
65+
[Qupath warpy extension](https://github.com/BIOP/qupath-extension-warpy) and several repositories for the Fiji side. On the Fiji side, the main components are [Bigdataviewer-playground](https://github.com/bigdataviewer/bigdataviewer-playground) for the management of multiple sources and [Bigdataviewer-biop-tools](https://github.com/BIOP/bigdataviewer-biop-tools).
5266

5367
# Legacy
5468

21.3 KB
Loading
41.1 KB
Loading
31.7 KB
Loading

0 commit comments

Comments
 (0)