We fixed ‘-nonuintensitycor’ as you suggested – adding an else clause to 
if($DoNuIntensityCor), recon-all line 2107.

if($DoNuIntensityCor) then
   …
else
   # link nu.mgz to orig.mgz
   pushd $subjdir/mri
   rm -f nu.mgz
   ln -sf orig.mgz nu.mgz
   popd
endif

From: Jeffrey Spielberg <j...@udel.edu>
Sent: Tuesday, April 1, 2025 2:07 PM
To: Huang, Yujing <yhuan...@mgh.harvard.edu>
Cc: freesurfer@nmr.mgh.harvard.edu
Subject: Re: Error using -nonuintensitycor


        External Email - Use Caution
I'm confused: -nonuintensitycor is listed as an option in the recon-all help, 
and recon-all does accept it as an argument (i.e., on line 6575 of recon-all, 
which is relevant for line 2050 and after).  So it seems to me that there must 
be a bug in 1 of two places: Either recon-all should be able to run with 
-nonuintensitycor (but there is a bug in that process) OR -nonuintensitycor 
should be removed from the recon-all help and recon-all shouldn't accept it as 
an argument.  Which of these is the case?  If it's the first one, would the 
workaround be to add an elif and then copy orig.mgz to nu.mgz?  If it's the 
second case, can you tell me the reason why this functionality has been removed?

As a little bit of context, parts of OFC/frontal pole are being consistently 
excluded from the pial surface and we have found methods for inhomogeneity 
correction that work better than ANTS N4.  Thus, we have tried applying that 
correction before inputting the T1 into freesurfer, which helps, but does not 
fully fix the problem.  One possibility is that the double correction (i.e., 
what we do beforehand and what is done in freesurfer) is undoing some of the 
benefit of our initial correction, and thus we want to test this by bypassing 
the freesurfer correction.  However, as mentioned, this throws an error.

On Tue, Apr 1, 2025 at 11:38 AM Huang, Yujing 
<yhuan...@mgh.harvard.edu<mailto:yhuan...@mgh.harvard.edu>> wrote:
I’m afraid that recon-all can’t be run with ‘-nonuintensitycor’ specified.

From: Jeffrey Spielberg <j...@udel.edu<mailto:j...@udel.edu>>
Sent: Tuesday, April 1, 2025 9:41 AM
To: freesurfer@nmr.mgh.harvard.edu<mailto:freesurfer@nmr.mgh.harvard.edu>; 
Huang, Yujing <yhuan...@mgh.harvard.edu<mailto:yhuan...@mgh.harvard.edu>>
Subject: Re: Error using -nonuintensitycor


        External Email - Use Caution
Hi all - just wondering if any workaround had been identified for this error.  
I'm reattaching the recon-all.log in case it's helpful

On Wed, Mar 19, 2025 at 9:51 AM Jeffrey Spielberg 
<j...@udel.edu<mailto:j...@udel.edu>> wrote:
Yup - here you go

On Wed, Mar 19, 2025 at 9:14 AM Jeffrey Spielberg 
<j...@udel.edu<mailto:j...@udel.edu>> wrote:
Hello,

I'm running Freesurfer 8.0.0 on a Rocky machine and run into an error when I 
use the -nonuintensitycor flag.  The same image finels run perfectly fine 
without that flag, but with the flag I get this error:

#@# Intensity Normalization Tue Mar 18 15:22:23 EDT 2025
/s3l/fs_subjects/RAD_2100A/mri

 mri_normalize -g 1 -seed 1234 -mprage nu.mgz T1.mgz

using max gradient = 1.000
setting seed for random number genererator to 1234
assuming input volume is MGH (Van der Kouwe) MP-RAGE
reading mri_src from nu.mgz...
error: mghRead(/s3l/fs_subjects/RAD_2100A/mri/nu.mgz, -1): could not open file^@
error: mri_normalize: could not open source file nu.mgz^@
Command exited with non-zero status 255


This looks to be a bug - any ideas for a workaround?  Thanks!


--
Jeffrey M. Spielberg, Ph.D.
Associate Professor, Clinical Science
Department of Psychological and Brain Sciences
University of Delaware, Newark, DE 19716

Office:   344 Building X
Lab:   Suite 302 Building X
Email:    j...@udel.edu<mailto:j...@udel.edu>
Web:    http://sites.udel.edu/jmsp/
<http://secure-web.cisco.com/146nhbaHT2u2FrKGAJsd-dbuBUXVIQMYkVxykBV1v9AlEQKMj_lhKtzajKC5fh5bTuXzduyT_8f6iK9memwUkUW40PKsTV4b4LPhx6WesWVx7tpN3SJxG8fR4nslkfXhIVBtMUylbgRbk-PPAoFgdCs-l5WnD3nlxWu8p_VV2j1HlRRtZCMBaMcvjfsEn0BZuoKpvruFqw033fyI77JfzBQUM5XuShIAUKzQCtAmjAxWTYM-GRfR8uEih7iZja58U6cnn_IVUYCdaGHE8ZsT-si2dxq4Fkgz5l6PprPpdu2HDMS0P0eNgkUjt7310JDXj/http%3A%2F%2Fsites.udel.edu%2Fjmsp%2F>
Personal Zoom: 
https://udel.zoom.us/j/9704489599<https://secure-web.cisco.com/1if_GOD6b54WwxpyTat9Jp4Uv0EehfEqTNNAG76mcbnq9sWhy7mH1laE4nStIgGvGkrHqki-GeNDo0UINQXiFRQBst7Vw-ZrByEX08TUZZRPBSV5TLf72BW-AuAywcBmC55RI1BFCKi_hlg8-1_HjQjBmTXoqeB0mP51dQ5Qgm4AaHTAlqBbYZIhP94jKQ5LUs_1xdJd7wYWUEwIbSpS8ZidYPFH7Ytd5uGg-mWVuxprOFUJ7-gOyRrLyGzAxOKqKoRv7Ers13JFF0MYI3ukxKrElyEIpdunD3I2QgLidJK7jmCtPkODjX_9qFlhPxDNH/https%3A%2F%2Fudel.zoom.us%2Fj%2F9704489599>

Please be aware that e-mail communication can be intercepted in transmission or 
misdirected. Please consider communicating any sensitive information by 
telephone, fax, or mail. The information contained in this message may be 
privileged and confidential. If you are NOT the intended recipient, please 
notify the sender immediately and destroy this message.


--
Jeffrey M. Spielberg, Ph.D.
Associate Professor, Clinical Science
Department of Psychological and Brain Sciences
University of Delaware, Newark, DE 19716

Office:   344 Building X
Lab:   Suite 302 Building X
Email:    j...@udel.edu<mailto:j...@udel.edu>
Web:    http://sites.udel.edu/jmsp/
<http://secure-web.cisco.com/146nhbaHT2u2FrKGAJsd-dbuBUXVIQMYkVxykBV1v9AlEQKMj_lhKtzajKC5fh5bTuXzduyT_8f6iK9memwUkUW40PKsTV4b4LPhx6WesWVx7tpN3SJxG8fR4nslkfXhIVBtMUylbgRbk-PPAoFgdCs-l5WnD3nlxWu8p_VV2j1HlRRtZCMBaMcvjfsEn0BZuoKpvruFqw033fyI77JfzBQUM5XuShIAUKzQCtAmjAxWTYM-GRfR8uEih7iZja58U6cnn_IVUYCdaGHE8ZsT-si2dxq4Fkgz5l6PprPpdu2HDMS0P0eNgkUjt7310JDXj/http%3A%2F%2Fsites.udel.edu%2Fjmsp%2F>
Personal Zoom: 
https://udel.zoom.us/j/9704489599<https://secure-web.cisco.com/1if_GOD6b54WwxpyTat9Jp4Uv0EehfEqTNNAG76mcbnq9sWhy7mH1laE4nStIgGvGkrHqki-GeNDo0UINQXiFRQBst7Vw-ZrByEX08TUZZRPBSV5TLf72BW-AuAywcBmC55RI1BFCKi_hlg8-1_HjQjBmTXoqeB0mP51dQ5Qgm4AaHTAlqBbYZIhP94jKQ5LUs_1xdJd7wYWUEwIbSpS8ZidYPFH7Ytd5uGg-mWVuxprOFUJ7-gOyRrLyGzAxOKqKoRv7Ers13JFF0MYI3ukxKrElyEIpdunD3I2QgLidJK7jmCtPkODjX_9qFlhPxDNH/https%3A%2F%2Fudel.zoom.us%2Fj%2F9704489599>

Please be aware that e-mail communication can be intercepted in transmission or 
misdirected. Please consider communicating any sensitive information by 
telephone, fax, or mail. The information contained in this message may be 
privileged and confidential. If you are NOT the intended recipient, please 
notify the sender immediately and destroy this message.


--
Jeffrey M. Spielberg, Ph.D.
Associate Professor, Clinical Science
Department of Psychological and Brain Sciences
University of Delaware, Newark, DE 19716

