mfitzp / pathomx

Workflow based scientific analysis built on Python
https://www.mfitzp.com/tools/pathomx/
GNU General Public License v3.0
91 stars 30 forks source link

Plugin: Matlab integration #3

Closed mfitzp closed 10 years ago

mfitzp commented 10 years ago

Integrating with existing MATLAB tools would be a real bonus.

The simplest cross-platform method for integration would probably be using pymatlab-bridge but other method's are available.

Passing data into MATLAB and running a script/function (probably definable within the tool) might be the easy part. Implementing a useable interface for pulling apart Pathomx dataset objects and reassembling the results might be a bit more tricky! However, once an interface for this is worked out it can form the basis of other linkages (e.g. [R]).

mfitzp commented 10 years ago

A base of this (and R support) has now been implemented. However, both the MATLAB and R interfaces are single-thread and blocking, so a centralised locking mechanism for this needs to be implemented. This in turn will require tools to have the ability to "wait" for a resource to become available to them before running. So making this work requires a bit of work on the threading/calculation back-end.

mfitzp commented 10 years ago

Locking mechanism implemented so that multiple MATLAB tools play nicely together. Includes support for auto-restart of dead MATLAB interface. The Python to MATLAB interface (mlabwrap) needs a patch to support Student versions of MATLAB then the new version is ready for release.