Introduction
Installing Fiji
# Commands for Bash
# Downloading the latest copy of Fiji for 64-bit Linux
wget https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
# Unzipping archive
unzip fiji-linux64.zip
# Removing downloaded zip archive
rm fiji-linux64.zip
# Moving into extracted directory
cd Fiji.app/
# Commands for Windows PowerShell
# Downloading the latest copy of Fiji for 64-bit Windows
Invoke-WebRequest https://downloads.imagej.net/fiji/latest/fiji-win64.zip
# Unzipping archive
Expand-Archive .\fiji-win64.zip
# Removing downloaded zip archive
Remove-Item .\fiji-win64.zip
# Moving into extracted directory
cd .\fiji-win64\Fiji.app
Installing MIA
# Commands for Bash
# Marking MIA and IJPB-plugins for installation
./ImageJ-linux64 --headless --update add-update-site MIA https://sites.imagej.net/ModularImageAnalysis/
./ImageJ-linux64 --headless --update add-update-site IJPB-plugins https://sites.imagej.net/IJPB-plugins
# Performing update
./ImageJ-linux64 --headless --update update
# Commands for Windows PowerShell
# Marking MIA and IJPB-plugins for installation
.\ImageJ-win64 --headless --console --update add-update-site MIA https://sites.imagej.net/ModularImageAnalysis/
.\ImageJ-win64 --headless --console --update add-update-site IJPB-plugins https://sites.imagej.net/IJPB-plugins
# Performing update
.\ImageJ-win64 --headless --console --update update
Running a workflow
# Commands for Bash
# (Optional) Download example workflow to user folder
wget https://github.com/mianalysis/mia-examples/releases/download/v1.0.0/Ex1_only.zip -O ~/example.zip
unzip ~/example.zip -d ~/
rm ~/example.zip
# Defining workflow path as a variable
wfPath=~/Ex1_only/Ex1_NucleiSegmentation.mia
# Running a workflow on a specified single file
inPath=~/Ex1_only/Ex1_3DStack1.tif
./ImageJ-linux64 --headless --run "MIA (headless)" "workflowPath='$wfPath', inputPath='$inPath'"
# Running a workflow on a specified folder with verbose output
inPath=~/Ex1_only/
./ImageJ-linux64 --headless --run "MIA (headless)" "workflowPath='$wfPath', inputPath='$inPath', verbose=true"
# Commands for Windows PowerShell
# (Optional) Download example workflow to user folder
Invoke-WebRequest https://github.com/mianalysis/mia-examples/releases/download/v1.0.0/Ex1_only.zip -OutFile $HOME/example.zip
Expand-Archive $HOME\example.zip -DestinationPath ~\
rm $HOME\example.zip
# Defining workflow path as a variable
$wfPath="'$HOME\Ex1_only\Ex1_NucleiSegmentation.mia'"
# Running a workflow on a specified single file
$inPath="'$HOME\Ex1_only\Ex1_3DStack1.tif'"
.\ImageJ-win64 --console --headless --run "MIA (headless)" "workflowPath=$wfPath, inputPath=$inPath"
# Running a workflow on a specified folder with verbose output
$inPath="'$HOME\Ex1_only\'"
.\ImageJ-win64 --console --headless --run "MIA (headless)" "workflowPath=$wfPath, inputPath=$inPath, verbose=true"
Required arguments
| Argument | Description |
| workflowPath | Path to .mia workflow file. This can either be relative to the current directory or an absolute system path. |
Optional arguments
| Argument | Description |
| inputPath | If set, this will override the "Input path" file/folder set in the specified workflow. When left blank,
the "Input path" of the workflow file will be used.
Default value = [Blank] |
| variables | Global variables (i.e. those specified as name-value pairs in a "Global Variables" module) can be
overridden using the form "name1:value1; name2:value2; etc.".
Default value = [Blank] |
| showDebug | Display any debug messages encountered during workflow execution to the terminal. Debug messages are
displayed in blue.
Default value = false |
| showMemory | Following execution of each module the current memory usage and elapsed time are displayed in the
terminal. Memory messages are displayed in green.
Default value = false |
| showMessage | Display any general messages encountered during workflow execution to the terminal. Debug messages are
displayed in white. Default value = true |
| showStatus | Display module status updates in the terminal. Status messages are displayed in blue.
Default value = true |
| showWarning | Display any warning messages encountered during workflow execution to the terminal. Warning messages are
displayed in orange.
Default value = true |
| verbose | If processing multiple files/series (i.e. "batch mode"), verbose mode will display the current module
status, rather than the number of jobs completed.
Default value = false |
Navigation