Re: [Freesurfer] Turning Significant Cluster (sig.cluster.summary or sig.mgh) into binary .nii ROI

2022-03-27 Thread Douglas N. Greve
Are you trying to create a volume-based binary mask or a surface-based 
mask? From the commands below, it looks like surface (but why would you 
need it to be in nii?). In the surface case, you can just

mri_binarize --i ocn.mgh --match clusterno --o clusterno.mask.nii
where "ocn" is the ocn file created by mri_glmfit-sim and clusterno is 
the number of the cluster



On 3/16/2022 3:00 PM, Emily Popa wrote:


External Email - Use Caution

Hello, I am just following up on my previous question. To put it more 
shortly (I apologize for making the question so long before), I am 
just searching for a way to convert a significant cluster from a group 
analysis into a binary .nii mask so I can use the mask (after some 
registration steps) to perform ASL analysis in that specific ROI for 
the same subjects (in FSL).


Best,

Emily S. Popa, M.S.

Staff Research Associate II, Neuroimaging

Pacific Brain Health Center | Pacific Neuroscience Institute 
Foundation | Providence Saint John’s Health Center


1301 20^th  St. #250 Santa Monica, CA. 90404

(408) 750-7971 (M)

cid3519*image001.jpg@01D7EC78.96AA1AC0 
<https://secure-web.cisco.com/18fNRghnHjYTuH-ptKExvys2maGZwSoN5TQ217KCZX4Ra9md-kQZ_Gf7Mj04HdsyWOzfH5B1OTsT_d33gRwKc0j37upxvt1Xm8JI4DuAG-HFiibQIO8AjXbvIuV2MugHYowVv4-p-7TXPo9bl2nbvNaicXZkECnkVkUm4lnhl_tuIztb9LzLOq2o8AOc39eK-twBUdL1pcKNJ2oGLo2GmbCEyFhS4GkR9__Ntp7iCsVVf12Ih4HPKTkdJCYYOuSVfHawfja_nsNsxGmqpnuaX6iaERxD-lQxrmfgKfdDMOSqlfUKy_ELAmvsvaaOROUG7JqfP7QpDfTjEjhjuD3LTeQ/https%3A%2F%2Fwww.linkedin.com%2Fin%2Femilypopa%2F>cid3519*image002.jpg@01D7EC78.96AA1AC0 
<https://secure-web.cisco.com/16eictjmErn5lkBfPZ7hjmL8RHWweIpPo2U2PTn2s6q9eKNL8ZyXJPfdS8pArK20PmakFaA-jSfKPzlGbK9HV7PRx0aKnDKiRZuZWnAEgK9vcIltfC4z2IVaQ9-FWLSLlwtBJfcMhkkvtxaGP9hxyg4VsaNIzMvrCQdIBPOPCpEZE_9_egF6-n46ILkkzUTSBcMjWe2D1Dyv9y_o8v1QJhyl0xuSuMvPa_6Q35mMKjQNVLzf4040N4DO34E36HiXv1s2sLFBNXyjANcpWrchQGfF3kZGBwsK_wkWSLcp0s5Zfmj9RUyQ8plt2apXUyRvP_l9VUE-IMxejhdvTt9uhMQ/https%3A%2F%2Fwww.facebook.com%2FPacificNeuroscienceInstitute>cid3519*image003.jpg@01D7EC78.96AA1AC0 
<https://secure-web.cisco.com/1XLYGF-q48z48tVO2OcP1TXwNDAxgvwLs9gzOR7ZxMyf9h80UE3Z8f1UkPU-ACYtZqtCcRNrKLIYOewgOsNHRWaqmWtuUvhdB_T9Z13-0-WMrFQkQjmqDsOxsBJRojU_F_GJ0LC4OlSAQbrA3Rh-VQwvyXt_V9Z5T0wTHVvSzHiCOSERF6TGsW8DTKdrvBhaRYkbdXesz8dRMNZN9e_ndSem5F-rbk3qS-kczK8pOa5Ey-xzLqEd6T-l0jB8t_ChNgIvK66VSyTjjFVwJO2Lwh67VeW21e0q_Ly75Iwt4Gzcne47A8qJqotJgj1JL18DhN0Msho6_8-hRk75h7TE0Bw/https%3A%2F%2Ftwitter.com%2FPacificNeuroPNI>cid3519*image004.jpg@01D7EC78.96AA1AC0 
<https://secure-web.cisco.com/1tkspAS4BoabfFNBIunLBb4L0OjHthDW8555L-mqpANb2RTXoF__LMAXdxVTQQissTpWnqEMtYa5aVdfXAp8rWIUbD7_mQv3nZikbG3lLuGFZPP2deNCsDnxtbl7eosCMJtWQLMx0IuzuAqx1X4xiVRVarOH66PsHUuBxbRmQZHAKfcfbzcgnNxyRkZQjxi_v8Ep1oOxKZDYIyFSK4UyYTnNCmdlOUcftxo04tPUfH6CYWLumfAeiIjLo_qhUrNWFmoPTB7XFLFEyOjCue_yzgPP8N-Auuh_OsQ-owd1JlViFev8s9Ix5ILF-YTt3vKbyYVheLmbb-_nIP9zSxLeb5A/https%3A%2F%2Fwww.instagram.com%2Fpacificneuro%2F>cid3519*image005.jpg@01D7EC78.96AA1AC0 
<https://secure-web.cisco.com/1_8daZCBT3piq9W2bTFmQ3HwGH9rB0rIaoujv1DuighaAWZsODa31FQQdzMuybdGXd8InmhxlJ4Px1yrTdvhK3zMB2t5AaGk41aoGzWbKg5w1vkHe87NKmqGroDqPDcjH77davxtHZRt6G4-MPnk4GnOJ1wEvO0_ALuJowyrNoaOh3DarNe0oqiUsj4WcLVb8r3tb3iSoKDtdNHbrlkPHSruqiscbMxujUCUeCeXzfHkGHqqoOtVMRY7ONXVgkwZE_4JUH-fQtFHpKUY_Yn-_zkn6GAzGLrf30ASirIy6DPY9MxDFrKCFvIpAQdIlTWT3_OJSkTEQ71u0N2S3GLme9w/https%3A%2F%2Fwww.pacificneuroscienceinstitute.org%2Fbrain-health%2F>


*From: *freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Emily Popa 


*Date: *Thursday, March 10, 2022 at 2:31 PM
*To: *freesurfer@nmr.mgh.harvard.edu 
*Subject: *[Freesurfer] Turning Significant Cluster 
(sig.cluster.summary or sig.mgh) into binary .nii ROI


*External Email - Use Caution *

Hello,

I have been struggling to figure out a way to get the significant 
results of a freesurfer group analysis (just one significant cluster) 
from either the sig.cluster.summary or sig.mgh file into a binarized 
ROI in .nii format. I used mri_glmfit to perform the cortical 
thickness analysis on sMRI data and found the significant cluster only 
in the left hemisphere. I tried to follow some instructions I found on 
the FreeSurfer site, however, at the first step/line below 
(mri_volsynth) the –delta-crsf input was referred to on the site as 
the vertex number, but on the –help documentation, it was specified 
that this input should be: col row slice frame : 0-based. Looking at 
the cluster summary file, for the significant cluster there is a 
maximum vertex, but I am not sure if this is the vertex number I 
should be using.


mri_volsynth --template $SUBJECTS_DIR/fsaverage/surf/lh.thickness 
--pdf delta --delta-crsf 5 9 5 1 --o delta.sm00.mgh


mris_fwhm --smooth-only --subject fsaverage --hemi lh --i 
delta.sm00.mgh --niters 10 --o delta.sm10.mgh


mri_binarize --i delta.sm10.mgh --min 10e-5 --o delta.sm10.bin.mgh

When trying the first line above for mri_volsynth, I get this error: 
Segmentat

Re: [Freesurfer] Turning Significant Cluster (sig.cluster.summary or sig.mgh) into binary .nii ROI

2022-03-16 Thread Emily Popa
External Email - Use Caution

Hello, I am just following up on my previous question. To put it more shortly 
(I apologize for making the question so long before), I am just searching for a 
way to convert a significant cluster from a group analysis into a binary .nii 
mask so I can use the mask (after some registration steps) to perform ASL 
analysis in that specific ROI for the same subjects (in FSL).

Best,

Emily S. Popa, M.S.
Staff Research Associate II, Neuroimaging
Pacific Brain Health Center | Pacific Neuroscience Institute Foundation | 
Providence Saint John’s Health Center
1301 20th St. #250 Santa Monica, CA. 90404
(408) 750-7971 (M)
[cid3519*image001.jpg@01D7EC78.96AA1AC0]<https://secure-web.cisco.com/18fNRghnHjYTuH-ptKExvys2maGZwSoN5TQ217KCZX4Ra9md-kQZ_Gf7Mj04HdsyWOzfH5B1OTsT_d33gRwKc0j37upxvt1Xm8JI4DuAG-HFiibQIO8AjXbvIuV2MugHYowVv4-p-7TXPo9bl2nbvNaicXZkECnkVkUm4lnhl_tuIztb9LzLOq2o8AOc39eK-twBUdL1pcKNJ2oGLo2GmbCEyFhS4GkR9__Ntp7iCsVVf12Ih4HPKTkdJCYYOuSVfHawfja_nsNsxGmqpnuaX6iaERxD-lQxrmfgKfdDMOSqlfUKy_ELAmvsvaaOROUG7JqfP7QpDfTjEjhjuD3LTeQ/https%3A%2F%2Fwww.linkedin.com%2Fin%2Femilypopa%2F>
 [cid3519*image002.jpg@01D7EC78.96AA1AC0] 
