Welcome to the Allen Cell Discussion Forum, the official community site for Allen Institute for Cell Science! This forum is a place for learning, helping, and sharing experiences of using our publicly-available cell lines, plasmids, genomic data, software, and analytic tools.
Get started: read our new user guide and know our community guidelines.
Hello! So I have Allen Segmenter downloaded on my laptop and on a desktop…but for some reason the desktop is having issues opening files because of the following error:
I noticed in the “Loading the Data” part of the workbook:
My desktop says –
print(IMG.shape)
(1, 1, 1, 141, 512, 1167) -> it has an extra 1 in there
My laptop says –
print(IMG.shape)
(1, 1, 141, 512, 1167) -> this works
I double checked that I am indeed using the exact same file on both. Any hints as to why this is happening and where the extra 1 is coming from ? The only thing I can think that may be different between the desktop installation and the laptop one is I had to use numpy 1.19.3 (instead of 1.19.4) on the desktop because it was getting a runtime error otherwise.
EDIT: The laptop (one that works) is aicsimageio version 0.6.4, aicsimageprocessing 0.7.1, aicssegmentation 0.1.18.dev1.
The desktop one is aicsimageio 3.3.1, aicsimageprocessing 0.7.1, aicssegmentation 0.1.21.dev1.
hi @mramsahoye , as you edited, the descrepency you encountered was indeed due to different aicsimageio versions. If you are using aicsimageio = 3.X.X, then you will need to use IMG[0, 0, 0, MID_SLICE, : , :] or IMG[0, 0, Channel, MID_SLICE, : , :] . If you are using aicsimageio = 0.6.x, then you will need to use IMG[0, 0, MID_SLICE, : , :] or IMG[0, Channel, MID_SLICE, : , :]. Let me know if you have more issues.
The version of aicsimageio you are using gives back 6D images with STCZYX dimensions by default (where S is scene). That’s why the leading zero was needed to select scene 0.