Skip to content

Conversion

Click any command card below to expand its full parameter reference.

Info

Note that all cards below are auto-generated from EuBIBridge methods and Pydantic config models. Types, defaults, and valid ranges are extracted directly from the source.

Tip: Named-config chaining

Prefix any command with with_config NAME to use a saved config profile:

eubi with_config hpc to_zarr /data/input /data/output --ome_zarr_version 0.5

to_zarr — Convert image data to OME-Zarr format

Usage:

eubi to_zarr INPUT_PATH [OPTIONS]
eubi with_config NAME to_zarr INPUT_PATH [OPTIONS]

An option eubi-bridge does not know raises ValueError (a misspelled one would otherwise be ignored, and the run give a wrong result with exit code 0).

Required arguments

--input_path

Type:  str or Path

Default:  required

File path, directory, or table (.csv/.tsv/.xlsx) of paths.

eubi to_zarr /data/input /data/output

CLI-only options

--output_path

Type:  str or Path or None

Default:  —

Destination directory. Required unless input_path is a table that already contains an output_path column.

eubi to_zarr /data/input /data/output

--includes

Type:  str or None

Default:  —

Comma-separated filename patterns to include (glob-style).

# Include only files whose name contains "EMPIAR"
eubi to_zarr /data/input /data/output --includes "EMPIAR"
# Multiple patterns — comma-separated, no spaces around commas
eubi to_zarr /data/input /data/output --includes "EMPIAR,scan_001,confocal"

--excludes

Type:  str or None

Default:  —

Comma-separated filename patterns to exclude (glob-style).

# Exclude all files in a subdirectory named 'backup'
eubi to_zarr /data/input /data/output --excludes "backup"
# Exclude multiple patterns at once
eubi to_zarr /data/input /data/output --excludes "backup,temp,preview"

--plan

Type:  AggregativePlan or None

Default:  —

Pre-computed AggregativePlan from validate_aggregative().

# Step 1 — validate without converting to inspect the plan
eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask
# Step 2 — a plan is a Python object: pass it in Python, with the settings it was made with

(the command line cannot take one; it plans the run itself)

plan = EuBIBridge().validate_aggregative(inp, out, concatenation_axes='c', channel_tag='raw,mask')

EuBIBridge().to_zarr(inp, out, concatenation_axes='c', channel_tag='raw,mask', plan=plan)

--log_file

Type:  bool or str

Default:  True

Where this run's log is also written, line by line, so it survives a crash: True (default) a new file in the logs folder of the config folder (the newest 20 are kept), a path, or False for none. The run's first line names the file.

eubi to_zarr /data/input /data/output --log_file /data/logs/run1.log

--keep_folder_structure

Type:  boolean flag

Default:  False

Valid values:  --keep_folder_structure to enable  ·  --keep_folder_structure False to disable

Mirror the folders given as inputs (default False): each output goes to <output_path>/<folder name>/<the folders below it>, where its file was, instead of all into output_path. Files given one by one still go into output_path. A plate's output goes beside its folder; a joined output into the deepest folder its files share. The GUI sets it for checked folders.

Cluster overrides

--on_slurm

Type:  boolean flag

Default:  False

Valid values:  --on_slurm to enable  ·  --on_slurm False to disable

Submit jobs to a SLURM cluster (the full eubi-bridge only).

# Submit all file workers to SLURM
eubi to_zarr /data/input /data/output --on_slurm --slurm_account myaccount --slurm_partition gpu

--use_threading

Type:  boolean flag

Default:  False

Valid values:  --use_threading to enable  ·  --use_threading False to disable

Use a ThreadPool instead of a ProcessPool.

eubi to_zarr /data/input /data/output --use_threading

--max_processes

Type:  int

Default:  4

Valid values:  ≥ 1, ≤ 256

Override the configured max_processes (images converted at once) for this run. Formerly max_workers, which still works.

eubi to_zarr /data/input /data/output --max_processes 8

--region_size_mb

Type:  float or str

Default:  auto

Size of one read region in MB, or auto (default): each scene's write budget over 3 x its threads, 8 to 256 MB.

eubi to_zarr /data/input /data/output --region_size_mb 512

--max_threads

Type:  int or auto

Default:  auto

Threads per conversion, each reading and writing one region at a time; scenes converted at once share them (formerly max_concurrency).

eubi to_zarr /data/input /data/output --max_threads 8

--max_concurrent_scenes

Type:  int

Default:  1

Valid values:  ≥ 1

Parallel scenes per file (default 1); they share max_threads.

eubi to_zarr /data/input /data/output --max_concurrent_scenes 2

--memory_budget

Type:  str

Default:  auto

The memory eubi may use on this machine, e.g. 16GB, or auto (default): half the memory free when it starts (inside a SLURM job or a container: what its memory limit leaves). Shared out between the conversions running at once, and in each between reading and the scenes converted at once. Runs started side by side (several batches, the GUI and the command line) share one budget, the smallest of theirs; a run with auto that starts beside others takes the budget they share.

eubi to_zarr /data/input /data/output --memory_budget 16GB

--decode_memory

Type:  str

Default:  auto

micro-reader's decoding memory per process, e.g. 1GB, or auto (default): what the file's compressed blocks need.

--slurm_worker_memory

Type:  str

Default:  3GB

Each SLURM worker's memory (the SLURM job's), shared by its conversions (formerly memory_per_worker).

--max_retries

Type:  int

Default:  10

Valid values:  ≥ 0, ≤ 100

Override the configured max_retries.

eubi to_zarr /data/input /data/output --max_retries 3

--bioformats_threads

Type:  int or None

Default:  4

Valid values:  ≥ 1

Threads for parallel Bio-Formats tile reads (formerly bf_read_concurrency).

--decode_threads

Type:  int or auto

Default:  auto

micro-reader's decode threads per worker process (formerly micro_read_concurrency).

--jvm_memory

Type:  str or None

Default:  1g

Maximum JVM heap for Bio-Formats, e.g. 8GB or 4GB (default 1g).

--slurm_time

Type:  str

Default:  24:00:00

SLURM wall-clock limit, e.g. '24:00:00'.

eubi to_zarr /data/input /data/output --on_slurm --slurm_time 48:00:00

--slurm_account

Type:  str or None

Default:  —

SLURM account name.

eubi to_zarr /data/input /data/output --on_slurm --slurm_account myaccount

--slurm_partition

Type:  str or None

Default:  —

SLURM partition / queue.

eubi to_zarr /data/input /data/output --on_slurm --slurm_partition gpu

--slurm_worker_timeout

Type:  int

Default:  300

Valid values:  > 0

Seconds to wait for SLURM workers to start.

eubi to_zarr /data/input /data/output --on_slurm --slurm_worker_timeout 600

--slurm_sif_path

Type:  str or None

Default:  —

Path to an Apptainer/Singularity .sif image to run SLURM workers inside (optional).

eubi to_zarr /data/input /data/output --on_slurm --slurm_sif_path /apps/eubi.sif

Conversion overrides

--verbose

Type:  boolean flag

Default:  False

Valid values:  --verbose to enable  ·  --verbose False to disable

Log verbose per-chunk progress output.

eubi to_zarr /data/input /data/output --verbose

--ome_zarr_version

Type:  str or None

Default:  —

OME-Zarr (NGFF) version to write: 0.4 (backed by Zarr v2) or 0.5 (backed by Zarr v3, which enables sharding). This is the preferred control and supersedes zarr_format — the underlying zarr container format is derived from it.

# Write OME-Zarr 0.4 (Zarr v2, the default)
eubi to_zarr /data/input /data/output --ome_zarr_version 0.4
# Write OME-Zarr 0.5 (Zarr v3 — required for sharding)
eubi to_zarr /data/input /data/output --ome_zarr_version 0.5

--zarr_format

Type:  2 or 3

Default:  2

Deprecated — use ome_zarr_version instead. Zarr container version: 2 = OME-Zarr 0.4 (classic chunk-based); 3 = OME-Zarr 0.5 (sharding support).

eubi to_zarr /data/input /data/output --zarr_format 3

--auto_chunk

Type:  boolean flag

Default:  True

Valid values:  --auto_chunk to enable  ·  --auto_chunk False to disable

Auto-compute chunk shape to approximate target_chunk_mb. When False, the manual *_chunk values below are used.

eubi to_zarr /data/input /data/output --auto_chunk False --z_chunk 64 --y_chunk 256 --x_chunk 256

--target_chunk_mb

Type:  float

Default:  1

Valid values:  > 0.0

Target uncompressed chunk size in MB when auto_chunk=True.

eubi to_zarr /data/input /data/output --target_chunk_mb 4.0

--time_chunk

Type:  int

Default:  1

Valid values:  ≥ 1

Chunk size along the time axis. Applies only when auto_chunk=False.

eubi to_zarr /data/input /data/output --auto_chunk False --time_chunk 1

--channel_chunk

Type:  int

Default:  1

Valid values:  ≥ 1

Chunk size along the channel axis. Applies only when auto_chunk=False.

eubi to_zarr /data/input /data/output --auto_chunk False --channel_chunk 1

--z_chunk

Type:  int

Default:  96

Valid values:  ≥ 1

Chunk size along the z axis. Applies only when auto_chunk=False.

eubi to_zarr /data/input /data/output --auto_chunk False --z_chunk 64

--y_chunk

Type:  int

Default:  96

Valid values:  ≥ 1

Chunk size along the y axis. Applies only when auto_chunk=False.

eubi to_zarr /data/input /data/output --auto_chunk False --y_chunk 256

--x_chunk

Type:  int

Default:  96

Valid values:  ≥ 1

Chunk size along the x axis. Applies only when auto_chunk=False.

eubi to_zarr /data/input /data/output --auto_chunk False --x_chunk 256

--time_shard_coef

Type:  int

Default:  1

Valid values:  ≥ 1

Shard size = chunk × coef for the time axis. Zarr v3 only — ignored for v2.

eubi to_zarr /data/input /data/output --ome_zarr_version 0.5 --time_shard_coef 1

--channel_shard_coef

Type:  int

Default:  1

Valid values:  ≥ 1

Shard size = chunk × coef for the channel axis. Zarr v3 only — ignored for v2.

eubi to_zarr /data/input /data/output --ome_zarr_version 0.5 --channel_shard_coef 1

--z_shard_coef

Type:  int

Default:  3

Valid values:  ≥ 1

Shard size = chunk × coef for the z axis. Zarr v3 only — ignored for v2.

eubi to_zarr /data/input /data/output --ome_zarr_version 0.5 --z_shard_coef 5

--y_shard_coef

Type:  int

Default:  3

Valid values:  ≥ 1

Shard size = chunk × coef for the y axis. Zarr v3 only — ignored for v2.

eubi to_zarr /data/input /data/output --ome_zarr_version 0.5 --y_shard_coef 5

--x_shard_coef

Type:  int

Default:  3

Valid values:  ≥ 1

Shard size = chunk × coef for the x axis. Zarr v3 only — ignored for v2.

eubi to_zarr /data/input /data/output --ome_zarr_version 0.5 --x_shard_coef 5

--time_range

Type:  Any or None

Default:  —

Crop the time axis before writing. Pass as a "start,stop" string (e.g. "0,10" to keep frames 0–9).

eubi to_zarr /data/input /data/output --time_range "0,10"

--channel_range

Type:  Any or None

Default:  —

Crop the channel axis. Same format as time_range, e.g. "0,2" keeps the first two channels.

eubi to_zarr /data/input /data/output --channel_range "0,2"

--z_range

Type:  Any or None

Default:  —

Crop the z axis. Same format as time_range, e.g. "5,50" keeps z-slices 5–49.

eubi to_zarr /data/input /data/output --z_range "5,50"

--y_range

Type:  Any or None

Default:  —

Crop the y axis. Same format as time_range.

eubi to_zarr /data/input /data/output --y_range "0,512"

--x_range

Type:  Any or None

Default:  —

Crop the x axis. Same format as time_range.

eubi to_zarr /data/input /data/output --x_range "0,512"

--dimension_order

Type:  str

Default:  tczyx

Axis order string for the output array (default tczyx).

--compressor

Type:  str or None

Default:  blosc

Valid values:  v2: blosc, bz2, gzip, none, zstd; v3: blosc, gzip, none, zstd

Compression codec.

eubi to_zarr /data/input /data/output --compressor zstd

--compressor_params

Type:  dict

Default:  {}

Codec-specific parameters dict. When omitted, sensible defaults are used (e.g. for blosc: {'cname': 'lz4', 'clevel': 5, 'shuffle': 1}).

eubi to_zarr /data/input /data/output --compressor blosc --compressor_params '{"cname": "lz4", "clevel": 9}'

--overwrite

Type:  boolean flag

Default:  False

Valid values:  --overwrite to enable  ·  --overwrite False to disable

Overwrite existing output zarr if it already exists.

eubi to_zarr /data/input /data/output --overwrite

--zip_output

Type:  off or zip or ozx

Default:  off

—

--save_omexml

Type:  boolean flag

Default:  True

Valid values:  --save_omexml to enable  ·  --save_omexml False to disable

Write a companion OME-XML sidecar file alongside the zarr.

eubi to_zarr /data/input /data/output --save_omexml False

--export_acquisition_metadata

Type:  bool or None

Default:  —

Write acquisition metadata NGFF has no field for (view / illumination indices, objective NA, per-channel emission) into the eubi_bridge attributes. Unset = automatic: on when one acquisition is split into several outputs.

--squeeze

Type:  boolean flag

Default:  True

Valid values:  --squeeze to enable  ·  --squeeze False to disable

Remove length-1 dimensions before writing.

eubi to_zarr /data/input /data/output --squeeze False

--dtype

Type:  str or None

Default:  auto

auto preserves the source dtype; pass any NumPy dtype string (e.g. uint16, float32) to cast on write.

eubi to_zarr /data/input /data/output --dtype uint8

--io_backend

Type:  tensorstore or zarrista

Default:  tensorstore

The bytes backend ome_zarr_pyramid writes with: tensorstore (default) or zarrista (pip install "dyna-zarr[zarrista]"). With either, shards larger than the region budget are written chunk by chunk in bounded memory (local outputs).

Downscale overrides

