Configuration¶
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.
configure cluster — Update cluster / concurrency parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: Default: Images converted at once, one per worker process (default 4). Formerly --max_processesint4max_workers.# Convert 8 images at once, each in its own worker process
eubi configure cluster --max_processes 8
Type: Default: Size of one read region in MB, or --region_size_mbintauto'auto' (default): each scene's write budget over 3 x its threads, 8 to 256 MB.# Process larger spatial regions per task (reduces overhead on large arrays)
eubi configure cluster --region_size_mb 512
Type: Default: The memory eubi may use on this machine, e.g. --memory_budgetstrauto'16GB', or 'auto' (default): half the memory free when it starts (inside a SLURM job or a container: what its memory limit leaves). Runs started side by side share one budget, the smallest of theirs. eubi shares it out: between the conversions running at once, then in each between what the process already holds, reading (decode_memory) and the scenes converted at once.# Let the whole run use at most 16 GB of this machine's memory
eubi configure cluster --memory_budget 16GB
Type: Default: Threads per conversion, each reading and writing one region at a time: a number, or "auto" (default: the cores over the conversions running at once, at most 16; 0 means the same). Scenes converted at once share them. Formerly --max_threadsintautomax_concurrency.# Read and write 8 regions at once in each conversion (one per thread)
eubi configure cluster --max_threads 8
Type: Default: Parallel scenes within one file (default 1); they share --max_concurrent_scenesint1max_threads. Increase only when writing a multi-scene file to a large store.# Convert 2 scenes within a single file simultaneously
eubi configure cluster --max_concurrent_scenes 2
Type: boolean flag Default: Valid values: Submit jobs to a SLURM cluster (default False; the full eubi-bridge only).--on_slurmFalse--on_slurm to enable · --on_slurm False to disable# Submit workers to SLURM and set partition + account
eubi configure cluster --on_slurm --slurm_account myaccount --slurm_partition gpu
Type: boolean flag Default: Valid values: Use ThreadPool instead of ProcessPool (default False).--use_threadingFalse--use_threading to enable · --use_threading False to disable# Switch from ProcessPool to ThreadPool (useful when GIL is not a bottleneck)
eubi configure cluster --use_threading
Type: Default: Retries on broken worker process (default 10).--max_retriesint10# Retry failed workers up to 5 times before aborting
eubi configure cluster --max_retries 5
Type: Default: Threads for parallel Bio-Formats tile reads (default 4). --bioformats_threadsint4None lets dask choose (cpu_count). Formerly bf_read_concurrency.
Type: Default: micro-reader's decode threads per worker process, used with --decode_threadsintautoreaders(pixel_reader='micro'): 'auto' (default) gives each process the cores over the conversions running at once (at most 16), fewer when its reading memory cannot hold a block per thread; or a number. Formerly micro_read_concurrency.
Type: Default: micro-reader's decoding memory per process, e.g. --decode_memorystrauto'1GB', or 'auto' (default): what the file's decode unit needs, at least 64 MB and normally at most a quarter of the process's memory.
Type: Default: Maximum JVM heap for Bio-Formats, e.g. --jvm_memorystr1g'8GB', '4GB'. Accepts 'NGB' / 'NMB' (like memory_budget) and normalises internally to JVM format ('Ng' / 'Nm'). Default '1g'.
Type: Default: SLURM job wall-clock limit, e.g. --slurm_timestr24:00:00'24:00:00' (used only when on_slurm=True).# Set SLURM wall-clock limit to 48 hours
eubi configure cluster --on_slurm --slurm_time 48:00:00
Type: Default: — SLURM account/allocation to charge (default None).--slurm_accountstr# Charge SLURM jobs to 'myproject'
eubi configure cluster --on_slurm --slurm_account myproject
Type: Default: — SLURM partition/queue to submit to (default None).--slurm_partitionstr# Submit to the 'gpu' partition
eubi configure cluster --on_slurm --slurm_partition gpu
Type: Default: Seconds to wait for SLURM workers to start (default 300).--slurm_worker_timeoutint300# Wait up to 10 minutes for SLURM workers to start
eubi configure cluster --on_slurm --slurm_worker_timeout 600
Type: Default: — Path to an Apptainer/Singularity SIF image to run workers in (default None).--slurm_sif_pathstreubi to_zarr /data/input /data/output --on_slurm --slurm_sif_path /apps/eubi.sif
Type: Default: Each SLURM worker's memory, e.g. --slurm_worker_memorystr3GB'8GB' (default '3GB'; used only when on_slurm=True): the SLURM job's memory, shared by its conversions. Formerly memory_per_worker.# Each SLURM worker job gets 8 GB
eubi configure cluster --slurm_worker_memory 8GB
configure conversion — Update Zarr conversion parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: Default: — OME-Zarr (NGFF) version to write: --ome_zarr_versionstr'0.4', '0.5', '0.6' or 'rfc8' (NGFF RFC 8, a draft: a collection holding the image). This is the preferred control and supersedes zarr_format (the zarr container format is derived from it); any other value is an error.# Default to OME-Zarr 0.5 (Zarr v3, enables sharding)
eubi configure conversion --ome_zarr_version 0.5
# Default to OME-Zarr 0.4 (Zarr v2)
eubi configure conversion --ome_zarr_version 0.4
Type: Default: DEPRECATED zarr container version — --zarr_formatint22 (default) or 3. Used only when ome_zarr_version is unset; prefer ome_zarr_version.# Deprecated — prefer 'ome_zarr_version'. Switch to Zarr v3 (supports sharding)
eubi configure conversion --zarr_format 3
Type: boolean flag Default: Valid values: Auto-compute chunk shape from array size (default True).--auto_chunkTrue--auto_chunk to enable · --auto_chunk False to disable# Disable auto-chunking and set chunk sizes manually
eubi configure conversion --auto_chunk False --z_chunk 64 --y_chunk 256 --x_chunk 256
Type: Default: Target chunk size in MB when auto_chunk is True. time_chunk / channel_chunk / z_chunk / y_chunk / x_chunk: Manual per-axis chunk sizes (used when auto_chunk is False). time_shard_coef / channel_shard_coef / z_shard_coef / y_shard_coef / x_shard_coef: Shard-to-chunk multipliers for Zarr v3 sharding (default 3 on spatial axes). time_range / channel_range / z_range / y_range / x_range: Crop ranges as --target_chunk_mbfloat1"start,stop" strings applied before writing.# Target 4 MB uncompressed chunks when auto_chunk is on
eubi configure conversion --target_chunk_mb 4.0
Type: Default: Chunk size along the time axis. Applies only when --time_chunkint1auto_chunk=False.# Process one time point per chunk
eubi configure conversion --auto_chunk False --time_chunk 1
Type: Default: Chunk size along the channel axis. Applies only when --channel_chunkint1auto_chunk=False.# Process one channel per chunk
eubi configure conversion --auto_chunk False --channel_chunk 1
Type: Default: Chunk size along the z axis. Applies only when --z_chunkint96auto_chunk=False.# Set manual z chunk size (requires auto_chunk False)
eubi configure conversion --auto_chunk False --z_chunk 64
Type: Default: Chunk size along the y axis. Applies only when --y_chunkint96auto_chunk=False.# Set manual y chunk size (requires auto_chunk False)
eubi configure conversion --auto_chunk False --y_chunk 256
Type: Default: Chunk size along the x axis. Applies only when --x_chunkint96auto_chunk=False.# Set manual x chunk size (requires auto_chunk False)
eubi configure conversion --auto_chunk False --x_chunk 256
Type: Default: Shard size = chunk × coef for the time axis. Zarr v3 only — ignored for v2.--time_shard_coefint1# Shard = 1 × time chunk (no sharding on time axis)
eubi configure conversion --ome_zarr_version 0.5 --time_shard_coef 1
Type: Default: Shard size = chunk × coef for the channel axis. Zarr v3 only — ignored for v2.--channel_shard_coefint1# Shard = 1 × channel chunk
eubi configure conversion --ome_zarr_version 0.5 --channel_shard_coef 1
Type: Default: Shard size = chunk × coef for the z axis. Zarr v3 only — ignored for v2.--z_shard_coefint3# Shard = 5 × z chunk on the z axis
eubi configure conversion --ome_zarr_version 0.5 --z_shard_coef 5
Type: Default: Shard size = chunk × coef for the y axis. Zarr v3 only — ignored for v2.--y_shard_coefint3# Shard = 5 × y chunk on the y axis
eubi configure conversion --ome_zarr_version 0.5 --y_shard_coef 5
Type: Default: Shard size = chunk × coef for the x axis. Zarr v3 only — ignored for v2.--x_shard_coefint3# Shard = 5 × x chunk on the x axis
eubi configure conversion --ome_zarr_version 0.5 --x_shard_coef 5
Type: Default: — Crop the time axis before writing. Pass as a --time_rangeint"start,stop" string (e.g. "0,10" to keep frames 0–9).# Keep only time frames 0–9 (start inclusive, stop exclusive)
eubi configure conversion --time_range "0,10"
Type: Default: — Crop the channel axis. Same format as --channel_rangeinttime_range, e.g. "0,2" keeps the first two channels.# Keep only the first two channels
eubi configure conversion --channel_range "0,2"
Type: Default: — Crop the z axis. Same format as --z_rangeinttime_range, e.g. "5,50" keeps z-slices 5–49.# Keep z-slices 5 through 49
eubi configure conversion --z_range "5,50"
Type: Default: — Crop the y axis. Same format as --y_rangeinttime_range.# Crop y to the first 512 pixels
eubi configure conversion --y_range "0,512"
Type: Default: — Crop the x axis. Same format as --x_rangeinttime_range.# Crop x to the first 512 pixels
eubi configure conversion --x_range "0,512"
Type: Default: Compression codec — --compressorstrblosc'blosc' (default), 'gzip', 'zstd', 'bz2', or 'none'.# Use zstd compression (good balance of speed and ratio)
eubi configure conversion --compressor zstd
# Disable compression entirely
eubi configure conversion --compressor none
Type: Default: Dict of codec parameters, e.g. --compressor_paramsdict{}{'cname': 'lz4', 'clevel': 5}.# Use blosc with lz4 codec at compression level 9
eubi configure conversion --compressor blosc --compressor_params '{"cname": "lz4", "clevel": 9}'
Type: boolean flag Default: Valid values: Overwrite existing output zarr (default False).--overwriteFalse--overwrite to enable · --overwrite False to disable# Allow overwriting an existing OME-Zarr at the output path
eubi configure conversion --overwrite
Type: Default: Write each output straight into a zip: --zip_outputstroff'off' (default: an OME-Zarr folder X.ome.zarr), 'zip' (X.ome.zarr.zip holding X.ome.zarr/, as the BioImage Archive asks) or 'ozx' (X.ozx, NGFF RFC-9, a draft: OME-Zarr 0.5 or newer). No folder is written first; a zip is X.ome.zarr.zip.part until it is complete. Local outputs only.
Type: boolean flag Default: Valid values: Write a companion OME-XML file alongside the zarr (default True).--save_omexmlTrue--save_omexml to enable · --save_omexml False to disable# Disable OME-XML sidecar file generation
eubi configure conversion --save_omexml False
Type: boolean flag Default: — Valid values: Write acquisition metadata that NGFF has no field for (view/illumination indices, objective NA, per-channel emission) into the namespaced --export_acquisition_metadata--export_acquisition_metadata to enable · --export_acquisition_metadata False to disableeubi_bridge attrs block. None/unset means auto: enabled when the conversion splits an acquisition into several containers, since that is when the relationship between the pieces would otherwise be lost.
Type: boolean flag Default: Valid values: Remove singleton dimensions before writing (default True).--squeezeTrue--squeeze to enable · --squeeze False to disable# Keep length-1 dimensions instead of removing them
eubi configure conversion --squeeze False
Type: Default: Output dtype — --dtypestrauto'auto' keeps the source dtype, or any NumPy dtype string such as 'uint16'.# Cast pixel values to uint8 on write (reduces file size)
eubi configure conversion --dtype uint8
# Keep the source dtype
eubi configure conversion --dtype auto
Type: boolean flag Default: Valid values: Log verbose progress output (default False).--verboseFalse--verbose to enable · --verbose False to disable# Enable verbose per-chunk progress logging
eubi configure conversion --verbose
Type: Default: The bytes backend ome_zarr_pyramid writes with: --io_backendstrtensorstore'tensorstore' (default) or 'zarrista' (Rust, via zarrs; pip install "dyna-zarr[zarrista]"). With either, shards larger than the region budget are written chunk by chunk in bounded memory (local outputs).
configure downscale — Update downscale parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: Default: — Number of downscale pyramid levels to generate. --n_layersintNone (default) auto-derives the count from min_dimension_size.# Generate 5 pyramid levels
eubi configure downscale --n_layers 5
Type: Default: Stop adding levels when the smallest spatial dimension falls below this pixel count (default 64).--min_dimension_sizeint64# Stop downscaling when the smallest spatial dimension is below 32 px
eubi configure downscale --min_dimension_size 32
Type: Default: Downscale factor along the time axis (default 1, i.e. no downscaling).--time_scale_factorint1# Disable time-axis downscaling (value 1 = no downscaling)
eubi configure downscale --time_scale_factor 1
Type: Default: Downscale factor along the channel axis (default 1).--channel_scale_factorint1# Disable channel-axis downscaling
eubi configure downscale --channel_scale_factor 1
Type: Default: Downscale factor along the z axis (default 2).--z_scale_factorint2# Isotropic downscaling on all spatial axes
eubi configure downscale --z_scale_factor 2 --y_scale_factor 2 --x_scale_factor 2
# Anisotropic — skip z downscaling for thick sections
eubi configure downscale --z_scale_factor 1 --y_scale_factor 2 --x_scale_factor 2
Type: Default: Downscale factor along the y axis (default 2).--y_scale_factorint2eubi configure downscale --y_scale_factor 2
Type: Default: Downscale factor along the x axis (default 2).--x_scale_factorint2eubi configure downscale --x_scale_factor 2
Type: Default: Pixel aggregation method for downscaling — one of 'simple', 'mean', 'median', 'min', 'max', 'mode' (default 'simple').--downscale_methodstrsimple# Use mean aggregation (recommended for fluorescence images)
eubi configure downscale --downscale_method mean
# Use nearest-neighbour striding (fastest, recommended for label images)
eubi configure downscale --downscale_method simple
Type: boolean flag Default: Valid values: If the input format already carries its own multiscale pyramid (e.g. --keep_existing_resolutionsFalse--keep_existing_resolutions to enable · --keep_existing_resolutions False to disable.ims, .zarr), write each existing resolution level straight to the output OME-Zarr instead of rebuilding the pyramid with the above scale factors (default False).# Copy a source pyramid (.ims / .zarr) verbatim instead of rebuilding it
eubi configure downscale --keep_existing_resolutions
Type: boolean flag Default: Valid values: Make the first pyramid level use automatically-computed factors that drive the voxels toward isotropy (default False).--apply_smart_downscalingFalse--apply_smart_downscaling to enable · --apply_smart_downscaling False to disable# Pick per-axis downscale factors automatically from voxel anisotropy
eubi configure downscale --apply_smart_downscaling
Type: Default: — Per-axis override for smart downscaling on the time axis (default None = auto).--time_smart_scale_factorinteubi to_zarr /data/input /data/output --apply_smart_downscaling --time_smart_scale_factor 1
Type: Default: — Per-axis smart-downscaling override for z.--z_smart_scale_factorinteubi to_zarr /data/input /data/output --apply_smart_downscaling --z_smart_scale_factor 1
Type: Default: — Per-axis smart-downscaling override for y.--y_smart_scale_factorinteubi to_zarr /data/input /data/output --apply_smart_downscaling --y_smart_scale_factor 2
Type: Default: — Per-axis smart-downscaling override for x.--x_smart_scale_factorinteubi to_zarr /data/input /data/output --apply_smart_downscaling --x_smart_scale_factor 2
configure readers — Update file-reader parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: boolean flag Default: Valid values: Treat tiled acquisitions as a stitched mosaic (default True).--as_mosaicTrue--as_mosaic to enable · --as_mosaic False to disable# Write each tile as its own OME-Zarr by default
eubi configure readers --as_mosaic False
Type: boolean flag Default: — Valid values: Write a plate file as one NGFF plate store, in the OME-Zarr version asked for. Unset (the default): plate formats (Harmony, CellVoyager, MetaXpress, IN Cell) and files whose images sit in two or more wells (a CZI of several wells); a file whose images all sit in one well is converted per image. True: every file read as a plate. False: one store per image, with a warning. A plate whose fields hold several tiles needs as_mosaic=True in 0.4 / 0.5 / 0.6 (RFC 8 keeps the tiles).--as_plate--as_plate to enable · --as_plate False to disable# One store per image instead of one plate store
eubi to_zarr /data/plate /data/output --as_plate False
Type: Default: View index for multi-view formats (default 0). Pass --view_indexintall'all' or a comma-separated list (e.g. '0,2') to expose multiple views.# Write each view separately
eubi configure readers --view_index all
# Select only the second view
eubi configure readers --view_index 1
Type: Default: Phase index (default 0).--phase_indexint0# Select phase index 1
eubi configure readers --phase_index 1
Type: Default: Illumination index (default 0). Pass --illumination_indexintall'all' or a comma-separated list to expose multiple illuminations.# Write each illumination separately
eubi configure readers --illumination_index all
# Select only the second illumination
eubi configure readers --illumination_index 1
Type: Default: Series index to read (a series is what some formats call a scene). Pass an integer, --series_indexintall'all', or a comma-separated list such as '0,2,4' (default 0). Formerly scene_index, which still works, with a FutureWarning.# Always read series 2 from multi-series files
eubi configure readers --series_index 2
# Convert each series to a separate OME-Zarr group
eubi configure readers --series_index all
# Convert only series 0, 2 and 4
eubi configure readers --series_index 0,2,4
Type: Default: Rotation index (default 0).--rotation_indexint0# Select rotation index 0
eubi configure readers --rotation_index 0
Type: Default: Mosaic tile index. Pass an integer, --mosaic_tile_indexintall'all', or a comma-separated list (default None = all tiles).# Write every tile separately (default)
eubi configure readers --mosaic_tile_index all
# Write only tiles 0 and 2
eubi configure readers --mosaic_tile_index 0,2
Type: Default: Sample index (default 0).--sample_indexint0# Select sample index 0
eubi configure readers --sample_index 0
Type: boolean flag Default: Valid values: Force the Java Bio-Formats reader even for formats EuBI-Bridge reads natively (CZI, ND2, LIF, IMS...); a fallback when a native read fails.--force_bioformatsFalse--force_bioformats to enable · --force_bioformats False to disable# Always route reads through the Java Bio-Formats reader
eubi configure readers --force_bioformats
Type: boolean flag Default: Valid values: Stack multiple views along the channel axis instead of writing separate OME-Zarr outputs (default False).--concat_viewsFalse--concat_views to enable · --concat_views False to disable# Always stack views onto the channel axis
eubi configure readers --concat_views
Type: boolean flag Default: Valid values: Stack multiple illuminations along the channel axis instead of writing separate OME-Zarr outputs (default False).--concat_illuminationsFalse--concat_illuminations to enable · --concat_illuminations False to disable# Always stack illuminations onto the channel axis
eubi configure readers --concat_illuminations
Type: Default: --pixel_readerstrmicro'micro' (default): read the pixels with micro-reader (a file it does not read falls back to the standard reader with a warning), or 'standard'.
configure metadata — Update output metadata parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: Default: Metadata backend — --metadata_readerstrmicro'micro' (default): micro-reader's metadata, and its pixels with it (no JVM unless a file falls back to Bio-Formats; also writes the stage position as the NGFF translation and wavelengths in the eubi_bridge attributes); 'bfio' or 'bioio'.eubi configure metadata --metadata_reader bfio
Type: boolean flag Default: Valid values: Replace channel names with ones derived from the concatenation tag values (default False).--override_channel_namesFalse--override_channel_names to enable · --override_channel_names False to disableeubi configure metadata --override_channel_names
Type: Default: How to set OMERO window limits — --channel_intensity_limitsLiteral['from_dtype', 'from_array', 'auto']from_dtype'from_dtype' (default) uses dtype min/max, 'from_array' computes per-channel min/max from pixel data, 'auto' gives a display window from a quick overview: the 0.1 and 99.9 percentiles of the smallest resolution level (the dtype's range when that level is over 64 MB).eubi configure metadata --channel_intensity_limits from_array
Type: Default: Per-channel colour overrides as --channel_colorsstr"""0,FF0000;1,00FF00". Channels left out keep their source colour, or are given one automatically.eubi configure metadata --channel_colors "0,FF0000;1,00FF00"
Type: Default: Per-channel name overrides as --channel_labelsstr"""0,DAPI;1,GFP".eubi configure metadata --channel_labels "0,DAPI;1,GFP"
Type: Default: — Physical size of one time step. Unset keeps whatever the source file states.--time_scalefloateubi configure metadata --time_scale 2.5 --time_unit second
Type: Default: — Physical pixel size along z (e.g. --z_scalefloat0.5). Unset keeps the source value.eubi configure metadata --z_scale 0.5 --z_unit micrometer
Type: Default: — Physical pixel size along y. Unset keeps the source value.--y_scalefloateubi configure metadata --y_scale 0.1 --y_unit micrometer
Type: Default: — Physical pixel size along x. Unset keeps the source value.--x_scalefloateubi configure metadata --x_scale 0.1 --x_unit micrometer
Type: Default: — Unit for --time_unitstrtime_scale (e.g. 'second').eubi configure metadata --time_unit second
Type: Default: — Unit for --z_unitstrz_scale (e.g. 'micrometer').eubi configure metadata --z_unit micrometer
Type: Default: — Unit for --y_unitstry_scale.eubi configure metadata --y_unit micrometer
Type: Default: — Unit for --x_unitstrx_scale.eubi configure metadata --x_unit micrometer
configure concatenation — Update aggregative (concatenation) parameters. Omitted arguments keep their current values
Usage:
Optional arguments
Type: Default: — Axes along which to concatenate files. Pass a string of axis letters such as --concatenation_axesstr or int or None'tc' or 'z', or an integer axis index. None disables aggregative mode entirely.# Concatenate files along the channel axis
eubi configure concatenation --concatenation_axes c --channel_tag raw,mask
# Concatenate along both z and channel axes simultaneously
eubi configure concatenation --concatenation_axes zc --z_tag slices --channel_tag raw,mask
Type: Default: — Filename substring (or tuple of substrings) that identifies a file as contributing to the time axis.--time_tagstr or tuple or None# Identify three time-point files by substrings in their names
eubi configure concatenation --concatenation_axes t --time_tag t001,t002,t003
Type: Default: — Filename substring (or tuple of substrings) identifying the channel axis.--channel_tagstr or tuple or None# Two channels — raw fluorescence and segmentation mask
eubi configure concatenation --concatenation_axes c --channel_tag raw,mask
# Single channel — DAPI only
eubi configure concatenation --concatenation_axes c --channel_tag DAPI
Type: Default: — Filename substring (or tuple of substrings) identifying the z axis.--z_tagstr or tuple or None# Multiple z-slices acquired as separate files
eubi configure concatenation --concatenation_axes z --z_tag slice001,slice002,slice003
Type: Default: — Filename substring (or tuple of substrings) identifying the y axis.--y_tagstr or tuple or None# Two rows of a tile scan
eubi configure concatenation --concatenation_axes y --y_tag row_top,row_bottom
Type: Default: — Filename substring (or tuple of substrings) identifying the x axis.--x_tagstr or tuple or None# Two columns of a tile scan
eubi configure concatenation --concatenation_axes x --x_tag col_left,col_right
Type: Default: — Name prefixed to the concatenated output, so several concatenated outputs from one run 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 --aggregative_groupstr or Nonegr1 or A: it becomes part of the output filename.