External Email - Use Caution        

Hi there,

Thanks for the advice, I have followed these suggestions and used the 
fs_install_mcr command and can see the the libmwm* libraries are installed 
under $FREESURFER_HOME/MCRv97/bin/glnxa64. I also added the path the script 
suggested once finished to LD_LIBRARY_PATH. I’m now not sure how to open matlab 
now though as I can’t find any executable matlab file? There were no error with 
the command but it doesn’t look like matlab was installed…

Thanks again for the help,

Sophie Matis | Data Management & Research Officer
School of Health Sciences & Brain and Mind Centre
Faculty of Medicine and Health

The University of Sydney
Brain and Mind Centre, 94-100 Mallett Street, Camperdown (M02G) | The 
University of Sydney | NSW | 2006
sophie.ma...@sydney.edu.au<mailto:shona.brin...@sydney.edu.au>  | 
sydney.edu.au<http://secure-web.cisco.com/1LNCVY-V_pCXtsh-3fvLILUg4Gjx2MpjNmpEjb8TT-p9PBtVnwf1Peehe1ltYAjzBqoU68lJHSp8uequwNAk3VBEVAFOWzLjbcTFewQlMlMOugkmkHbzYVEqceVA4zWw2iGhsVTz63kYUVTXvqlL61pdXh9twCFQMDBpOp7qpDsYM6mW4TaJ7sQ967zPbEraDTds7L-XhorbnYYiE1kKsDp83dbbxnte7R-3UwgS-V4tiZFgFSF4iO9b0v5Nz3YFGgnFQSHhvt2b9mmou5C40jfGyUQF3KEVUtrXQ3Ns_WKUemDzctLj5VFD3RnYT25CC/http%3A%2F%2Fsydney.edu.au%2F>

CRICOS 00026A
This email plus any attachments to it are confidential. Any unauthorised use is 
strictly prohibited. If you receive this email in error, please delete it and 
any attachments.

Please think of our environment and only print this email if necessary.

From: freesurfer-boun...@nmr.mgh.harvard.edu 
<freesurfer-boun...@nmr.mgh.harvard.edu> On Behalf Of fsbuild
Sent: Saturday, November 25, 2023 6:43 AM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] Longitudinal LME matlab error - Matrix singular or 
badly scaled


        External Email - Use Caution

Hello Sophie,

Just FYI, there is no matlab distribution included in the 7.4.1 release and we 
so not support using R2023b.  So I presume someone at your site installed 
R2023b separately via a Mathworks matlab installer.  We do provide a script, 
fs_install_mcr, to install either the R2014b or R2019b matlab runtime 
environment into the freesurfer tree for use.  I don't know if running R2019b 
would affect what you report below, but you could try it via the commands below.

- R.
$ export FREESURFER_HOME=/usr/local/freesurfer/7.4.1                  <--- 
linux install path

$ source $FREESURFER_HOME/SetUpFreeSurfer.sh

<... output showing SUBJECTS_DIR and other environment variables>

$ cd  $FREESURFER_HOME/bin

$ sudo FREESURFER_HOME=$FREESURFER_HOME  ./fs_install_mcr  R2019b

I believe this sets things up so the libmwm* libraries are installed under 
$FREESURFER_HOME/MCRv97/bin/glnxa64.  You can try adding that path (or any path 
the script output recommends) to the start of LD_LIBRARY_PATH.  You should 
remove any other entries to a different MATLAB distribution.


On 11/23/23 20:42, Sophie Matis 
(sophie.ma...@sydney.edu.au<mailto:sophie.ma...@sydney.edu.au>) wrote:

        External Email - Use Caution
Hello FreeSurfer experts!

