Process Drosophila_3D+t stack in parallel using Azure Batch Python API #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resubmitting the PR made under lmiroslaw/azure-batch-ilastik#3 as suggested by @lmiroslaw lmiroslaw/azure-batch-ilastik#3 (comment)
This PR shows how to processes the 5D tensor containing the stack of Drosophila embryo in parallel using ilasitk running on Azure Batch via Python API. The app uploads the stack into a single storage container and then segments the nuclei via a parallel workload running 50 ilastik processes (there are 50 time points in the stack, it's one segmentation task per time point) in a headless mode (see http://ilastik.org/documentation/basics/headless from more information). The output of each segmentation task (one tiff file per time point containing segmented 3D stack) is uploaded to a single storage container and then downloaded into the current working dir.
Prerequisites
Run the app
pip3 install virtualenv
python
dir and create virtual env for the appcd python && python3 -m virtualenv env
pip install -r requirements.txt
ilasik_azure_batch_client.py
python ilasik_azure_batch_client.py
drosophila_00-49_{t}_seg.tiff
, wheret
corresponds to a given time point in the stack).Sample segmentation output
Output of the ilastik segmentation task for a sample time point:
