a b/docs/TA export.rst
1
.. _Export_page:
2
3
************************
4
Whole Slide Image export
5
************************
6
7
There are videos detailing the whole slide image export process from start to finish at the :ref:`end of this page<page_examples>`.
8
Below is a breakdown of each panel and button used in the examples.
9
10
Tissue export window
11
====================
12
13
.. image:: images/Cut_application_screen.png
14
15
The tissue export window is for exporting png images from whole slide files using a map of the array that is provided by the user -
16
see :ref:`array map example<Input_page>`.
17
18
#. Load WSI prompts a dialog box for the user to select a NDPI or SVS file.
19
20
#. Load Excel this is a prompt to load the :ref:`excel map <Input_page>`.
21
22
   * If the excel is named the same as the array and in the same directory,it will be loaded automatically. Otherwise this button can be used to load a different location.
23
24
   * If this has happened then the button will turn green.
25
26
   * This can also be used to reload the excel map at any point if the map has been changed by the user.
27
28
#. Overlay of manually selected cores.
29
30
   * This is applied after a user selection has been applied in panel number 5.
31
32
   * It can also be used after the cores have been moved to update the window.
33
34
#. Export cores should only be executed the user is satisfied that the cores are in the correct configuration.
35
36
   * Export core command will disable user input and export the core png images to the WSI directory.
37
38
#. Display window.
39
40
   * Double click to add core.
41
42
   * Spacebar to remove last point.
43
44
   * You can drag pre-applied cores before or after applying the bounding boxes.
45
46
#. Excel layout the recommended way to index cores is with the row names as the number and the column names as the
47
   letter \(A6 col A row 6\) if you want to reverse this \(A6 row A col 6\) then uncheck the box when the window opens.
48
49
#. *Save overlay image* determines whether or not to automatically save the image in the viewer (5).
50
51
#. *Tab viewer window* is further explained in points 11-18.
52
53
#. Image metadata for the WSI file.
54
55
#. *Progress update panel* is where progress updates will appear.
56
57
#. *Core diameter* is currently set to 6000 pixels which is similar bounding box size as a 1mm diameter tissue core.
58
59
   * This value can be chosen before image export and you can see what the new selection looks like by selecting the
60
     overlay cores button (3).
61
62
#. Thresholding options.
63
64
   * Choose the best threshold then proceed to 13.
65
66
#. Gaussian blur shows the sigma value applied to the gaussian which must be applied after 12.
67
68
#. Closing should be applied after 13 and stands for binary morphological closing.
69
70
   * higher slider values will lead to a more closed mask.
71
72
#. Removal of small objects from the mask gives the value of the minimum size to be removed.
73
74
   * If you have very small tissue cores then this will need to be reduced.
75
76
#. This applies the changes added in steps 12-15 and overlays the core images and labels.
77
78
#. These are the settings for the first figure that is exported.
79
80
   * This option will add a bounding box to the figure to denote the pathology of the core as either red or green.
81
82
   * This will only work if the first tab of the xlsx file with the array contains a map indexed with N and T for normal and tumour, respectively.
83
84
   * Please see the :ref:`array map example<Input_page>` for more indexing pathology details.
85
86
#. If you increase this number, then it will increase the level that the images are taken from in the WSI.
87
88
   * Increasing this will exponentially slow the program down so use sparingly.
89
90
.. _page_examples:
91
92
Example tissue array export workflow 1 - Auto threshold
93
#######################################################
94
95
.. raw:: html
96
97
    <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; margin-bottom: 2em;">
98
        <iframe src="https://www.youtube.com/embed/Bsop3Oi1Evg" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
99
    </div>
100
101
Example tissue array export workflow 2 - Manual selection
102
#########################################################
103
104
.. raw:: html
105
106
    <div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; margin-bottom: 2em;">
107
        <iframe src="https://www.youtube.com/embed/PCiH2Njfpso" frameborder="0" allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>
108
    </div>