YongLiuLab / brant

documentation for BRANT
8 stars 3 forks source link

GUI/application not working #8

Open abfeld007 opened 9 months ago

abfeld007 commented 9 months ago

Hi, I have successfully installed matlab R2023b and SPM12 on my computer. I am running MacOS 12.2.1 Monterey. When I open brant the splash screen appears, but then if I try to click on any button nothing happens and this error message comes up in matlab...

brant ----------------------*

  • Welcome: abidm1, 2024-01-29 22:30
  • BRAinNetome Toolkit (BRANT)
  • Version = 3.37
  • Release = 20201230
  • Copyright(c) 2010 - now
  • Brainnetome Center: http://www.brainnetome.org
  • National Lab of Pattern Recognition(NLPR)
  • Institute of Automation,
  • Chinese Academy of Sciences(CASIA), China
  • Homepage GitHub ----------------------*

Error using matlab.graphics.Graphics/set Unrecognized property Units for class AnnotationPane.

Error in brant (line 33) set(allchild(h_fig), 'Units', 'characters');

Unrecognized function or variable 'brant_postprocess'.

Error in brant (line 46) brant_postprocess(upper(Action));

Error while evaluating UIControl Callback.

gourdchen commented 9 months ago

Thank you for your feedback!

We've identified an issue in the GUI, stemming from changes in the MATLAB GUI API in the latest version. However, it does not impact the functionality of the software, and you can safely disregard it.

The Unrecognized function or variable 'brant_postprocess' problem is likely due to the absence of the subpath for all the BRANT directories.

To address this:

  1. Configure BRANT paths:
  2. Open MATLAB and click on "Set Path."
  3. Choose "Add with subfolders."
  4. Select the unzipped BRANT folder.
  5. Click "Save."

ref: https://sphinx-doc-brant.readthedocs.io/en/latest/Download.html

This should resolve the issue. Best.

abfeld007 commented 9 months ago

Thank you for the quick response. Now I am able to open each function, like TSNR. However, when I try to click on any "..." to change/add the input directory (or output directory, etc.) I get error because of an unrecognized 'cfg_getfile'. Here is the output in matlab:

brant ----------------------*

  • Welcome: abidm1, 2024-01-30 16:39
  • BRAinNetome Toolkit (BRANT)
  • Version = 3.37
  • Release = 20201230
  • Copyright(c) 2010 - now
  • Brainnetome Center: http://www.brainnetome.org
  • National Lab of Pattern Recognition(NLPR)
  • Institute of Automation,
  • Chinese Academy of Sciences(CASIA), China
  • Homepage GitHub ----------------------*

Error using matlab.graphics.Graphics/set Unrecognized property Units for class AnnotationPane.

Error in brant (line 33) set(allchild(h_fig), 'Units', 'characters');

Warning: The JavaFrame figure property will be removed in a future release. For more information see UI Alternatives for MATLAB Apps on mathworks.com.

In findjobj/getRootPanel (line 392) In findjobj (line 225) In brant_postprocesses_sub>create_elements (line 823) In brant_postprocesses_sub (line 84) In brant_postprocess_ui>doCallback (line 58) Unrecognized function or variable 'cfg_getfile'.

Error in brant_postprocesses_sub>pushbutton_cb (line 1248) [disp_input, sts] = cfg_getfile(1, nifti_support, '', val);

Error while evaluating UIControl Callback.

abfeld007 commented 9 months ago

Any thoughts on this second error?

gourdchen commented 9 months ago

Sorry for the late reply. Would you please try the command spm fmri in matlab before open brant?

abfeld007 commented 9 months ago

opening spm fmri before hand did allow me to change inputs in the GUI. Now there is an odd error that says:

Unrecognized field name "thres".

However, in my version of the application there is no field to add threshold (mac). But in the example you give on your website it does have line for threshold. See screenshots.

Screen Shot 2024-02-01 at 4 15 04 PM Screen Shot 2024-02-01 at 4 15 15 PM
gourdchen commented 9 months ago

You can download the latest version by cloning the repository https://github.com/YongLiuLab/brant-stable Hope this is helpful for you.