Cellular-Imaging-Amsterdam-UMC / CI-ImagingLIF

Accessing Leica LIF and XLEF files in Matlab
GNU General Public License v3.0
2 stars 1 forks source link

Errors when loading .lif file #1

Open cxen opened 3 months ago

cxen commented 3 months ago

Currently using the old "ci_loadLif.m" in MatLab and noticed that the code has received a lot of development the last few years.

However, I had no success using the latest CI_ImagingLIF.mlapp (cloned from github). When running the app and trying to load a .lif file, nothing happens and the bellow error codes are displayed.

I tried changing \ to / as suggested but not sure what else is needed to make it run on Mac.

Device: Macbook M2 OS: Sonoma 14.4 Matlab v.R2024a

Dot indexing is not supported for variables of this type`.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/ChannelsValueChanged (line 971)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating StateButton PrivateValueChangedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/AllButtonPushed (line 985)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/AllButtonPushed (line 985)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/ChannelsValueChanged (line 971)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating StateButton PrivateValueChangedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/AllButtonPushed (line 985)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/AllButtonPushed (line 985)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.

Dot indexing is not supported for variables of this type.

Error in CI_ImagingLIF/DoShowImage (line 504)
                if strcmpi(lifinfo.datatype,'Image')

Error in CI_ImagingLIF/AllButtonPushed (line 985)
            DoShowImage(app, app.clifinfo)

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.

Unrecognized function or variable 'xml2structstring'.

Error in CI_ImagingLIF/ReadLeicaLIF (line 108)
            s=xml2structstring(['<?xml version="1.0" encoding="ISO-8859-1"?>' XMLObjDescription]);

Error in CI_ImagingLIF/SelectFileButtonPushed (line 773)
                    ReadLeicaLIF(app);

Error in matlab.apps.AppBase>@(source,event)executeCallback(ams,app,callback,requiresEventData,event) (line 62)
            newCallback = @(source, event)executeCallback(ams, ...

Error while evaluating Button PrivateButtonPushedFcn.
RAHoebe commented 1 month ago

Hi, sorry for the late reaction. The Matlab program was only tested on Windows. So MAC and Linux are not supported out of the box. You have to look into the code for the file handling and separators. And you have to recompile the xml2struct mex files.