-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hi
Great tool, thanks!
I've managed to get Calculate-Transforms to work on some ome.tiff files but when I tried to Apply-Transforms I get the following error:
ERROR: Cannot invoke method readImageData() on null object in Apply-Transforms.groovy at line number 132
It seems this is due to files being ome.tiffs so that def (targetImageName, imageExt) = targetFileName.split('\\.') cuts the tiff of the end and makes imageExt "ome" not "ome.tiff" - this then makes list_of_reference_image_names incorrect.
print(list_of_reference_image_names) outputs INFO: [3206A5_ER.ome].
In Calculate-Transforms this isn't an issue as you explicitly state extensions in wsiExt =.
the easiest work-around is by renaming slides in the project name_stain.tiff and setting wsiExt = .tiff.
I also got it working by adding imageExt = ".ome.tiff" in Variables to set and removing from def (targetImageName) = targetFileName.split('\\.') as well as altering refFileName = slideID + "_" + refStain + imageExt.
I couldn't work out a better way of using split() to account for multiple ".".
Hope this is of use to anyone who has run into the same issue and like me is a novice coder. Now getting some fairly good faux multiplexes from my DAB sections.
Cheers
Phil