-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.qmd
300 lines (203 loc) · 22.4 KB
/
index.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
---
format:
html:
fontsize: 16pt
title: OMERO Workshop
# revealjs:
# theme: default
# slide-number: true
# footer: Imaging Applications, Research IT
# transition: "slide"
# highlight-style: arrow
# chalkboard:
# buttons: false
# controls-layout: bottom-right
# controls: true
toc: true
from: markdown+emoji
---
# Overview of OMERO
![](visuals/omero_overview.png){fig-alt="Diagram showing OMERO.server connected to hardware and image data tasks" fig-align="center"}
OMERO is a software platform for visualizing, managing, and annotating scientific image data. OMERO lets you import and archive your images, annotate and tag them, record your experimental protocols, and export images in a number of formats. It also allows you to collaborate with colleagues by creating user groups with different permission levels. Finally, it provides a convenient interface for programmatic access to your image data.
OMERO.web is a web-based interface that provides most of the core OMERO functions described above. You can explore the public JAX instance of OMERO.web at images.jax.org, where we have made some data publicly available. Note that this website is just a viewer for our public data and will not allow you to log in.
OMERO instances at JAX are hosted by Research IT for JAX research labs.
## Where does OMERO fit into the JAX image data ecosystem?
Importing images into OMERO is as simple as requesting access and uploading images to our automated import folders.
Both the microscopy delivery folders and the OMERO import folders (jax/omero_drop/dropbox) are accessible via Globus for quick transfers
![](visuals/globus_microscopy.png){fig-alt="Screenshot of Globus web with split screen of microscopy delivery folders and omero import folders" fig-align="center"}
Images in OMERO can be directly accessed via other analysis platforms such as QuPATH, ImageJ/Fiji, and Python. In Day 2, we will walk through an example workflow using Fiji.
## Other resources
[Research IT OMERO documentiation](https://jacksonlaboratory.sharepoint.com/sites/ResearchIT/SitePages/Getting-started-with-OMERO-at-JAX.aspx)
[Official OMERO user documentation](https://omero-guides.readthedocs.io/en/latest/)
# Setup
1. The first session of this workshop does not require any additional setup. We will be using the OMERO webclient in a browser to view and annotate images.
2. The second session of this workshop will require Fiji installed with the OMERO plugins:
a. Download Fiji from [https://fiji.sc/](https://fiji.sc/). If you already have a Fiji/ImageJ application, it's still best to download a recent version, but you don't have to remove your old Fiji/ImageJ to run the new one.
b. Then follow the [installation instructions](https://omero-guides.readthedocs.io/en/latest/fiji/docs/installation.html) to add the OMERO plugin to Fiji.
# Session 1: Viewing images in OMERO.web
## Browsing images
:::: {.columns style='display: flex'}
::: {.column style='display: flex; justify-content: left; align-items: center;'}
1. Login to the webclient at http://ctomeroweb01.jax.org/ with the Username and Password provided.
2. Browse hierarchy of Project “Training Data” and Dataset “siRNAi-HeLa” to find images. Several control images in the Dataset have "scram" in their name. Other images are named with siRNAi targets “IN” for INCENP and other names for minor INCENP variants.
:::
::: {.column style='display: flex; justify-content: center;'}
![](visuals/dataset_hierarchy.png){fig-alt="Dataset hierarchy list" width=250}
:::
::::
3. Click the dropdown in the top left that has your group name (training) and user name (Training User user-X). Hover over "training" and select "All Members". This allows you to view (but not necessarily edit) all images in the "training" group, including those owned by other users. Now use the same dropdown to switch back to your own user.
![](visuals/user_group_dropdown.png){fig-alt="Dropdown open to show training group members with All Members highlighted." fig-align="center"}
## Tag annotations
4. Zoom the thumbnails using the slider at the bottom. Use Shift+click or Ctrl+click to select multiple thumbnails that appear to be in Metaphase (one or two single lines appear in each cell as opposed to round blobs):
![](visuals/metaphase_zoom.png){fig-alt="Image thumbnails with metaphase images and zoom slider highlighted" fig-align="center"}
5. In the right-hand panel, expand the Tags pane and click on the ![](visuals/plus_button.png){fig-alt="plus"} button to add tags to all the selected images.
6. Create a new tag at the bottom of the pop-up window. First, create a "Metaphase" tag. Then, create a tag that is unique to you (but others in this training will see). Click Save.
7. Re-click the plus button to add new tags, and you should see everyone's tags in the Available Tags list. Pick one you like, and click on the ![](visuals/rightarrow_button.png){fig-alt="right arrow"} button to move it into the right-hand list then click “Save”.
8. Click the newly-added Metaphase Tag: ![](visuals/metaphase_tag.png){fig-alt="metaphase tag" width=100} in the right-hand panel. This will browse by Tags to show *all* Images with this Tag, be those your images or images of your colleagues.
- Notice at the top-left of the page that we are now browsing data belonging to Trainer-1, the owner of the Metaphase tag.
9. You can also search for the tag using the search bar on the top right of the screen. By default, it will look for images that belong to you, but you can change the scope of that on the left-hand side of the
search screen:
![](visuals/search_scope.png){fig-alt="group and owner dropdowns for search" fig-align="center" width=300}
## Key-Value pair annotations
11. In the right-hand panel, expand the Key-Value Pairs pane and start typing in the "Add Key" and "Add Value" text boxes to add key-value annotation pairs. For example, make a key "species" and value "mouse". Find another image and label it with key "species" and value "human".
12. In the search bar on the top right of the screen, enter "species". This should pull up both images you have labeled with key-value pairs. Now try searching for "species:mouse". This should find only the image you labeled with the value of "mouse".
## Filtering images
13. Click Browse for one of the images in the table to return to the Dataset.
At this point, make sure you are looking at your own images; check the top left corner of the screen. If you are not, click that bar and navigate back to your user:
![](visuals/group_selection.png){fig-alt="group and user selection dropdown" fig-align="center" width=300}
14. Above the thumbnails, click Add Filter > Name and enter “scram” to filter for all control images in this RNAi experiment.
## Preview viewer
:::: {.columns style='display: flex'}
::: {.column width="70%" style='display: flex; justify-content: left; align-items: center;'}
15. Select an image, click the Preview tab of the right panel and Turn off channels 1 and 4 by clicking on the blue and red buttons.
16. Adjust the intensity levels of the green channel which is INCENP, and channel 3 which is Aurora-B. You can use the Histogram feature to help you with the adjustments.
:::
::: {.column width="30%" style='display: flex; justify-content: center;'}
![](visuals/preview_histogram.png){fig-alt="Preview viewer with channels adjusted and histogram" width=250}
:::
::::
Note that changing the rendering settings of the OMERO viewer is not altering the base image data.
## Bulk saving rendering settings
17. We want to compare levels of these targets across all images in the Dataset. Click Save to All. ![](visuals/save_to_all.png){width=100}
18. Thumbnails will be updated with new rendering settings, allowing comparison across the Dataset. Thumbnails can be zoomed using the slider below.
19. In the left panel hierarchy, right-click on the siRNAi-HeLa Dataset and choose Rendering Settings... > Set Imported and Save to return to original settings.
![](visuals/revert_rendering.png){fig-alt="Steps to revert rendering to original imported settings" fig-align="center"}
## Ratings
20. Filter images by Name “VRAQ D3D” and select the first image “VRAQ_01.r3d_D3D.dv”.
21. In the General tab of the right-hand panel, expand the Ratings panel and click the stars to give this image a rating of 5.
22. Filter images by Name “IN 02 D3D”, select the first image “IN_02.r3d_D3D.dv” and add a rating of 5.
**Time for a break!**
## OMERO.iviewer
23. Now, clear the filtering by Name and instead, filter images by Rating of 5 to show only the 2 images we have just rated.
24. Select both images, right click on the selected images in the tree and choose Open with... > OMERO.iviewer. You can also find the Open with ![](visuals/open_with.png){width=50} option at the top of the right panel.
25. Click the Crosshairs icon ![](visuals/intensity_crosshairs.png){width=50} at the top-right of the viewer to enable the pixel intensity display for the mouse pointer. Then mouse over the Image to see the pixel intensities for the channels turned on.
![](visuals/intensity_mouseover.png){fig-alt="iviewer showing mouseover with pixel intensities" fig-align="center"}
26. Our goal with this image is to measure the distance between centromeres, stained with ACA in the 4th Channel. Turn on ONLY the 4th channel and open the ROIs tab to the right.
![](visuals/iviewer_steps.png){fig-alt="iviewer after following above instructions, with steps labelled" fig-align="center"}
## Drawing ROIs in OMERO.iviewer
27. Select the Line tool and draw a line between the centers of centromere pairs. In the ROIs table, click the 3 dots in the column header and choose to Show Area/Length. Click Save to Save ROIs.
![](visuals/roi_steps.png){fig-alt="iviewer on roi tab after following above instructions, with steps labelled" fig-align="center"}
28. You can also use Z-Projection (![](visuals/zproj.png){width=50} at the bottom left) which might help find outlying centromeres. Note that Z-Projection may not work for images with very large stacks!
29. Once done with drawing ROIs, click Save again. This is important to not lose your work and also to export intensities in the next few steps.
30. Click on the Select tool: ![](visuals/select.png){fig-alt="image of select tool like mouse arrow" width=50}
31. To export statistics, we first need to select all the ROIs using ctrl+drag (cmd+drag on a Mac) to select a region in the viewer (if ROIs are spread across multiple Z-sections, we can show them all at once using Z-projection). The selected ROIs will be highlighted blue on the image.
## Export ROI statistics
32. To export lengths and intensities of ONLY the 3rd channel (Aurora-B) turn on only this channel on the Settings tab of the right-hand panel.
33. Export the Intensities, areas and line lengths into Excel. Select in the top-left corner ROIs > Export as Table. This will export the values from the selected ROIs.
34. Open the downloaded table in Excel or similar tool to see the lengths and intensity measurements for the ROIs.
## OMERO.figure
35. Back in the webclient window, select both 5-rated (VRAQ_01.r3d_D3D.dv and IN_02.r3d_D3D.dv), right-click them (on the left-side file list) and select Open with... -> OMERO.figure.
36. Change the paper orientation to horizontal in File > Paper Setup.
## Making a grid in OMERO.figure
37. Drag the images to place one above the other, select both and click the Grid layout button ![](visuals/grid_button.png){width=50}. Resize to make the figure smaller. Copy both images and paste twice to make a grid with 2 rows with 3 columns.
38. Select both panels from each column in turn and toggle on a different channel for each column. Select all panels and try different Z indices and Z-projections.
![](visuals/figure_channel_grid.png){fig-alt="OMERO.figure with blue, green, and red columns of images" fig-align="center"}
## Add labels to figure
39. Select the 2 panels in the left column, click on the Labels tab in the right panel and under Add Labels choose [image-name] from the drop-down menu. Click on the position chooser and choose "Left Vertical" from the options. Click Add.
![](visuals/figure_add_labels.png){fig-alt="OMERO.figure with labels tab adding image.name label with position dropdown open" fig-align="center"}
## Exporting figures
40. Click Export PDF and then when complete, click the Download button. Open the downloaded pdf in any suitable program and find the second page of the pdf. Click on the link to the image and see that you are navigated back to OMERO in your browser and the appropriate image, which was used in the Figure, is highlighted.
## Viewing other users' figures
41. Save the figure and see that the URL updates to a new URL for this figure which can be shared with colleagues. File > Open can be used to open your own figures or those of colleagues.
42. Click File > Open, then click on the Owner button to select a figure of other users (your colleagues). Select and open other users’ figures and study them.
43. With another user’s figure open, select File > Save a Copy to save your own copy of your colleague’s figure. Note that you cannot directly save changes on their figure.
## Homework for Day 2: Make sure you can run Fiji
1. Start the Fiji app and use the OMERO plugin to browse data in OMERO i.e. *Plugins > OMERO > Connect To OMERO*
![](visuals/fiji_connect_omero.png){fig-alt="screenshot of fiji plugins dropdown selecting connect to omero" fig-align="center"}
2. In the OMERO login dialog, click the wrench icon and then add the server address (ctomerodev.jax.org – NOTE THIS IS A DIFFERENT ADDRESS!) in the dialog. Click Apply. Now, log in with the provided details (the same you have been using for the webpage).
![](visuals/fiji_login.png){fig-alt="Fiji OMERO plugin login with server picker selecting ctomerodev.jax.org" fig-align="center"}
3. Find and open any image (double-click the thumbnail) to make sure things work!
# Session 2: Analysis of OMERO images using Fiji
## Data management in OMERO
For this workshop, images have already been imported into OMERO. JAX uses a “dropbox” approach to importing images to OMERO; please contact us if your group wants to start using it and we will walk you through the process.
1. Login to the webclient at http://ctomeroweb01.jax.org/ with the Username and Password provided.
2. Search for mitomycin-A in the Search field at the top right of webclient. This should find 32 images. To search for key-value pairs, we can use the search string key:value. To narrow down the search, search again for mitomycin-A:10microM. This should narrow it down to 8 images. find the “C4.pattern.tif” image in the Dataset “chromatin-condensation”. Click on *Browse* to get back to this image in webclient.
3. Adjust channel names: Click on the pen icon ![](visuals/pen_icon.png){width=50} in the right-hand pane next to Channels. Input “Cy3” (instead of channel “0”) and “eGFP” (instead of channel “1”). Click Apply to all button and confirm by clicking *Continue*.
4. Open the “C4.pattern.tif” Image with OMERO.iviewer, use the Time-slider below the image to move through time and play the video.
## Connect Fiji to OMERO
5. Start the Fiji app and use the OMERO plugin to browse data in OMERO i.e. *Plugins > OMERO > Connect To OMERO*
![](visuals/fiji_connect_omero.png){fig-alt="screenshot of fiji plugins dropdown selecting connect to omero" fig-align="center"}
6. In the OMERO login dialog, click the wrench icon and then add the server address (ctomerodev.jax.org – NOTE THIS IS A DIFFERENT ADDRESS!) in the dialog. Click Apply.
![](visuals/fiji_login.png){fig-alt="Fiji OMERO plugin login with server picker selecting ctomerodev.jax.org" fig-align="center"}
7. Find and open the same image from above “C4.pattern.tif” from Dataset “chromatin-condensation” (double-click on the thumbnail).
## Threshold foreground
Before starting the image segmentation workflow, check that *Process > Binary > Options* has *Black background* checked.
![](visuals/fiji_binary_options.png){fig-alt="screenshot of binary options popup with black background checked" fig-align="center"}
8. Click on the panel with the image. Select *Image > Adjust > Threshold*
9. The Threshold dialog will pop up, click Apply.
10. Another window Convert Stack to Binary will pop up 11. Select the following parameters:
a. Method: Default, Background: Dark, Calculate threshold for each Image and Black background (of binary masks).
b. Click OK.
c. Close the Threshold dialog if you want
![](visuals/fiji_threshold.png){fig-alt="screenshot of fiji threshold dialogs that shows cells highlighted red" fig-align="center"}
## Identify cells
12. Select *Analyze > Analyze Particles*
13. In the Analyze Particles dialog, select the following parameters
a. with Size: 50-infinity
b. Show: Outlines
c. Check: Display results, Clear results, Summarize and Add to Manager.
![](visuals/fiji_analyze_particles.png){fig-alt="screenshot of fiji particles dialogues with options selected to match instructions above" fig-align="center"}
14. Click OK.
15. A dialog pops up asking to *Process all 46 images*? Click *Yes*
16. ROIs, Results table, and the mask timelapse with outlines will be generated
![](visuals/fiji_roi_resuts.png){fig-alt="collage of fiji results from running analyze particles, including outlines, ROI manager, results, etc" fig-align="center"}
17. Select the Results table and Menu *Results > Distribution > OK*
![](visuals/fiji_histogram.png){fig-alt="screenshot of distribution of roi areas" fig-align="center"}
## Save cell ROIs back to OMERO
18. In Fiji, select the original image (now also showing ROIs). You might need to do some digging through the sea of new windows you have. Then, select *Plugins > OMERO > Save ROIs to OMERO*.
![](visuals/fiji_omero_rois_dropdown.png){fig-alt="screenshot of fiji plugins dropdown selecting save rois to omero" fig-align="center"}
19. We want to Save ROI and Measurements, which will attach the results as a CSV attachment (to open for example in Excel) to the image in OMERO.
![](visuals/fiji_omero_rois_popup.png){fig-alt="screenshot of fiji window for saving rois and measurements to omero, selecting both rois and measurements" fig-align="center"}
20. Enter a File Name and click *Save* (Note: There is also a manual workflow which you could have used to attach the Excel sheets resulting from Workflow1 to OMERO.)
## Save result images back to OMERO
21. Select the image with outlines named “*Drawing of...*”. *Select File > Save As > Tiff...* and give it a meaningful name (outlines.tiff, for example).
22. Now we will save the created images back to OMERO. select Plugins > OMERO > Save Image(s) to OMERO.
23. You can now select in which project and dataset the new images are going to be imported into on the left-hand side. In this case, put them in your "Training Data" project and "chromatin-condensation" dataset.
24. When you are done selecting project and dataset, check Add Images from all image windows. Click *Add to Queue* then *Import*.
![](visuals/fiji_save_image_omero.png){fig-alt="screenshot of fiji import data window with boxes highlighting the project and dataset selectors, add images from all image windows, and add to queue" fig-align="center"}
23. Return to the webclient and check that the new images have been placed in the correct project and dataset (you might need to press the refresh button ![](visuals/refresh.png){width=50} on the top left). After that, open the original image in OMERO.iviewer and inspect the newly created ROIs. Notice that you have ROIs for *each channel* on all *timeplanes*.
24. We will not need Fiji any longer, so you can go ahead and close it if you want.
**Time for a break!**
## Display Fiji results in OMERO.figure
24. Select the original C4.pattern.tif image, the ROIs image and distribution plot. Click on *Open with... OMERO.figure*.
25. Copy and paste the original image using the Edit menu or keyboard shortcuts to duplicate it.
26. Adjust the rendering settings in this image in the right panel, to turn off the Green channel and enhance the Red.
27. Arrange these 2 images in a column with the ROIs image below, resizing as needed.
![](visuals/figure_rois_arranged.png){fig-alt="screenshot of omero.figure with full color, red, and roi outlines in a column" fig-align="center"}
28. Select the 3 panels and use the *Align Sizes > Width & Height* toolbar to ensure these panels are all the same size.
![](visuals/align_widthheight.png){fig-alt="screenshot of omero.figure align sizes dropdown" fig-align="center"}
29. Then click the Grid layout button ![](visuals/grid_button.png){width=50} in the same toolbar to snap the panels to a grid.
30. Copy the 3 panels and paste several times to create 3 new columns of 3 panels.
31. Select just the upper 2 image panels from each new column in turn and in the right panel, drag the T-slider to set the time to index, e.g. 5 (20 mins), then 6 (25 mins) then 9 (40 mins).
![](visuals/figure_time_grid.png){fig-alt="grid of images have different times per column, showing central cell splitting" fig-align="center"}
32. The ROIs image got imported from Fiji Z-stack combining channels and times, so we have to choose the frame using the Z-slider. There are 46 planes in the Z stack, from 2 channels x 23 time points. To pick time-frames in the red channel that correspond to the 4 images above, set the Z-index for the 4 ROI images to 1, 9, 11 and 17 respectively.
![](visuals/figure_outlines_z.png){fig-alt="outline images with z selected to match time" fig-align="center"}
33. Select all the 12 panels in the grid and use the Zoom slider to zoom in.
34. Pan the images by dragging in the right-hand panel Preview image.
![](visuals/figure_cell_zoom.png){fig-alt="all images zoomed into center cell" fig-align="center"}
35. Select just the first row of images, click on the Labels tab in the right-hand panel. Under *Add Labels* choose *Time (T-Index)* from the drop-down menu. Choose label color (white), position (top-left) and font-size (12) then click *Add*.
36. Click *Save* to save your figure.
37. To export your figure as PDF, click the Export PDF button at the top-right of the screen and wait for the PDF to be created on the server and the Download button to appear. Click to download the PDF and import to a PDF editor. You can post-process the PDF in Inkscape or Adobe Illustrator/Photoshop for example.
# Fill out the workshop feedback survey
[Feedback survey](https://forms.office.com/r/HcudssKGap)
Please let us know how you liked the pace and content of the workshop, so we can make it better in the future!