A Globus flow and associated watchdog trigger script for processing an image.
As illustrated in the picture below, the flow comprises the following actions:
- Transfers the raw image from the instrument to a collection that's accessible from the Globus Compute endpoint.
- Performs a simple analysis of the raw image by invoking a Globus Compute function.
- Transfers the raw image and the results of the analysis to a guest collection.
- Grants read-only access to the data to a Globus group.
- Ingests metadata into a Globus Search index.
- Ingests protected metadata (visible only to the sharee group members) into the Globus Search index.
- Deletes the temporary (scratch) files from the collection used for computation.
- Deletes the raw image from the collection on the instrument.
The flow is triggered by the creation of a file with the specified name/pattern in the directory that the trigger script is watching. For example, to run the flow when a JPG image file is created in the /Microscope directory, run:
python .\trigger.py --watchdir /Microscope --patterns .jpg
To run the flow you must edit the trigger script and provide/confirm the values for inputs flagged with a # TODO comment.