Office:                                  344 Building X
Lab:                        Suite 302 Building X
Email:                                   j...@udel.edu<mailto:j...@udel.edu>
Web:                      http://sites.udel.edu/jmsp/
<http://secure-web.cisco.com/146nhbaHT2u2FrKGAJsd-dbuBUXVIQMYkVxykBV1v9AlEQKMj_lhKtzajKC5fh5bTuXzduyT_8f6iK9memwUkUW40PKsTV4b4LPhx6WesWVx7tpN3SJxG8fR4nslkfXhIVBtMUylbgRbk-PPAoFgdCs-l5WnD3nlxWu8p_VV2j1HlRRtZCMBaMcvjfsEn0BZuoKpvruFqw033fyI77JfzBQUM5XuShIAUKzQCtAmjAxWTYM-GRfR8uEih7iZja58U6cnn_IVUYCdaGHE8ZsT-si2dxq4Fkgz5l6PprPpdu2HDMS0P0eNgkUjt7310JDXj/http%3A%2F%2Fsites.udel.edu%2Fjmsp%2F>
Personal Zoom: 
https://udel.zoom.us/j/9704489599<https://secure-web.cisco.com/1if_GOD6b54WwxpyTat9Jp4Uv0EehfEqTNNAG76mcbnq9sWhy7mH1laE4nStIgGvGkrHqki-GeNDo0UINQXiFRQBst7Vw-ZrByEX08TUZZRPBSV5TLf72BW-AuAywcBmC55RI1BFCKi_hlg8-1_HjQjBmTXoqeB0mP51dQ5Qgm4AaHTAlqBbYZIhP94jKQ5LUs_1xdJd7wYWUEwIbSpS8ZidYPFH7Ytd5uGg-mWVuxprOFUJ7-gOyRrLyGzAxOKqKoRv7Ers13JFF0MYI3ukxKrElyEIpdunD3I2QgLidJK7jmCtPkODjX_9qFlhPxDNH/https%3A%2F%2Fudel.zoom.us%2Fj%2F9704489599>

Please be aware that e-mail communication can be intercepted in transmission or 
misdirected. Please consider communicating any sensitive information by 
telephone, fax, or mail. The information contained in this message may be 
privileged and confidential. If you are NOT the intended recipient, please 
notify the sender immediately and destroy this message.
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://www.massgeneralbrigham.org/complianceline<https://secure-web.cisco.com/1jqJN4LMIM8h1cVnKIt1PzCy10i2fCdbl-jEdV59gQEa9fITyMOsw-Md-Ibzj01Wnc4jWC-_5tB9SErt-KNnFBYnuEXFtJ4oFmjsd4Kux0rV9gnaP30o-6kEjkdjYtj_rvi0FdykGOim8Myj09xm3IO5nEbwBDhIixCMAYKqAf0NwEJvJ-QHH2lCvTQAsevEYlLkWmt1X-Ld0M5JDhag2XIF7gFlrhrshRGzh5cUaWkUfJsk33HQFO3C3jBIsNWfwlBP1klrMMmXi4lVYNCMjsGBa2xxn0PF75N0COSR1Z4XbXGeC0ysPt9rd45NyTNH8/https%3A%2F%2Fwww.massgeneralbrigham.org%2Fcomplianceline>
 .

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.


--
Jeffrey M. Spielberg, Ph.D.
Associate Professor, Clinical Science
Department of Psychological and Brain Sciences
University of Delaware, Newark, DE 19716

Office:                                  344 Building X
Lab:                        Suite 302 Building X
Email:                                   j...@udel.edu<mailto:j...@udel.edu>
Web:                      http://sites.udel.edu/jmsp/
<http://secure-web.cisco.com/1wcezPeqAJN4BN8Lu_MXqcOeXBg2HCTd12n8SfdgcFG2Hn5YqJtbMBOYEnt6SGWloczGWFUL91QthheMts28QxnJU3FvzaGmWT4iHvRr-cVsvXofXkd-zw721lHMH1g2jN-dOSqlmap_zEbXnSe457TeqPtMxHDDVjniX4JZxf7v-I4vzxVVwEBMeNuZvHf1kbMrm5Ey2c-mo1FYSWyVxI2OwQZF3yTJsD8WCYtqgdvNfztjjQVRUcarIWsiDX-oEgBSyYBdOECIK3hqoRDYSpNhFtQzAEOrap-lJQFu-8NF145A38j2dTqxxqwZKPcp1/http%3A%2F%2Fsites.udel.edu%2Fjmsp%2F>
Personal Zoom: 
https://udel.zoom.us/j/9704489599<https://secure-web.cisco.com/1tOgufR0XPcFUetCcw52QVvX0V71rxm55lNRKAKaIgqZajjV5f2UTt5Lb2dyLB0UY-cXRHpre73x3mh00ezlSlRO9r4baLE-jm8XHNnZabFWZgu742w1z2DXJUV7IwkBz03ZtRghpoS5eHlb_sxLvdV4FCG2l-mKjxdXtf73HIDyzpbRBcipuN4oufI-cSpszeWzCQdqWiJB9hp6wnY1KPTA7Nm77rc4dFRzYbDWw1NLvOJM1eglPcbROJBzUq9wy7Ou-NHfnEbx-RLFB9FMTrn4O7YzzOfNHv_lG_TFhIxq_EHuNYzwRxtwsklr--S0k/https%3A%2F%2Fudel.zoom.us%2Fj%2F9704489599>

Please be aware that e-mail communication can be intercepted in transmission or 
misdirected. Please consider communicating any sensitive information by 
telephone, fax, or mail. The information contained in this message may be 
privileged and confidential. If you are NOT the intended recipient, please 
notify the sender immediately and destroy this message.
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
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://www.massgeneralbrigham.org/complianceline 
<https://www.massgeneralbrigham.org/complianceline> .
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. 

Reply via email to