<https://secure-web.cisco.com/16eictjmErn5lkBfPZ7hjmL8RHWweIpPo2U2PTn2s6q9eKNL8ZyXJPfdS8pArK20PmakFaA-jSfKPzlGbK9HV7PRx0aKnDKiRZuZWnAEgK9vcIltfC4z2IVaQ9-FWLSLlwtBJfcMhkkvtxaGP9hxyg4VsaNIzMvrCQdIBPOPCpEZE_9_egF6-n46ILkkzUTSBcMjWe2D1Dyv9y_o8v1QJhyl0xuSuMvPa_6Q35mMKjQNVLzf4040N4DO34E36HiXv1s2sLFBNXyjANcpWrchQGfF3kZGBwsK_wkWSLcp0s5Zfmj9RUyQ8plt2apXUyRvP_l9VUE-IMxejhdvTt9uhMQ/https%3A%2F%2Fwww.facebook.com%2FPacificNeuroscienceInstitute>
  [cid3519*image003.jpg@01D7EC78.96AA1AC0] 
<https://secure-web.cisco.com/1XLYGF-q48z48tVO2OcP1TXwNDAxgvwLs9gzOR7ZxMyf9h80UE3Z8f1UkPU-ACYtZqtCcRNrKLIYOewgOsNHRWaqmWtuUvhdB_T9Z13-0-WMrFQkQjmqDsOxsBJRojU_F_GJ0LC4OlSAQbrA3Rh-VQwvyXt_V9Z5T0wTHVvSzHiCOSERF6TGsW8DTKdrvBhaRYkbdXesz8dRMNZN9e_ndSem5F-rbk3qS-kczK8pOa5Ey-xzLqEd6T-l0jB8t_ChNgIvK66VSyTjjFVwJO2Lwh67VeW21e0q_Ly75Iwt4Gzcne47A8qJqotJgj1JL18DhN0Msho6_8-hRk75h7TE0Bw/https%3A%2F%2Ftwitter.com%2FPacificNeuroPNI>
  [cid3519*image004.jpg@01D7EC78.96AA1AC0] 
<https://secure-web.cisco.com/1tkspAS4BoabfFNBIunLBb4L0OjHthDW8555L-mqpANb2RTXoF__LMAXdxVTQQissTpWnqEMtYa5aVdfXAp8rWIUbD7_mQv3nZikbG3lLuGFZPP2deNCsDnxtbl7eosCMJtWQLMx0IuzuAqx1X4xiVRVarOH66PsHUuBxbRmQZHAKfcfbzcgnNxyRkZQjxi_v8Ep1oOxKZDYIyFSK4UyYTnNCmdlOUcftxo04tPUfH6CYWLumfAeiIjLo_qhUrNWFmoPTB7XFLFEyOjCue_yzgPP8N-Auuh_OsQ-owd1JlViFev8s9Ix5ILF-YTt3vKbyYVheLmbb-_nIP9zSxLeb5A/https%3A%2F%2Fwww.instagram.com%2Fpacificneuro%2F>
  [cid3519*image005.jpg@01D7EC78.96AA1AC0] 
<https://secure-web.cisco.com/1_8daZCBT3piq9W2bTFmQ3HwGH9rB0rIaoujv1DuighaAWZsODa31FQQdzMuybdGXd8InmhxlJ4Px1yrTdvhK3zMB2t5AaGk41aoGzWbKg5w1vkHe87NKmqGroDqPDcjH77davxtHZRt6G4-MPnk4GnOJ1wEvO0_ALuJowyrNoaOh3DarNe0oqiUsj4WcLVb8r3tb3iSoKDtdNHbrlkPHSruqiscbMxujUCUeCeXzfHkGHqqoOtVMRY7ONXVgkwZE_4JUH-fQtFHpKUY_Yn-_zkn6GAzGLrf30ASirIy6DPY9MxDFrKCFvIpAQdIlTWT3_OJSkTEQ71u0N2S3GLme9w/https%3A%2F%2Fwww.pacificneuroscienceinstitute.org%2Fbrain-health%2F>


From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Emily Popa 

