Parameter Reference¶
Here we provide parameter options for each workflow in MIAAIM. Commands are added in the
Note
For up-to-date references of parameters for each workflow, visit the Workflow GitHub Repositories
Nextflow¶
Parameters passed are passed directly using the indicated flags below. See here for a full description of flags that can be passed to Nextflow. We have listed those below that are necessary for MIAAIM to run or are commonly used in our own usage.
Flag |
Description |
Options |
---|---|---|
|
generate provenance report |
|
|
resume workflow with cached results |
|
|
use indicated configuration profile |
standard small medium big multi hyper LSFsmall LSFbig_multi |
|
start workflow at indicated position |
input hdiprep hdireg |
|
start workflow at indicated position |
hdiprep hdireg |
|
fixed image for registration |
*.ome.tiff *.ome.tif *.tiff *.hdf5 *.h5 *.nii *.imzml |
|
moving image for registration |
*.ome.tiff *.ome.tif *.tiff *.hdf5 *.h5 *.nii *.imzml |
|
fixed image preprocessing yaml file |
*.yaml |
|
moving image preprocessing yaml file |
*.yaml |
|
elastix registration parameters |
*.txt |
|
apply transformation matrix |
|
|
transformix parameters |
*.txt |
Note
When supplying file names as parameters, do not
indicate the file’s full path – only include the file name. For example,
do not enter --fixed-image path/to/image.ome.tiff
. Instead, enter
--fixed-image image.ome.tiff
.
Warning
If your input file is in the .imzml
format, be sure to include the
associated .ibd
file in the same directory that the image is stored.
Note
You can start a workflow at an intermediate step, such as hdireg
,
as long as you have the appropriate intermediate files present. hdiprep
produces files with the suffix _processed
.
Warning
Nextflow does not currently see contents of parameters supplied to the
registration workflow. This means that resuming your analysis after changing
elastix parameter files will produce cached results. To fix this, change the file
name, or start the workflow at the hdireg
step without using the
resume
flag.
HDIprep¶
Here we list the optional input parameters that can be supplied to the HDIprep workflow through the YAML parameter file. These parameters are passed to both the fixed and moving images with separate YAML files.
YAML Step / Flag |
Description |
Options |
---|---|---|
Step : |
options for reading image data |
|
|
flatten pixels for dimension reduction |
Options:
True if compressing imagesFalse if histology processing |
|
subsample image for compression |
Options:
True if subsampling pixelsFalse if no subsampling |
|
subsampling method |
Options:
'grid' for uniform grid sampling'random' for random coordinate sampling'pseudo_random' for random samplinginitalized by uniform grids
|
|
x and y grid spacing for sampling |
Options:
Example :
(5,5) |
|
|
Options:
Ex. :
0.15 |
|
TIFF mask to compress image portion |
Options:
Ex. :
'moving-mask.tiff' |
|
reduce memory footprint |
Options:
True for large image compressionFalse if interactive Python code |
Step : |
steps to process images |
|
|
steady-state compression |
Options:
n_neighbors nearest neighbors (Ex. 15 )landmarks spectral centroids (Ex. 3000 )metric UMAP metric (Ex. euclidean )random_state seed (Ex. 1 )dim_range range of dimensionalities (Ex. (1,10) )**kwargs kwargs passed to UMAP |
|
UMAP compression |
|
|
neural network steady state UMAP |
Options:
n_neighbors nearest neighbors (Ex. 15 )landmarks spectral centroids (Ex. 3000 )metric UMAP metric (Ex. euclidean )random_state seed (Ex. 1 )dim_range range of dimensionalities (Ex. (1,10) )**kwargs kwargs passed to UMAP |
|
neural network UMAP compression |
|
|
reconstruct compressed image |
|
|
apply manual mask |
Options:
mask accessed from
ImportOptions |
|
median filter (remove salt and pepper noise) |
Options:
filter_size filter disk size (Ex. 15 )parallel use parallel processing (True or False ) |
|
create mask by thresholding |
Options:
type threshold type ('manual' or 'otsu' )thresh_value manual threshold value (Ex. 1.0 )correction multiply threshold for stringent results (Ex. 1.2 ) |
|
morphological closing on mask |
Options:
disk_size filter disk size (Ex. 15 )parallel use parallel processing (True or False ) |
|
resume workflow with cached results |
Options:
disk_size filter disk size (Ex. 15 )parallel use parallel processing (True or False ) |
|
Fill holes in mask |
|
|
apply mask to image for final processing step |
|
|
extract image bounding box (for controlled padding) |
|
Step : |
export in the NIfTI format |
Options:
padding pad to add to images image (Ex. (50,50) )target_size resize image before padding (Ex. (1000,1050) ) |
HDIreg¶
Flag |
Description |
Options |
---|---|---|
|
parameter file(s) for registration |
|
|
moving image landmark points |
|
|
fixed image landmark points |
|
|
fixed image mask |
|
Tip
You can chain together multiple elastix parameter files by
supplying multiple inputs. For example, an affine registration followed
by a nonlinear one can be implemented as --p affine.txt nonlinear.txt
where
affine.txt
and nonlinear.txt
are your parameter files.
Flag |
Description |
Options |
---|---|---|
|
transformation parameter file(s) |
|
|
resize image before padding |
(Ex. |
|
pad to add to images image |
(Ex. |
|
number of pixels to trim off edges |
(Ex. |
|
aligned image final file format |
.ome.tiff .ome.tif .tiff .hdf5 .h5 .nii |
Tip
If you use multiple registration parameter files in elastix, then you
should add both sets of transformation parameters to the transformix command
to receive final results. From the above example, two transformation parameter
files would be exported – TransformationParameters.0.txt
for the
affine registration and TransformationParameters.1.txt
for nonlinear.
Your transformix call should be --tps TransformationParameters.0.txt TransformationParameters.1.txt