generated from ome/guide-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from pwalczysko/fix-flows
Fix flows
- Loading branch information
Showing
7 changed files
with
163 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ Contents: | |
:maxdepth: 1 | ||
|
||
import | ||
render |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Change image rendering settings and channel names using the Command Line Interface (CLI) | ||
======================================================================================== | ||
|
||
Description: | ||
------------ | ||
|
||
This chapter will show how to change rendering settings on images using the Command Line Interface (CLI). | ||
|
||
This action is typically done after a successful import of images. | ||
|
||
We will show: | ||
|
||
- How to change rendering settings of large amount of images on the CLI in a repeatable manner. | ||
|
||
**Resources:** | ||
-------------- | ||
|
||
- Documentation: | ||
|
||
- https://docs.openmicroscopy.org/latest/omero/users/cli/installation.html | ||
|
||
- `https://docs.openmicroscopy.org/omero/latest/users/cli/index.html <https://docs.openmicroscopy.org/omero/latest/users/cli/index.html>`__ | ||
|
||
- Data: example images from | ||
|
||
- IDR data http://idr.openmicroscopy.org/webclient/?show=project-51 | ||
|
||
- Rendering plugin for OMERO | ||
|
||
- https://pypi.org/project/omero-cli-render/ | ||
|
||
- Rendering yml files defining the various rendering parameters, such as the channel color, channel name and minimum and maximum values. | ||
|
||
- https://github.com/ome/training-scripts/blob/master/maintenance/preparation/renderingdef.yml | ||
- https://github.com/ome/training-scripts/blob/master/maintenance/preparation/renderingdef2.yml | ||
|
||
- Rendering mapping file has two columns, in the left-hand one there are the images to be rendered and in the right-hand side column points to the appropriate renderingdef.yml for that image. | ||
|
||
- https://github.com/ome/training-scripts/blob/master/maintenance/preparation/renderingMapping.tsv | ||
|
||
- Shellscript for batch modification of rendering settings of images | ||
|
||
- https://github.com/ome/training-scripts/blob/master/maintenance/scripts/apply_rnd_settings_as.sh | ||
|
||
Setup: | ||
------ | ||
|
||
**Rendering plugin installation** | ||
|
||
- Go to the environment where you installed your OMERO.cli as specified under - https://docs.openmicroscopy.org/latest/omero/users/cli/installation.html. | ||
|
||
- Activate the virtual environment. | ||
|
||
- Run:: | ||
$ pip install omero-cli-render | ||
|
||
**Step-by-step:** | ||
----------------- | ||
|
||
#. On your local machine, open a terminal | ||
|
||
#. Activate the virtual environment where ``omero-py`` is installed or add it to ``PATH`` e.g.:: | ||
$ export PATH=/opt/omero/server/venv3/bin:$PATH | ||
|
||
#. The variable ``$ID`` below is the ID of the selected Dataset. To change the rendering of images in one Dataset, run:: | ||
$ omero render set Dataset:$ID local_path/to/renderingdef.yml | ||
|
||
#. Verify the change in the browser. | ||
|
||
#. To change the rendering of images in two Datasets, run:: | ||
|
||
$ omero render set Dataset:$ID1 Dataset:$ID2 renderingdef2.yml | ||
|
||
#. Modify the rendering settings in batch using a shellscript such as `apply_rnd_settings_as.sh <https://github.com/ome/training-scripts/blob/master/maintenance/scripts/apply_rnd_settings_as.sh>`_ which uses HQL to find the Images IDs in OMERO and deliver them to the omero-cli-render plugin. The script reads the Datasets in which the Images are located in OMERO are listed from a renderingMapping.tsv file, such as `renderingMapping.tsv <https://github.com/ome/training-scripts/blob/master/maintenance/preparation/renderingMapping.tsv>`_. Go to the folder where the script is located. Then run the bash script with the default parameters:: | ||
|
||
$ sh apply_rnd_settings.sh | ||
|
||
The script could be run by a facility manager on behalf of other users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
continue: "true" | ||
transfer: "ln_s" | ||
# exclude: "clientpath" | ||
checksum_algorithm: "File-Size-64" | ||
logprefix: "logs/" | ||
output: "yaml" | ||
path: "import-paths.csv" | ||
columns: | ||
- target | ||
- path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Dataset:name:Experiment1-HeLa,/OMERO/in-place-import/siRNAi-HeLa | ||
Dataset:name:Experiment2-condensation,/OMERO/in-place-import/condensation |