Date: Thursday, March 10, 2022 at 2:31 PM
To: freesurfer@nmr.mgh.harvard.edu 
Subject: [Freesurfer] Turning Significant Cluster (sig.cluster.summary or 
sig.mgh) into binary .nii ROI

External Email - Use Caution
Hello,

I have been struggling to figure out a way to get the significant results of a 
freesurfer group analysis (just one significant cluster) from either the 
sig.cluster.summary or sig.mgh file into a binarized ROI in .nii format. I used 
mri_glmfit to perform the cortical thickness analysis on sMRI data and found 
the significant cluster only in the left hemisphere. I tried to follow some 
instructions I found on the FreeSurfer site, however, at the first step/line 
below (mri_volsynth) the –delta-crsf input was referred to on the site as the 
vertex number, but on the –help documentation, it was specified that this input 
should be: col row slice frame : 0-based. Looking at the cluster summary file, 
for the significant cluster there is a maximum vertex, but I am not sure if 
this is the vertex number I should be using.

mri_volsynth --template $SUBJECTS_DIR/fsaverage/surf/lh.thickness --pdf delta 
--delta-crsf 5 9 5 1 --o delta.sm00.mgh
mris_fwhm --smooth-only --subject fsaverage --hemi lh --i delta.sm00.mgh 
--niters 10 --o delta.sm10.mgh
mri_binarize --i delta.sm10.mgh --min 10e-5 --o delta.sm10.bin.mgh

When trying the first line above for mri_volsynth, I get this error: 
Segmentation fault: 11 (so I think my input –deta-crsf is likely wrong). If 
there is a better way to convert this ROI to a mask, please let me know!

To give additional context, I am hoping to get a binary mask of this ROI that I 
can use as a mask for an ASL analysis in FSL (to limit the analysis to this 
ROI). I plan to do this by registering the binary ROI mask to the FSL standard 
group template (by using the transformati

[Freesurfer] Turning Significant Cluster (sig.cluster.summary or sig.mgh) into binary .nii ROI

2022-03-10 Thread Emily Popa
External Email - Use Caution

Hello,

I have been struggling to figure out a way to get the significant results of a 
freesurfer group analysis (just one significant cluster) from either the 
sig.cluster.summary or sig.mgh file into a binarized ROI in .nii format. I used 
mri_glmfit to perform the cortical thickness analysis on sMRI data and found 
the significant cluster only in the left hemisphere. I tried to follow some 
instructions I found on the FreeSurfer site, however, at the first step/line 
below (mri_volsynth) the –delta-crsf input was referred to on the site as the 
vertex number, but on the –help documentation, it was specified that this input 
should be: col row slice frame : 0-based. Looking at the cluster summary file, 
for the significant cluster there is a maximum vertex, but I am not sure if 
this is the vertex number I should be using.

mri_volsynth --template $SUBJECTS_DIR/fsaverage/surf/lh.thickness --pdf delta 
--delta-crsf 5 9 5 1 --o delta.sm00.mgh
mris_fwhm --smooth-only --subject fsaverage --hemi lh --i delta.sm00.mgh 
--niters 10 --o delta.sm10.mgh
mri_binarize --i delta.sm10.mgh --min 10e-5 --o delta.sm10.bin.mgh

When trying the first line above for mri_volsynth, I get this error: 
Segmentation fault: 11 (so I think my input –deta-crsf is likely wrong). If 
there is a better way to convert this ROI to a mask, please let me know!

To give additional context, I am hoping to get a binary mask of this ROI that I 
can use as a mask for an ASL analysis in FSL (to limit the analysis to this 
ROI). I plan to do this by registering the binary ROI mask to the FSL standard 
group template (by using the transformation matrix from registering the 
fsaverage template to FSL’s standard group template first), and then getting 
the ROI mask from FSL’s group template space into native ASL space. If this 
plan sounds reasonable to you, it would also be very helpful to know.

I really appreciate your time and help and look forward to hearing back!



Best,

Emily S. Popa, M.S.
Staff Research Associate II, Neuroimaging
Pacific Brain Health Center | Pacific Neuroscience Institute Foundation | 
Providence Saint John’s Health Center
1301 20th St. #250 Santa Monica, CA. 90404
(408) 750-7971 (M)
[cid3519*image001.jpg@01D7EC78.96AA1AC0]
 [cid3519*image002.jpg@01D7EC78.96AA1AC0] 

  [cid3519*image003.jpg@01D7EC78.96AA1AC0] 

  [cid3519*image004.jpg@01D7EC78.96AA1AC0] 

  [cid3519*image005.jpg@01D7EC78.96AA1AC0] 


___
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 
Compli