Name: OMERO.webexporter
Owner: sorgerlab
Description: null
Created: 2015-11-13 21:59:38.0
Updated: 2015-12-07 22:09:26.0
Pushed: 2015-12-07 22:17:02.0
Homepage: null
Size: 26
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
To download all the files for an object from OMERO, the OMERO.webexporter extension must have been added to the target servers OMERO.web installation.
python webexporter_helper.py https://example.com plate 123 output_dir
This will cause all files for the plate
object 123
to be downloaded into the output_dir
.
These caveats are not currently issues for the intended purpose of OMERO.webexporter within the HMS LINCS Project, so have not been addressed, but may be resolved at a later date if required.
It is possible to make use of the web API directory instead of using the helper script. There are 2 functions offered.
https://example.com/webexporter/get_files_for_obj/<object_type>/<object_id>
Exampled returned JSON:
ash": "21930034ec08d04c8ec50d2175d134be3badb0bf",
d": "871",
ame": "example_file.dv",
ize": "98765"
ash": "e75f4b85ec277f38f617b73c74b6c576854d6099",
d": "872",
ame": "example_file.txt",
ize": "24"
https://example.com/webexporter/download_file/<file_id>
Returns an individual file.
Clone this repository into a directory called webexporter
. This directory should be on the PYTHONPATH
, or in the OMERO lib/python/omeroweb/
directory.
$ git clone https://github.com/sorgerlab/OMERO.webexporter.git webexporter
Add the app to OMERO.web :
$ bin/omero config append omero.web.apps '"webexporter"'
# NB: double quotes
Or on Windows
$ bin/omero config append omero.web.apps "\"webexporter\""
# Windows requires escaped double quotes
Restart web:
n/omero web stop
n/omero web start