Skip to content

Prd

linc_convert.modalities.lsm.prd

Convert Kinetix .prd image(s) to OME-Zarr/NIfTI-Zarr.

A .prd file is a stack of uint16 frames with a fixed header and inter-frame gap, and padding at the end. The input is a directory of ss_stack_*.prd files, which are concatenated along the acquisition order.

Example input files can be found at https://dandiarchive.org/dandiset/001769/draft/files?location=rawdata/HG9_Z1_Y1

convert

convert(inp, *, voxel_size=(1, 1, 1), general_config=None, zarr_config=None, nii_config=None)

Convert Kinetix .prd file(s) into a pyramidal OME-Zarr or NIfTI-Zarr.

Parameters:

Name Type Description Default
inp str

Path to a directory of ss_stack_*.prd files.

required
voxel_size list[float]

Voxel size along the X, Y and Z dimensions, in microns.

(1, 1, 1)
general_config GeneralConfig | None

General configuration

None
zarr_config ZarrConfig | None

Zarr related configuration

None
nii_config NiftiConfig | None

NIfTI header related configuration

None