--time_scale_factor

Type:  int

Default:  1

Valid values:  ≥ 1

Downscale factor for the time axis per pyramid level.

eubi to_zarr /data/input /data/output --time_scale_factor 1

--channel_scale_factor

Type:  int

Default:  1

Valid values:  ≥ 1

Downscale factor for the channel axis.

eubi to_zarr /data/input /data/output --channel_scale_factor 1

--z_scale_factor

Type:  int

Default:  2

Valid values:  ≥ 1

Downscale factor for the z axis.

# Isotropic downscaling on all spatial axes
eubi to_zarr /data/input /data/output --z_scale_factor 2 --y_scale_factor 2 --x_scale_factor 2
# Anisotropic — skip z downscaling for thick sections
eubi to_zarr /data/input /data/output --z_scale_factor 1 --y_scale_factor 2 --x_scale_factor 2

--y_scale_factor

Type:  int

Default:  2

Valid values:  ≥ 1

Downscale factor for the y axis.

eubi to_zarr /data/input /data/output --y_scale_factor 2

--x_scale_factor

Type:  int

Default:  2

Valid values:  ≥ 1

Downscale factor for the x axis.

eubi to_zarr /data/input /data/output --x_scale_factor 2

--n_layers

Type:  int or None

Default:  —

Number of pyramid levels (None = auto).

eubi to_zarr /data/input /data/output --n_layers 5

--min_dimension_size

Type:  int

Default:  64

Valid values:  > 0

Stop downscaling when smallest dimension reaches this size.

eubi to_zarr /data/input /data/output --min_dimension_size 32

--downscale_method

Type:  simple or mean or median or min or max or mode

Default:  simple

Valid values:  simple · mean · median · min · max · mode

simple = stride/nearest (fastest). mean / median / min / max / mode = aggregation methods passed to TensorStore.

# Use mean aggregation (recommended for fluorescence images)
eubi to_zarr /data/input /data/output --downscale_method mean
# Use nearest-neighbour striding (fastest, recommended for label images)
eubi to_zarr /data/input /data/output --downscale_method simple

--keep_existing_resolutions

Type:  boolean flag

Default:  False

Valid values:  --keep_existing_resolutions to enable  ·  --keep_existing_resolutions False to disable

If the input already carries its own multiscale pyramid (e.g. .ims, .zarr), write each existing resolution level straight to the output OME-Zarr instead of rebuilding the pyramid (default False).

# Copy an .ims / .zarr input's own pyramid levels instead of rebuilding them
eubi to_zarr /data/input /data/output --keep_existing_resolutions

--apply_smart_downscaling

Type:  boolean flag

Default:  False

Valid values:  --apply_smart_downscaling to enable  ·  --apply_smart_downscaling False to disable

Choose per-axis downscale factors automatically from the pixel anisotropy so the pyramid approaches isotropy, instead of using the fixed *_scale_factor values (default False).

# Let EuBI-Bridge pick per-axis factors from the voxel anisotropy
eubi to_zarr /data/input /data/output --apply_smart_downscaling

--time_smart_scale_factor

Type:  int or None

Default:  —

Override the smart-downscaling factor for the time axis (used when apply_smart_downscaling=True).

eubi to_zarr /data/input /data/output --apply_smart_downscaling --time_smart_scale_factor 1

--z_smart_scale_factor

Type:  int or None

Default:  —

Override the smart-downscaling factor for the z axis (used when apply_smart_downscaling=True).

eubi to_zarr /data/input /data/output --apply_smart_downscaling --z_smart_scale_factor 1

--y_smart_scale_factor

Type:  int or None

Default:  —

Override the smart-downscaling factor for the y axis (used when apply_smart_downscaling=True).

eubi to_zarr /data/input /data/output --apply_smart_downscaling --y_smart_scale_factor 2

--x_smart_scale_factor

Type:  int or None

Default:  —

Override the smart-downscaling factor for the x axis (used when apply_smart_downscaling=True).

eubi to_zarr /data/input /data/output --apply_smart_downscaling --x_smart_scale_factor 2

Reader overrides

--as_mosaic

Type:  boolean flag

Default:  True

Valid values:  --as_mosaic to enable  ·  --as_mosaic False to disable

Stitch a file's mosaic tiles into one image at their stored positions (the default): nothing is registered or blended, where tiles overlap one tile gives the pixel. --as_mosaic False writes one OME-Zarr per tile, for stitching elsewhere.

# Keep every tile as its own OME-Zarr, for stitching elsewhere
eubi to_zarr /data/input /data/output --as_mosaic False

--as_plate

Type:  bool or None

Default:  —

—

# One store per image instead of one plate store
eubi to_zarr /data/plate /data/output --as_plate False

--view_index

Type:  int or str

Default:  all

View(s) to read. Pass an integer, all, or comma-separated integers; each selected view becomes a separate OME-Zarr (named _view{N}) unless --concat_views stacks them along the channel axis.

# Write each view as its own OME-Zarr
eubi to_zarr /data/input /data/output --view_index all
# Concatenate all views along the channel axis into one output
eubi to_zarr /data/input /data/output --view_index all --concat_views

--phase_index

Type:  int

Default:  0

Valid values:  ≥ 0

Phase index.

eubi to_zarr /data/input /data/output --phase_index 1

--illumination_index

Type:  int or str

Default:  all

Illumination(s) to read. Pass an integer, all, or comma-separated integers; each selected illumination becomes a separate OME-Zarr (named _illu{N}) unless --concat_illuminations stacks them along the channel axis.

# Write each illumination as its own OME-Zarr
eubi to_zarr /data/input /data/output --illumination_index all
# Concatenate all illuminations along the channel axis into one output
eubi to_zarr /data/input /data/output --illumination_index all --concat_illuminations

--series_index

Type:  int or str

Default:  all

Series index to read (a series is what some formats call a scene). Pass an integer for a single series, all to convert each series to a separate zarr group, or comma-separated integers (e.g. 0,2,4) for a subset of series. The outputs are still named _scene{N}. Formerly scene_index, which still works, with a warning.

# Convert only series 2 from a multi-series file
eubi to_zarr /data/input /data/output --series_index 2
# Convert every series to a separate OME-Zarr group
eubi to_zarr /data/input /data/output --series_index all
# Convert series 0, 2 and 4 only
eubi to_zarr /data/input /data/output --series_index 0,2,4

--rotation_index

Type:  int

Default:  0

Valid values:  ≥ 0

Rotation index.

eubi to_zarr /data/input /data/output --rotation_index 0

--mosaic_tile_index

Type:  int or str or None

Default:  all

Mosaic tile(s) to read when not stitching. Pass an integer, all, or comma-separated integers; each selected tile becomes a separate OME-Zarr (named _tile{N}). Use --as_mosaic instead to stitch tiles into one output. Composes with series / view / illumination selection (cartesian product).

# Write every tile as its own OME-Zarr
eubi to_zarr /data/input /data/output --as_mosaic False
# Write only tiles 0 and 2 (each as a separate output)
eubi to_zarr /data/input /data/output --mosaic_tile_index 0,2
# Stitch the tiles into one mosaic (the default)
eubi to_zarr /data/input /data/output --as_mosaic

--sample_index

Type:  int

Default:  0

Valid values:  ≥ 0

Sample index.

eubi to_zarr /data/input /data/output --sample_index 0

--force_bioformats

Type:  boolean flag

Default:  False

Valid values:  --force_bioformats to enable  ·  --force_bioformats False to disable

Force the Java Bio-Formats reader even for formats EuBI-Bridge reads natively (CZI, ND2, LIF, IMS…). Useful as a fallback when a native read fails.

eubi to_zarr /data/input /data/output --force_bioformats

--pixel_reader

Type:  standard or micro

Default:  micro

