Skip to content

Process Drosophila_3D+t stack in parallel using Azure Batch Python API #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wolny
Copy link

@wolny wolny commented Aug 28, 2018

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

  • python 3.6
  • pip3

Run the app

  • Install virtualenv pip3 install virtualenv
  • Go into the python dir and create virtual env for the app cd python && python3 -m virtualenv env
  • Install required packages: pip install -r requirements.txt
  • Update the Batch and storage account credentials inside the ilasik_azure_batch_client.py
  • Run the script: python ilasik_azure_batch_client.py
  • Wait for the script to finish and check that the output segmentation files have been successfully downloaded into your current directory (the files should be named drosophila_00-49_{t}_seg.tiff, where t corresponds to a given time point in the stack).

Sample segmentation output

Output of the ilastik segmentation task for a sample time point:
drosophila_00-49_25_segmentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant