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

Can't use OMERO extension in qupath script #11

Open
CuB0 opened this issue Oct 26, 2021 · 2 comments
Open

Can't use OMERO extension in qupath script #11

CuB0 opened this issue Oct 26, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@CuB0
Copy link

CuB0 commented Oct 26, 2021

Good evening.

In the past days i tried to script my entire workflow in qupath.
The idea is to call QuPath from the CLI and pass the script and the project.

The script is ok when i run it from the GUI getting the images from my OMERO server.

The problem arises when i try to execute the script from the CLI. I can't understand if it's possible to and how i can pass my OMERO server credentials as an option to the image server builder.

I tried to read the code but, for my little understanding of the Java language, i didn't find anything.

Is there something that i'm missing?

Thank you for your patience.

@melvingelbard
Copy link
Contributor

Hi @CuB0 ,

I'm afraid it is not really currently possible. I'll investigate how we can safely pass a file/credential argument to the login method and login to an OMERO server via the CLI and report back whenever I have some more info. You'll probably see something about this on the forum soon.

@melvingelbard melvingelbard added the enhancement New feature or request label Nov 12, 2021
@shuangyanl
Copy link

Hi @melvingelbard , I think I have similar issue here. I'm trying to read image list from a project and read image data from this list using QuPath Java API directly instead of running a script in QuPath.

Code snippet:

List<ProjectImageEntry<BufferedImage>> imageList = project.getImageList();
ProjectImageEntry projectImageEntry = imageList.get(0);
ImageData<BufferedImage> imageData = projectImageEntry.readImageData();

However, I then got the “java.lang.ExceptionInInitializerError at qupath.lib.images.servers.omero.OmeroWebClient$OmeroAuthenticatorFX.getPasswordAuthentication”.

The images are stored/loaded from an Omero Server via QuPath. So in my project.qpproj file, the “serverBuilder/providerClassName” and “uri” of an image is something look like:

…
“providerClassName”: “qupath.lib.images.servers.omero.OmeroWebImageServerBuilder”,
“uri”: “https://omero-prod/…/webclient/?show%3Dimage-12345”,
…

Question:
Is there some other way that I can pass the omero credential info in my Java code to the Omero extension (e.g. OmeroWebClient class)?

Any comments would be appreciated.

@CuB0 CuB0 changed the title Can't use OMERO extension in qupath scipt Can't use OMERO extension in qupath script Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants