-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add Java JVM and MaxEnt model application to EOXHub #36
Comments
It should work with a recent (open) JDK, like Temurin 21.0.1. |
Response from Hub Team: |
Ok, I will add that to my list to look into. |
Creating a Docker container with Java and the MaxEnt model should be doable, but will take some effort from us to figure it out and how to create a usable container. It would e.g. need terminal access to run the maxent commands, and a data volume to share the input and output data of the model. Before investing further UC time in this we decided to evaluate the MaxEnt model further locally first, and when we decide it is the best suitable species distribution model for our use case we will look into containerising it. |
Closing issue for now, until local testing has been completed. |
as now also UC1 required Maxent for its work, I re-open the issue... |
@robknapen |
@eox-cs1 I experimented briefly with it hoping to use it purely as a command line based application, but it very quickly pops up dialogs on the screen, e.g. with error messages and an 'ok' button to click. It also likes to display charts etc. It is very much a Java Desktop application. Maybe using X11 the display can be forward to an X client on a laptop so that application can be used that way. But that is where I stopped spending time on it and considered that it might be more useful for our use case to try to find an alternative maximum entropy model implementation for Python or R, or even another way to do the species distribution modelling we need (e.g. with a random forest model). Or run the Java MaxEnt application locally if there are no other options. |
@robknapen thanks for sharing your findings. |
Perhaps if everything is perfect :-) But it is a desktop application so very likely that many things will cause GUI dialog boxes and windows to be shown for the user to interact with. I think otherwise in the many years that it exists someone would already have put it on a server or in a container. Unless its license even doesn't allow that, which would also be an issue. |
Thanks. |
Thanks for checking. And indeed, it is probably not very suitable to be run as a container. Maybe with the X11 forwarding of the display, but that would be cumbersome and not for the average Windows user I guess. You would want something that can do long-running computations in the background without a change of it popping up GUI stuff and waiting for a response. |
Hi @robknapen, have you looked into these two Python implementations of MaxEnt? |
Hi @robknapen and @mari-s4e, |
@mari-s4e @robknapen @vittekm I |
For our use case we want to run the Java-based MaxEnt model for species distribution modelling. It can be used directly from the command line, without using the graphical user interface of the program.
The MaxEnt model is open source and available here:
https://biodiversityinformatics.amnh.org/open_source/maxent/
However since it is a Java based application, it also requires a Java JVM to be available.
Is it possible to include both into the/a fairicube server on eoxhub? The current one that I can start (which has the PyTorch packages as well) does not have Java installed and it does not allow me to self-install programs.
The text was updated successfully, but these errors were encountered: