Hi
Is it possible to run a compiled matlab program from the Omero.insight?
I saw this tool Omero.mtool, but it's a standalone Matlab application that requires to be installed separately from the client.
If you are looking at called a MATLAB application client-side, it should be possible. The application will still need to be installed separately. From the OMERO.insight client, you should be able to launch it like any other third-party applications using the
Open With... options when right clicking on an object.
1. Call compiled matlab program via python scripts?
If you are looking into invoking compiled MATLAB application server-side (where Python scripts are executed), it should also be possible provided both the program and the MCR are available to the server. If you are writing an OMERO.script, I would expect you should be able to use `subprocess.Popen` using the full path to the compiled program executable and the expected arguments.
FYI: I know that MATLAB functionality can be mixed into Python scripts. But currently we are having issue installing Matlab on the server for our own reason. And that's why I'm seeking this route with matlab executables.
This approach makes complete sense. In the case of OMERO.mtools mentioned above, the MATLAB source code lives on
GitHub. In addition, for each release the tools are compiled into a MATLAB executable for deployment and distribution purposes (see
downloads page).
We have not had feedback from anyone who would have used this binary MATLAB application via scripts yet but it would be very interesting to hear from your experience.
Best,
Sebastien