External Email - Use Caution
Thank you so much, Douglas!
Turned out that negating the second column of the affine matrix was the right thing to do :)Â My code was not working for another reason (the code wasn't reading the nifti header correctly).
You're right: the affine matrix is the multiplication of scaling, rotation, shear, and translation matrices. So if the original affine matrix is M, the scaling matrix is S, and the corrected affine matrix is Mc:
Mc = M @ S
If we define S matrix as:Â
S = np.array([[1, 0, 0, 0],           [0, -1, 0, 0],           [0, 0, 1, 0],           [0, 0, 0, 1]])
The result on Mc will be negating the second column, which we can directly do by:
Mc = MMc[:, 1] = - M[:, 1]
instead of multiplying M and S.Â
Thank you for your input, I appreciate it :)Â
Arman Avesta
the easiest way to think about it is in terms of matrices. You have an affine matrix M already that converts from col,row,slice to xyz. When you flip the 2nd dim, it is like you are applying a matrix R to the new col,row,slice to get the old col,row,slice, so your new affine matrix will be M*R. R will be something like1 0 0 0
0 -1 0 Nrows
0 0 1
0 0 0 1
On 9/15/2022 4:39 PM, Arman Avesta wrote:
        External Email - Use Caution
Hi gang,
I hope you're enjoying the last stretch of summer!
I am writing a python code that reads NIfTI images, changes their coordinate system into LAS (*MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be* http://secure-web.cisco.com/1BgqieiGDbxuT4tCHyJZWr1ABBl6JirOFjUmCoUV-_5mJyi… <http://secure-web.cisco.com/1_56Y7I55cGEKACYrc6S3VTmRRwExp_9ZrFfAHl414WhHLP…>), and then saves the corrected NIfTI mage.The function that corrects the coordinate system is copied below. I am not sure if I am changing the *affine transform* (from the MRI space to the scanner space) correctly.For instance, to go from LPS to LAS, I should flip the image in 2nd dimension. The piece that I'm not sure about is if I should negate the 2nd column of the affine matrix or if the affine correction is more complicated:image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
I would really really appreciate any help here! I'm stuck :D
Cheers,
Arman
-----------------------------------------------------------------
def correct_coordinates(image, affine, coords):
""" This function re-orients the MRI volume into the standard radiology system, i.e. ('L','A','S'), and also corrects the affine transform for the volume (from the MRI volume space to the scanner space). Inputs: - image: MRI volume - affine: affine transform for the MRI volume (e.g. [[-5, 0, 0, 1] [0, -5.2, 7.8 1.6] [0, 6.9, 5.9, -7.7] [0, 0, 0, 1]] - coords: the coordinate system of the MRI volume (e.g. ('L', 'P', 'S') Outputs: - image: corrected MRI volume in the standard radiology coordinate system: ('L', 'A', 'S') - affine: corrected affine transform (from MRI volume space to the scanner space). """ if coords == ('L', 'A', 'S'): return image, affine
if coords == ('R', 'A', 'S'):
image = np.flip(image, 0)
affine[:, 0] = - affine[:, 0]
return image, affine
if coords == ('L', 'P', 'S'):
image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
# print('func coords: ', coords) # print('func corr coords: ', nib.aff2axcodes(affine)) # print('function affine: \n', affine) return image, affine if coords == ('L', 'S', 'A'):
image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
return image, affine
if coords == ('L', 'I', 'A'):
# L,I,A --> L,A,I image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
# L,A,I --> L,A,S image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
return image, affine
if coords == ('L', 'P', 'S'):
image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
return image, affine
if coords == ('L', 'I', 'P'):
# L,I,P --> L,I,A image = np.flip(image,2)
affine[:, 2] = - affine[:, 2]
# L,I,A --> L,A,I image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
# L,A,I --> L,A,S image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
return image, affine
if coords == ('P', 'I', 'R'):
# P,I,R --> A,I,R image = np.flip(image, 0)
affine[:, 0] = - affine[:, 0]
# A,I,R --> A,S,R image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
# A,S,R --> A,S,L image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
# A,S,L --> L,A,S image = np.moveaxis(image, [0, 1, 2], [1, 2, 0])
affine[:, [0, 1, 2]] = affine[:, [1, 2, 0]]
return image, affine
raise Exception('coords not identified: please go to correct_coordinates function 'Â 'and define the coordinate system.')
External Email - Use Caution
I would like a/the password for extracting the 7z-file of the ubuntu virtual disk image (vdi).
Thank you in advance :)
Br,
Christian Stald Skoven
Ph.D., Post Doc, Preclinical MRI
CFIN, AUH
External Email - Use Caution
Dear Freesurfer Experts
I am trying use segmentHA_T1.sh:
During the registration of imageDump.mgz to target hippoAmygBinaryMask_autoCropped.mgz, I get the warning:
* WARNING: Registration did not converge in 5 steps!
* Problem might be ill posed.
* Please inspect output manually!
Also I can’t seem to find „imageDump_coregistered.mgz“, to check the aligned result (as advised in the log file)
The script runs fine and the outputs look ok, too; still I was wondering what is going wrong here.
Many Thanks in advance!
Tom
External Email - Use Caution
Hi gang,
I hope you're enjoying the last stretch of summer!
I am writing a python code that reads NIfTI images, changes their coordinate system into LAS (http://secure-web.cisco.com/1_56Y7I55cGEKACYrc6S3VTmRRwExp_9ZrFfAHl414WhHLP…) and then saves the corrected NIfTI mage.Â
The function that corrects the coordinate system is copied below. I am not sure if I am changing the affine transform (from the MRI space to the scanner space) correctly.Â
For instance, to go from LPS to LAS, I should flip the image in 2nd dimension. The piece that I'm not sure about is if I should negate the 2nd column of the affine matrix or if the affine correction is more complicated:image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]I would really really appreciate any help here! I'm stuck :DÂ
Cheers,Arman
-----------------------------------------------------------------def correct_coordinates(image, affine, coords):
"""
This function re-orients the MRI volume into the standard radiology system, i.e. ('L','A','S'),
and also corrects the affine transform for the volume (from the MRI volume space to the scanner space).
Inputs:
- image: MRI volume
- affine: affine transform for the MRI volume
(e.g. [[-5, 0, 0, 1]
[0, -5.2, 7.8 1.6]
[0, 6.9, 5.9, -7.7]
[0, 0, 0, 1]]
- coords: the coordinate system of the MRI volume (e.g. ('L', 'P', 'S')
Outputs:
- image: corrected MRI volume in the standard radiology coordinate system: ('L', 'A', 'S')
- affine: corrected affine transform (from MRI volume space to the scanner space).
"""
if coords == ('L', 'A', 'S'):
return image, affine
if coords == ('R', 'A', 'S'):
image = np.flip(image, 0)
affine[:, 0] = - affine[:, 0]
return image, affine
if coords == ('L', 'P', 'S'):
image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
# print('func coords: ', coords)
# print('func corr coords: ', nib.aff2axcodes(affine))
# print('function affine: \n', affine)
return image, affine
if coords == ('L', 'S', 'A'):
image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
return image, affine
if coords == ('L', 'I', 'A'):
# L,I,A --> L,A,I
image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
# L,A,I --> L,A,S
image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
return image, affine
if coords == ('L', 'P', 'S'):
image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
return image, affine
if coords == ('L', 'I', 'P'):
# L,I,P --> L,I,A
image = np.flip(image,2)
affine[:, 2] = - affine[:, 2]
# L,I,A --> L,A,I
image = np.swapaxes(image, 1, 2)
affine[:, [1, 2]] = affine[:, [2, 1]]
# L,A,I --> L,A,S
image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
return image, affine
if coords == ('P', 'I', 'R'):
# P,I,R --> A,I,R
image = np.flip(image, 0)
affine[:, 0] = - affine[:, 0]
# A,I,R --> A,S,R
image = np.flip(image, 1)
affine[:, 1] = - affine[:, 1]
# A,S,R --> A,S,L
image = np.flip(image, 2)
affine[:, 2] = - affine[:, 2]
# A,S,L --> L,A,S
image = np.moveaxis(image, [0, 1, 2], [1, 2, 0])
affine[:, [0, 1, 2]] = affine[:, [1, 2, 0]]
return image, affine
raise Exception('coords not identified: please go to correct_coordinates function '
'and define the coordinate system.')
Arman Avesta, MD
PhD student in the combined radiology residency & PhD training program
Yale School of Medicine & Yale Graduate School of Arts and Sciences
195 Church St 6th Floor, New Haven, CT 06510Â
arman.avesta(a)yale.edu
medicine.yale.edu/profile/arman_avestaÂ
External Email - Use Caution
Dear Freesurfer experts,
In order to normalize white matter intensity of T1 images and correct for
bias field. I do the following steps:
mri_convert T1.nii.gz T1.mgz
mri_nu_correct.mni --i T1.mgz --o T1_N3.mgz --n 2
mri_normalize -g 1 T1_N3.mgzT1_norm.mgz
mri_convert T1_norm.mgz T1_norm.nii.gz
I would like to apply bias field correction on FLAIR images then
normalize white matter intensity.
I tried N4biasfieldcorrection from ANTS but it didn't work as expected.
Reviewing documents about N4biasfieldcorrection I realize that the
algorithm has been developed to correct bias field correction in T1.
Are the steps above valid for FLAIR images or it can only be applied on T1
images. We appreciate any feedback about the proper way to correct FLAIR
images for bias field and normalize white matter intensity.
Thank you
JamesB
External Email - Use Caution
Dear Admins,
I've installed VirtualBox and am now at the stage of extracting the
7zip Ubuntu image that includes freesurfer. Could you please send the
password for extracting this encrypted file?
Thanks,
Dakota
External Email - Use Caution
Could I get the password for the Ubuntu virtual machine zip file?
If you also have the license file to include as well, that would be great!
Thank you,
Stacey
Stacey M. Schaefer, Ph.D.
Center for Healthy Minds
University of Wisconsin-Madison
625 W Washington Ave
Madison WI 53703
________________________________
From: freesurfer-bounces(a)nmr.mgh.harvard.edu <freesurfer-bounces(a)nmr.mgh.harvard.edu> on behalf of freesurfer-request(a)nmr.mgh.harvard.edu <freesurfer-request(a)nmr.mgh.harvard.edu>
Sent: Tuesday, September 13, 2022 2:04 PM
To: freesurfer(a)nmr.mgh.harvard.edu <freesurfer(a)nmr.mgh.harvard.edu>
Subject: Freesurfer Digest, Vol 223, Issue 22
Send Freesurfer mailing list submissions to
freesurfer(a)nmr.mgh.harvard.edu
To subscribe or unsubscribe via the World Wide Web, visit
https://secure-web.cisco.com/1ryvJ3kIC4pQAjIIyQdqR6JgVQJZfYjU4jKC1pPr9LKeoL…
or, via email, send a message with subject or body 'help' to
freesurfer-request(a)nmr.mgh.harvard.edu
You can reach the person managing the list at
freesurfer-owner(a)nmr.mgh.harvard.edu
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Freesurfer digest..."
Today's Topics:
1. Re: Follow Up License Freesurfer 5.3 Ubuntu (Wighton, Paul)
2. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Justina Lee)
3. Re: Follow Up License Freesurfer 5.3 Ubuntu (fsbuild)
4. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Wighton, Paul)
5. Re: Follow Up License Freesurfer 5.3 Ubuntu (Wighton, Paul)
6. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Justina Lee)
7. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Wighton, Paul)
8. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Justina Lee)
9. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Wighton, Paul)
10. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Justina Lee)
11. Re: Freesurfer: fs_install_mcr: Unzip command not found
(Wighton, Paul)
----------------------------------------------------------------------
Message: 1
Date: Tue, 13 Sep 2022 17:28:39 +0000
From: "Wighton, Paul" <PWIGHTON(a)mgh.harvard.edu>
Subject: Re: [Freesurfer] Follow Up License Freesurfer 5.3 Ubuntu
To: "freesurfer(a)nmr.mgh.harvard.edu" <freesurfer(a)nmr.mgh.harvard.edu>
Message-ID:
<BN8PR04MB57952410B3C48F5F89851D4382479(a)BN8PR04MB5795.namprd04.prod.outlook.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi R?diger,
This is really interesting.. I'm able to reproduce this issue in a docker container. Anyone else who would like to reproduce or look into this issue can use the following containers
- The container `pwighton/freesurfer:5.3.0-HCP` is based off of ubuntu 16.04 (glibc v2.23) and everything works as expected in this container.
- The container `pwighton/freesurfer:5.3.0-HCP-focal` is based off of ubuntu 20.04 (glib2 v2.31) and I am experiencing the same issue you describe.
- The container `pwighton/freesurfer:7.3.2-focal` is based off of ubuntu 20.04 and has the latest version of FreeSurfer installed. Everything works as expected in this container.
So the issue seems to be some interaction between the v5.3 license checking code and the crypt() function provided by different versions of glibc, but that is just speculation at this point.
I'm sorry I don't have any solution for this at the moment. You mention you are using lmod, would it be possible to define LD_LIBRARY_PATH inside the FreeSurfer 5.3 module to point to an older version of glibc?
-Paul
________________________________
From: freesurfer-bounces(a)nmr.mgh.harvard.edu <freesurfer-bounces(a)nmr.mgh.harvard.edu> on behalf of Ludwig, R?diger <r.ludwig(a)eni-g.de>
Sent: Tuesday, September 13, 2022 11:32 AM
To: freesurfer(a)nmr.mgh.harvard.edu <freesurfer(a)nmr.mgh.harvard.edu>
Subject: [Freesurfer] Follow Up License Freesurfer 5.3 Ubuntu
Hello again,
I realized I might have missed some important information in my question about freesurfer 5.3 license files a few days ago:
We use Ubuntu 20 with lmod. FREESURFER_HOME is ''/opt/apps/freesurfer/5.3/'' for freesurfer 5.3
When we try ''mri_convert sample-001.mgz sample-001.nii.gz'' without a proper license file we get the Error:
ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txt
After we copy the license file to the proper position we get:
ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txt
So the file is obviously read but rejected. We get the same result it with a brand new license file, and one that still works for freesurfer 5.3 on our CentOS 7 node.
We do not have any problems reading the license file in freesurfer 7.2 or freesurfer 7.3
If you need any further information to help us, we am more than willing to provide that.
Thank you so much in advance
Ruediger
---
R?diger Ludwig (he/him)
IT-Service
European Neuroscience Institute
A Joint Initiative of the University Medical Center G?ttingen and the Max Planck Society
Grisebachstr. 5
37077 G?ttingen
Tel: +49 551-39 61308
Email: r.ludwig(a)eni-g.de
Office: 0.051
External Email - Use Caution
Hello!
Could I please get the password for the Ubuntu virtual machine zip file? (And possibly the license.txt as well?)
Thanks very much!
-Ty Christian
Brain Imaging/CHM Systems Administrator
1500 Highland Ave. Room T131
and/or 625 W. Washington Ave
Madison, WI 53705-2280
(608) 890-0142
External Email - Use Caution
Hello,
Im wondering if there is an update regarding etiv differences between recon all and using sclimbic. I want to divide the volumes extracted from using sclimbic on t1s by etiv. Im not sure given the discrepancy if I should use etiv extracted from recon all command or from sclimbic.
Thanks,
Miriam
________________________________
From: Miriam Taza <miriam.taza(a)mail.mcgill.ca>
Sent: Thursday, August 11, 2022 6:01 PM
To: Greve, Douglas N.,Ph.D. <dgreve(a)mgh.harvard.edu>
Subject: Re: [Freesurfer] sclimbic sometimes does not detect left basal forebrain
Hello,
I just wanted to follow up about etiv, if you had the chance to look into if your recon all vs sclimbic also does simithing similar on the subjs i sent?
I am also attaching another graph that depicts the difference between etivs extracted from sclimbic and from recon all.
[cid:89abfbda-77b0-4a5c-ade3-c4d18cc274d6]
Thanks for all your help,
Miriam
________________________________
From: Miriam Taza <miriam.taza(a)mail.mcgill.ca>
Sent: Wednesday, August 3, 2022 4:59 PM
To: Douglas N. Greve <dgreve(a)mgh.harvard.edu>
Subject: Re: [Freesurfer] sclimbic sometimes does not detect left basal forebrain
Hello,
Attached are a few subjects, where YA denotes younger adults and OA older adults. I also included the stats file when I run sclimbic for reference. Please let me know if this mode of transfer works.
Thank you,
Miriam
P.S. I also sent a previous email regarding etiv values "etiv value differs if using recon all vs freesurfer dev". Are you able to also see if your sclimbic etiv values differ much from recon all? For example, sub1221084 etiv greatly differs between sclimbic, old recon all, and new recon all.
________________________________
From: Douglas N. Greve <dgreve(a)mgh.harvard.edu>
Sent: Friday, July 29, 2022 12:29 PM
To: Miriam Taza <miriam.taza(a)mail.mcgill.ca>
Subject: Re: [Freesurfer] sclimbic sometimes does not detect left basal forebrain
yes, you can try sending it to me. if they are too big for email, then we have other solutions
On 7/29/2022 12:19 PM, Miriam Taza wrote:
External Email - Use Caution
Hello,
Thank you for your quick response!
I can certainly share a few participants data with you but I would prefer not to share with the entire mailing list if possible. If so, should I attach it to this email?
I could send you more than one if you prefer.
Thank you,
Miriam
________________________________
From: freesurfer-bounces(a)nmr.mgh.harvard.edu<mailto:freesurfer-bounces@nmr.mgh.harvard.edu> <freesurfer-bounces(a)nmr.mgh.harvard.edu><mailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Douglas N. Greve <dgreve(a)mgh.harvard.edu><mailto:dgreve@mgh.harvard.edu>
Sent: Friday, July 29, 2022 12:06 PM
To: freesurfer(a)nmr.mgh.harvard.edu<mailto:freesurfer@nmr.mgh.harvard.edu> <freesurfer(a)nmr.mgh.harvard.edu><mailto:freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] sclimbic sometimes does not detect left basal forebrain
Can you send us a sample case?
On 7/28/2022 8:58 PM, Miriam Taza wrote:
Nothing strange about them.
They’re T1w scans 1x1x1mm3
________________________________
From: freesurfer-bounces(a)nmr.mgh.harvard.edu<mailto:freesurfer-bounces@nmr.mgh.harvard.edu> <freesurfer-bounces(a)nmr.mgh.harvard.edu><mailto:freesurfer-bounces@nmr.mgh.harvard.edu> on behalf of Douglas N. Greve <dgreve(a)mgh.harvard.edu><mailto:dgreve@mgh.harvard.edu>
Sent: Thursday, July 28, 2022 1:25 PM
To: freesurfer(a)nmr.mgh.harvard.edu<mailto:freesurfer@nmr.mgh.harvard.edu> <freesurfer(a)nmr.mgh.harvard.edu><mailto:freesurfer@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] sclimbic sometimes does not detect left basal forebrain
Have you looked at the input volume to see if there is anything strange about them? What kind of scans are you passing to it? What is the resolution?
On 7/25/2022 9:03 PM, Miriam Taza wrote:
External Email - Use Caution
Hello,
I noticed 20 out of ~240 subjects left basal forebrain volumes were not picked up after running ScLimbic. These are healthy adults and their scans look good. Also, I noticed often when this occurs NAcc is also 0 or other regions.
I am concerned if there is a systematic issue with left volumes ending up smaller than they should relative to right.
Thanks,
Miriam
_______________________________________________
Freesurfer mailing list
Freesurfer(a)nmr.mgh.harvard.edu<mailto:Freesurfer@nmr.mgh.harvard.edu>
https://secure-web.cisco.com/1aHP51Gh4Z1uAdfXJyh4F87Sk47MLeA_21xYnLafTh6DU-…<https://secure-web.cisco.com/1X7C66SKfMm3Xi_QjnUKOg1Tq7kCF9P3CBqvauyRAAu47A…>
_______________________________________________
Freesurfer mailing list
Freesurfer(a)nmr.mgh.harvard.edu<mailto:Freesurfer@nmr.mgh.harvard.edu>
https://secure-web.cisco.com/1aHP51Gh4Z1uAdfXJyh4F87Sk47MLeA_21xYnLafTh6DU-…<https://secure-web.cisco.com/1X7C66SKfMm3Xi_QjnUKOg1Tq7kCF9P3CBqvauyRAAu47A…>
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://secure-web.cisco.com/1jo15xReilwGxW9qbUhvkTFFMMv0ahF7rIqkSJv2eL5mI7… .
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.
External Email - Use Caution
The glibc version has changed in newer versions of Ubuntu. That and/or changes to encryption related functions is likely preventing the license decoding from working. Binary backwards compatibility cannot assure old binaries will indefinitely run on newer releases of the operating system., e.g., CentOS6 binaries may not run on CentOS8. Freesurfer 5.3 was released in 2013 at the time of Ubuntu 12 so I would not assume it will run on Ubuntu 18 and/or newer versions. I don['t think LD_LIBRARY_PATH will help with statically linked binaries - and sertting it to point to a version could break dynamically linked binaries with RPATH strings. In general it is a bad idea to be running with different versions of glibc on the same system.
There is an Ubuntu 12 VM running Freesurfer 5.3 available from https://secure-web.cisco.com/1X4Gyy7SfMYdVSIKIWMlCS7GCLmcJfLLRdLZ…; That VM still runs in VirtualBox on todays operating systems.
- R.
On Sep 13, 2022, at 13:28, Wighton, Paul <PWIGHTON(a)mgh.harvard.edu> wrote:Hi Rüdiger,This is really interesting.. I'm able to reproduce this issue in a docker container. Anyone else who would like to reproduce or look into this issue can use the following containers- The container `pwighton/freesurfer:5.3.0-HCP` is based off of ubuntu 16..04 (glibc v2.23) and everything works as expected in this container.- The container `pwighton/freesurfer:5.3.0-HCP-focal` is based off of ubuntu 20.04 (glib2 v2.31) and I am experiencing the same issue you describe.- The container `pwighton/freesurfer:7.3.2-focal` is based off of ubuntu 20.04 and has the latest version of FreeSurfer installed. Everything works as expected in this container.So the issue seems to be some interaction between the v5.3 license checking code and the crypt() function provided by different versions of glibc, but that is just speculation at this point.I'm sorry I don't have any solution for this at the moment. You mention you are using lmod, would it be possible to define LD_LIBRARY_PATH inside the FreeSurfer 5.3 module to point to an older version of glibc?-PaulFrom: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces(a)nmr.mgh.harvard.edu> on behalf of Ludwig, Rüdiger <r.ludwig@eni-g.de>Sent: Tuesday, September 13, 2022 11:32 AMTo: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>Subject: [Freesurfer] Follow Up License Freesurfer 5.3 Ubuntu Hello again,I realized I might have missed some important information in my question about freesurfer 5.3 license files a few days ago:We use Ubuntu 20 with lmod. FREESURFER_HOME is ''/opt/apps/freesurfer/5.3/'' for freesurfer 5.3When we try ''mri_convert sample-001.mgz sample-001.nii.gz'' without a proper license file we get the Error:ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txtAfter we copy the license file to the proper position we get:ERROR: Invalid FreeSurfer license key found in license file /opt/apps/freesurfer/5.3/license.txtSo the file is obviously read but rejected. We get the same result it with a brand new license file, and one that still works for freesurfer 5.3 on our CentOS 7 node.We do not have any problems reading the license file in freesurfer 7.2 or freesurfer 7.3If you need any further information to help us, we am more than willing to provide that.Thank you so much in advanceRuediger---Rüdiger Ludwig (he/him)IT-ServiceEuropean Neuroscience InstituteA Joint Initiative of the University Medical Center Göttingen and the Max Planck SocietyGrisebachstr. 537077 GöttingenTel: +49 551-39 61308Email: r.ludwig(a)eni-g.deOffice: 0.051_______________________________________________Freesurfer mailing listFreesurfer@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer