Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Olympus .vsi download bug #188

Closed
dominikl opened this issue Jan 13, 2021 · 11 comments · Fixed by #264
Closed

Olympus .vsi download bug #188

dominikl opened this issue Jan 13, 2021 · 11 comments · Fixed by #264

Comments

@dominikl
Copy link
Member

dominikl commented Jan 13, 2021

See Olympus .vsi download bug using OMERO.insight.

When Insight downloads a vsi image it puts the files into a directory, this should not happen. Example from the dataset mentioned in the forum post:
Download of vsi image (image id 149046 on demo):

Brain_DAPI_GFAP-488_IBA3-Cy3_MBP-647_coronal10x_coronal-slideA_03.vsi
_Brain_DAPI_GFAP-488_IBA3-Cy3_MBP-647_coronal10x_coronal-slideA_03_/stack1/frame_t_0.ets

ends up in:

frame_t_0.ets/Brain_DAPI_GFAP-488_IBA3-Cy3_MBP-647_coronal10x_coronal-slideA_03.vsi
frame_t_0.ets/_Brain_DAPI_GFAP-488_IBA3-Cy3_MBP-647_coronal10x_coronal-slideA_03_/stack1/frame_t_0.ets

This is not the case with omero downloader. I assume because downloader tries to replicate the managed repository structure locally as close as possible.
I wonder how OMERO.web handles that case?

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/olympus-vsi-download-bug-using-omero-insight/47413/4

@dominikl
Copy link
Member Author

After some debugging I think I found the reason: For a multifile image Insight creates a directory for the files to be put in, using the image name as directory name. In some cases it picks up the vsi file first (correct) and in some cases it picks up the frame_t_0.ets file first (wrong). This is happening here:

String imgFilename = set.getFilesetEntry(0).getOriginalFile()
But I can't fix this in Insight, because it's an issue of the Fileset class: getFilesetEntry(0) or the equivalent getPrimaryFilesetEntry() return in these cases the ets file instead of the vsi.

@CellKai
Copy link

CellKai commented Apr 6, 2021

Hi @dominikl thank your for looking into this issue (I wrote the post on image.sc).
Concerning this, we (@ehrenfeu @lguerard) think a possible solution from the user point of view would indeed be to NOT create the directory to put the files in in the first place . Actually, we think this would be even easier for the user to handle in the end. Do you think this could be a way to go for this issue?

@dominikl
Copy link
Member Author

dominikl commented Apr 7, 2021

👍 I think that makes sense. Just openend a PR for that.

@CellKai
Copy link

CellKai commented Apr 7, 2021

super, that's awesome :) thank you very much!

@dominikl
Copy link
Member Author

Further discussion see on now closed PR #217 .

@CellKai
Copy link

CellKai commented Jun 28, 2021

Hi @dominikl @jburel @pwalczysko , I'd like to bump this ticket again :)

As @pwalczysko summarized in PR #217, we are looking for a solution where OMERO.insight does not create any new folders that are not part of a given proprietary file format, but also does not skip the folders which are crucial for the proprietary file formats like vsi to function properly.

Thank you for your time and help!

@dominikl
Copy link
Member Author

I'll have another look at this issue. Maybe I can figure out how Omero Web is doing it and completely overhaul the Image download code in Insight. Omero Web does exactly what you'd expect, is that correct @CellKai ?

@CellKai
Copy link

CellKai commented Jun 30, 2021

Hi @dominikl, thank you for picking up this issue again!
Omero Web is zipping the vsi files and companion folders and limits the total size to 1 GB, which I understand for the web, but should not be done in OMERO.insight I think.
In my tests, the file organization inside the zip from OMERO web was indeed correct though, so this might be a good reference.
2021-06-30_14-03
2021-06-30_14-00

@jburel
Copy link
Member

jburel commented Jun 30, 2021

@dominikl it might good to see the layout when downloading lionheart MRI DICOM from Web and compare if it is correct.
Your initial work done in #217 was fixing the problem described in this issue but it was breaking the lionheart MRI DICOM layout

@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/download-vsi-files-from-omero-fails/83314/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants