steinbock icon indicating copy to clipboard operation
steinbock copied to clipboard

Auto detect if `imwrite` should use ome and bigtiff or not

Open matt-sd-watson opened this issue 2 months ago • 2 comments

Related to: https://github.com/cgohlke/tifffile/issues/279

Recently, we have collaborators that report truncation of tifffiles written at the steinbock preprocess imc images step here, presumably because of the ImageJ 4GB size limit.

I believe that this could be resolved if the pipeline were able to detect when a sufficiently large array should be written as big tiff or not. It appears that this option is not used currently: https://github.com/BodenmillerGroup/steinbock/blob/7b73f2925b68a351925e89aa145a7a739741b2b7/steinbock/io.py#L191

matt-sd-watson avatar Dec 13 '24 19:12 matt-sd-watson