Where the pixels come from: micro (micro-reader, the default; a file it does not read falls back to the standard reader with a warning) or standard (the format's usual reader).

--concat_views

Type:  boolean flag

Default:  False

Valid values:  --concat_views to enable  ·  --concat_views False to disable

When reading multiple views, stack them along the channel axis into one output (cartesian product with existing channels) instead of writing one OME-Zarr per view.

# Stack every view onto the channel axis (cartesian with existing channels)
eubi to_zarr /data/input /data/output --view_index all --concat_views

--concat_illuminations

Type:  boolean flag

Default:  False

Valid values:  --concat_illuminations to enable  ·  --concat_illuminations False to disable

When reading multiple illuminations, stack them along the channel axis into one output (cartesian product with existing channels) instead of writing one OME-Zarr per illumination.

# Stack every illumination onto the channel axis (cartesian with existing channels)
eubi to_zarr /data/input /data/output --illumination_index all --concat_illuminations

Metadata overrides

--metadata_reader

Type:  str

Default:  micro

Valid values:  micro (default) · bfio · bioio

Where the image metadata comes from: micro (micro-reader, the default; a file it does not read falls back to the standard reader), bfio or bioio.

eubi to_zarr /data/input /data/output --metadata_reader bfio

--override_channel_names

Type:  boolean flag

Default:  False

Valid values:  --override_channel_names to enable  ·  --override_channel_names False to disable

Replace output channel labels with the channel_tag values. For aggregative conversions with a tuple channel_tag only.

eubi to_zarr /data/input /data/output --concatenation_axes c --channel_tag raw,mask --override_channel_names

--channel_intensity_limits

Type:  from_dtype or from_array or auto

Default:  from_dtype

Valid values:  from_dtype · from_array · auto

Strategy for OMERO display-window limits.

eubi to_zarr /data/input /data/output --channel_intensity_limits from_array

--channel_colors

Type:  str

Default:  ""

Per-channel colour overrides as "0,FF0000;1,00FF00". Channels left out keep their source colour, or get one automatically.

--channel_labels

Type:  str

Default:  ""

Per-channel name overrides as "0,DAPI;1,GFP".

--time_scale

Type:  float or None

Default:  —

Valid values:  > 0

Physical size of one time step. Unset keeps what the source file states.

--z_scale

Type:  float or None

Default:  —

Valid values:  > 0

Physical pixel size along z (e.g. 0.5). Unset keeps the source value.

--y_scale

Type:  float or None

Default:  —

Valid values:  > 0

Physical pixel size along y. Unset keeps the source value.

--x_scale

Type:  float or None

Default:  —

Valid values:  > 0

Physical pixel size along x. Unset keeps the source value.

--time_unit

Type:  str or None

Default:  —

Unit for time_scale (e.g. second).

--z_unit

Type:  str or None

Default:  —

Unit for z_scale (e.g. micrometer).

--y_unit

Type:  str or None

Default:  —

Unit for y_scale.

--x_unit

Type:  str or None

Default:  —

Unit for x_scale.

Concatenation overrides

--concatenation_axes

Type:  str or int or None

Default:  —

Axes to concatenate across files, e.g. 'tc'. If omitted the config value is used; None means unary conversion.

# Concatenate files along the channel axis
eubi to_zarr /data/input /data/output --concatenation_axes c --channel_tag raw,mask
# Concatenate along both z and channel axes simultaneously
eubi to_zarr /data/input /data/output --concatenation_axes zc --z_tag slices --channel_tag raw,mask

--time_tag

Type:  str or List or None

Default:  —

Filename tag identifying the time axis (aggregative only).

# Three time points identified by substrings in each filename
eubi to_zarr /data/input /data/output --concatenation_axes t --time_tag t001,t002,t003

--channel_tag

Type:  str or List or None

Default:  —

Filename tag identifying the channel axis.

# Two channels — raw fluorescence and segmentation mask
eubi to_zarr /data/input /data/output --concatenation_axes c --channel_tag raw,mask
# Single channel — assign a label without concatenating
eubi to_zarr /data/input /data/output --concatenation_axes c --channel_tag DAPI

--z_tag

Type:  str or List or None

Default:  —

Filename tag identifying the z axis.

# Multiple z-slices acquired as separate files
eubi to_zarr /data/input /data/output --concatenation_axes z --z_tag slice001,slice002,slice003

--y_tag

Type:  str or List or None

Default:  —

Filename tag identifying the y axis.

eubi to_zarr /data/input /data/output --concatenation_axes y --y_tag row_top,row_bottom

--x_tag

Type:  str or List or None

Default:  —

Filename tag identifying the x axis.

eubi to_zarr /data/input /data/output --concatenation_axes x --x_tag col_left,col_right

--aggregative_group

Type:  str or None

Default:  —

Name prefixed to the concatenated output, so several concatenated outputs stay distinguishable. In a conversion table, rows sharing this value are concatenated together and a blank one converts on its own. Prefer short labels such as gr1 or A: it becomes part of the output filename.

validate_aggregative — Dry-run an aggregative conversion and print the resource plan

Usage:

eubi validate_aggregative INPUT_PATH [OPTIONS]
eubi with_config NAME validate_aggregative INPUT_PATH [OPTIONS]

Determines output groups and worker allocation without reading any pixel data. Prints a human-readable summary and returns the plan object so it can be passed to :meth:to_zarr to skip re-planning.

Required arguments

--input_path

Type:  str or Path

Default:  required

File path, directory, or table of paths.

eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask

CLI-only options

--output_path

Type:  str or Path or None

Default:  —

Destination directory.

eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask

--includes

Type:  str or None

Default:  —

Comma-separated filename patterns to include.

# Plan the conversion but only include files matching "scan"
eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask --includes "scan"

--excludes

Type:  str or None

Default:  —

Comma-separated filename patterns to exclude.

# Exclude preview files from the plan
eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask --excludes "preview"

Cluster overrides

--on_slurm

Type:  boolean flag

Default:  False

Valid values:  --on_slurm to enable  ·  --on_slurm False to disable

Submit to a SLURM cluster.

# Submit all file workers to SLURM
eubi to_zarr /data/input /data/output --on_slurm --slurm_account myaccount --slurm_partition gpu

--use_threading

Type:  boolean flag

Default:  False

Valid values:  --use_threading to enable  ·  --use_threading False to disable

Use ThreadPool instead of ProcessPool.

eubi to_zarr /data/input /data/output --use_threading

--max_processes

Type:  int

Default:  4

Valid values:  ≥ 1, ≤ 256

Images converted at once, one per worker process (formerly max_workers).

eubi to_zarr /data/input /data/output --max_processes 8

--region_size_mb

Type:  float or str

Default:  auto

Size of one read region in MB, or auto (default): each scene's write budget over 3 x its threads, 8 to 256 MB.

eubi to_zarr /data/input /data/output --region_size_mb 512

--max_threads

Type:  int or auto

Default:  auto

Threads per conversion, each reading and writing one region at a time; scenes converted at once share them (formerly max_concurrency).

eubi to_zarr /data/input /data/output --max_threads 8

--max_concurrent_scenes

Type:  int

Default:  1

Valid values:  ≥ 1

Parallel scenes per file (default 1); they share max_threads.

eubi to_zarr /data/input /data/output --max_concurrent_scenes 2

--memory_budget

Type:  str

Default:  auto

The memory eubi may use on this machine, e.g. 16GB, or auto (default): half the memory free when it starts (inside a SLURM job or a container: what its memory limit leaves). Shared out between the conversions running at once, and in each between reading and the scenes converted at once. Runs started side by side (several batches, the GUI and the command line) share one budget, the smallest of theirs; a run with auto that starts beside others takes the budget they share.

eubi to_zarr /data/input /data/output --memory_budget 16GB

--decode_memory

Type:  str

Default:  auto

micro-reader's decoding memory per process, e.g. 1GB, or auto (default): what the file's compressed blocks need.

--slurm_worker_memory

Type:  str

Default:  3GB

Each SLURM worker's memory (the SLURM job's), shared by its conversions (formerly memory_per_worker).

--max_retries

Type:  int

Default:  10

Valid values:  ≥ 0, ≤ 100

Retries on a broken worker process.

eubi to_zarr /data/input /data/output --max_retries 3

--bioformats_threads

Type:  int or None

Default:  4

Valid values:  ≥ 1

Threads for parallel Bio-Formats tile reads (formerly bf_read_concurrency).

--decode_threads

Type:  int or auto

Default:  auto

micro-reader's decode threads per worker process (formerly micro_read_concurrency).

--jvm_memory

Type:  str or None

Default:  1g

Maximum JVM heap for Bio-Formats, e.g. 8GB or 4GB (default 1g).

--slurm_time

Type:  str

Default:  24:00:00

SLURM wall-clock limit, e.g. '24:00:00'.

eubi to_zarr /data/input /data/output --on_slurm --slurm_time 48:00:00

--slurm_account

Type:  str or None

Default:  —

SLURM account name.

eubi to_zarr /data/input /data/output --on_slurm --slurm_account myaccount

--slurm_partition

Type:  str or None

Default:  —

SLURM partition / queue.

eubi to_zarr /data/input /data/output --on_slurm --slurm_partition gpu

--slurm_worker_timeout

Type:  int

Default:  300

Valid values:  > 0

Seconds to wait for SLURM workers to start.

eubi to_zarr /data/input /data/output --on_slurm --slurm_worker_timeout 600

--slurm_sif_path

Type:  str or None

Default:  —

Path to an Apptainer/Singularity .sif image to run SLURM workers inside (optional).

eubi to_zarr /data/input /data/output --on_slurm --slurm_sif_path /apps/eubi.sif

Reader overrides

--as_mosaic

Type:  boolean flag

Default:  True

Valid values:  --as_mosaic to enable  ·  --as_mosaic False to disable

Stitch a file's mosaic tiles into one image at their stored positions (the default): nothing is registered or blended, where tiles overlap one tile gives the pixel. --as_mosaic False writes one OME-Zarr per tile, for stitching elsewhere.

# Keep every tile as its own OME-Zarr, for stitching elsewhere
eubi to_zarr /data/input /data/output --as_mosaic False

--as_plate

Type:  bool or None

Default:  —

—

# One store per image instead of one plate store
eubi to_zarr /data/plate /data/output --as_plate False

--view_index

Type:  int or str

Default:  all

View(s) to read. Pass an integer, all, or comma-separated integers; each selected view becomes a separate OME-Zarr (named _view{N}) unless --concat_views stacks them along the channel axis.

# Write each view as its own OME-Zarr
eubi to_zarr /data/input /data/output --view_index all
# Concatenate all views along the channel axis into one output
eubi to_zarr /data/input /data/output --view_index all --concat_views

--phase_index

Type:  int

Default:  0

Valid values:  ≥ 0

Phase index.

eubi to_zarr /data/input /data/output --phase_index 1

--illumination_index

Type:  int or str

Default:  all

Illumination(s) to read. Pass an integer, all, or comma-separated integers; each selected illumination becomes a separate OME-Zarr (named _illu{N}) unless --concat_illuminations stacks them along the channel axis.

# Write each illumination as its own OME-Zarr
eubi to_zarr /data/input /data/output --illumination_index all
# Concatenate all illuminations along the channel axis into one output
eubi to_zarr /data/input /data/output --illumination_index all --concat_illuminations

--series_index

Type:  int or str

Default:  all

Series index to read (a series is what some formats call a scene). Pass an integer for a single series, all to convert each series to a separate zarr group, or comma-separated integers (e.g. 0,2,4) for a subset of series. The outputs are still named _scene{N}. Formerly scene_index, which still works, with a warning.

# Convert only series 2 from a multi-series file
eubi to_zarr /data/input /data/output --series_index 2
# Convert every series to a separate OME-Zarr group
eubi to_zarr /data/input /data/output --series_index all
# Convert series 0, 2 and 4 only
eubi to_zarr /data/input /data/output --series_index 0,2,4

--rotation_index

Type:  int

Default:  0

Valid values:  ≥ 0

Rotation index.

eubi to_zarr /data/input /data/output --rotation_index 0

--mosaic_tile_index

Type:  int or str or None

Default:  all

Mosaic tile(s) to read when not stitching. Pass an integer, all, or comma-separated integers; each selected tile becomes a separate OME-Zarr (named _tile{N}). Use --as_mosaic instead to stitch tiles into one output. Composes with series / view / illumination selection (cartesian product).

# Write every tile as its own OME-Zarr
eubi to_zarr /data/input /data/output --as_mosaic False
# Write only tiles 0 and 2 (each as a separate output)
eubi to_zarr /data/input /data/output --mosaic_tile_index 0,2
# Stitch the tiles into one mosaic (the default)
eubi to_zarr /data/input /data/output --as_mosaic

--sample_index

Type:  int

Default:  0

Valid values:  ≥ 0

Sample index.

eubi to_zarr /data/input /data/output --sample_index 0

--force_bioformats

Type:  boolean flag

Default:  False

Valid values:  --force_bioformats to enable  ·  --force_bioformats False to disable

Force the Java Bio-Formats reader even for formats EuBI-Bridge reads natively (CZI, ND2, LIF, IMS…). Useful as a fallback when a native read fails.

eubi to_zarr /data/input /data/output --force_bioformats

--pixel_reader

Type:  standard or micro

Default:  micro

Where the pixels come from: micro (micro-reader, the default; a file it does not read falls back to the standard reader with a warning) or standard (the format's usual reader).

--concat_views

Type:  boolean flag

Default:  False

Valid values:  --concat_views to enable  ·  --concat_views False to disable

When reading multiple views, stack them along the channel axis into one output (cartesian product with existing channels) instead of writing one OME-Zarr per view.

# Stack every view onto the channel axis (cartesian with existing channels)
eubi to_zarr /data/input /data/output --view_index all --concat_views

--concat_illuminations

Type:  boolean flag

Default:  False

Valid values:  --concat_illuminations to enable  ·  --concat_illuminations False to disable

When reading multiple illuminations, stack them along the channel axis into one output (cartesian product with existing channels) instead of writing one OME-Zarr per illumination.

# Stack every illumination onto the channel axis (cartesian with existing channels)
eubi to_zarr /data/input /data/output --illumination_index all --concat_illuminations

Concatenation overrides

--concatenation_axes

Type:  str or int or None

Default:  —

Axes to concatenate, e.g. 'c'.

# Plan a channel concatenation
eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask
# Plan a z + channel concatenation
eubi validate_aggregative /data/input /data/output --concatenation_axes zc --z_tag slices --channel_tag raw,mask

--time_tag

Type:  str or List or None

Default:  —

Filename substring (or tuple of substrings) identifying the time axis.

# Plan concatenation of three time points
eubi validate_aggregative /data/input /data/output --concatenation_axes t --time_tag t001,t002,t003

--channel_tag

Type:  str or List or None

Default:  —

Filename substring (or tuple of substrings) identifying the channel axis.

# Two channels — raw fluorescence and segmentation mask
eubi validate_aggregative /data/input /data/output --concatenation_axes c --channel_tag raw,mask

--z_tag

Type:  str or List or None

Default:  —

Filename substring (or tuple of substrings) identifying the z axis.

# Multiple z-slices acquired as separate files
eubi validate_aggregative /data/input /data/output --concatenation_axes z --z_tag slice001,slice002,slice003

--y_tag

Type:  str or List or None

Default:  —

Filename substring (or tuple of substrings) identifying the y axis.

eubi validate_aggregative /data/input /data/output --concatenation_axes y --y_tag row_top,row_bottom

--x_tag

Type:  str or List or None

Default:  —

Filename substring (or tuple of substrings) identifying the x axis.

eubi validate_aggregative /data/input /data/output --concatenation_axes x --x_tag col_left,col_right

--aggregative_group

Type:  str or None

Default:  —

Name prefixed to the concatenated output. In a conversion table, rows sharing this value are concatenated together; a blank one converts on its own. Keep it short (it becomes part of the file name).