waveorder uses a configuration-file-based command-line interface (CLI) to perform all reconstructions.
waveorder is compatible with OME-Zarr, a chunked next generation file format with an open specification. All acquisitions completed with the waveorder plugin will be automatically converted to .zarr format, and existing data can be converted using iohub's convert utility.
Inside a waveorder environment, convert a Micro-Manager TIFF sequence, OME-TIFF, or pycromanager NDTiff dataset with
iohub convert `
-i ./dataset/ `
-o ./dataset.zarr
waveorder's CLI is summarized in the following figure:

The main command waveorder command is composed of two subcommands: compute-tf and apply-inv-tf.
A reconstruction can be performed with a single reconstruct call. For example:
waveorder reconstruct `
-i ./data.zarr/*/*/* `
-c ./config.yml `
-o ./reconstruction.zarr
Equivalently, a reconstruction can be performed with a compute-tf call followed by an apply-inv-tf call. For example:
waveorder compute-tf `
-i ./data.zarr/0/0/0 `
-c ./config.yml `
-o ./tf.zarr
waveorder apply-inv-tf
-i ./data.zarr/*/*/* `
-t ./tf.zarr `
-c ./config.yml `
-o ./reconstruction.zarr
Computing the transfer function is typically the most expensive part of the reconstruction, so saving a transfer function then applying it to many datasets can save time.
waveorder tile-stitch reconstructs a position in overlapping tiles and blends them back into one volume, so each tile's transfer function is the size of a tile rather than the whole field. Its config has tile and blend sections, and the usual reconstruction settings go under recon. tile_stitch_phase_3d.sh simulates a phase dataset and reconstructs it with configs/tile-stitch_phase_3d.yml.
A 3D reconstruction has to list z in tile.tile_size, because the transfer function takes its shape from tile_size. Set it to the full depth to tile only in Y and X. tile-stitch reconstructs one timepoint per run, and --device overrides recon.device. To spread tiles across workers, see biahub.
The input -i flag always accepts a list of inputs, either explicitly e.g. -i ./data.zarr/A/1/0 ./data.zarr/A/2/0 or through wildcards -i ./data.zarr/*/*/*. The positions in a high-content screening .zarr store are organized into /row/col/fov folders, so ./input.zarr/*/*/* creates a list of all positions in a dataset.
The waveorder compute-tf command accepts a list of inputs, but it only computes the transfer function for the first position in the list. The apply-inv-tf command accepts a list of inputs and applies the same transfer function to all of the inputs, which requires that all positions contain arrays with matching TCZYX shapes.
Transfer functions are stored as float32 by default. Set transfer_function_dtype: float16 to store them as float16, which halves the bytes before compression. Complex arrays are stored as interleaved (real, imaginary) pairs along X, and apply-inv-tf and waveorder view convert them back to complex64 when they load them, so the reconstruction itself still runs in single precision. compute-tf stops with an error if a value exceeds float16's maximum of 65504.
See /waveorder/examples/ for a list of example configuration files.
WIP: This documentation will be expanded for each reconstruction type and parameter.