Chapter 3. The NovoDeblur command line interface

Index Previous Next


3.1 The NovoDeblur command prompt
3.2 Shared command-line conventions
3.3 The bfdeconv tool
3.4 The cfdeconv tool
3.5 The lsdeconv tool
3.6 The psfdeconv tool
3.7 The sfdeconv tool
3.8 The checkgpu tool
3.9 The histogram3d tool
3.10 The imageextractor tool
3.11 The PSFextractor tool

3.1 The NovoDeblur command prompt

The NovoDeblur Toolkit command prompt can be started from the Windows Start Menu shortcut. You can also run all tools from any shell (PowerShell, cmd, terminal) if the toolkit folder is in your system PATH.

Current command-line tools in the Python toolkit:

To show help for any tool, run:

toolname -h

For long command lines, every tool supports argument files using the @file.txt syntax (one argument per line).

3.2 Shared command-line conventions

All deconvolution tools (bfdeconv, cfdeconv, lsdeconv, psfdeconv, sfdeconv) use named flags (for example --source, --dxy, --iter) instead of positional parameters.

Common source syntax: --source accepts either a TIFF folder or an OME-TIFF file. For OME-TIFF you can append @S@C@T (1-based), for example:
--source sample.ome.tif@1@2@1

Common deconvolution flags (defaults and validated ranges):

Objective model (--objpar) range hints: mode in {0,1}, M in [0.1,150], NA in [0.01,1.4], ng/ni in [1,2], tg in [0,1000] µm, wd in [0,50000] µm.

3.3 The bfdeconv tool

Performs iterative deconvolution of brightfield microscopy stacks using a computed PSF.

Usage:

bfdeconv --source <path> --dest <path|*> --blocks <auto|nxmxk> --dxy <um> --dz <um> --objpar <string> --focaldepth <um> --em <um> --rf <index> [common flags]

Tool-specific flags:

3.4 The cfdeconv tool

Performs iterative deconvolution of confocal microscopy stacks using a computed PSF.

Usage:

cfdeconv --source <path> --dest <path|*> --blocks <auto|nxmxk> --dxy <um> --dz <um> --objpar <string> --focaldepth <um> --ex <um> --em <um> --rf <index> --pinhole <AU> [common flags]

Tool-specific flags:

3.5 The lsdeconv tool

Performs iterative deconvolution of light-sheet microscopy stacks using a computed PSF.

Usage:

lsdeconv --source <path> --dest <path|*> --blocks <auto|nxmxk> --dxy <um> --dz <um> --objpar <string> --ex <um> --em <um> --rf <index> --NA_illumination <value> [common flags]

Tool-specific flags:

3.6 The psfdeconv tool

Performs iterative deconvolution using a measured PSF stack.

Usage:

psfdeconv --source <path> --dest <path|*> --blocks <auto|nxmxk> --dxy <um> --dz <um> --psfpath <folder> --dxy_psf <um> --dz_psf <um> [common flags]

Tool-specific flags:

The PSF stack must have odd dimensions and square XY planes. If PSF voxel size differs from source voxel size, the PSF is automatically resampled.

3.7 The sfdeconv tool

Performs iterative deconvolution of spinning-disk confocal stacks using a computed PSF.

Usage:

sfdeconv --source <path> --dest <path|*> --blocks <auto|nxmxk> --dxy <um> --dz <um> --objpar <string> --focaldepth <um> --ex <um> --em <um> --rf <index> --pinhole <AU> [common flags]

Tool-specific flags:

3.8 The checkgpu tool

Checks whether the selected NVIDIA GPU can be used by NovoDeblur.

Usage:

checkgpu [--GPUno <index>]

Notes:

3.9 The histogram3d tool

Calculates a 3D intensity histogram from TIFF-folder or OME-TIFF input.

Usage:

histogram3d --source <path> --bins <value> --roi <none|x1-y1-z1-x2-y2-z2> [--outfile <path>]

Arguments:

3.10 The imageextractor tool

Extracts slices from OME-TIFF data and can also print OME metadata.

Usage:

imageextractor --info --source <ome.tif> [--out <txt>]
imageextractor --extract --source <ome.tif> --S <scene> --C <channel> --T <timepoint> --dest <folder> [--format uint8|uint16|float32]

Arguments:

3.11 The PSFextractor tool

Extracts an empirical PSF from fluorescent bead image stacks.

Usage (confocal):

PSFextractor --source <path> --dest <folder_or_ome.tif> --dxy <um> --dz <um> --microscope confocal --diameter <um> --NA <value> --rf <value> [--options p1-p2-p3-p4-p5-p6-p7-p8-p9]

Usage (lightsheet):

PSFextractor --source <path> --dest <folder_or_ome.tif> --dxy <um> --dz <um> --microscope lightsheet --diameter <um> --NA <value> --rf <value> --NA_illumination <value> [--options p1-p2-p3-p4-p5-p6-p7-p8-p9]

Important arguments:

Advanced option defaults: 0.13-0-21-41-1-1-0.5-0-1.5.

Advanced option ranges: p1 [0.01,0.99], p2 0 (auto) or [0.01,0.99], p3/p4 odd integers in [21,91], p5 [0.1,10], p6 [0.1,5], p7 [0,5], p8 in {0,1}, p9 [1,3].

Advanced parameters description (--options p1-p2-p3-p4-p5-p6-p7-p8-p9):


Index Previous Next