I have carried out some analysis of changes in cortical thickness over time 
using the LME Matlab (R23b) Toolbox distributed within Freesurfer (7.4.1) in 
line with the instructions on this page:  MailScanner has detected a possible 
fraud attempt from "secure-web.cisco.com" claiming to be 
https://secure-web.cisco.com/1rNAD4gqg44tkqx4SQvGQfRilSVHebkoBEjCBFe7yx4GGhaVU5ytZzXCaB0bQ3GAIMm2B7rh7UpMNRihMD0QPputJ75YiTNMSTWUN_ba62-4zZ2denQpP6lkce9-6qINWcwYFXBvjhxfe1ySIOobRriSIqEy-3UICw6KGgrJH18klJVz-rDHfYQ4xDIzlkGyba9LK2HRKT6hmmWDpIf6ly28ni5e_5jf3j2YY9K2OSy0Izvd_rBtnoUCNliwoVwuwFylix0H3wpS9TqZZxqr1Nud-0lPsrmIlaIhjQHtQLbNompRLBYZ7KLc42XBOYfAN/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FLinearMixedEffectsModels<https://secure-web.cisco.com/1T0jceJqjr8o0YltVDmmB4EAlEhKr0pMp8gIavJ6vaUX1HtK-Q7_-yis2I7b9vCr3VJvdjHFpm7iOSm-HwZDzLYf9Nkj3tT_o8O99hjM6rAdq1g-WORzpm0WPWMgQJgFAhXft6qOrg2xj11ey4u2NsJXZ3jTQi3YP8bPpvvJB7IqfGoNub-6dGd_s6cilB6iqLKwORhHOIfRB0ZG-bCXTKNUbxYdeLONr_Yrr1o35sEMNfnZLfwT9iBoaqpJ007DIJRYohd5R1rxIU-WwpMzx_LQw7DlgyJUcyfbsyDixY8O15o-b4J-7Z3i5E1XSMaoz/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FLinearMixedEffectsModels>

At this stage I just want to look at changes over time within each of three 
groups. For two groups I have been able to proceed through the steps fine and 
have my significance files which look normal. For the last group I am running 
into an error on the “[lhTh0,lhRe] = lme_mass_fit_EMinit(X,[1 
2],Y,ni,lhcortex,3); “ step. MATLAB returns “Warning: Matrix is singular, close 
to singular or badly scaled” and lhTh0 and lhRe are created as matrices with 
only NaN values.

Has anyone run into this error before or have any tips for troubleshooting it?

I haven’t had any errors on the longitudinal processing steps and visual QC on 
my files looks normal. No errors on mris_preproc or mri_surf2surf.  An 
aparcstats2table for thickness doesn’t reveal any NaNs.

My design matrix is created with X = [ones(length(M),1) M] after following the 
suggested sortData code from the wiki
Contrast is [0 1]
This is my qdec file:

fsid    fsid-base       yearsfromBL
108_MR1       108   0.00
199_MR1       199   0.00
199_MR2       199   1.10
199_MR3       199   2.25
202_MR1       202   0.00
204_MR1       204   0.00
204_MR2       204   1.16
204_MR3       204   2.30
223_MR1       223   0.00
0821_MR1      0821  0.00
0931_MR1      0931  0.00
1010_MR1      1010  0.00
1010_MR2      1010  1.84
1031_MR1      1031  0.00
1031_MR2      1031  1.00
1031_MR3      1031  2.13
1064_MR1      1064  0.00
1064_MR2      1064  2.01
1125_MR1      1125  0.00
1134_MR1      1134  0.00
1134_MR2      1134  1.17
1134_MR3      1134  2.28
1233_MR1      1233  0.00
1233_MR2      1233  1.05
1373_MR1      1373  0.00
1439_MR1      1439  0.00
1439_MR2      1439  1.14
1439_MR3      1439  2.28
1475_MR1      1475  0.00
1475_MR2      1475  1.04
1475_MR3      1475  2.03
1522_MR1      1522  0.00
1522_MR2      1522  2.07
1541_MR1      1541  0.00
1541_MR2      1541  1.47
1551_MR1      1551  0.00
1551_MR2      1551  0.98
1551_MR3      1551  2.05
1572_MR1      1572  0.00
1572_MR2      1572  1.03
1625_MR1      1625  0.00
1625_MR2      1625  1.06
1637_MR1      1637  0.00
1641_MR1      1641  0.00
1656_MR1      1656  0.00
1656_MR2      1656  0.94
1656_MR3      1656  2.26
1755_MR1      1755  0.00
1755_MR2      1755  1.04
1755_MR3      1755  2.01
1829_MR1      1829  0.00
09154_MR1     09154 0.00
09154_MR2     09154 1.01
09154_MR3     09154 2.01
12110_MR1     12110 0.00
12110_MR2     12110 1.04


Any help appreciated!

Thank you,

Sophie Matis | Data Management & Research Officer
School of Health Sciences & Brain and Mind Centre
Faculty of Medicine and Health

The University of Sydney
Brain and Mind Centre, 94-100 Mallett Street, Camperdown (M02G) | The 
University of Sydney | NSW | 06
sophie.ma...@sydney.edu.au<mailto:shona.brin...@sydney.edu.au>  | 
sydney.edu.au<http://secure-web.cisco.com/1TuWK5WUev2Fb_3Y4GMAFPyrgRjl5K2o4Isb-heH5rrBUMMXjrcSBv64tyDOqZgQRYa26qVsbjDGLjAnnXaDJXUQdbW0LVvM_Y_Sd6Fda41zdGFyuVrM5eSK_pZ-24SCZ2gnso-c6sS_rF7WhUD1QQKKugvYO7mxXTOv2xrLMvIcbQaqJTphk2bzWXI753rXjMuj-06CGcUR9jT9D_6uhEPw5QNl_vnNJ8wlP3J4YCMwG0erQNjpVhM3fBFtW0a922mBpG6D88G1Y88s-AcNu7XMpIsZEV7DcDAiwr7ekJHGqy95lNBfIW2SNfaAsx5H1/http%3A%2F%2Fsydney.edu.au%2F>

CRICOS 00026A
This email plus any attachments to it are confidential. Any unauthorised use is 
strictly prohibited. If you receive this email in error, please delete it and 
any attachments.

Please think of our environment and only print this email if necessary.




_______________________________________________

Freesurfer mailing list

Freesurfer@nmr.mgh.harvard.edu<mailto:Freesurfer@nmr.mgh.harvard.edu>

https://secure-web.cisco.com/1bVqyZsJlEGBEu6I8GIllasHy__EHHafQ8Z76FdOUxx1XFxIeEHabzdjX734ZBYWOJ2ZDyZyZ9ytgwtNs8aCnOW7P-j9f6R5GNlmdH9BT0QVv0dCMozQ2oiGMFwQAx9t5OroJRTzCZEZ4CjXQaTGXzIPe_qXEsHBEajR3WqlPKaev98OqVpZxAMRosyxgWoiZXetOqizMMMrBr0XG01s5I270GGoJZah6NlRl51A_cCCFTWx2eYlSoeQ0izdAnPHpGHL4OU7YZaEyeJAJDbYgCRxKQDvx5Wu1b6fsM50WVx047NlRY0XjUAyqmiJV_lm2/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer<https://secure-web.cisco.com/1WlqBFSCXPhk0zZyEiyk59uBTKP0m6tzY7-IQfK48IK3X3koG5ekfHZRYDm70QVyR1Z24amICog65EUV6xIUwVpxcFVCCKjKMGEN_oYdFrMHCdP73-3bZOZRbOsv-v1EKhfLZi__MrQFf47eJgb_fovb3tEd-TOny7LkHNJGdfH8zYdRR4--01NMBwCzLPqfLA9hYgJ4lnT3b9f_TZHOFI9p-S1gEeqZd_bo26tVUjgv6wzuVc9mdYd8rUzzSKzqlylk7vvJNgeRC-L10ndyUGAniUXhrmbqF8sVrZBneSHsZ37Ch3OSYTwPCWls8jFY4/https%3A%2F%2Fprotect-au.mimecast.com%2Fs%2F3Rb0CJyBrGfBwnrQKtVZjV_%3Fdomain%3Dmail.nmr.mgh.harvard.edu>

Please note that this e-mail is not secure (encrypted).  If you do not wish to 
continue communication over unencrypted e-mail, please notify the sender of 
this message immediately.  Continuing to send or respond to e-mail after 
receiving this message means you understand and accept this risk and wish to 
continue to communicate over unencrypted e-mail.

_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Reply via email to