Closed mjseignon closed 1 year ago
Hi @mjseignon, thanks so much for reporting this!
The lines in external.py
you mention are correct. However, there seems to be a bug in the io._as_path_with_suffix
function: for .ome.tiff
files, this function erroneously overrides the provided suffix
function argument with e.g. "tiff"
(without a prefix dot, which is why the the error message indicates an invalid suffix).
https://github.com/BodenmillerGroup/steinbock/blob/66e9717db847c9680f92b48bfc09ba310ffdce41/steinbock/io.py#L23-L32
We'll release a bugfix asap!
I'm working with .ome.tiff file from CODEX and I get this error when I try to run the conversion for steinbock compatibility.
This might be a problem with steinbock/steinbock/preprocessing/_cli/external.py Where at line 116/117 we have :
img_file = io._as_path_with_suffix( Path(img_dir) / Path(ext_img_file).name, ".tiff" )
instead of :img_file = io._as_path_with_suffix( Path(img_dir) / Path(ext_img_file).stem, ".tiff" )
Let me know if more detail is needed.