Re: [Freesurfer] mri_segstats --avgwf output question

2023-08-11 Thread Douglas N. Greve
   External Email - Use Caution

It is going to list the cluster=0 value as the first value. cluster=0 
are all the voxels not in a cluster. If you want to exclude this, just 
add --excludeid 0


On 8/10/2023 7:58 PM, Lara Foland-Ross wrote:


External Email - Use Caution

Hi there,

I'm running mri_segstats on a collection of clusters resulting from a 
statistical analysis. My command line usage is as follows:


  mri_segstats --i lh.fwhm10.thickness.mgh --avgwf 
clusterAverages.txt --seg cache.th13abs.sig.ocn.mgh


The results from my statistical analysis in the case of left 
hemisphere thickness shows 4 clusters that are significant in total, 
but the clusterAverages.txt contains a total of 5 mean thickness 
values per subject. This extra value is also reflected in other 
analyses in my dataset (for other hemisphere and for thickness, area 
and volume).


Is the extra value listed per subject a global mean of some sort? If 
so, is it the first column of values or the last?


Thank you,
Lara

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/135SLptsCvUx4gQqXvjYDB5AFc-Zy9MQxksxMqJ3UcLzXt_7TCzCXElAXO4q9L6w6rc01TO01hFfSAhp57UYtoDScBFNcqC1J-7FgZZAgOjsiVJ2zvac3M2Tmyej2ZDvu5T7lR2aPBKleeX6FHStmgFI_yyKoFnQXo5m3S8oKzkuGBiPicX3PJMJEwpue2Ulqlp9YJ6Y1gVgY065XJb5JWGS2d9-ruMhTy7xbxL33rsqP5cXGfmbd39SEE3LDgcrI499jxqaRQe7504CFkiKbvA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
___
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 
 .
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] mri_segstats --avgwf output question

2023-08-10 Thread Lara Foland-Ross
External Email - Use Caution

Hi there,

I'm running mri_segstats on a collection of clusters resulting from a 
statistical analysis. My command line usage is as follows:

  mri_segstats --i lh.fwhm10.thickness.mgh --avgwf clusterAverages.txt 
--seg cache.th13abs.sig.ocn.mgh

The results from my statistical analysis in the case of left hemisphere 
thickness shows 4 clusters that are significant in total, but the 
clusterAverages.txt contains a total of 5 mean thickness values per subject. 
This extra value is also reflected in other analyses in my dataset (for other 
hemisphere and for thickness, area and volume).

Is the extra value listed per subject a global mean of some sort? If so, is it 
the first column of values or the last?

Thank you,
Lara
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
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. 


Re: [Freesurfer] mri_segstats --sbTIVin

2023-08-07 Thread Douglas N. Greve
   External Email - Use Caution

Hmm, it does not look like that option was ever added (ie, that wiki 
page is incorrect).


On 8/6/2023 8:13 AM, Woo-Suk Tae wrote:


External Email - Use Caution

Dear Freesurfer developer.
According to the explanation in the *MailScanner has detected a 
possible fraud attempt from "secure-web.cisco.com" claiming to be* 
https://secure-web.cisco.com/1IqPogMjpBtw8frwqWnhb_ZJPG-R7cC1JDTgjrWqRbMGYrWBaYcuyonlnFwSw7eku9S4Vur02AnPYkwtVDFyosxFYhuxkxnqx8x_Jok9xzaQ9DPzz25OCX-f6yrabacvmdX6Ez0U9E66B5t5ChLHADkdXhU8VzaWdYA9EOHNcuNJxVC0qtU1TWlQoanVartraPfKptrukczRXRfNUBVmyjPU0vFqw08EXaTNLEevjvbzco-M-LxmseP7ZJflH1zezYTWaP9AurmdrSsVDerG6Mg/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FsbTIV 
, 
it seems that the TIV volume of SAMSEG pipeline could be added to the 
aseg.stats with the option of mri_segstats --sbTIVin  ...
But, I can not find "--sbTIVin" option in the mri_segstats command of 
FreeSurfer 7.4.1 or the recent developer version.

How can I add sbTIV to aseg.stats?

Sincerely yours

Woo-Suk, Tae

--


Woo-Suk, Tae  Ph.D.  Research Professor
Brain Convergence Research Center, Medical Research Center
Anam Hospital, Korea University Medical Center, Seoul, Korea
mobile: 82-10-9120-4629
office: 82-2-920-6831
email: ws...@korea.ac.kr, woosuk@gmail.com,
wo os...@gmail.com



___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1vv5fME7tcyozkFKl0n4B0xshyiKxOX-R3rddxH6Zs4hMoUdE16fkOolm_LP23Ja6eeiWyt926jHvAOUtNTDCCjorHW9oT9C_ii4kELkv-Edg07EHwqp4P26sDz8fOqULUDV3ECwcJXjVmlYq48e93hBI8wIpzeiJZEpgUc5JJ6wJn_0aEcdthjnzQOw5irH0PJf1boH-9NKeXhCWoDLgW4JSWsgpM6u1VJ7oQeyhy7YfLk0gC8V1hl7xmoVhWd8PO5sKUZygQKpzh08nnyqkIg/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
___
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 
 .
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] mri_segstats --sbTIVin

2023-08-06 Thread Woo-Suk Tae
External Email - Use Caution

Dear Freesurfer developer.
According to the explanation in the
https://secure-web.cisco.com/1coHbpSG3RMsDJ9eWWcn4zb_ld9qaPCVetqOo5rL5vuLfQQSISVGpVYl8aGgrzcAEShM1ov3Y1kaR3TI9f0riiixXrDWduFbq9YZu7vap8N9ooLrsMvKWnmIS21q5izT5EkhCL70i1Sw_90CUN-1TrF_pR-59FpT3F4Q9wFq-PqMEJ2eu_XExuWxU7lg6O-l_bycvdyEMCDXqh5RGJYHjh0n922PUlRzDFxpXB8bor7XeJEHKpJ7iaaxXxDJo4GuVe1z20CKD41HuVyeQ0zBLLXc6lE6yAoVBRTqJi6XtSiPdd685ICogk8xAkAqtfalRQljoFIba-du8mUaEixFIPA/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FsbTIV,
 it seems that the TIV
volume of SAMSEG pipeline could be added to the aseg.stats with the option
of mri_segstats --sbTIVin  ...
But, I can not find "--sbTIVin" option in the mri_segstats command of
FreeSurfer 7.4.1 or the recent developer version.
How can I add sbTIV to aseg.stats?

Sincerely yours

Woo-Suk, Tae

-- 


Woo-Suk, Tae  Ph.D.  Research Professor
Brain Convergence Research Center, Medical Research Center
Anam Hospital, Korea University Medical Center, Seoul, Korea
mobile: 82-10-9120-4629
office: 82-2-920-6831
email: ws...@korea.ac.kr, woosuk@gmail.com,
  wo os...@gmail.com

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
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. 


Re: [Freesurfer] mri_segstats dimension mistach

2023-07-20 Thread Douglas N. Greve
   External Email - Use Caution

It should not be that pixelated. My guess is that slicer is doing some 
kind of smart interpolation to make it look better. One way around it 
would be to map your input to the conformed space and run mri_segstats 
on that


On 7/6/2023 3:57 PM, Fahad Hannan wrote:


External Email - Use Caution

Hi,

Just to follow up, is there a way to retain the segmentation quality? 
It becomes pixelated when returning to native space. Is there a method 
similar to how I can load the wmparc.mgz + my volume into 3DSlicer and 
they overlap perfectly despite the wmparc being in freesurfer space. 
I'm trying to find a better way to get segmentation based stats 
without the use of 3Dslicer which can be tedious. I've attached images 
showing the difference.


Regards,
Fahad

*From:* freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Huang, Yujing 


*Sent:* Wednesday, July 5, 2023 9:53 AM
*To:* Freesurfer support list 
*Subject:* Re: [Freesurfer] mri_segstats dimension mistach


You don't often get email from yhuan...@mgh.harvard.edu. Learn why 
this is important 
<https://secure-web.cisco.com/1FlZ3eZ2o-ed6fIFJnqqtuLDnRCuzlu6cb0hSlSIcP2w-1m9TOaLDYfURfAg8lH0Y91gSyyg5Vt11zhHCWMkyIj3XGr7_yfT04qEU9P8N8IVxYpjbxAbBwcww44Fd73hNDbq7OBGLkAfqeXeDa30PUZAPKajGC2KXL_bVBL7ctF47zeSEKeucR1opdNBCB1KVcT-wpr_IG1yupQ_sKHgFgomACHriINTG49knzL18JkyhK7unTzRkzL_INQqscblGxaWqrGa6_pl3RY0vwAE3ucsdNyh_WNRCapyb4lOuMG5gbDoh4YHwdEA-rrHf9HuYOyg19ca6TrehG4dRgNy2EQ/https%3A%2F%2Faka.ms%2FLearnAboutSenderIdentification>



External Email - Use Caution

Hi Fahad,

Here is the wiki page about how to Convert from FreeSurfer Space Back 
to Native Anatomical Space  - *MailScanner has detected a possible 
fraud attempt from "secure-web.cisco.com" claiming to be* 
https://secure-web.cisco.com/1PaHYdg_MxPaxqo4NGZ5ytczPBujdEVOKdh7sTk2xwvmj416d5EenaE48YGuIjT5DA_YGzI1lE_v7XHoA4OIpuxxIyOA4ZjXYKXwGYa2PL8EhjtxRrqAUt4ToduQxTuMFnQau4Dv7-p1ltPOf7eDMrLz7UIWf5Zqz2Y7eryRIfeF7L2itYS_92UaWuMbeCBTGSFEG2y7QHzkf0qPZGhPzjoCRoHp_jCuVfQogSJzYuMM2Fgx29A-7IgM0t7pslbkTr6zwc05-v0nfHQcRg3r43A/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat 
<https://secure-web.cisco.com/1SH-F86njclC8pQKcB6nkwsqK8lnEDnPON_A24-6CmCwRHC_v0s6AwvY_foOYGXPrbz_PgXgmdPkQnHYy_AMudJENZoBcBNcrqdJGYd-N6ZKQjjSH-gzCI5Dq5ZHU2wFNKxRh944qf6UZNgqhb4s_XDC669KdGDt4GGk_mpnPRMKrIRyGvLfJb8vKw02AHSq1SM528T730feGzUsjm9FM5CgiF3QW5mg-UlGeOlPUDGd9xvS0cKt60Wny7zkFNwJMyH553-KKUKzzeyOvA09Wnw/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat>


Best,

Yujing

*From:* freesurfer-boun...@nmr.mgh.harvard.edu 
 *On Behalf Of *Fahad Hannan

*Sent:* Monday, July 3, 2023 3:05 PM
*To:* freesurfer@nmr.mgh.harvard.edu
*Subject:* [Freesurfer] mri_segstats dimension mistach

*External Email - Use Caution *

Hello,

I'm trying to run the mri_segstats on different input volume. The 
input volume has the same dimensions as the original volume used to 
perform recon-all. However, when trying to use the following command:


"mri_segstats --seg $SUBJECTS_DIR/P6V1/mri/wmparc.mgz --sum 
$SUBJECTS_DIR/P6V1/stats/T2lobestest.stats --id 3201 4201 3203 4203 
3204 4204 3205 4205 3206 4206 3207 4207 --in T2_Map.nii.gz 
--in-intensity-name norm --in-intensity-units MR --etiv --subject P6V1 
--surf-wm-vol --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt"


I get a dimension mismatch error:

ERROR: dimension mismatch between input volume and seg

  input 112 112 80

  seg   256 256 256

Seems like during the recon-all process, freesurfer changed the 
dimensions of the segmentation file to 256 256 256. Is there a way I 
can resample the segmentation file to the input files dimensions, I 
know I can resample the input to the norm.mgz file but I do not want 
to tamper with the input file.


Thanks,

Fahad


___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://secure-web.cisco.com/1SE5PRg4ws_fMJq7OlQL4JNs51U7TN49fODxywFGpKc2iUhaOVYO8873DAuDEWVZAqNKheQ-Kpml63wcXjTutfRCm0xAbOrvaekmqFJypQXiVGkGYgKj29eE58IxenQE8aU3L6Ex0tPPs-XNJ3odWkNFNFkin4woX23mcTSA3UXR6hvXPxtNviVqZhGPyBhAoCYITKVmrZOoCGuKa-6SOtG9oE7hHvcT3OELzm4nIyJ_-zBpxhhyhH0eLf1wpTo-9bvM5kW_gUvwTrNFyQVvViA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
___
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 s

Re: [Freesurfer] mri_segstats dimension mistach

2023-07-06 Thread Fahad Hannan
External Email - Use Caution

That worked, thank you so much!

Regards,

Fahad

From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Huang, Yujing 

Sent: Wednesday, July 5, 2023 9:53 AM
To: Freesurfer support list 
Subject: Re: [Freesurfer] mri_segstats dimension mistach

You don't often get email from yhuan...@mgh.harvard.edu. Learn why this is 
important<https://secure-web.cisco.com/1Dk3IomBhiwa4sFDW-VA4Si0nOb2_WAJpbxqivfkQn46Ey78V3m_6r_UfoHxXKVWiUIh-COSaW6-TT5Q6-lZhcA-NrlhGVgdTUEcNz4P9ShOJP9iNuA5lrB5ZEJ2bFCbHPknDZ7jqfN4uwRFuuEmFzY-D5QB2E20Lv4axecXFYkek2nNkL-lC_ul37ZdnU0HDIidVNN5Yv4G3LHRLUtzgx1lTfo_UQ3bzBn2eRwbfbE1q9ZsDeDQrd2avd99J1mh2artubXlbd8v-UmGv0Fb9SO5DWdI4w4hhwB00OAEoDz8Ju8IW6yDknh_twbba0FUGOWS0r-Ejkm-9wbqOWaHDmA/https%3A%2F%2Faka.ms%2FLearnAboutSenderIdentification>

External Email - Use Caution

Hi Fahad,



Here is the wiki page about how to Convert from FreeSurfer Space Back to Native 
Anatomical Space  -  MailScanner has detected a possible fraud attempt from 
"secure-web.cisco.com" claiming to be 
https://secure-web.cisco.com/1ra2U8cDomVFQCO-1Aat6B6-AjtuLqzp5FeIV0ef8j4TJy4jL5YVqk0ZY85q9VvQDjTt7JlbClqTkflt4zTQ4sqfTYqGRXuNdiCGhMnf5d67sEtbQk0YI6f7UvWZJu6UCuW1IXSUYcBDEVhL02QNX1vzQWPXde2i0UAneFHWY0vBcouq8FIVZYxqvbEkbJ4v30ojDYiYpTnmFfhGcpCpr7FzDbbLGEvclrtC-LSQ3WE35x99pDRZl4BNiJhyRkKJyvLE7Wsd2eoH8yY92UteJy2ABFzFlR6vfHOchiwVZOvnDT-bb4MeVCw0cHGsGqKvRnMD4wKABsFD843JK2iLEOA/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat<https://secure-web.cisco.com/1SH-F86njclC8pQKcB6nkwsqK8lnEDnPON_A24-6CmCwRHC_v0s6AwvY_foOYGXPrbz_PgXgmdPkQnHYy_AMudJENZoBcBNcrqdJGYd-N6ZKQjjSH-gzCI5Dq5ZHU2wFNKxRh944qf6UZNgqhb4s_XDC669KdGDt4GGk_mpnPRMKrIRyGvLfJb8vKw02AHSq1SM528T730feGzUsjm9FM5CgiF3QW5mg-UlGeOlPUDGd9xvS0cKt60Wny7zkFNwJMyH553-KKUKzzeyOvA09Wnw/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat>



Best,



Yujing



From: freesurfer-boun...@nmr.mgh.harvard.edu 
 On Behalf Of Fahad Hannan
Sent: Monday, July 3, 2023 3:05 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] mri_segstats dimension mistach



External Email - Use Caution

Hello,



I'm trying to run the mri_segstats on different input volume. The input volume 
has the same dimensions as the original volume used to perform recon-all. 
However, when trying to use the following command:



"mri_segstats --seg $SUBJECTS_DIR/P6V1/mri/wmparc.mgz --sum 
$SUBJECTS_DIR/P6V1/stats/T2lobestest.stats --id 3201 4201 3203 4203 3204 4204 
3205 4205 3206 4206 3207 4207 --in T2_Map.nii.gz --in-intensity-name norm 
--in-intensity-units MR --etiv --subject P6V1 --surf-wm-vol --ctab 
$FREESURFER_HOME/FreeSurferColorLUT.txt"



I get a dimension mismatch error:



ERROR: dimension mismatch between input volume and seg

  input 112 112 80

  seg   256 256 256



Seems like during the recon-all process, freesurfer changed the dimensions of 
the segmentation file to 256 256 256. Is there a way I can resample the 
segmentation file to the input files dimensions, I know I can resample the 
input to the norm.mgz file but I do not want to tamper with the input file.



Thanks,

Fahad
___
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. 


Re: [Freesurfer] mri_segstats dimension mistach

2023-07-05 Thread Huang, Yujing
External Email - Use Caution

Hi Fahad,

Here is the wiki page about how to Convert from FreeSurfer Space Back to Native 
Anatomical Space  -  
https://secure-web.cisco.com/1SH-F86njclC8pQKcB6nkwsqK8lnEDnPON_A24-6CmCwRHC_v0s6AwvY_foOYGXPrbz_PgXgmdPkQnHYy_AMudJENZoBcBNcrqdJGYd-N6ZKQjjSH-gzCI5Dq5ZHU2wFNKxRh944qf6UZNgqhb4s_XDC669KdGDt4GGk_mpnPRMKrIRyGvLfJb8vKw02AHSq1SM528T730feGzUsjm9FM5CgiF3QW5mg-UlGeOlPUDGd9xvS0cKt60Wny7zkFNwJMyH553-KKUKzzeyOvA09Wnw/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Ffswiki%2FFsAnat-to-NativeAnat

Best,

Yujing

From: freesurfer-boun...@nmr.mgh.harvard.edu 
 On Behalf Of Fahad Hannan
Sent: Monday, July 3, 2023 3:05 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] mri_segstats dimension mistach


External Email - Use Caution
Hello,

I'm trying to run the mri_segstats on different input volume. The input volume 
has the same dimensions as the original volume used to perform recon-all. 
However, when trying to use the following command:

"mri_segstats --seg $SUBJECTS_DIR/P6V1/mri/wmparc.mgz --sum 
$SUBJECTS_DIR/P6V1/stats/T2lobestest.stats --id 3201 4201 3203 4203 3204 4204 
3205 4205 3206 4206 3207 4207 --in T2_Map.nii.gz --in-intensity-name norm 
--in-intensity-units MR --etiv --subject P6V1 --surf-wm-vol --ctab 
$FREESURFER_HOME/FreeSurferColorLUT.txt"

I get a dimension mismatch error:

ERROR: dimension mismatch between input volume and seg
  input 112 112 80
  seg   256 256 256

Seems like during the recon-all process, freesurfer changed the dimensions of 
the segmentation file to 256 256 256. Is there a way I can resample the 
segmentation file to the input files dimensions, I know I can resample the 
input to the norm.mgz file but I do not want to tamper with the input file.

Thanks,
Fahad
___
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. 


[Freesurfer] mri_segstats dimension mistach

2023-07-03 Thread Fahad Hannan
External Email - Use Caution

Hello,

I'm trying to run the mri_segstats on different input volume. The input volume 
has the same dimensions as the original volume used to perform recon-all. 
However, when trying to use the following command:

"mri_segstats --seg $SUBJECTS_DIR/P6V1/mri/wmparc.mgz --sum 
$SUBJECTS_DIR/P6V1/stats/T2lobestest.stats --id 3201 4201 3203 4203 3204 4204 
3205 4205 3206 4206 3207 4207 --in T2_Map.nii.gz --in-intensity-name norm 
--in-intensity-units MR --etiv --subject P6V1 --surf-wm-vol --ctab 
$FREESURFER_HOME/FreeSurferColorLUT.txt"

I get a dimension mismatch error:

ERROR: dimension mismatch between input volume and seg
  input 112 112 80
  seg   256 256 256

Seems like during the recon-all process, freesurfer changed the dimensions of 
the segmentation file to 256 256 256. Is there a way I can resample the 
segmentation file to the input files dimensions, I know I can resample the 
input to the norm.mgz file but I do not want to tamper with the input file.

Thanks,
Fahad
___
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 
 .
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. 


Re: [Freesurfer] mri_segstats

2023-03-13 Thread Douglas N. Greve
You can pass it a --mul SCALE option to multiply the output by any 
scaling factor


On 3/7/2023 1:16 PM, John Anderson wrote:


External Email - Use Caution

Dear Freesurfer community,
Please forgive me for the basic nature of my question.
I was wondering whether there is an argument that can be included in 
mri_segstats to display the results in cubic centimeters (cm^3) 
instead of cubic millimeters (mm^3). thanks for any suggestions.


Thank you, John

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 
 .
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] mri_segstats

2023-03-07 Thread John Anderson
External Email - Use Caution

Dear Freesurfer community,
Please forgive me for the basic nature of my question.
I was wondering whether there is an argument that can be included in
mri_segstats to display the results in cubic centimeters (cm^3) instead of
cubic millimeters (mm^3). thanks for any suggestions.

Thank you, John
___
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 
 .
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. 


Re: [Freesurfer] mri_segstats question: --avgwf for cross hemisphere ROI

2023-01-23 Thread Douglas N. Greve
Hi Bram, there is not a way to do it with a single command. You could 
use the aparc+aseg, merge the two hemi labels into one, then run 
mri_segstats. If you want to stick with pure surface-based analysis, 
then you'd have to  run mri_segstats twice, then just compute a weighted 
mean of the two waveforms (weighted by the number of vertices in each)

doug


On 1/16/2023 4:30 PM, Bram Diamond wrote:


External Email - Use Caution

Hello FreeSurfer Team,

I've made a New Year's resolution to stop bothering Andrew Hoopes and 
instead send my questions to the FreeSurfer Mailing List.


I would like to calculate a single average waveform for two surface 
labels on contralateral hemispheres. In essence, I would like to treat 
these contralateral labels as a single label.


Is there a way to use freesurfer binaries (e.g., mri_segstats) with, 
lh.func.mgz, rh.fun.mgz, lh.ROI.label, and rh.ROI.label to write a 
text file with a single average waveform column?


Thanks! I hope all is well in Boston!

Cheers,
Bram

Bram R. Diamond, BSc
Clinical Neuropsychology Doctoral Student
Northwestern University Feinberg School of Medicine
Mesulam Center for Cognitive Neurology & Alzheimer’s Disease
300 E. Superior Street | Tarry 8 | Chicago, IL 60611
*MailScanner has detected a possible fraud attempt from 
"secure-web.cisco.com" claiming to be* www.brain.northwestern.edu 




___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 
 .
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] mri_segstats question: --avgwf for cross hemisphere ROI

2023-01-16 Thread Bram Diamond
External Email - Use Caution

Hello FreeSurfer Team,

I've made a New Year's resolution to stop bothering Andrew Hoopes and
instead send my questions to the FreeSurfer Mailing List.

I would like to calculate a single average waveform for two surface labels
on contralateral hemispheres. In essence, I would like to treat these
contralateral labels as a single label.

Is there a way to use freesurfer binaries (e.g., mri_segstats) with,
lh.func.mgz, rh.fun.mgz, lh.ROI.label, and rh.ROI.label to write a text
file with a single average waveform column?

Thanks! I hope all is well in Boston!

Cheers,
Bram

Bram R. Diamond, BSc
Clinical Neuropsychology Doctoral Student
Northwestern University Feinberg School of Medicine
Mesulam Center for Cognitive Neurology & Alzheimer’s Disease
300 E. Superior Street | Tarry 8 | Chicago, IL 60611
http://secure-web.cisco.com/1rd9CGB1epEqWboZc37JDhl3-uOBS_KFp5wmeeP-n7zZWCMwlDuTlV1o551fqjOqYzccPbm5c2DzzARujomLrHcIqfB79clc5P6e6LiEy3vST3uj-eGX7Aexz1uQatXJJIYh8vcM7aQZ3W0pTMsr6qLUuUR4gDjKsqvrzSEhaQlARJ2f7JApYv9ndO8OauqODIvKlbRic_BD0itpGeWIm6OCHaBAbgvrnwaUbH_Q47_V8AdPoG2qe6Oh1YFHD4GENNjNx_8Q7ZbkvP7L_RqcN9iiNbWLd7xFC-9TiIOkBzPGWFXS35xlsjVx9ZZVcSMUCvus_m8cFGWF3qM56C4WMtA/http%3A%2F%2Fwww.brain.northwestern.edu

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


Re: [Freesurfer] mri_segstats error:

2023-01-05 Thread Huang, Yujing
Hi Brooklyn,

Can you check your recon-all command? Can you attach the recon-all.log?

>From your message, it reads "recon-al1 -s cor 15".  It should be recon-all. 
>There is also a space in your subject name.

Best,

Yujing

From: freesurfer-boun...@nmr.mgh.harvard.edu 
 On Behalf Of Brooklyn Wright
Sent: Wednesday, January 4, 2023 9:17 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: [Freesurfer] mri_segstats error:


External Email - Use Caution
Hello Freesurfer Developers,

I am currently trying to perform reconstructions on 1mm^3 T1 data and am 
finding this error towards the end of the processing;


\n mri brainvol _stats cor. 15 \n

Segmentation fault

Darwin UW-C02L2083DNMP 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 
PDT 2021; root:xnu-4903.278.79-1/RELEASE_X86_ 64 x86_64

recon-al1 -s cor 15 exited with ERRORS at Tue Dec 20 11:16:05 AEDT 2022

Do you know why this is happening and how to fix this?

Kindest,
Brooklyn.
___
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. 


[Freesurfer] mri_segstats error:

2023-01-04 Thread Brooklyn Wright
External Email - Use Caution

Hello Freesurfer Developers,

I am currently trying to perform reconstructions on 1mm^3 T1 data and am 
finding this error towards the end of the processing;


\n mri brainvol _stats cor. 15 \n

Segmentation fault

Darwin UW-C02L2083DNMP 18.7.0 Darwin Kernel Version 18.7.0: Tue Jun 22 19:37:08 
PDT 2021; root:xnu-4903.278.79-1/RELEASE_X86_ 64 x86_64

recon-al1 -s cor 15 exited with ERRORS at Tue Dec 20 11:16:05 AEDT 2022

Do you know why this is happening and how to fix this?

Kindest,
Brooklyn.
___
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 
 .
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. 


Re: [Freesurfer] mri_segstats to report empty and non-empty segmentation

2021-04-15 Thread Douglas N. Greve

Try adding --empty

On 4/12/2021 4:58 PM, miracle ozzoude wrote:


External Email - Use Caution

Hello Experts,

I am using mri_segstats with the --ctab flag to extract dti and suvr 
values from a white matter hyperintensities parcellation. Running 
mri_segstats on the image and parcellation with --ctab only reports on 
non-empty segmentations. I want it to also report on the empty 
segmentations.


Is there a flag or any other freesurfer commands that i can use?

Summary: I want mri_segstats to report on non-empty and empty 
segmentations, not just the former.


Cheers.
||
|cmdline mri_segstats --seg wmh_lobar.nii.gz --i 
subj_rescaled_wholecere_PET2T1_smooth.nii.gz --sum 
SUVR_WMH_lobar.stats --ctab WMColorLUT.ctab --pv norm.mgz|

|Loading wmh_lobar.nii.gz|
|INFO: using NIfTI-1 qform|
|Loading subj_rescaled_wholecere_PET2T1_smooth.nii.gz|
|Loading norm.mgz|
|Voxel Volume is 1 mm^3|
|Generating list of segmentation ids|
|Found 13 segmentations|
|Computing statistics for each segmentation||Reporting on 11 
segmentations|

|Using PrintSegStat|
|mri_segstats done|

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


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

[Freesurfer] mri_segstats to report empty and non-empty segmentation

2021-04-12 Thread miracle ozzoude
External Email - Use Caution

Hello Experts,

I am using mri_segstats with the --ctab flag to extract dti and suvr values
from a white matter hyperintensities parcellation. Running mri_segstats on
the image and parcellation with --ctab only reports on non-empty
segmentations. I want it to also report on the empty segmentations.

Is there a flag or any other freesurfer commands that i can use?

Summary: I want mri_segstats to report on non-empty and empty
segmentations, not just the former.

Cheers.

cmdline mri_segstats --seg wmh_lobar.nii.gz --i
subj_rescaled_wholecere_PET2T1_smooth.nii.gz --sum SUVR_WMH_lobar.stats
--ctab WMColorLUT.ctab --pv norm.mgz
Loading wmh_lobar.nii.gz
INFO: using NIfTI-1 qform
Loading subj_rescaled_wholecere_PET2T1_smooth.nii.gz
Loading norm.mgz
Voxel Volume is 1 mm^3
Generating list of segmentation ids
Found 13 segmentations
Computing statistics for each segmentationReporting on 11 segmentations
Using PrintSegStat
mri_segstats done
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats question

2020-11-29 Thread RENXI LI
External Email - Use Caution

The WM was cropped out by applying a grey-matter mask in SPM, and I am trying 
to extract non-zero voxels with mri_segstats.

Best,
Renxi

> On Nov 29, 2020, at 11:23 AM, Greve, Douglas N.,Ph.D. 
>  wrote:
> 
> I don't understand why WM was cropped out. What command were you trying 
> to use?
> 
> On 11/18/2020 2:39 AM, RENXI LI wrote:
>> External Email - Use Caution
>> 
>> Hi Freesurfer experts:
>> 
>> I am trying to extract the mean-time series from the functional image using 
>> mri_segstats. However, the cerebral white matter signals were cropped out in 
>> my functional images, and the regions that I am trying to extract signal 
>> from are close to the cerebral white matter that some voxels at the boundary 
>> may not contain any signals. Is there any arguments in mri_segstats that I 
>> can use to only extract voxels that has non-zero time-series?
>> 
>> Best,
>> Renxi
>> 
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://secure-web.cisco.com/1HcpQrOwsWp30a5Byx8SjDy-0mjvPRwBF9sIjXTumq5hy1YizFzdjzlCX1WRJhYJ8qfRtz24XvoI5dsZb2w50MvxP9dV-QejxbmjeE2iIOtR4gPbij3GZcGdBQ9d-XzSWlVSjcxCj8Yjdj3egp0gwjNFTyIHEuP_Fzi2IWD5a4JbGSrOVBBGa9qP7_6aFafxtAtM0dvSlKVjnGooprFVoBJ6gF4H6VCXuJhO5e9bEma-iKGEYRJm39qrG9S1R8alNqLRg6x-w_W3oGTiQ-NhZwA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
> 
> 
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://secure-web.cisco.com/1HcpQrOwsWp30a5Byx8SjDy-0mjvPRwBF9sIjXTumq5hy1YizFzdjzlCX1WRJhYJ8qfRtz24XvoI5dsZb2w50MvxP9dV-QejxbmjeE2iIOtR4gPbij3GZcGdBQ9d-XzSWlVSjcxCj8Yjdj3egp0gwjNFTyIHEuP_Fzi2IWD5a4JbGSrOVBBGa9qP7_6aFafxtAtM0dvSlKVjnGooprFVoBJ6gF4H6VCXuJhO5e9bEma-iKGEYRJm39qrG9S1R8alNqLRg6x-w_W3oGTiQ-NhZwA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer



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


Re: [Freesurfer] mri_segstats question

2020-11-29 Thread Greve, Douglas N.,Ph.D.
what is your command line?

On 11/29/2020 2:55 PM, RENXI LI wrote:
>  External Email - Use Caution
>
> The WM was cropped out by applying a grey-matter mask in SPM, and I am trying 
> to extract non-zero voxels with mri_segstats.
>
> Best,
> Renxi
>
>> On Nov 29, 2020, at 11:23 AM, Greve, Douglas N.,Ph.D. 
>>  wrote:
>>
>> I don't understand why WM was cropped out. What command were you trying
>> to use?
>>
>> On 11/18/2020 2:39 AM, RENXI LI wrote:
>>>  External Email - Use Caution
>>>
>>> Hi Freesurfer experts:
>>>
>>> I am trying to extract the mean-time series from the functional image using 
>>> mri_segstats. However, the cerebral white matter signals were cropped out 
>>> in my functional images, and the regions that I am trying to extract signal 
>>> from are close to the cerebral white matter that some voxels at the 
>>> boundary may not contain any signals. Is there any arguments in 
>>> mri_segstats that I can use to only extract voxels that has non-zero 
>>> time-series?
>>>
>>> Best,
>>> Renxi
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://secure-web.cisco.com/1HcpQrOwsWp30a5Byx8SjDy-0mjvPRwBF9sIjXTumq5hy1YizFzdjzlCX1WRJhYJ8qfRtz24XvoI5dsZb2w50MvxP9dV-QejxbmjeE2iIOtR4gPbij3GZcGdBQ9d-XzSWlVSjcxCj8Yjdj3egp0gwjNFTyIHEuP_Fzi2IWD5a4JbGSrOVBBGa9qP7_6aFafxtAtM0dvSlKVjnGooprFVoBJ6gF4H6VCXuJhO5e9bEma-iKGEYRJm39qrG9S1R8alNqLRg6x-w_W3oGTiQ-NhZwA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://secure-web.cisco.com/1HcpQrOwsWp30a5Byx8SjDy-0mjvPRwBF9sIjXTumq5hy1YizFzdjzlCX1WRJhYJ8qfRtz24XvoI5dsZb2w50MvxP9dV-QejxbmjeE2iIOtR4gPbij3GZcGdBQ9d-XzSWlVSjcxCj8Yjdj3egp0gwjNFTyIHEuP_Fzi2IWD5a4JbGSrOVBBGa9qP7_6aFafxtAtM0dvSlKVjnGooprFVoBJ6gF4H6VCXuJhO5e9bEma-iKGEYRJm39qrG9S1R8alNqLRg6x-w_W3oGTiQ-NhZwA/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


Re: [Freesurfer] mri_segstats question

2020-11-29 Thread Greve, Douglas N.,Ph.D.
I don't understand why WM was cropped out. What command were you trying 
to use?

On 11/18/2020 2:39 AM, RENXI LI wrote:
>  External Email - Use Caution
>
> Hi Freesurfer experts:
>
> I am trying to extract the mean-time series from the functional image using 
> mri_segstats. However, the cerebral white matter signals were cropped out in 
> my functional images, and the regions that I am trying to extract signal from 
> are close to the cerebral white matter that some voxels at the boundary may 
> not contain any signals. Is there any arguments in mri_segstats that I can 
> use to only extract voxels that has non-zero time-series?
>
> Best,
> Renxi
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


[Freesurfer] mri_segstats question

2020-11-18 Thread RENXI LI
External Email - Use Caution

Hi Freesurfer experts:

I am trying to extract the mean-time series from the functional image using 
mri_segstats. However, the cerebral white matter signals were cropped out in my 
functional images, and the regions that I am trying to extract signal from are 
close to the cerebral white matter that some voxels at the boundary may not 
contain any signals. Is there any arguments in mri_segstats that I can use to 
only extract voxels that has non-zero time-series?

Best,
Renxi

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


Re: [Freesurfer] mri_segstats quetsion

2020-09-04 Thread Nasiriavanaki, Zahra
Great. thanks Doug!

Zahra (Mona) Nasiriavanaki, M.D.
Postdoctoral Research Fellow
Department of Psychiatry
Massachusetts General Hospital
149 13th Street, 149-2615
Charlestown, MA, USA, 02129

On Sep 4, 2020, at 1:07 PM, Douglas N. Greve 
mailto:dgr...@mgh.harvard.edu>> wrote:

I'm not entirely sure what those steps are trying to do. Extract out signal 
from voxels in thalamus that have a positive sig? You can do that with one call 
to mri_segstats. This page has an example:
https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MultiModalFmriIndividual_freeview

On 9/4/2020 11:56 AM, Nasiriavanaki, Zahra wrote:
Dear Freesurferers

Hi

I am trying to extract the BOLD signal values from a functional subcortical 
area. I did the below steps to make the functional thalamus ROI and then used 
the mri_segstats to extract the BOLD signal from it.
I would like to know 1-if my approach is correct? 2- should I use “lhthal3” as 
a mask? if so, what should I use as an input? 3-I see that the “mri_segstats” 
outputs one value for each voxel inside my ROI, is there a way to get one value 
across the whole ROI (lhthal3.nii.gz)?

fslmaths 'aseg.nii.gz' -thr 10 -uthr 10 'lhthal.nii.gz'
fslmaths 'lhthal.nii.gz' -mul 'sig.nii.gz' 'lhthal2.nii.gz'
fslmaths 'lhthal2.nii.gz' -bin 'lhthal3.nii.gz'

mri_segstats --seg aseg.nii.gz --i lhthal3.nii.gz  --sfavg this.txt

Thanks a lot
M0na

Zahra (Mona) Nasiriavanaki, M.D.
Postdoctoral Research Fellow
Department of Psychiatry
Massachusetts General Hospital
149 13th Street, 149-2615
Charlestown, MA, USA, 02129




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

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

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

Re: [Freesurfer] mri_segstats quetsion

2020-09-04 Thread Douglas N. Greve
I'm not entirely sure what those steps are trying to do. Extract out 
signal from voxels in thalamus that have a positive sig? You can do that 
with one call to mri_segstats. This page has an example:

https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MultiModalFmriIndividual_freeview

On 9/4/2020 11:56 AM, Nasiriavanaki, Zahra wrote:

Dear Freesurferers

Hi

I am trying to extract the BOLD signal values from a functional 
subcortical area. I did the below steps to make the functional 
thalamus ROI and then used the mri_segstats to extract the BOLD signal 
from it.
I would like to know 1-if my approach is correct? 2- should I use 
“lhthal3” as a mask? if so, what should I use as an input? 3-I see 
that the “mri_segstats” outputs one value for each voxel inside my 
ROI, is there a way to get one value across the whole ROI 
(lhthal3.nii.gz)?


fslmaths 'aseg.nii.gz' -thr 10 -uthr 10 'lhthal.nii.gz'
fslmaths 'lhthal.nii.gz' -mul 'sig.nii.gz' 'lhthal2.nii.gz'
fslmaths 'lhthal2.nii.gz' -bin 'lhthal3.nii.gz'

mri_segstats --seg aseg.nii.gz --i lhthal3.nii.gz  --sfavg this.txt

Thanks a lot
M0na

*Zahra (Mona) Nasiriavanaki, M.D.*
Postdoctoral Research Fellow
Department of Psychiatry
Massachusetts General Hospital
149 13th Street, 149-2615
Charlestown, MA, USA, 02129


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


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

[Freesurfer] mri_segstats quetsion

2020-09-04 Thread Nasiriavanaki, Zahra
Dear Freesurferers

Hi

I am trying to extract the BOLD signal values from a functional subcortical 
area. I did the below steps to make the functional thalamus ROI and then used 
the mri_segstats to extract the BOLD signal from it.
I would like to know 1-if my approach is correct? 2- should I use “lhthal3” as 
a mask? if so, what should I use as an input? 3-I see that the “mri_segstats” 
outputs one value for each voxel inside my ROI, is there a way to get one value 
across the whole ROI (lhthal3.nii.gz)?

fslmaths 'aseg.nii.gz' -thr 10 -uthr 10 'lhthal.nii.gz'
fslmaths 'lhthal.nii.gz' -mul 'sig.nii.gz' 'lhthal2.nii.gz'
fslmaths 'lhthal2.nii.gz' -bin 'lhthal3.nii.gz'

mri_segstats --seg aseg.nii.gz --i lhthal3.nii.gz  --sfavg this.txt

Thanks a lot
M0na

Zahra (Mona) Nasiriavanaki, M.D.
Postdoctoral Research Fellow
Department of Psychiatry
Massachusetts General Hospital
149 13th Street, 149-2615
Charlestown, MA, USA, 02129

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

Re: [Freesurfer] Mri_segstats for PET data: Reviewer question

2020-04-27 Thread Douglas N. Greve
An ROI does not have a GM probabability, so I'm not sure what to say. 
Perhaps he/she wants the average amount of GM in the ROI relative to the 
size of the ROI? You can get this with mri_compute_volume_fractions. 
This will produce maps of the GM fraction in each voxel (separating 
cortical and subcortical). Just use mri_segstats in the same way you 
used it for the PET. The output will be the fraction of the ROI that is GM.


On 4/24/2020 8:41 AM, Shane Schofield wrote:


External Email - Use Caution

Hi Freesurfer Team,

I have used mri_segstats to get ythe mean PET uptake across all the 
parcellations in the WMPARC space. These values were calculated in the 
native PET space (following the DTI tutorial). A reviewer asked what 
is the grey matter probability of the ROI and I am not sure how to 
address this. Any help is kindly appreciated. Thanks.




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


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

[Freesurfer] Mri_segstats for PET data: Reviewer question

2020-04-24 Thread Shane Schofield
External Email - Use Caution

Hi Freesurfer Team,
I have used mri_segstats to get ythe mean PET uptake across all the 
parcellations in the WMPARC space. These values were calculated in the native 
PET space (following the DTI tutorial). A reviewer asked what is the grey 
matter probability of the ROI and I am not sure how to address this. Any help 
is kindly appreciated. Thanks.

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

Re: [Freesurfer] mri_segstats

2019-04-12 Thread Nasiriavanaki, Zahra
Following my previous question, I have one more question and I appreciate if 
you could please reply whenever you had time.

I extracted time series from a single resting state run using mri_segstats and 
compared it to the time series extracted from the same run using (fcseed-config 
& fcseed-sess).

The outputs are very different from each other. I'm wondering why they are 
different and which one I should use as a seed in the connectivity analysis?

mri_segstats --i  $subj/rest/009/fmcpr.siemens.sm5.mni305.2mm.nii.gz --seg 
SUBJECTS_DIR/$subj/mri/reg.lh.HBT2.mgz --id 7001 --avgwf-remove-mean --avgwf 
lh.lateral.txt

fcseed-config -segid 7001 -seg SUBJECTS_DIR/$subj/mri/reg.lh.HBT2.mgz -fcname 
lh.lateral.dat  -fsd rest -rlf restruns -mean -cfg lh.lateral.config -overwrite
fcseed-sess -s $subj -d . -cfg lh.lateral.config


Thanks

Mona



From: Nasiriavanaki, Zahra
Sent: Thursday, April 11, 2019 4:52:49 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] mri_segstats


Thank you so very much.

Yes, the values look normal now.


Mona





From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Greve, Douglas N.,Ph.D. 

Sent: Thursday, April 11, 2019 4:33:12 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

You probably need to remove the mean. Add --avgwf-remove-mean to the
command line

On 4/11/19 4:29 PM, Nasiriavanaki, Zahra wrote:
>
> Thank you for your reply.
>
> The values of mri_segstatsoutput text file (lateral.txt) are high. I
> attached it to this email.
>
>
> mri_segstats --i
> $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
>
>
>
> 
> *From:* freesurfer-boun...@nmr.mgh.harvard.edu
>  on behalf of Greve, Douglas
> N.,Ph.D. 
> *Sent:* Thursday, April 11, 2019 4:19:00 PM
> *To:* freesurfer@nmr.mgh.harvard.edu
> *Subject:* Re: [Freesurfer] mri_segstats
> The value of what is too  high?
>
>
> On 4/11/19 4:07 PM, Nasiriavanaki, Zahra wrote:
> >
> > Hi
> >
> >
> > I have not got the answer to my question yet, and I appreciate if you
> > could please let me know what you think about it.
> >
> >
> > Thanks
> >
> > Mona
> >
> > 
> > *From:* Nasiriavanaki, Zahra
> > *Sent:* Tuesday, April 9, 2019 5:55:58 PM
> > *To:* Freesurfer support list
> > *Subject:* mri_segstats
> >
> > Dear Freesurferers
> >
> >
> > I was trying to do a connectivity analysis using subnuclei of Amygdala.
> >
> > I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf
> > Amygdala) and I tried to use that in mri_segstats to extract the
> > timeseries and then use it as a seed in my analysis. However when I
> > looked at the results, the values are too high (around 800). Could you
> > please let me know what I'm doing wrong?
> >
> > P.S: the segmentation was basically done in MNI152-1mm and I moved it
> > to MNI305-2mm by mri_vol2vol.
> >
> > mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz --targ
> > $SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz --o
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade
> >
> > mri_segstats --i
> > $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
> >
> >
> > Thanks  a lot
> >
> > MOna
> >
> >
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer Info Page - Harvard 
University<https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer>
mail.nmr.mgh.harvard.edu
To see the collection of prior postings to the list, visit the Freesurfer 
Archives.. A searchable archive which of messages PRIOR to March 2004 is at 
this site A searchable archive which includes messages AFTER March 2004 is at 
this site. Using Freesurfer



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


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

Re: [Freesurfer] mri_segstats

2019-04-11 Thread Nasiriavanaki, Zahra
Thank you so very much.

Yes, the values look normal now.


Mona





From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Greve, Douglas N.,Ph.D. 

Sent: Thursday, April 11, 2019 4:33:12 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

You probably need to remove the mean. Add --avgwf-remove-mean to the
command line

On 4/11/19 4:29 PM, Nasiriavanaki, Zahra wrote:
>
> Thank you for your reply.
>
> The values of mri_segstatsoutput text file (lateral.txt) are high. I
> attached it to this email.
>
>
> mri_segstats --i
> $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
>
>
>
> 
> *From:* freesurfer-boun...@nmr.mgh.harvard.edu
>  on behalf of Greve, Douglas
> N.,Ph.D. 
> *Sent:* Thursday, April 11, 2019 4:19:00 PM
> *To:* freesurfer@nmr.mgh.harvard.edu
> *Subject:* Re: [Freesurfer] mri_segstats
> The value of what is too  high?
>
>
> On 4/11/19 4:07 PM, Nasiriavanaki, Zahra wrote:
> >
> > Hi
> >
> >
> > I have not got the answer to my question yet, and I appreciate if you
> > could please let me know what you think about it.
> >
> >
> > Thanks
> >
> > Mona
> >
> > 
> > *From:* Nasiriavanaki, Zahra
> > *Sent:* Tuesday, April 9, 2019 5:55:58 PM
> > *To:* Freesurfer support list
> > *Subject:* mri_segstats
> >
> > Dear Freesurferers
> >
> >
> > I was trying to do a connectivity analysis using subnuclei of Amygdala.
> >
> > I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf
> > Amygdala) and I tried to use that in mri_segstats to extract the
> > timeseries and then use it as a seed in my analysis. However when I
> > looked at the results, the values are too high (around 800). Could you
> > please let me know what I'm doing wrong?
> >
> > P.S: the segmentation was basically done in MNI152-1mm and I moved it
> > to MNI305-2mm by mri_vol2vol.
> >
> > mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz --targ
> > $SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz --o
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade
> >
> > mri_segstats --i
> > $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
> >
> >
> > Thanks  a lot
> >
> > MOna
> >
> >
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
Freesurfer Info Page - Harvard 
University<https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer>
mail.nmr.mgh.harvard.edu
To see the collection of prior postings to the list, visit the Freesurfer 
Archives.. A searchable archive which of messages PRIOR to March 2004 is at 
this site A searchable archive which includes messages AFTER March 2004 is at 
this site. Using Freesurfer



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


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

Re: [Freesurfer] mri_segstats

2019-04-11 Thread Greve, Douglas N.,Ph.D.
You probably need to remove the mean. Add --avgwf-remove-mean to the 
command line

On 4/11/19 4:29 PM, Nasiriavanaki, Zahra wrote:
>
> Thank you for your reply.
>
> The values of mri_segstatsoutput text file (lateral.txt) are high. I 
> attached it to this email.
>
>
> mri_segstats --i 
> $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg 
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
>
>
>
> 
> *From:* freesurfer-boun...@nmr.mgh.harvard.edu 
>  on behalf of Greve, Douglas 
> N.,Ph.D. 
> *Sent:* Thursday, April 11, 2019 4:19:00 PM
> *To:* freesurfer@nmr.mgh.harvard.edu
> *Subject:* Re: [Freesurfer] mri_segstats
> The value of what is too  high?
>
>
> On 4/11/19 4:07 PM, Nasiriavanaki, Zahra wrote:
> >
> > Hi
> >
> >
> > I have not got the answer to my question yet, and I appreciate if you
> > could please let me know what you think about it.
> >
> >
> > Thanks
> >
> > Mona
> >
> > 
> > *From:* Nasiriavanaki, Zahra
> > *Sent:* Tuesday, April 9, 2019 5:55:58 PM
> > *To:* Freesurfer support list
> > *Subject:* mri_segstats
> >
> > Dear Freesurferers
> >
> >
> > I was trying to do a connectivity analysis using subnuclei of Amygdala.
> >
> > I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf
> > Amygdala) and I tried to use that in mri_segstats to extract the
> > timeseries and then use it as a seed in my analysis. However when I
> > looked at the results, the values are too high (around 800). Could you
> > please let me know what I'm doing wrong?
> >
> > P.S: the segmentation was basically done in MNI152-1mm and I moved it
> > to MNI305-2mm by mri_vol2vol.
> >
> > mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz --targ
> > $SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz --o
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade
> >
> > mri_segstats --i
> > $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> > $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
> >
> >
> > Thanks  a lot
> >
> > MOna
> >
> >
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


Re: [Freesurfer] mri_segstats

2019-04-11 Thread Nasiriavanaki, Zahra
Thank you for your reply.

The values of mri_segstats output text file (lateral.txt) are high. I attached 
it to this email.

mri_segstats --i $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz 
--seg $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt





From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Greve, Douglas N.,Ph.D. 

Sent: Thursday, April 11, 2019 4:19:00 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

The value of what is too  high?


On 4/11/19 4:07 PM, Nasiriavanaki, Zahra wrote:
>
> Hi
>
>
> I have not got the answer to my question yet, and I appreciate if you
> could please let me know what you think about it.
>
>
> Thanks
>
> Mona
>
> 
> *From:* Nasiriavanaki, Zahra
> *Sent:* Tuesday, April 9, 2019 5:55:58 PM
> *To:* Freesurfer support list
> *Subject:* mri_segstats
>
> Dear Freesurferers
>
>
> I was trying to do a connectivity analysis using subnuclei of Amygdala.
>
> I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf
> Amygdala) and I tried to use that in mri_segstats to extract the
> timeseries and then use it as a seed in my analysis. However when I
> looked at the results, the values are too high (around 800). Could you
> please let me know what I'm doing wrong?
>
> P.S: the segmentation was basically done in MNI152-1mm and I moved it
> to MNI305-2mm by mri_vol2vol.
>
> mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz --targ
> $SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz --o
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade
>
> mri_segstats --i
> $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
>
>
> Thanks  a lot
>
> MOna
>
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
  880.66492 
  879.35124 
  875.19926 
  878.23346 
  881.41143 
  878.01978 
  880.06932 
  882.16385 
  881.18868 
  884.87288 
  876.85369 
  879.21501 
  884.16000 
  881.42676 
  881.83217 
  880.46420 
  882.55352 
  883.94261 
  878.69354 
  882.01870 
  885.42943 
  881.85023 
  881.78761 
  880.89990 
  882.05140 
  881.49463 
  879.11290 
  881.71156 
  883.40625 
  885.35308 
  886.00897 
  884.20635 
  883.62201 
  884.86079 
  879.93472 
  880.38000 
  880.38240 
  879.34196 
  880.93785 
  889.45776 
  884.71200 
  877.96323 
  882.71370 
  886.57384 
  884.38491 
  886.27261 
  885.22180 
  884.92608 
  883.08029 
  882.82838 
  883.82696 
  886.61621 
  886.14899 
  882.42556 
  884.24720 
  885.83927 
  887.54077 
  888.56318 
  888.97052 
  887.70273 
  882.90662 
  888.15405 
  887.3 
  880.80367 
  887.67819 
  886.25526 
  884.89621 
  886.30670 
  890.39068 
  887.28961 
  887.74262 
  890.38000 
  885.77219 
  882.68568 
  883.08172 
  886.55909 
  888.62015 
  890.14195 
  885.46813 
  884.85042 
  887.99759 
  887.79979 
  888.65272 
  893.22492 
  888.57242 
  881.93206 
  885.05627 
  890.43585 
  890.70597 
  891.94003 
  891.08997 
  884.79187 
  882.68204 
  887.04860 
  892.99752 
  888.86018 
  888.93916 
  887.92639 
  891.26818 
  892.18812 
  892.25166 
  894.13254 
  891.26104 
  894.12174 
  895.34897 
  886.59572 
  888.05077 
  889.82544 
  888.03618 
  889.52830 
  889.12397 
  890.39206 
  893.30856 
  889.35844 
  890.10230 
  889.17691 
  890.90286 
  888.19625 
  889.39030 
  891.37744 
  888.89483 
  896.03565 
  903.50377 
  898.25897 
  890.16137 
  895.46996 
  894.20017 
  890.21543 
  894.12683 
  893.51801 
  893.27163 
  888.98254 
  889.72322 
  895.49739 
  897.36799 
  898.92711 
  891.67231 
  891.17966 
  894.54856 
  891.54128 
  888.39904 
  892.85606 
  891.19351 
  888.65139 
  892.89644 
  891.58232 
  889.17575 
  893.36888 
  895.90947 
  892.86331 
  895.31855 
  897.37581 
  898.34803 
  896.17875 
  894.53777 
  894.98599 
  891.79477 
  892.37661 
  893.70345 
  894.02283 
  896.38097 
  893.74852 
  890.68235 
  894.42961 
  892.66179 
  894.19767 
  893.99140 
  887.15148 
  894.65934 
  892.87306 
  886.91481 
  895.84461 
  896.43819 
  893.02697 
  897.91664 
  893.07503 
  889.62444 
  890.22281 
  895.30936 
  896.98467 
  896.73566 
  895.41997 
  890.49967 
  892.12631 
  895.65170 
  891.86272 
  893.40041 
  896.60271 
  895.78550 
  894.88053 
  895.03044 
  896.80774 
  888.46381 
  893.32973 
  904.80194 
  894.56621 
  893.66082 
  897.20610 
  899.85231 
  896.96227 
  891.11571 
 

Re: [Freesurfer] mri_segstats

2019-04-11 Thread Greve, Douglas N.,Ph.D.
The value of what is too  high?


On 4/11/19 4:07 PM, Nasiriavanaki, Zahra wrote:
>
> Hi
>
>
> I have not got the answer to my question yet, and I appreciate if you 
> could please let me know what you think about it.
>
>
> Thanks
>
> Mona
>
> 
> *From:* Nasiriavanaki, Zahra
> *Sent:* Tuesday, April 9, 2019 5:55:58 PM
> *To:* Freesurfer support list
> *Subject:* mri_segstats
>
> Dear Freesurferers
>
>
> I was trying to do a connectivity analysis using subnuclei of Amygdala.
>
> I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf 
> Amygdala) and I tried to use that in mri_segstats to extract the 
> timeseries and then use it as a seed in my analysis. However when I 
> looked at the results, the values are too high (around 800). Could you 
> please let me know what I'm doing wrong?
>
> P.S: the segmentation was basically done in MNI152-1mm and I moved it 
> to MNI305-2mm by mri_vol2vol.
>
> mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz --targ 
> $SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz --o 
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade
>
> mri_segstats --i 
> $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz --seg 
> $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt
>
>
> Thanks  a lot
>
> MOna
>
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


Re: [Freesurfer] mri_segstats

2019-04-11 Thread Nasiriavanaki, Zahra
Hi


I have not got the answer to my question yet, and I appreciate if you could 
please let me know what you think about it.


Thanks

Mona


From: Nasiriavanaki, Zahra
Sent: Tuesday, April 9, 2019 5:55:58 PM
To: Freesurfer support list
Subject: mri_segstats


Dear Freesurferers


I was trying to do a connectivity analysis using subnuclei of Amygdala.

I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf Amygdala) and I 
tried to use that in mri_segstats to extract the timeseries and then use it as 
a seed in my analysis. However when I looked at the results, the values are too 
high (around 800). Could you please let me know what I'm doing wrong?

P.S: the segmentation was basically done in MNI152-1mm and I moved it to 
MNI305-2mm by mri_vol2vol.



mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz   --targ 
$SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz  --o 
$SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade


mri_segstats --i $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz 
--seg $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt


Thanks  a lot

MOna

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

[Freesurfer] mri_segstats

2019-04-09 Thread Nasiriavanaki, Zahra
Dear Freesurferers


I was trying to do a connectivity analysis using subnuclei of Amygdala.

I had an Amygdala segmentation file (reg.lh.HBT.mgz for letf Amygdala) and I 
tried to use that in mri_segstats to extract the timeseries and then use it as 
a seed in my analysis. However when I looked at the results, the values are too 
high (around 800). Could you please let me know what I'm doing wrong?

P.S: the segmentation was basically done in MNI152-1mm and I moved it to 
MNI305-2mm by mri_vol2vol.



mri_vol2vol --mov MNI152template/MNI152_1/mri/reg.lh.HBT.mgz   --targ 
$SUBJECTS_DIR/fsaverage/mri.2mm/mni305.cor.mgz  --o 
$SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --interp nearest --regheade


mri_segstats --i $all_subjects/$subj/rest/009/fmcpr.sdf.sm5.mni305.2mm.nii.gz 
--seg $SUBJECTS_DIR/$subj/mri/reg.lh.HBT.mgz --id 7001 --avgwf lateral.txt


Thanks  a lot

MOna

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

Re: [Freesurfer] mri_segstats issue with hippocampal subfields

2019-03-06 Thread Bruce Fischl

Hi Daniel

left and right hippocampus have different indices (17 and 53)

cheers
Bruce
On Wed, 6 Mar 
2019, Daniel Callow wrote:




External Email - Use Caution

Never mind. I see that I can use those to id #'s to call from 
FreeSurferColorLUT.txt.

I assume that those Id's are consistent for both left and right hippocampus.

Thanks for the help!
Daniel CallowPhD Student, Neuroscience and Cognitive Science
Exercise for Brain Health Lab
University of Maryland, College Park
ddcc2...@gmail.com
443-254-6298


On Wed, Mar 6, 2019 at 1:09 PM Daniel Callow  wrote:
  Hi Doug,
Thank you for your reply!


Unfortunately when I run the same code as before but by calling
to /Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt 
instead
of /Applications/freesurfer/FreeSurferColorLUT.txt and using the assosciated 
--id #'s as shown below 

mri_segstats --seg 
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz --mul 
1000
--ctab 
/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt --id 
226 --id 205
--id 206 --id 208 --id 209 --id 210 --i
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./radialdiff-masked.nii.gz 
--sum
${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.radialdiff.stats



I get the following error.


Loading /Volumes/DANIEL/dti_freesurf/dtrecon/AES139.Rest./rhipp2diff.nii.gz

CTABreadASCII(/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt):
 badly
formed file

No such file or directory

ERROR: reading 
/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt


any idea how I could make it a formed file that is compatible?


Best,

Daniel CallowPhD Student, Neuroscience and Cognitive Science
Exercise for Brain Health Lab
University of Maryland, College Park
ddcc2...@gmail.com
443-254-6298


On Wed, Mar 6, 2019 at 12:56 PM Greve, Douglas N.,Ph.D. 
 wrote:
  look in $FREESURFER_HOME/average/HippoSF/atlas/compressionLookupTable.txt
  The first number should be the one you are looking for.

  On 3/6/19 12:26 PM, Daniel Callow wrote:
  >
  > External Email - Use Caution
  >
  > Hello,
  >
  > I am trying to extract stats from the hippocampal subfield volumes
  > that I have warped to diffusion space.
  >
  > mri_vol2vol --mov
  > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lowb.nii.gz
  > --targ
  
>/Volumes/DANIEL/dti_freesurf/diffusion_recons/${subj}.${cond}/mri/lh.hippoSfLabels-T1.v10.FSvoxelSpace.mgz

  > --inv --interp nearest --o
  > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
  > --reg
  > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./register.dat
  > --no-save-reg
  >
  >
  > Then I run
  >
  >
  > mri_segstats --seg
  > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
  > --ctab /Applications/freesurfer/FreeSurferColorLUT.txt --id 550 --id
  > 552 --id 556 --id 557 --id 558 --i
  > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./fa-masked.nii.gz
  > --sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.fa.stats
  >
  >
  > using the --i id# from FreeSurferColorLUT.txt.
  >
  >
  > However, looking at the values of the hippocampal subfield volume I
  > see that the Id's are all in the 200's?
  >
  >
  > Is there a txt file that has the labelings like in
  > FreeSurferColorLUT.txt for these hippocampal subfields?
  >
  >
  > Thank you for any help you can provide!
  >
  > *Daniel Callow*
  > /PhD Student, Neuroscience and Cognitive Science/
  > Exercise for Brain Health Lab
  > University of Maryland, College Park
  > _ddcc2...@gmail.com _
  > 443-254-6298
  >
  > ___
  > Freesurfer mailing list
  > Freesurfer@nmr.mgh.harvard.edu
  > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


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

Re: [Freesurfer] mri_segstats issue with hippocampal subfields

2019-03-06 Thread Daniel Callow
External Email - Use Caution

Never mind. I see that I can use those to id #'s to call
from FreeSurferColorLUT.txt.

I assume that those Id's are consistent for both left and right hippocampus.

Thanks for the help!
*Daniel Callow*
*PhD Student, Neuroscience and Cognitive Science*
Exercise for Brain Health Lab
University of Maryland, College Park
*ddcc2...@gmail.com *
443-254-6298


On Wed, Mar 6, 2019 at 1:09 PM Daniel Callow  wrote:

> Hi Doug,
>
> Thank you for your reply!
>
>
> Unfortunately when I run the same code as before but by calling to 
> /Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt
> instead of /Applications/freesurfer/FreeSurferColorLUT.txt and using the
> assosciated --id #'s as shown below
>
> mri_segstats --seg
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
> --mul 1000 --ctab
> /Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt
> --id 226 --id 205 --id 206 --id 208 --id 209 --id 210 --i
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./radialdiff-masked.nii.gz
> --sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.radialdiff.stats
>
>
>
> I get the following error.
>
>
> Loading /Volumes/DANIEL/dti_freesurf/dtrecon/AES139.Rest./rhipp2diff.nii.gz
>
> CTABreadASCII(/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt):
> badly formed file
>
> No such file or directory
>
> ERROR: reading
> /Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt
>
>
> any idea how I could make it a formed file that is compatible?
>
>
> Best,
> *Daniel Callow*
> *PhD Student, Neuroscience and Cognitive Science*
> Exercise for Brain Health Lab
> University of Maryland, College Park
> *ddcc2...@gmail.com *
> 443-254-6298
>
>
> On Wed, Mar 6, 2019 at 12:56 PM Greve, Douglas N.,Ph.D. <
> dgr...@mgh.harvard.edu> wrote:
>
>> look in $FREESURFER_HOME/average/HippoSF/atlas/compressionLookupTable.txt
>> The first number should be the one you are looking for.
>>
>> On 3/6/19 12:26 PM, Daniel Callow wrote:
>> >
>> > External Email - Use Caution
>> >
>> > Hello,
>> >
>> > I am trying to extract stats from the hippocampal subfield volumes
>> > that I have warped to diffusion space.
>> >
>> > mri_vol2vol --mov
>> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lowb.nii.gz
>> > --targ
>> >
>> /Volumes/DANIEL/dti_freesurf/diffusion_recons/${subj}.${cond}/mri/lh.hippoSfLabels-T1.v10.FSvoxelSpace.mgz
>>
>> > --inv --interp nearest --o
>> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
>> > --reg
>> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./register.dat
>> > --no-save-reg
>> >
>> >
>> > Then I run
>> >
>> >
>> > mri_segstats --seg
>> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
>> > --ctab /Applications/freesurfer/FreeSurferColorLUT.txt --id 550 --id
>> > 552 --id 556 --id 557 --id 558 --i
>> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./fa-masked.nii.gz
>> > --sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.fa.stats
>> >
>> >
>> > using the --i id# from FreeSurferColorLUT.txt.
>> >
>> >
>> > However, looking at the values of the hippocampal subfield volume I
>> > see that the Id's are all in the 200's?
>> >
>> >
>> > Is there a txt file that has the labelings like in
>> > FreeSurferColorLUT.txt for these hippocampal subfields?
>> >
>> >
>> > Thank you for any help you can provide!
>> >
>> > *Daniel Callow*
>> > /PhD Student, Neuroscience and Cognitive Science/
>> > Exercise for Brain Health Lab
>> > University of Maryland, College Park
>> > _ddcc2...@gmail.com _
>> > 443-254-6298
>> >
>> > ___
>> > Freesurfer mailing list
>> > Freesurfer@nmr.mgh.harvard.edu
>> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats issue with hippocampal subfields

2019-03-06 Thread Daniel Callow
External Email - Use Caution

Hi Doug,

Thank you for your reply!


Unfortunately when I run the same code as before but by calling to
/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt
instead of /Applications/freesurfer/FreeSurferColorLUT.txt and using the
assosciated --id #'s as shown below

mri_segstats --seg
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
--mul 1000 --ctab
/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt
--id 226 --id 205 --id 206 --id 208 --id 209 --id 210 --i
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./radialdiff-masked.nii.gz
--sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.radialdiff.stats



I get the following error.


Loading /Volumes/DANIEL/dti_freesurf/dtrecon/AES139.Rest./rhipp2diff.nii.gz

CTABreadASCII(/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt):
badly formed file

No such file or directory

ERROR: reading
/Applications/freesurfer/average/HippoSF/atlas/compressionLookupTable.txt


any idea how I could make it a formed file that is compatible?


Best,
*Daniel Callow*
*PhD Student, Neuroscience and Cognitive Science*
Exercise for Brain Health Lab
University of Maryland, College Park
*ddcc2...@gmail.com *
443-254-6298


On Wed, Mar 6, 2019 at 12:56 PM Greve, Douglas N.,Ph.D. <
dgr...@mgh.harvard.edu> wrote:

> look in $FREESURFER_HOME/average/HippoSF/atlas/compressionLookupTable.txt
> The first number should be the one you are looking for.
>
> On 3/6/19 12:26 PM, Daniel Callow wrote:
> >
> > External Email - Use Caution
> >
> > Hello,
> >
> > I am trying to extract stats from the hippocampal subfield volumes
> > that I have warped to diffusion space.
> >
> > mri_vol2vol --mov
> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lowb.nii.gz
> > --targ
> >
> /Volumes/DANIEL/dti_freesurf/diffusion_recons/${subj}.${cond}/mri/lh.hippoSfLabels-T1.v10.FSvoxelSpace.mgz
>
> > --inv --interp nearest --o
> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
> > --reg
> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./register.dat
> > --no-save-reg
> >
> >
> > Then I run
> >
> >
> > mri_segstats --seg
> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
> > --ctab /Applications/freesurfer/FreeSurferColorLUT.txt --id 550 --id
> > 552 --id 556 --id 557 --id 558 --i
> > /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./fa-masked.nii.gz
> > --sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.fa.stats
> >
> >
> > using the --i id# from FreeSurferColorLUT.txt.
> >
> >
> > However, looking at the values of the hippocampal subfield volume I
> > see that the Id's are all in the 200's?
> >
> >
> > Is there a txt file that has the labelings like in
> > FreeSurferColorLUT.txt for these hippocampal subfields?
> >
> >
> > Thank you for any help you can provide!
> >
> > *Daniel Callow*
> > /PhD Student, Neuroscience and Cognitive Science/
> > Exercise for Brain Health Lab
> > University of Maryland, College Park
> > _ddcc2...@gmail.com _
> > 443-254-6298
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats issue with hippocampal subfields

2019-03-06 Thread Greve, Douglas N.,Ph.D.
look in $FREESURFER_HOME/average/HippoSF/atlas/compressionLookupTable.txt
The first number should be the one you are looking for.

On 3/6/19 12:26 PM, Daniel Callow wrote:
>
> External Email - Use Caution
>
> Hello,
>
> I am trying to extract stats from the hippocampal subfield volumes 
> that I have warped to diffusion space.
>
> mri_vol2vol --mov 
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lowb.nii.gz 
> --targ 
> /Volumes/DANIEL/dti_freesurf/diffusion_recons/${subj}.${cond}/mri/lh.hippoSfLabels-T1.v10.FSvoxelSpace.mgz
>  
> --inv --interp nearest --o 
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz 
> --reg 
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./register.dat 
> --no-save-reg
>
>
> Then I run
>
>
> mri_segstats --seg 
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz 
> --ctab /Applications/freesurfer/FreeSurferColorLUT.txt --id 550 --id 
> 552 --id 556 --id 557 --id 558 --i 
> /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./fa-masked.nii.gz 
> --sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.fa.stats
>
>
> using the --i id# from FreeSurferColorLUT.txt.
>
>
> However, looking at the values of the hippocampal subfield volume I 
> see that the Id's are all in the 200's?
>
>
> Is there a txt file that has the labelings like in 
> FreeSurferColorLUT.txt for these hippocampal subfields?
>
>
> Thank you for any help you can provide!
>
> *Daniel Callow*
> /PhD Student, Neuroscience and Cognitive Science/
> Exercise for Brain Health Lab
> University of Maryland, College Park
> _ddcc2...@gmail.com _
> 443-254-6298
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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

[Freesurfer] mri_segstats issue with hippocampal subfields

2019-03-06 Thread Daniel Callow
External Email - Use Caution

Hello,

I am trying to extract stats from the hippocampal subfield volumes that I
have warped to diffusion space.

mri_vol2vol --mov
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lowb.nii.gz --targ
/Volumes/DANIEL/dti_freesurf/diffusion_recons/${subj}.${cond}/mri/lh.hippoSfLabels-T1.v10.FSvoxelSpace.mgz
--inv --interp nearest --o
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
--reg /Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./register.dat
--no-save-reg


Then I run


mri_segstats --seg
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./lhipp2diff.nii.gz
--ctab /Applications/freesurfer/FreeSurferColorLUT.txt --id 550 --id 552
--id 556 --id 557 --id 558 --i
/Volumes/DANIEL/dti_freesurf/dtrecon/${subj}.${cond}./fa-masked.nii.gz
--sum ${SUBJECTS_DIR}/${subj}.${cond}./stats/lhipp.fa.stats


using the --i id# from FreeSurferColorLUT.txt.


However, looking at the values of the hippocampal subfield volume I see
that the Id's are all in the 200's?


Is there a txt file that has the labelings like in FreeSurferColorLUT.txt
for these hippocampal subfields?


Thank you for any help you can provide!
*Daniel Callow*
*PhD Student, Neuroscience and Cognitive Science*
Exercise for Brain Health Lab
University of Maryland, College Park
*ddcc2...@gmail.com *
443-254-6298
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats and mris_anatomical_stats read out different # of rois

2019-02-28 Thread Greve, Douglas N.,Ph.D.
which ROIs are different?

On 2/22/19 5:39 PM, Winkelbeiner, Stephanie A wrote:
>
> External Email - Use Caution
>
> Hi Freesurfers,
>
> I’m trying to read out GM and WM values from parcels (ROIs) but get a 
> different amount of ROIs for GM and WM.
>
> I use the following commands (embedded in a loop),
>
> for GM
>
> mris_anatomical_stats -mgz \
>
>     -cortex label/lh.cortex.label \
>
>     -f stats/lh.250.aparc.pial.stats \
>
>     -b -a 250.aparc \
>
>     -c label/colortable.ctab \
>
>     $subject lh pial
>
> and for WM
>
> mri_segstats \
>
>     --seg mri/vol250.lh.nii.gz \
>
>     --ctab ../fsaverage/colortable.ctab \
>
>     --i $dtipath/$subj/dti_FA.nii.gz \
>
>     --excludeid 0 \
>
>     --empty \
>
>     --sum stats/${subj}_fa_lh.stats
>
> where “../fsaverage/colortable.ctab” has 299 labels and 
> “mri/vol250.lh.nii.gz” is the segmented image that was extended 2mm 
> into the WM and registered to the DTI image.
>
> Is it possible that these two commands read out different amounts of ROIs?
>
> And is there a reason why the –c flag in mris_anatomical_stats doesn’t 
> save the colortable for each subject?
>
> I would be very grateful for some help!
>
> Thanks,
>
> Stephanie
>
>
> The information contained in this electronic e-mail transmission and 
> any attachments are intended only for the use of the individual or 
> entity to whom or to which it is addressed, and may contain 
> information that is privileged, confidential and exempt from 
> disclosure under applicable law. If the reader of this communication 
> is not the intended recipient, or the employee or agent responsible 
> for delivering this communication to the intended recipient, you are 
> hereby notified that any dissemination, distribution, copying or 
> disclosure of this communication and any attachment is strictly 
> prohibited. If you have received this transmission in error, please 
> notify the sender immediately by telephone and electronic mail, and 
> delete the original communication and any attachment from any 
> computer, server or other electronic recording or storage device or 
> medium. Receipt by anyone other than the intended recipient is not a 
> waiver of any attorney-client, physician-patient or other privilege.
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


[Freesurfer] mri_segstats and mris_anatomical_stats read out different # of rois

2019-02-22 Thread Winkelbeiner, Stephanie A
External Email - Use Caution

Hi Freesurfers,

I'm trying to read out GM and WM values from parcels (ROIs) but get a different 
amount of ROIs for GM and WM.
I use the following commands (embedded in a loop),

for GM
mris_anatomical_stats -mgz \
-cortex label/lh.cortex.label \
-f stats/lh.250.aparc.pial.stats \
-b -a 250.aparc \
-c label/colortable.ctab \
$subject lh pial

and for WM
mri_segstats \
--seg mri/vol250.lh.nii.gz \
--ctab ../fsaverage/colortable.ctab \
--i $dtipath/$subj/dti_FA.nii.gz \
--excludeid 0 \
--empty \
--sum stats/${subj}_fa_lh.stats

where "../fsaverage/colortable.ctab" has 299 labels and "mri/vol250.lh.nii.gz" 
is the segmented image that was extended 2mm into the WM and registered to the 
DTI image.

Is it possible that these two commands read out different amounts of ROIs?
And is there a reason why the -c flag in mris_anatomical_stats doesn't save the 
colortable for each subject?

I would be very grateful for some help!
Thanks,
Stephanie



The information contained in this electronic e-mail transmission and any 
attachments are intended only for the use of the individual or entity to whom 
or to which it is addressed, and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If the reader of 
this communication is not the intended recipient, or the employee or agent 
responsible for delivering this communication to the intended recipient, you 
are hereby notified that any dissemination, distribution, copying or disclosure 
of this communication and any attachment is strictly prohibited. If you have 
received this transmission in error, please notify the sender immediately by 
telephone and electronic mail, and delete the original communication and any 
attachment from any computer, server or other electronic recording or storage 
device or medium. Receipt by anyone other than the intended recipient is not a 
waiver of any attorney-client, physician-patient or other privilege.___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats more decimals?

2018-12-19 Thread Greve, Douglas N.,Ph.D.
There is not a way to get more decimals but you can apply a scaling 
factor with --mul, eg, --mul 1000 will multiply the output by 1000

On 12/19/2018 04:01 PM, Winkelbeiner, Stephanie A wrote:
>
> External Email - Use Caution
>
> Hi Freesurfer,
>
> Is there a way to print out more decimals with mri_segstats?
>
> The mean diffusivity values are very small and with only four decimals 
> not really distinguishable from each other.
>
> Thanks for your help!
>
> Stephanie
>
>
> The information contained in this electronic e-mail transmission and 
> any attachments are intended only for the use of the individual or 
> entity to whom or to which it is addressed, and may contain 
> information that is privileged, confidential and exempt from 
> disclosure under applicable law. If the reader of this communication 
> is not the intended recipient, or the employee or agent responsible 
> for delivering this communication to the intended recipient, you are 
> hereby notified that any dissemination, distribution, copying or 
> disclosure of this communication and any attachment is strictly 
> prohibited. If you have received this transmission in error, please 
> notify the sender immediately by telephone and electronic mail, and 
> delete the original communication and any attachment from any 
> computer, server or other electronic recording or storage device or 
> medium. Receipt by anyone other than the intended recipient is not a 
> waiver of any attorney-client, physician-patient or other privilege.
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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


[Freesurfer] mri_segstats more decimals?

2018-12-19 Thread Winkelbeiner, Stephanie A
External Email - Use Caution

Hi Freesurfer,

Is there a way to print out more decimals with mri_segstats?
The mean diffusivity values are very small and with only four decimals not 
really distinguishable from each other.

Thanks for your help!
Stephanie




The information contained in this electronic e-mail transmission and any 
attachments are intended only for the use of the individual or entity to whom 
or to which it is addressed, and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If the reader of 
this communication is not the intended recipient, or the employee or agent 
responsible for delivering this communication to the intended recipient, you 
are hereby notified that any dissemination, distribution, copying or disclosure 
of this communication and any attachment is strictly prohibited. If you have 
received this transmission in error, please notify the sender immediately by 
telephone and electronic mail, and delete the original communication and any 
attachment from any computer, server or other electronic recording or storage 
device or medium. Receipt by anyone other than the intended recipient is not a 
waiver of any attorney-client, physician-patient or other privilege.___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

[Freesurfer] mri_segstats reporting more decimals

2018-12-14 Thread Winkelbeiner, Stephanie A
External Email - Use Caution

Hi Freesurfers,

Is there an option to write out more decimals when using the mri_segstats 
command?
I'm extracting mean diffusivity values and would need at least 5 decimals to 
make sense of them.

Thanks for your help!
Cheers
Stephanie



The information contained in this electronic e-mail transmission and any 
attachments are intended only for the use of the individual or entity to whom 
or to which it is addressed, and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If the reader of 
this communication is not the intended recipient, or the employee or agent 
responsible for delivering this communication to the intended recipient, you 
are hereby notified that any dissemination, distribution, copying or disclosure 
of this communication and any attachment is strictly prohibited. If you have 
received this transmission in error, please notify the sender immediately by 
telephone and electronic mail, and delete the original communication and any 
attachment from any computer, server or other electronic recording or storage 
device or medium. Receipt by anyone other than the intended recipient is not a 
waiver of any attorney-client, physician-patient or other privilege.___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

[Freesurfer] mri_segstats - different results with --ctab

2018-12-07 Thread Winkelbeiner, Stephanie A
External Email - Use Caution

Hi freesurfer experts,

I'm trying to extract mean FA values (dti_FA.nii.gz) using a segmentation 
volume (parc2502dwi.nii.gz) and the corresponding color table with:

for subj in SPN01*; do
if [ -d "${subj}" ];
then
cd $subj/
# extract FA
mri_segstats \
 --seg mri/parc2502dwi.nii.gz \
--ctab colortable.txt \
 --i $dtipath/$subj/dti_FA.nii.gz \
 --excludeid 0 \
 --sum ../FA/${subj}_fa.stats
cd ../
fi
done

The color table has 297 parcels specified but the summary statistics file only 
includes 38 regions. This is due to zero values in the other regions, I assume.
Both (dti_FA and parc2502dwi) are perfectly co-registered.

Not providing a color table results in 1234 regions being read out.

Am I missing an argument in my command?
Or is there anything else that is obviously wrong?

I would be very glad for some hints!

Thanks,
Steph


The information contained in this electronic e-mail transmission and any 
attachments are intended only for the use of the individual or entity to whom 
or to which it is addressed, and may contain information that is privileged, 
confidential and exempt from disclosure under applicable law. If the reader of 
this communication is not the intended recipient, or the employee or agent 
responsible for delivering this communication to the intended recipient, you 
are hereby notified that any dissemination, distribution, copying or disclosure 
of this communication and any attachment is strictly prohibited. If you have 
received this transmission in error, please notify the sender immediately by 
telephone and electronic mail, and delete the original communication and any 
attachment from any computer, server or other electronic recording or storage 
device or medium. Receipt by anyone other than the intended recipient is not a 
waiver of any attorney-client, physician-patient or other privilege.___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] mri_segstats - CTABWriteFileASCII; could not open file for writing

2018-02-28 Thread Douglas N Greve
and does that file exist in /tmp? Is there space in /tmp?


On 02/28/2018 01:33 PM, Yash Patel wrote:
> Yes, I made sure I had permission to write into /tmp.
>
> On Wed, Feb 28, 2018 at 12:23 PM, Douglas N Greve 
> > wrote:
>
> do you have write permission to /tmp ?
>
>
> On 02/27/2018 03:25 PM, Yash Patel wrote:
> > Hello FreeSurfer experts,
> >
> > I am attempting to run "mri_segstats --annot [subjectid] lh aparc
> > --sum [outputpath] --i [inputfile] --id 1001 --id 1002 ... --id
> 1035"
> >
> > Whenever I try, I receive the following error (in error.log file);
> >
> >
> CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open for writing
> >
> CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open file
> >
> >
> > The output in the command prompt is below:
> > cmdline mri_segstats --annot brno/661A.long.024ns lh aparc --i
> > vol2surf/661A.v2s.0.5pf.mgh --sum stats/661A.05pf.sum --id 1001 --id
> > 1002 --id 1003 --id 1005 --id 1006 --id 1007 --id 1008 --id 1009
> --id
> > 1010 --id 1011 --id 1012 --id 1013 --id 1014 --id 1015 --id 1016
> --id
> > 1017 --id 1018 --id 1019 --id 1020 --id 1021 --id 1022 --id 1023
> --id
> > 1024 --id 1025 --id 1026 --id 1027 --id 1028 --id 1029 --id 1030
> --id
> > 1031 --id 1032 --id 1033 --id 1034 --id 1035 --ctab-default
> >
> > sysname  Darwin
> > hostname ypatel-BYOD.local
> > machine  x86_64
> > user     ypatel
> > UseRobust  0
> > Constructing seg from annotation
> > Reading annotation
> > /Users/ypatel/Documents/brno/661A.long.024ns/label/lh.aparc.annot
> > reading colortable from annotation file...
> > colortable with 36 entries read (originally
> >
> 
> /autofs/space/tanha_002/users/greve/fsdev.build/average/colortable_desikan_killiany.txt)
> > Seg base 1000
> >
> CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open for writing
> > No such file or directory
> >
> CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open file
> > No such file or directory
> > ERROR: reading /tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab
> >
> >
> > Interestingly, I ran the SAME code a few weeks ago, and everything
> > worked fine. Somehow something has changed. I also made sure I have
> > permission to /tmp
> >
> > Please let me know if you guys have a suggestion,
> >
> > Thank you
> >
> > Yash
> >
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> 
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> 
>
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu 
> Phone Number: 617-724-2358 
> Fax: 617-726-7422 
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> 
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> 
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> 
> Outgoing:
> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
> 
>
> ___
> 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 Partners
> Compliance HelpLine at
> http://www.partners.org/complianceline
>  . If the e-mail was sent
> to you in error
> but does not contain patient information, please contact the
> sender and properly
> dispose of the e-mail.
>
>
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2

Re: [Freesurfer] mri_segstats - CTABWriteFileASCII; could not open file for writing

2018-02-28 Thread Yash Patel
Thanks for the advice. I did have permission to write into /tmp; however
the HPC wouldn't allow it through the mri_segstats command line.
The issue was resolved by making a directory in the tmp manually, and then
mri_segstats works normally.

Thanks,
Yash

On Wed, Feb 28, 2018 at 1:33 PM, Yash Patel 
wrote:

> Yes, I made sure I had permission to write into /tmp.
>
> On Wed, Feb 28, 2018 at 12:23 PM, Douglas N Greve <
> gr...@nmr.mgh.harvard.edu> wrote:
>
>> do you have write permission to /tmp ?
>>
>>
>> On 02/27/2018 03:25 PM, Yash Patel wrote:
>> > Hello FreeSurfer experts,
>> >
>> > I am attempting to run "mri_segstats --annot [subjectid] lh aparc
>> > --sum [outputpath] --i [inputfile] --id 1001 --id 1002 ... --id 1035"
>> >
>> > Whenever I try, I receive the following error (in error.log file);
>> >
>> > CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024n
>> s.lh.15.ctab):
>> > could not open for writing
>> > CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
>> > could not open file
>> >
>> >
>> > The output in the command prompt is below:
>> > cmdline mri_segstats --annot brno/661A.long.024ns lh aparc --i
>> > vol2surf/661A.v2s.0.5pf.mgh --sum stats/661A.05pf.sum --id 1001 --id
>> > 1002 --id 1003 --id 1005 --id 1006 --id 1007 --id 1008 --id 1009 --id
>> > 1010 --id 1011 --id 1012 --id 1013 --id 1014 --id 1015 --id 1016 --id
>> > 1017 --id 1018 --id 1019 --id 1020 --id 1021 --id 1022 --id 1023 --id
>> > 1024 --id 1025 --id 1026 --id 1027 --id 1028 --id 1029 --id 1030 --id
>> > 1031 --id 1032 --id 1033 --id 1034 --id 1035 --ctab-default
>> >
>> > sysname  Darwin
>> > hostname ypatel-BYOD.local
>> > machine  x86_64
>> > user ypatel
>> > UseRobust  0
>> > Constructing seg from annotation
>> > Reading annotation
>> > /Users/ypatel/Documents/brno/661A.long.024ns/label/lh.aparc.annot
>> > reading colortable from annotation file...
>> > colortable with 36 entries read (originally
>> > /autofs/space/tanha_002/users/greve/fsdev.build/average/colo
>> rtable_desikan_killiany.txt)
>> > Seg base 1000
>> > CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024n
>> s.lh.15.ctab):
>> > could not open for writing
>> > No such file or directory
>> > CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
>> > could not open file
>> > No such file or directory
>> > ERROR: reading /tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab
>> >
>> >
>> > Interestingly, I ran the SAME code a few weeks ago, and everything
>> > worked fine. Somehow something has changed. I also made sure I have
>> > permission to /tmp
>> >
>> > Please let me know if you guys have a suggestion,
>> >
>> > Thank you
>> >
>> > Yash
>> >
>> >
>> > ___
>> > Freesurfer mailing list
>> > Freesurfer@nmr.mgh.harvard.edu
>> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> 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 Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you
>> in error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>>
>
>
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats - CTABWriteFileASCII; could not open file for writing

2018-02-28 Thread Yash Patel
Yes, I made sure I had permission to write into /tmp.

On Wed, Feb 28, 2018 at 12:23 PM, Douglas N Greve  wrote:

> do you have write permission to /tmp ?
>
>
> On 02/27/2018 03:25 PM, Yash Patel wrote:
> > Hello FreeSurfer experts,
> >
> > I am attempting to run "mri_segstats --annot [subjectid] lh aparc
> > --sum [outputpath] --i [inputfile] --id 1001 --id 1002 ... --id 1035"
> >
> > Whenever I try, I receive the following error (in error.log file);
> >
> > CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.
> 024ns.lh.15.ctab):
> > could not open for writing
> > CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open file
> >
> >
> > The output in the command prompt is below:
> > cmdline mri_segstats --annot brno/661A.long.024ns lh aparc --i
> > vol2surf/661A.v2s.0.5pf.mgh --sum stats/661A.05pf.sum --id 1001 --id
> > 1002 --id 1003 --id 1005 --id 1006 --id 1007 --id 1008 --id 1009 --id
> > 1010 --id 1011 --id 1012 --id 1013 --id 1014 --id 1015 --id 1016 --id
> > 1017 --id 1018 --id 1019 --id 1020 --id 1021 --id 1022 --id 1023 --id
> > 1024 --id 1025 --id 1026 --id 1027 --id 1028 --id 1029 --id 1030 --id
> > 1031 --id 1032 --id 1033 --id 1034 --id 1035 --ctab-default
> >
> > sysname  Darwin
> > hostname ypatel-BYOD.local
> > machine  x86_64
> > user ypatel
> > UseRobust  0
> > Constructing seg from annotation
> > Reading annotation
> > /Users/ypatel/Documents/brno/661A.long.024ns/label/lh.aparc.annot
> > reading colortable from annotation file...
> > colortable with 36 entries read (originally
> > /autofs/space/tanha_002/users/greve/fsdev.build/average/
> colortable_desikan_killiany.txt)
> > Seg base 1000
> > CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.
> 024ns.lh.15.ctab):
> > could not open for writing
> > No such file or directory
> > CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
> > could not open file
> > No such file or directory
> > ERROR: reading /tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab
> >
> >
> > Interestingly, I ran the SAME code a few weeks ago, and everything
> > worked fine. Somehow something has changed. I also made sure I have
> > permission to /tmp
> >
> > Please let me know if you guys have a suggestion,
> >
> > Thank you
> >
> > Yash
> >
> >
> > ___
> > Freesurfer mailing list
> > Freesurfer@nmr.mgh.harvard.edu
> > https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>
> ___
> 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 Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats - CTABWriteFileASCII; could not open file for writing

2018-02-28 Thread Douglas N Greve
do you have write permission to /tmp ?


On 02/27/2018 03:25 PM, Yash Patel wrote:
> Hello FreeSurfer experts,
>
> I am attempting to run "mri_segstats --annot [subjectid] lh aparc 
> --sum [outputpath] --i [inputfile] --id 1001 --id 1002 ... --id 1035"
>
> Whenever I try, I receive the following error (in error.log file);
>
> CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): 
> could not open for writing
> CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): 
> could not open file
>
>
> The output in the command prompt is below:
> cmdline mri_segstats --annot brno/661A.long.024ns lh aparc --i 
> vol2surf/661A.v2s.0.5pf.mgh --sum stats/661A.05pf.sum --id 1001 --id 
> 1002 --id 1003 --id 1005 --id 1006 --id 1007 --id 1008 --id 1009 --id 
> 1010 --id 1011 --id 1012 --id 1013 --id 1014 --id 1015 --id 1016 --id 
> 1017 --id 1018 --id 1019 --id 1020 --id 1021 --id 1022 --id 1023 --id 
> 1024 --id 1025 --id 1026 --id 1027 --id 1028 --id 1029 --id 1030 --id 
> 1031 --id 1032 --id 1033 --id 1034 --id 1035 --ctab-default
>
> sysname  Darwin
> hostname ypatel-BYOD.local
> machine  x86_64
> user     ypatel
> UseRobust  0
> Constructing seg from annotation
> Reading annotation 
> /Users/ypatel/Documents/brno/661A.long.024ns/label/lh.aparc.annot
> reading colortable from annotation file...
> colortable with 36 entries read (originally 
> /autofs/space/tanha_002/users/greve/fsdev.build/average/colortable_desikan_killiany.txt)
> Seg base 1000
> CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): 
> could not open for writing
> No such file or directory
> CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): 
> could not open file
> No such file or directory
> ERROR: reading /tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab
>
>
> Interestingly, I ran the SAME code a few weeks ago, and everything 
> worked fine. Somehow something has changed. I also made sure I have 
> permission to /tmp
>
> Please let me know if you guys have a suggestion,
>
> Thank you
>
> Yash
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


[Freesurfer] mri_segstats - CTABWriteFileASCII; could not open file for writing

2018-02-27 Thread Yash Patel
Hello FreeSurfer experts,

I am attempting to run "mri_segstats --annot [subjectid] lh aparc --sum
[outputpath] --i [inputfile] --id 1001 --id 1002 ... --id 1035"

Whenever I try, I receive the following error (in error.log file);

CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
could not open for writing
CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): could
not open file


The output in the command prompt is below:
cmdline mri_segstats --annot brno/661A.long.024ns lh aparc --i
vol2surf/661A.v2s.0.5pf.mgh --sum stats/661A.05pf.sum --id 1001 --id 1002
--id 1003 --id 1005 --id 1006 --id 1007 --id 1008 --id 1009 --id 1010 --id
1011 --id 1012 --id 1013 --id 1014 --id 1015 --id 1016 --id 1017 --id 1018
--id 1019 --id 1020 --id 1021 --id 1022 --id 1023 --id 1024 --id 1025 --id
1026 --id 1027 --id 1028 --id 1029 --id 1030 --id 1031 --id 1032 --id 1033
--id 1034 --id 1035 --ctab-default

sysname  Darwin
hostname ypatel-BYOD.local
machine  x86_64
user ypatel
UseRobust  0
Constructing seg from annotation
Reading annotation
/Users/ypatel/Documents/brno/661A.long.024ns/label/lh.aparc.annot
reading colortable from annotation file...
colortable with 36 entries read (originally
/autofs/space/tanha_002/users/greve/fsdev.build/average/colortable_desikan_killiany.txt)
Seg base 1000
CTABwriteFileASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab):
could not open for writing
No such file or directory
CTABreadASCII(/tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab): could
not open file
No such file or directory
ERROR: reading /tmp/mri_segstats.tmp.brno/661A.long.024ns.lh.15.ctab


Interestingly, I ran the SAME code a few weeks ago, and everything worked
fine. Somehow something has changed. I also made sure I have permission to
/tmp

Please let me know if you guys have a suggestion,

Thank you

Yash
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] Mri_segstats on longitudinal data (NVoxels)

2017-05-10 Thread Martin Reuter
Also, unless something is wrong with your processing or time point 
naming, you should get different volumes also for each time point in the 
longitudinal stream. Manually open the aseg.stats and check to determine 
if the problem is in way you processed the longitudinal data or when 
creating the stats.


It can be that volumes are consistently smaller or larger in long 
processing vs cross sectional processing, because there are extra 
processing steps that consistently change the way we compute these 
values. The longitudinal measures will be more reliable.


Best, Martin

On 05/09/2017 04:52 PM, Douglas Greve wrote:

Sorry, I'm not sure what you are trying to do. Can you send command lines?



On 5/9/17 6:42 AM, Ferdi van de Kamp wrote:


Hi all,

My question is twofold

using an user specified ROI in MNI512-space I ask Freesurfer to 
create tables for both cross-sectionally& longitudinally processed data.


Mri_segstats performed over both cross-sectional data folders and 
longitudinal data folders



However, when inspecting the data, the NVoxels for all time points in 
the longitudinal data are equal, while in the cross-sectional they 
differ (and are generally larger). Is this to be expected?


In addition to NVoxels and mean intensity, our lab would like to use 
other measures such as thickness, does anyone know the correct 
function to call for that information?


Right now the pipeline look like this:

Step1 standardised labels from volumes

This step is focused on the ROIs, not the subjects, is submitted as a 
single job


Uses /mri_vol2vol /and /mri_cor2label/.

Step 2 Create personalised labels, volumes & tables

This is the part that is submit to the cluster for each subject 
(separate for cross-sectional and longitudinal). It uses 
/mri_label2label/, /mri_label2vol /and /mri_segstats/.



Thanks!

Ferdi van de Kamp


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




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


___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] Mri_segstats on longitudinal data (NVoxels)

2017-05-09 Thread Douglas Greve

Sorry, I'm not sure what you are trying to do. Can you send command lines?



On 5/9/17 6:42 AM, Ferdi van de Kamp wrote:


Hi all,

My question is twofold

using an user specified ROI in MNI512-space I ask Freesurfer to create 
tables for both cross-sectionally& longitudinally processed data.


Mri_segstats performed over both cross-sectional data folders and 
longitudinal data folders



However, when inspecting the data, the NVoxels for all time points in 
the longitudinal data are equal, while in the cross-sectional they 
differ (and are generally larger). Is this to be expected?


In addition to NVoxels and mean intensity, our lab would like to use 
other measures such as thickness, does anyone know the correct 
function to call for that information?


Right now the pipeline look like this:

Step1 standardised labels from volumes

This step is focused on the ROIs, not the subjects, is submitted as a 
single job


Uses /mri_vol2vol /and /mri_cor2label/.

Step 2 Create personalised labels, volumes & tables

This is the part that is submit to the cluster for each subject 
(separate for cross-sectional and longitudinal). It uses 
/mri_label2label/, /mri_label2vol /and /mri_segstats/.



Thanks!

Ferdi van de Kamp


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


___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


[Freesurfer] Mri_segstats on longitudinal data (NVoxels)

2017-05-09 Thread Ferdi van de Kamp
Hi all,

My question is twofold

using an user specified ROI in MNI512-space I ask Freesurfer to create
tables for both cross-sectionally& longitudinally processed data.

Mri_segstats performed over both cross-sectional data folders and
longitudinal data folders


However, when inspecting the data, the NVoxels for all time points in the
longitudinal data are equal, while in the cross-sectional they differ (and
are generally larger). Is this to be expected?

In addition to NVoxels and mean intensity, our lab would like to use other
measures such as thickness, does anyone know the correct function to call
for that information?



Right now the pipeline look like this:

Step1 standardised labels from volumes

This step is focused on the ROIs, not the subjects, is submitted as a
single job

Uses *mri_vol2vol *and *mri_cor2label*.

Step 2 Create personalised labels, volumes & tables
This is the part that is submit to the cluster for each subject (separate
for cross-sectional and longitudinal). It uses *mri_label2label*,
*mri_label2vol
*and *mri_segstats*.


Thanks!

Ferdi van de Kamp
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2017-03-07 Thread Chih-Yang Hsu
Dear Dr. Greve,

Thank you for the response.

I will definitely try those.

Best regards,
Chih-Yang Hsu

On Tue, Mar 7, 2017 at 9:34 AM, Douglas Greve 
wrote:

> There are no more moments you can get from it. You're best bet is to load
> the thickness (read_curv.m) and aparc (read_annotation) maps into matlab
> and then do what you want with them.
>
> On 3/7/17 9:14 AM, Chih-Yang Hsu wrote:
>
> Hi, I am using Freesurfer to estimate cortical thickness.
> Is there any way to get all the details of the thickness distribution?
>
> I used mri_segstats but it only provided mean and standard deviation.
> Thank you.
>
>
>
> ___
> Freesurfer mailing 
> listfreesur...@nmr.mgh.harvard.eduhttps://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
>
> ___
> 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 Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2017-03-07 Thread Douglas Greve
There are no more moments you can get from it. You're best bet is to 
load the thickness (read_curv.m) and aparc (read_annotation) maps into 
matlab and then do what you want with them.



On 3/7/17 9:14 AM, Chih-Yang Hsu wrote:

Hi, I am using Freesurfer to estimate cortical thickness.
Is there any way to get all the details of the thickness distribution?

I used mri_segstats but it only provided mean and standard deviation.
Thank you.



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


___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2017-03-07 Thread Chih-Yang Hsu
Dear Dr. Fischl,

Thank you for the fast response.

We would like to obtain the entire distribution of the cortical thickness
so we can calculate more statistical, such as the first and third quartile.

I tried read_cuv.m and it works perfect.

Thank you again.

Best regards,
Chih-Yang Hsu

On Tue, Mar 7, 2017 at 8:45 AM, Bruce Fischl 
wrote:

> not sure exactly what you mean, but you can use read_curv.m to load the
> entire spatial map of thickness into matlab for each subject. If you tell
> us what you want to do we can give you more detailed advice
>
> cheers
> Bruce
> On Tue, 7 Mar
> 2017, Chih-Yang Hsu wrote:
>
> > Hi, I am using Freesurfer to estimate cortical thickness.Is there any
> way to
> > get all the details of the thickness distribution?
> >
> > I used mri_segstats but it only provided mean and standard deviation.
> > Thank you.
> >
> >
> >
> ___
> 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 Partners Compliance
> HelpLine at
> http://www.partners.org/complianceline . If the e-mail was sent to you in
> error
> but does not contain patient information, please contact the sender and
> properly
> dispose of the e-mail.
>
>
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2017-03-07 Thread Bruce Fischl
not sure exactly what you mean, but you can use read_curv.m to load the 
entire spatial map of thickness into matlab for each subject. If you tell 
us what you want to do we can give you more detailed advice

cheers
Bruce
On Tue, 7 Mar 
2017, Chih-Yang Hsu wrote:

> Hi, I am using Freesurfer to estimate cortical thickness.Is there any way to
> get all the details of the thickness distribution?
> 
> I used mri_segstats but it only provided mean and standard deviation.
> Thank you.
> 
> 
>
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] mri_segstats

2017-03-07 Thread Chih-Yang Hsu
Hi, I am using Freesurfer to estimate cortical thickness.
Is there any way to get all the details of the thickness distribution?

I used mri_segstats but it only provided mean and standard deviation.
Thank you.
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2017-02-24 Thread Douglas N Greve
That is everything that has a segmentation number = 0. You can exclude 
it with, --excludeid 0


On 02/24/2017 10:08 AM, John Anderson wrote:
> Dear Freesurfer experts,
> I have used the following commandline to generate the final statistics 
> in my analysis:
> mri_segstats --seg aseg.mgz  --ctab-default --i suvr.nii --mask 
> mask.nii --sum stats.dat
>
> The final output of this command is (attached). Depedning on 
> the anatomical location of the mask, I expect that I will get two 
> structures in the stats file. What is the "unknown" label means? is it 
> CSF? Do I need to include it in my next statistcal analses?
>
> I highly appreciate your input!
>
> Best,
> John
>
>
> Sent with ProtonMail  Secure Email.
>
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] mri_segstats

2017-02-24 Thread John Anderson
Dear Freesurfer experts,

I have used the following commandline to generate the final statistics in my 
analysis:
mri_segstats --seg aseg.mgz --ctab-default --i suvr.nii --mask mask.nii --sum 
stats.dat

The final output of this command is (attached). Depedning on the anatomical 
location of the mask, I expect that I will get two structures in the stats 
file. What is the "unknown" label means? is it CSF? Do I need to include it in 
my next statistcal analses?

I highly appreciate your input!


Best,
John



Sent with [ProtonMail](https://protonmail.com) Secure Email.___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] MRI_segstats for adc.nii from dt recon - increasing decimal digits

2016-10-14 Thread Douglas Greve

You can add --mul 1000 to multiply everything by 1000


On 10/11/16 4:47 PM, Chung, Yoonho wrote:


Hi!


I ran mri_segstats as instructed in the wiki to extract ADC values 
from adc.nii. And as you can see below in my output, I think the 
decimal digits are truncated and missing the following decimal values. 
Is there an option or other way to get around this problem and extract 
ADC values from the ROIS with greater precision?  Thank you!


mri_segstats \
 --seg $SUBJECTS_DIR/$subj/mri/wmparc2diff.mgz \
 --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \
 --id 251 --id 3021 --id 3024 --id 3030 --id 12 --id 4 \
 --i adc.nii --sum adc.stat
# ColHeaders  Index SegId NVoxels Volume_mm3 StructName Mean StdDev 
Min Max Range
29 3001   344 2752.0 wm-lh-bankssts 
0.0007 0.0001 0.0006 0.0009 0.0003
 30 3002   450 3600.0 wm-lh-caudalanteriorcingulate  
0.0009 0.0003 0.0006 0.0026 0.0020
 31 3003   851 6808.0 wm-lh-caudalmiddlefrontal  
0.0007 0.0001 0.0005 0.0010 0.0005
 32 3005   337 2696.0 wm-lh-cuneus   
0.0008 0.0001 0.0006 0.0011 0.0005
 33 300682  656.0 wm-lh-entorhinal   
0.0009 0.0001 0.0008 0.0016 0.0008





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


___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


[Freesurfer] MRI_segstats for adc.nii from dt recon - increasing decimal digits

2016-10-11 Thread Chung, Yoonho
Hi!


I ran mri_segstats as instructed in the wiki to extract ADC values from 
adc.nii. And as you can see below in my output, I think the decimal digits are 
truncated and missing the following decimal values. Is there an option or other 
way to get around this problem and extract ADC values from the ROIS with 
greater precision?  Thank you!

mri_segstats \
--seg $SUBJECTS_DIR/$subj/mri/wmparc2diff.mgz \
--ctab $FREESURFER_HOME/FreeSurferColorLUT.txt \
--id 251 --id 3021 --id 3024 --id 3030 --id 12 --id 4 \
--i adc.nii --sum adc.stat

# ColHeaders  Index SegId NVoxels Volume_mm3 StructName Mean StdDev Min Max 
Range

29 3001   344 2752.0  wm-lh-bankssts 0.0007 
0.0001 0.0006 0.0009 0.0003
 30 3002   450 3600.0  wm-lh-caudalanteriorcingulate  0.0009 
0.0003 0.0006 0.0026 0.0020
 31 3003   851 6808.0  wm-lh-caudalmiddlefrontal  0.0007 
0.0001 0.0005 0.0010 0.0005
 32 3005   337 2696.0  wm-lh-cuneus   0.0008 
0.0001 0.0006 0.0011 0.0005
 33 300682  656.0  wm-lh-entorhinal   0.0009 
0.0001 0.0008 0.0016 0.0008


___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2016-07-18 Thread Douglas Greve
Register the suvr to the anatomical (mri_coreg) then use mri_vol2vol


On 7/18/16 6:58 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug,
> Kindly how can I make the suvr and the anatomical images in the same slice?
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
> Sent: Monday, July 18, 2016 6:56 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> Your suvr is axially sliced whereas the anatomical is corronally sliced.
> They must be in exact pixel-for-pixel alignment for mri_segstats to work.
>
> On 07/18/2016 06:27 PM, Alshikho, Mohamad J. wrote:
>> Thank you Doug!
>>
>> Attached is a report for one of the subjects showing how the cerebellum 
>> structures have zeros for the mean, SD , ...etc  ( red circles) Also if we 
>> scroll down ( not included), all the cerebellum parcellates ( white and 
>> cortex) are zeros.
>>I have this issue with 70 % of the subjects.
>> I applied the first command on all the subjects.
>> I never tried the second command, but I was inquiring because I
>> thought that maybe the first command is missing some flags so
>> "mri-segstats" is unable to read the cerebellum parcellates
>>
>> For the subjects who have zeros for the cerebellum parcellates. I checked 
>> the functional images one by one ( the registration is perfect) and the 
>> images are fine.
>>
>> I can't explain why this is happening so thank you for any suggestion.
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N
>> Greve
>> Sent: Monday, July 18, 2016 5:45 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> What do you mean you got 0s only for the cblum segs? Did all other segs have 
>> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>>
>> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>>> Thank you very much Doug for your answer.
>>> Kindly I have one more question:
>>> Although the registration between my functional data and "wmparc.mgz" is 
>>> perfect. When I run the first command bellow, I get zeros ( in the report  
>>> wmparc.stats) only for the cerebellum parcellates, and this was prominent 
>>> in many of my subjects.
>>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>>
>>> -Original Message-
>>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas
>>> N Greve
>>> Sent: Thursday, July 7, 2016 12:17 PM
>>> To: freesurfer@nmr.mgh.harvard.edu
>>> Subject: Re: [Freesurfer] mri_segstats
>>>
>>> The first one
>>>
>>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>>> Dear FS experts,
>>>>
>>>> I have PET image "pet.anat.mgz" in subject space. I want to
>>>> calculate the mean PET signal for every parcellate and segment in
>>>> the atlas "wmparc.mgz".
>>>>
>>>> _Which one of the following commands is more accurate? _
>>>>
>>>> __
>>>>
>>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab
>>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum
>>>> PET.wmparc.stats
>>>>
>>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv
>>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/
>>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR
>>>> --subject ${subj} --surf-wm-vol --ctab
>>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>>
>>>> Best,
>>>>
>>>> Mohamad
>>>>
>>>>
>>>>
>>>> ___
>>>> Freesurfer mailing list
>>>> Freesurfer@nmr.mgh.harvard.edu
>>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>> --
>>> Douglas N. Greve, Ph.D.
>>> MGH-NMR Center
>>> gr...@nmr.mgh.harvard.edu
>>> Phone Number: 617-724-2358
>>> Fax: 617-726-7422
>>>
>>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>&

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Alshikho, Mohamad J.
Thank you Doug,
I used the command fslswapdim 



-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Alshikho, Mohamad 
J.
Sent: Monday, July 18, 2016 6:59 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

Thank you Doug,
Kindly how can I make the suvr and the anatomical images in the same slice?

-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
Sent: Monday, July 18, 2016 6:56 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

Your suvr is axially sliced whereas the anatomical is corronally sliced. 
They must be in exact pixel-for-pixel alignment for mri_segstats to work.

On 07/18/2016 06:27 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug!
>
> Attached is a report for one of the subjects showing how the cerebellum 
> structures have zeros for the mean, SD , ...etc  ( red circles) Also if we 
> scroll down ( not included), all the cerebellum parcellates ( white and 
> cortex) are zeros.
>   I have this issue with 70 % of the subjects.
> I applied the first command on all the subjects.
> I never tried the second command, but I was inquiring because I 
> thought that maybe the first command is missing some flags so 
> "mri-segstats" is unable to read the cerebellum parcellates
>
> For the subjects who have zeros for the cerebellum parcellates. I checked the 
> functional images one by one ( the registration is perfect) and the images 
> are fine.
>
> I can't explain why this is happening so thank you for any suggestion.
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N 
> Greve
> Sent: Monday, July 18, 2016 5:45 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> What do you mean you got 0s only for the cblum segs? Did all other segs have 
> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>
> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>> Thank you very much Doug for your answer.
>> Kindly I have one more question:
>> Although the registration between my functional data and "wmparc.mgz" is 
>> perfect. When I run the first command bellow, I get zeros ( in the report  
>> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
>> many of my subjects.
>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas 
>> N Greve
>> Sent: Thursday, July 7, 2016 12:17 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> The first one
>>
>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>> Dear FS experts,
>>>
>>> I have PET image "pet.anat.mgz" in subject space. I want to 
>>> calculate the mean PET signal for every parcellate and segment in 
>>> the atlas "wmparc.mgz".
>>>
>>> _Which one of the following commands is more accurate? _
>>>
>>> __
>>>
>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
>>> PET.wmparc.stats
>>>
>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR 
>>> --subject ${subj} --surf-wm-vol --ctab 
>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>
>>> Best,
>>>
>>> Mohamad
>>>
>>>
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing:
>> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> 

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Alshikho, Mohamad J.
Thank you Doug,
Kindly how can I make the suvr and the anatomical images in the same slice?

-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
Sent: Monday, July 18, 2016 6:56 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

Your suvr is axially sliced whereas the anatomical is corronally sliced. 
They must be in exact pixel-for-pixel alignment for mri_segstats to work.

On 07/18/2016 06:27 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug!
>
> Attached is a report for one of the subjects showing how the cerebellum 
> structures have zeros for the mean, SD , ...etc  ( red circles) Also if we 
> scroll down ( not included), all the cerebellum parcellates ( white and 
> cortex) are zeros.
>   I have this issue with 70 % of the subjects.
> I applied the first command on all the subjects.
> I never tried the second command, but I was inquiring because I 
> thought that maybe the first command is missing some flags so 
> "mri-segstats" is unable to read the cerebellum parcellates
>
> For the subjects who have zeros for the cerebellum parcellates. I checked the 
> functional images one by one ( the registration is perfect) and the images 
> are fine.
>
> I can't explain why this is happening so thank you for any suggestion.
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N 
> Greve
> Sent: Monday, July 18, 2016 5:45 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> What do you mean you got 0s only for the cblum segs? Did all other segs have 
> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>
> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>> Thank you very much Doug for your answer.
>> Kindly I have one more question:
>> Although the registration between my functional data and "wmparc.mgz" is 
>> perfect. When I run the first command bellow, I get zeros ( in the report  
>> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
>> many of my subjects.
>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas 
>> N Greve
>> Sent: Thursday, July 7, 2016 12:17 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> The first one
>>
>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>> Dear FS experts,
>>>
>>> I have PET image "pet.anat.mgz" in subject space. I want to 
>>> calculate the mean PET signal for every parcellate and segment in 
>>> the atlas "wmparc.mgz".
>>>
>>> _Which one of the following commands is more accurate? _
>>>
>>> __
>>>
>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
>>> PET.wmparc.stats
>>>
>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR 
>>> --subject ${subj} --surf-wm-vol --ctab 
>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>
>>> Best,
>>>
>>> Mohamad
>>>
>>>
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing:
>> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/ma

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Douglas N Greve
Your suvr is axially sliced whereas the anatomical is corronally sliced. 
They must be in exact pixel-for-pixel alignment for mri_segstats to work.

On 07/18/2016 06:27 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug!
>
> Attached is a report for one of the subjects showing how the cerebellum 
> structures have zeros for the mean, SD , ...etc  ( red circles) Also if we 
> scroll down ( not included), all the cerebellum parcellates ( white and 
> cortex) are zeros.
>   I have this issue with 70 % of the subjects.
> I applied the first command on all the subjects.
> I never tried the second command, but I was inquiring because I thought that 
> maybe the first command is missing some flags so "mri-segstats" is unable to 
> read the cerebellum parcellates
>
> For the subjects who have zeros for the cerebellum parcellates. I checked the 
> functional images one by one ( the registration is perfect) and the images 
> are fine.
>
> I can't explain why this is happening so thank you for any suggestion.
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
> Sent: Monday, July 18, 2016 5:45 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> What do you mean you got 0s only for the cblum segs? Did all other segs have 
> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>
> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>> Thank you very much Doug for your answer.
>> Kindly I have one more question:
>> Although the registration between my functional data and "wmparc.mgz" is 
>> perfect. When I run the first command bellow, I get zeros ( in the report  
>> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
>> many of my subjects.
>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N
>> Greve
>> Sent: Thursday, July 7, 2016 12:17 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> The first one
>>
>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>> Dear FS experts,
>>>
>>> I have PET image "pet.anat.mgz" in subject space. I want to calculate
>>> the mean PET signal for every parcellate and segment in the atlas
>>> "wmparc.mgz".
>>>
>>> _Which one of the following commands is more accurate? _
>>>
>>> __
>>>
>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab
>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum
>>> PET.wmparc.stats
>>>
>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv
>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/
>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR
>>> --subject ${subj} --surf-wm-vol --ctab
>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>
>>> Best,
>>>
>>> Mohamad
>>>
>>>
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing:
>> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: ftp://sur

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Alshikho, Mohamad J.
I sent the files (wmparc.mgz and the functional image)


-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
Sent: Monday, July 18, 2016 6:29 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

I'm at a loss as to why that is the case. Can you send the PET.anat.mgz and 
wmparc.mgz to our filedrop?

On 07/18/2016 06:14 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug!
>
> Attached is a report for one of the subjects showing how the 
> cerebellum structures have zeros for the mean, SD , ...etc  ( red circles) 
> Also if we scroll down ( not included), all the cerebellum parcellates ( 
> white and cortex) are zeros.
>   I have this issue with 70 % of the subjects.
> I applied the first command on all the subjects.
> I never tried the second command, but I was inquiring because I 
> thought that maybe the first command is missing some flags so 
> "mri-segstats" is unable to read the cerebellum parcellates
>
> For the subjects who have zeros for the cerebellum parcellates. I checked the 
> functional images one by one ( the registration is perfect) and the images 
> are fine.
>
> I can't explain why this is happening so thank you for any suggestion.
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N 
> Greve
> Sent: Monday, July 18, 2016 5:45 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> What do you mean you got 0s only for the cblum segs? Did all other segs have 
> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>
> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>> Thank you very much Doug for your answer.
>> Kindly I have one more question:
>> Although the registration between my functional data and "wmparc.mgz" is 
>> perfect. When I run the first command bellow, I get zeros ( in the report  
>> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
>> many of my subjects.
>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas 
>> N Greve
>> Sent: Thursday, July 7, 2016 12:17 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> The first one
>>
>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>> Dear FS experts,
>>>
>>> I have PET image "pet.anat.mgz" in subject space. I want to 
>>> calculate the mean PET signal for every parcellate and segment in 
>>> the atlas "wmparc.mgz".
>>>
>>> _Which one of the following commands is more accurate? _
>>>
>>> __
>>>
>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
>>> PET.wmparc.stats
>>>
>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR 
>>> --subject ${subj} --surf-wm-vol --ctab 
>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>
>>> Best,
>>>
>>> Mohamad
>>>
>>>
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing:
>> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Douglas N Greve
I'm at a loss as to why that is the case. Can you send the PET.anat.mgz 
and wmparc.mgz to our filedrop?

On 07/18/2016 06:14 PM, Alshikho, Mohamad J. wrote:
> Thank you Doug!
>
> Attached is a report for one of the subjects showing how the cerebellum 
> structures have zeros for the mean, SD , ...etc  ( red circles)
> Also if we scroll down ( not included), all the cerebellum parcellates ( 
> white and cortex) are zeros.
>   I have this issue with 70 % of the subjects.
> I applied the first command on all the subjects.
> I never tried the second command, but I was inquiring because I thought that 
> maybe the first command is missing some flags so "mri-segstats" is unable to 
> read the cerebellum parcellates
>
> For the subjects who have zeros for the cerebellum parcellates. I checked the 
> functional images one by one ( the registration is perfect) and the images 
> are fine.
>
> I can't explain why this is happening so thank you for any suggestion.
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
> Sent: Monday, July 18, 2016 5:45 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> What do you mean you got 0s only for the cblum segs? Did all other segs have 
> non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?
>
> On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
>> Thank you very much Doug for your answer.
>> Kindly I have one more question:
>> Although the registration between my functional data and "wmparc.mgz" is 
>> perfect. When I run the first command bellow, I get zeros ( in the report  
>> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
>> many of my subjects.
>> Is this issue related to a missing  flags in my "mri_segstats" command line?
>>
>> -Original Message-
>> From: freesurfer-boun...@nmr.mgh.harvard.edu
>> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N
>> Greve
>> Sent: Thursday, July 7, 2016 12:17 PM
>> To: freesurfer@nmr.mgh.harvard.edu
>> Subject: Re: [Freesurfer] mri_segstats
>>
>> The first one
>>
>> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>>> Dear FS experts,
>>>
>>> I have PET image "pet.anat.mgz" in subject space. I want to calculate
>>> the mean PET signal for every parcellate and segment in the atlas
>>> "wmparc.mgz".
>>>
>>> _Which one of the following commands is more accurate? _
>>>
>>> __
>>>
>>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab
>>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum
>>> PET.wmparc.stats
>>>
>>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv
>>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/
>>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR
>>> --subject ${subj} --surf-wm-vol --ctab
>>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>>
>>> Best,
>>>
>>> Mohamad
>>>
>>>
>>>
>>> ___
>>> Freesurfer mailing list
>>> Freesurfer@nmr.mgh.harvard.edu
>>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> gr...@nmr.mgh.harvard.edu
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
>> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
>> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
>> Outgoing:
>> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgo

Re: [Freesurfer] mri_segstats

2016-07-18 Thread Alshikho, Mohamad J.
Thank you Doug!

Attached is a report for one of the subjects showing how the cerebellum 
structures have zeros for the mean, SD , ...etc  ( red circles) Also if we 
scroll down ( not included), all the cerebellum parcellates ( white and cortex) 
are zeros.
 I have this issue with 70 % of the subjects. 
I applied the first command on all the subjects. 
I never tried the second command, but I was inquiring because I thought that 
maybe the first command is missing some flags so "mri-segstats" is unable to 
read the cerebellum parcellates

For the subjects who have zeros for the cerebellum parcellates. I checked the 
functional images one by one ( the registration is perfect) and the images are 
fine.

I can't explain why this is happening so thank you for any suggestion.

-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
Sent: Monday, July 18, 2016 5:45 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

What do you mean you got 0s only for the cblum segs? Did all other segs have 
non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?

On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
> Thank you very much Doug for your answer.
> Kindly I have one more question:
> Although the registration between my functional data and "wmparc.mgz" is 
> perfect. When I run the first command bellow, I get zeros ( in the report  
> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
> many of my subjects.
> Is this issue related to a missing  flags in my "mri_segstats" command line?
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N 
> Greve
> Sent: Thursday, July 7, 2016 12:17 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> The first one
>
> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>> Dear FS experts,
>>
>> I have PET image "pet.anat.mgz" in subject space. I want to calculate 
>> the mean PET signal for every parcellate and segment in the atlas 
>> "wmparc.mgz".
>>
>> _Which one of the following commands is more accurate? _
>>
>> __
>>
>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
>> PET.wmparc.stats
>>
>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR 
>> --subject ${subj} --surf-wm-vol --ctab 
>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>
>> Best,
>>
>> Mohamad
>>
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: 
> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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


suvr.wmparc.stats
Description: suvr.wmparc.stats
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2016-07-18 Thread Alshikho, Mohamad J.
Thank you Doug!

Attached is a report for one of the subjects showing how the cerebellum 
structures have zeros for the mean, SD , ...etc  ( red circles)
Also if we scroll down ( not included), all the cerebellum parcellates ( white 
and cortex) are zeros.
 I have this issue with 70 % of the subjects. 
I applied the first command on all the subjects. 
I never tried the second command, but I was inquiring because I thought that 
maybe the first command is missing some flags so "mri-segstats" is unable to 
read the cerebellum parcellates

For the subjects who have zeros for the cerebellum parcellates. I checked the 
functional images one by one ( the registration is perfect) and the images are 
fine.

I can't explain why this is happening so thank you for any suggestion.

-Original Message-
From: freesurfer-boun...@nmr.mgh.harvard.edu 
[mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
Sent: Monday, July 18, 2016 5:45 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats

What do you mean you got 0s only for the cblum segs? Did all other segs have 
non-zeros, but clbum have 0s? And did you get non-0s in the 2nd commandline?

On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
> Thank you very much Doug for your answer.
> Kindly I have one more question:
> Although the registration between my functional data and "wmparc.mgz" is 
> perfect. When I run the first command bellow, I get zeros ( in the report  
> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
> many of my subjects.
> Is this issue related to a missing  flags in my "mri_segstats" command line?
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N 
> Greve
> Sent: Thursday, July 7, 2016 12:17 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> The first one
>
> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>> Dear FS experts,
>>
>> I have PET image "pet.anat.mgz" in subject space. I want to calculate 
>> the mean PET signal for every parcellate and segment in the atlas 
>> "wmparc.mgz".
>>
>> _Which one of the following commands is more accurate? _
>>
>> __
>>
>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
>> PET.wmparc.stats
>>
>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR 
>> --subject ${subj} --surf-wm-vol --ctab 
>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>
>> Best,
>>
>> Mohamad
>>
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: 
> ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats

2016-07-18 Thread Douglas N Greve
What do you mean you got 0s only for the cblum segs? Did all other segs 
have non-zeros, but clbum have 0s? And did you get non-0s in the 2nd 
commandline?

On 07/07/2016 05:16 PM, Alshikho, Mohamad J. wrote:
> Thank you very much Doug for your answer.
> Kindly I have one more question:
> Although the registration between my functional data and "wmparc.mgz" is 
> perfect. When I run the first command bellow, I get zeros ( in the report  
> wmparc.stats) only for the cerebellum parcellates, and this was prominent in 
> many of my subjects.
> Is this issue related to a missing  flags in my "mri_segstats" command line?
>
> -Original Message-
> From: freesurfer-boun...@nmr.mgh.harvard.edu 
> [mailto:freesurfer-boun...@nmr.mgh.harvard.edu] On Behalf Of Douglas N Greve
> Sent: Thursday, July 7, 2016 12:17 PM
> To: freesurfer@nmr.mgh.harvard.edu
> Subject: Re: [Freesurfer] mri_segstats
>
> The first one
>
> On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>> Dear FS experts,
>>
>> I have PET image "pet.anat.mgz" in subject space. I want to calculate
>> the mean PET signal for every parcellate and segment in the atlas
>> "wmparc.mgz".
>>
>> _Which one of the following commands is more accurate? _
>>
>> __
>>
>> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab
>> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum
>> PET.wmparc.stats
>>
>> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv
>> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/
>> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR --subject
>> ${subj} --surf-wm-vol --ctab
>> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>>
>> Best,
>>
>> Mohamad
>>
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> gr...@nmr.mgh.harvard.edu
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
> Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
> FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
> www.nmr.mgh.harvard.edu/facility/filedrop/index.html
> Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats

2016-07-07 Thread Douglas N Greve
The first one

On 07/06/2016 08:22 PM, Alshikho, Mohamad J. wrote:
>
> Dear FS experts,
>
> I have PET image "pet.anat.mgz" in subject space. I want to calculate 
> the mean PET signal for every parcellate and segment in the atlas 
> "wmparc.mgz".
>
> _Which one of the following commands is more accurate? _
>
> __
>
> 1.mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
> $FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum 
> PET.wmparc.stats
>
> 2.mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
> mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
> PET.anat.mgz--in-intensity-name norm --in-intensity-units MR --subject 
> ${subj} --surf-wm-vol --ctab 
> /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv
>
> Best,
>
> Mohamad
>
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] mri_segstats

2016-07-06 Thread Alshikho, Mohamad J.
Dear FS experts,
I have PET image "pet.anat.mgz" in subject space. I want to calculate the mean 
PET signal for every parcellate and segment in the atlas "wmparc.mgz".
Which one of the following commands is more accurate?


1.   mri_segstats --seg $SUBJECTS_DIR/${subj}/mri/wmparc.mgz --ctab 
$FREESURFER_HOME/FREESURFERColorLUT.txt --i PET.anat.mgz --sum PET.wmparc.stats



2.   mri_segstats --seg mri/wmparc.mgz --sum stats/wmparc.stats --pv 
mri/norm.mgz --excludeid 0 --brainmask mri/brainmask.mgz --in mri/ 
PET.anat.mgz--in-intensity-name norm --in-intensity-units MR --subject ${subj} 
--surf-wm-vol --ctab /usr/local/freesurfer/stable5_3_0/WMParcStatsLUT.txt --etiv


Best,
Mohamad
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Douglas N Greve

Try this one
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

This is for linux. If that is not your system, tell me what your system is

doug

On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:

 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats 
 but I am receiving an error message that this flag is not available ( 
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left 
 cerebral white matter volumes in “aseg.stats”. Do I need to use 
 specific flags in order to generate the statistics related to left and 
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv 
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent 
 --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol 
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 075801

 Bests,

 Mohamad



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

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Alshikho, Mohamad J.
Hi Doug,
My system is Linux Centos 7 

I tried to run it and I got:

[malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats 
--pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent 
--subcortgray --in mri/norm.mgz --in-intensity-name norm --in-intensity-units 
MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray --seg-erode 2 --ctab 
/usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt --subject 002201

ERROR: Option --seg-erode unknown





From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
[gr...@nmr.mgh.harvard.edu]
Sent: Monday, April 13, 2015 3:22 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats flags

Try this one
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

This is for linux. If that is not your system, tell me what your system is

doug

On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:

 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



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

--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] mri_segstats flags

2015-04-13 Thread Alshikho, Mohamad J.
Hi Doug,
Kindly I have the following questions regarding the command mri_segstats:

* I wanted to use the flag  --seg-erode 2 in the command mri_segstats 
but I am receiving an error message that this flag is not available ( I am 
using FreeSurfer 5.3.0 ).

* When the command recon-all finish.  I don't see the right or left 
cerebral white matter volumes in aseg.stats. Do I need to use specific flags 
in order to generate the statistics related to left and right hemispheric white 
matter. My command is like this:

mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv mri/norm.mgz 
--empty --excludeid 0 --excl-ctxgmwm --supratent --subcortgray --in 
mri/norm.mgz --in-intensity-name norm --in-intensity-units MR --etiv 
--surf-wm-vol --surf-ctx-vol --totalgray --ctab 
/usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt --subject 075801


Bests,
Mohamad
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Alshikho, Mohamad J.
I got 

/usr/local/freesurfer/stable5_1_0/bin/mri_segstats

and this is really weird because I thought that I am using FS 5.0.3.

I am sourcing routinely the following script before I start FS

#!/bin/tcsh
setenv FREESURFER_HOME /usr/local/freesurfer/stable5_3_0
setenv USE_STABLE5_3_0
setenv LD_LIBRARY_PATH /usr/lib64/GLoverride:/usr/lib/GLoverride
setenv FSENV_KEEP_PROMPT
setenv SUBJECTS_DIR /autofs/cluster/transcend/malshikho/2015/orig_data/recons
setenv FSFAST_HOME /usr/local/freesurfer/stable5_3_0/fsfast
setenv FSL_DIR /usr/pubsw/packages/fsl/5.0.6
setenv FSF_OUTPUT_FORMAT nii.gz

source /usr/local/freesurfer/stable5_3_0
source /usr/pubsw/packages/fsl/5.0.6




From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
[gr...@nmr.mgh.harvard.edu]
Sent: Monday, April 13, 2015 4:16 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats flags

Are you sure you're using the new version?
what do you get if you type
which mri_segstats




On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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



--
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Douglas N Greve
maybe zeke can help you sort it out

On 04/13/2015 04:24 PM, Alshikho, Mohamad J. wrote:
 I got

 /usr/local/freesurfer/stable5_1_0/bin/mri_segstats

 and this is really weird because I thought that I am using FS 5.0.3.

 I am sourcing routinely the following script before I start FS

 #!/bin/tcsh
 setenv FREESURFER_HOME /usr/local/freesurfer/stable5_3_0
 setenv USE_STABLE5_3_0
 setenv LD_LIBRARY_PATH /usr/lib64/GLoverride:/usr/lib/GLoverride
 setenv FSENV_KEEP_PROMPT
 setenv SUBJECTS_DIR /autofs/cluster/transcend/malshikho/2015/orig_data/recons
 setenv FSFAST_HOME /usr/local/freesurfer/stable5_3_0/fsfast
 setenv FSL_DIR /usr/pubsw/packages/fsl/5.0.6
 setenv FSF_OUTPUT_FORMAT nii.gz

 source /usr/local/freesurfer/stable5_3_0
 source /usr/pubsw/packages/fsl/5.0.6



 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:16 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Are you sure you're using the new version?
 what do you get if you type
 which mri_segstats




 On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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


 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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



-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp

Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Douglas N Greve
Only the structures in the color table (--ctab) are reported; the 1st 
ctab does not have those strcutures. In the 2nd, does

On 04/13/2015 04:41 PM, Alshikho, Mohamad J. wrote:
 Thank you Doug,
 Kindly one more question regarding mri_segstats:
 The following two mri_segstats command lines:

   mri_segstats --seg ${out1}/${i}/mri/aseg.mgz --sum 
 ${out1}/${i}/stats/aseg.stats --pv ${out1}/${i}/mri/norm.mgz --empty 
 --excludeid 0 --excl-ctxgmwm --supratent --subcortgray --in 
 ${out1}/${i}/mri/norm.mgz --in-intensity-name norm --in-intensity-units MR 
 --etiv --surf-wm-vol --surf-ctx-vol --totalgray --ctab 
 /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt --subject ${i}

 and
 mri_segstats --seg${out1}/${i}/mri/aseg.mgz --ctab 
 /usr/local/freesurfer/stable5_3_0/FreeSurferColorLUT.txt --i 
 ${out1}/${i}/fa.anat.mgh --sum ${out1}/${i}/fa.aseg.stats

 Why in the second command line the output aseg.stats contains left and 
 right hemispheric white matter stats while in the first command line I don't 
 have any stats regarding left and right hemispheric white matter?


 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:29 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 maybe zeke can help you sort it out

 On 04/13/2015 04:24 PM, Alshikho, Mohamad J. wrote:
 I got

 /usr/local/freesurfer/stable5_1_0/bin/mri_segstats

 and this is really weird because I thought that I am using FS 5.0.3.

 I am sourcing routinely the following script before I start FS

 #!/bin/tcsh
 setenv FREESURFER_HOME /usr/local/freesurfer/stable5_3_0
 setenv USE_STABLE5_3_0
 setenv LD_LIBRARY_PATH /usr/lib64/GLoverride:/usr/lib/GLoverride
 setenv FSENV_KEEP_PROMPT
 setenv SUBJECTS_DIR /autofs/cluster/transcend/malshikho/2015/orig_data/recons
 setenv FSFAST_HOME /usr/local/freesurfer/stable5_3_0/fsfast
 setenv FSL_DIR /usr/pubsw/packages/fsl/5.0.6
 setenv FSF_OUTPUT_FORMAT nii.gz

 source /usr/local/freesurfer/stable5_3_0
 source /usr/pubsw/packages/fsl/5.0.6



 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:16 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Are you sure you're using the new version?
 what do you get if you type
 which mri_segstats




 On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing

Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Alshikho, Mohamad J.
Thank you Doug,
Kindly one more question regarding mri_segstats:
The following two mri_segstats command lines:

 mri_segstats --seg ${out1}/${i}/mri/aseg.mgz --sum 
${out1}/${i}/stats/aseg.stats --pv ${out1}/${i}/mri/norm.mgz --empty 
--excludeid 0 --excl-ctxgmwm --supratent --subcortgray --in 
${out1}/${i}/mri/norm.mgz --in-intensity-name norm --in-intensity-units MR 
--etiv --surf-wm-vol --surf-ctx-vol --totalgray --ctab 
/usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt --subject ${i}

and
mri_segstats --seg${out1}/${i}/mri/aseg.mgz --ctab 
/usr/local/freesurfer/stable5_3_0/FreeSurferColorLUT.txt --i 
${out1}/${i}/fa.anat.mgh --sum ${out1}/${i}/fa.aseg.stats 

Why in the second command line the output aseg.stats contains left and right 
hemispheric white matter stats while in the first command line I don't have any 
stats regarding left and right hemispheric white matter?



From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
[gr...@nmr.mgh.harvard.edu]
Sent: Monday, April 13, 2015 4:29 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats flags

maybe zeke can help you sort it out

On 04/13/2015 04:24 PM, Alshikho, Mohamad J. wrote:
 I got

 /usr/local/freesurfer/stable5_1_0/bin/mri_segstats

 and this is really weird because I thought that I am using FS 5.0.3.

 I am sourcing routinely the following script before I start FS

 #!/bin/tcsh
 setenv FREESURFER_HOME /usr/local/freesurfer/stable5_3_0
 setenv USE_STABLE5_3_0
 setenv LD_LIBRARY_PATH /usr/lib64/GLoverride:/usr/lib/GLoverride
 setenv FSENV_KEEP_PROMPT
 setenv SUBJECTS_DIR /autofs/cluster/transcend/malshikho/2015/orig_data/recons
 setenv FSFAST_HOME /usr/local/freesurfer/stable5_3_0/fsfast
 setenv FSL_DIR /usr/pubsw/packages/fsl/5.0.6
 setenv FSF_OUTPUT_FORMAT nii.gz

 source /usr/local/freesurfer/stable5_3_0
 source /usr/pubsw/packages/fsl/5.0.6



 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:16 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Are you sure you're using the new version?
 what do you get if you type
 which mri_segstats




 On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https

Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Alshikho, Mohamad J.
Thank you very much for your help

By the way I added the following line 
source $FREESURFER_HOME/SetUpFreeSurfer.sh 

to my fs script to source FS 5.0.3 and it worked. Now I can use --seg-erode 
with mri_segstats 



From: freesurfer-boun...@nmr.mgh.harvard.edu 
[freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
[gr...@nmr.mgh.harvard.edu]
Sent: Monday, April 13, 2015 4:52 PM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] mri_segstats flags

Only the structures in the color table (--ctab) are reported; the 1st
ctab does not have those strcutures. In the 2nd, does

On 04/13/2015 04:41 PM, Alshikho, Mohamad J. wrote:
 Thank you Doug,
 Kindly one more question regarding mri_segstats:
 The following two mri_segstats command lines:

   mri_segstats --seg ${out1}/${i}/mri/aseg.mgz --sum 
 ${out1}/${i}/stats/aseg.stats --pv ${out1}/${i}/mri/norm.mgz --empty 
 --excludeid 0 --excl-ctxgmwm --supratent --subcortgray --in 
 ${out1}/${i}/mri/norm.mgz --in-intensity-name norm --in-intensity-units MR 
 --etiv --surf-wm-vol --surf-ctx-vol --totalgray --ctab 
 /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt --subject ${i}

 and
 mri_segstats --seg${out1}/${i}/mri/aseg.mgz --ctab 
 /usr/local/freesurfer/stable5_3_0/FreeSurferColorLUT.txt --i 
 ${out1}/${i}/fa.anat.mgh --sum ${out1}/${i}/fa.aseg.stats

 Why in the second command line the output aseg.stats contains left and 
 right hemispheric white matter stats while in the first command line I don't 
 have any stats regarding left and right hemispheric white matter?


 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:29 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 maybe zeke can help you sort it out

 On 04/13/2015 04:24 PM, Alshikho, Mohamad J. wrote:
 I got

 /usr/local/freesurfer/stable5_1_0/bin/mri_segstats

 and this is really weird because I thought that I am using FS 5.0.3.

 I am sourcing routinely the following script before I start FS

 #!/bin/tcsh
 setenv FREESURFER_HOME /usr/local/freesurfer/stable5_3_0
 setenv USE_STABLE5_3_0
 setenv LD_LIBRARY_PATH /usr/lib64/GLoverride:/usr/lib/GLoverride
 setenv FSENV_KEEP_PROMPT
 setenv SUBJECTS_DIR /autofs/cluster/transcend/malshikho/2015/orig_data/recons
 setenv FSFAST_HOME /usr/local/freesurfer/stable5_3_0/fsfast
 setenv FSL_DIR /usr/pubsw/packages/fsl/5.0.6
 setenv FSF_OUTPUT_FORMAT nii.gz

 source /usr/local/freesurfer/stable5_3_0
 source /usr/pubsw/packages/fsl/5.0.6



 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 4:16 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Are you sure you're using the new version?
 what do you get if you type
 which mri_segstats




 On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer

Re: [Freesurfer] mri_segstats flags

2015-04-13 Thread Douglas N Greve

Are you sure you're using the new version?
what do you get if you type
which mri_segstats




On 04/13/2015 03:41 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,
 My system is Linux Centos 7

 I tried to run it and I got:

 [malshikh@glia 002201]$ mri_segstats --seg mri/aseg.mgz --sum 
 stats/aseg.stats --pv mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm 
 --supratent --subcortgray --in mri/norm.mgz --in-intensity-name norm 
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol --totalgray 
 --seg-erode 2 --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt 
 --subject 002201

 ERROR: Option --seg-erode unknown




 
 From: freesurfer-boun...@nmr.mgh.harvard.edu 
 [freesurfer-boun...@nmr.mgh.harvard.edu] on behalf of Douglas N Greve 
 [gr...@nmr.mgh.harvard.edu]
 Sent: Monday, April 13, 2015 3:22 PM
 To: freesurfer@nmr.mgh.harvard.edu
 Subject: Re: [Freesurfer] mri_segstats flags

 Try this one
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats

 This is for linux. If that is not your system, tell me what your system is

 doug

 On 04/13/2015 02:22 PM, Alshikho, Mohamad J. wrote:
 Hi Doug,

 Kindly I have the following questions regarding the command mri_segstats:

 ·I wanted to use the flag  --seg-erode 2 in the command mri_segstats
 but I am receiving an error message that this flag is not available (
 I am using FreeSurfer 5.3.0 ).

 ·When the command recon-all finish.  I don’t see the right or left
 cerebral white matter volumes in “aseg.stats”. Do I need to use
 specific flags in order to generate the statistics related to left and
 right hemispheric white matter. My command is like this:

 mri_segstats --seg mri/aseg.mgz --sum stats/aseg.stats --pv
 mri/norm.mgz --empty --excludeid 0 --excl-ctxgmwm --supratent
 --subcortgray --in mri/norm.mgz --in-intensity-name norm
 --in-intensity-units MR --etiv --surf-wm-vol --surf-ctx-vol
 --totalgray --ctab /usr/local/freesurfer/stable5_1_0/ASegStatsLUT.txt
 --subject 075801

 Bests,

 Mohamad



 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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



-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] Mri_segstats

2015-01-30 Thread Douglas Greve

There is not a flag to control the printing format. However, you can 
multiply the values by a constant (--mul flag). Eg, you can multiply all 
values by 100 or divide by 100.
doug

On 1/30/15 11:42 AM, Alshikho, Mohamad J. wrote:
 Dear FS Experts,
 In order to generate the statistics using mri_segstats I ran the following 
 command line:

 mri_segstats --seg${in}/${i}/mri/aparc+aseg.mgz --ctab-default --i 
 ${insa}/${i}/fa.anat.nii --mask ${insa}/${i}//svs.anat.nii --sum 
 ${insa}/${i}/fa.summary.dat

 In the final report (fa.summary.dat ) I can see that mri_segstats generated 
 the results for FA with a decimal number and four digits after the point like 
 (0.3130) is there any flag can control the count of numbers after the (0.) in 
 order to increase or decrease the numbers?

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



___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] Mri_segstats

2015-01-30 Thread Alshikho, Mohamad J.
Dear FS Experts,
In order to generate the statistics using mri_segstats I ran the following 
command line:

mri_segstats --seg${in}/${i}/mri/aparc+aseg.mgz --ctab-default --i 
${insa}/${i}/fa.anat.nii --mask ${insa}/${i}//svs.anat.nii --sum 
${insa}/${i}/fa.summary.dat 

In the final report (fa.summary.dat ) I can see that mri_segstats generated the 
results for FA with a decimal number and four digits after the point like 
(0.3130) is there any flag can control the count of numbers after the (0.) in 
order to increase or decrease the numbers?

Thanks 
Mohamad
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-06-26 Thread Douglas N Greve

It is helpful to have a command line, but I think I can figure it out 
from what you have written. The first row is everything outside your 
seg. The second is everything inside your seg.
doug



On 06/25/2014 05:54 PM, Martins, Brad wrote:
 Hi everyone,

 I’m new to Freesurfer and I have a question about the output of mri_segstats. 
 I have created an ROI in which I am measuring cortical thickness. When I run 
 mri_segstats I get a table with 2 rows of segmentation values. What are the 2 
 rows? The SegId of the two rows are 0 and 1 but I don’t know what 
 segmentations that corresponds to or where to find out. Any help would be 
 greatly appreciated!

 Thanks,

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



-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-06-26 Thread Martins, Brad
Thanks Doug,

That is what I needed to know!

Brad

On Jun 26, 2014, at 11:13 AM, Douglas N Greve gr...@nmr.mgh.harvard.edu wrote:

 
 It is helpful to have a command line, but I think I can figure it out 
 from what you have written. The first row is everything outside your 
 seg. The second is everything inside your seg.
 doug
 
 
 
 On 06/25/2014 05:54 PM, Martins, Brad wrote:
 Hi everyone,
 
 I’m new to Freesurfer and I have a question about the output of 
 mri_segstats. I have created an ROI in which I am measuring cortical 
 thickness. When I run mri_segstats I get a table with 2 rows of segmentation 
 values. What are the 2 rows? The SegId of the two rows are 0 and 1 but I 
 don’t know what segmentations that corresponds to or where to find out. Any 
 help would be greatly appreciated!
 
 Thanks,
 
 Brad
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
 
 
 
 -- 
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422
 
 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/
 
 ___
 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 Partners Compliance HelpLine 
 at
 http://www.partners.org/complianceline . If the e-mail was sent to you in 
 error
 but does not contain patient information, please contact the sender and 
 properly
 dispose of the e-mail.
 


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


[Freesurfer] mri_segstats

2014-06-09 Thread shahin
Hi,
   I have two questions about mri_segstats.  I want to measure the surface
area of a functionally-defined ROI.  I used the mri_segstats as below
and I want to be sure that it is correct.  Please note that ROIs were
defined in the native space.

mri_segstats --i $SUBJECTS_DIR/SBJ1/surf/rh.area --slabel SBJ1 rh rh.FFA
--sum SBJ1.txt --accumulate

   The second question is about the report file.  I assume that the 'Mean'
value for seg0001 is the measured surface area of my ROI in this
particular subject.  But what is the meaning of 'StdDev', 'Min', 'Max'
and 'Range' in this report? Also, is 'Mean' value for Seg, the
surface area of the whole (right or left) cortex? If no, how can I
measure the whole rh or lh cortex surface area?

Regards
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-24 Thread pfotiad
Hi Doug,

Thanks again for your help. I had two questions that came up from doing
some preliminary analysis with the mri_segstats:

1) When running the mri_segstats command with --seg
aparc+aseg_nocortex.mgz (which is the result of the matlab code you
provided below) and with --seg wmparc.mgz, even though the average
intensity is very close to each other, the individual intensities of same
structures are different. For instance
Left-Cerebral-White-Matter has an intensity of 145.3869 +/- 21.6883 with
--seg aparc+aseg_nocortex.mgz and an intensity of 149.6910 +/- 15.6547
with --aseg wmparc.mgz. Also the number of voxels of the same structure is
different in each case. Is there a reason why this is happening?

2) If I want to include the wm parcellation map to calculate the mean
intensity, I am assuming that wmparc.mgz would be the correct segmentation
volume to use, right?

3) If the answer to (2) is yes, and if I wanted to measure the average
intensity with --seg wmparc.mgz but after excluding the cortex, should I
run with --seg wmparc.mgz and just not take into consideration all the
*-ctx-* parcellations that come up in the stats file, or is there a way to
remove the cortex from wmparc.mgz and then run mri_segstats with the
wmparc_nocortex.mgz file as the --seg (I tried to subtract a binary map of
the cortex from wmparc.mgz, but had no luck: maybe I was doing something
wrong.)

Thanks in advance for your help!

Best,
Panos





 You can just do it in matlab, somethhing like

 a = MRIread('aparc+aseg.mgz');
 ind = find(a.vol  999);
 a.vol(ind) = 0;
 MRIwrite(a,'nocortex.mgz')



 On 04/22/2014 11:38 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 I'm sorry, what I meant to ask in the previous question is whether there
 is a way to come up with a segmentation volume for the mri_segstats
 command that is exactly like aseg.mgz but that does not include the
 cortex. The reason I'm asking is because by using the aseg.mgz volume in
 the --seg flag, you're also incorporating the intensity of the cortex
 when
 measuring the mean intensity of orig.mgz, but I wanted to see if there
 was
 a way to calculate the mean intensity of orig.mgz but without
 incorporating the intensity of the cortex.

 Thanks again,
 Panos

 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the
 surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not
 include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in
 the
 command line: The segmentations only specify the areas of the brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct?
 That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
 --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
 --nonempty --excludeid 0 --sum bert.aseg.sum
 --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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


 ___
 Freesurfer mailing 

Re: [Freesurfer] mri_segstats question

2014-04-24 Thread Douglas N Greve

On 04/24/2014 09:40 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your help. I had two questions that came up from doing
 some preliminary analysis with the mri_segstats:

 1) When running the mri_segstats command with --seg
 aparc+aseg_nocortex.mgz (which is the result of the matlab code you
 provided below) and with --seg wmparc.mgz, even though the average
 intensity is very close to each other, the individual intensities of same
 structures are different. For instance
 Left-Cerebral-White-Matter has an intensity of 145.3869 +/- 21.6883 with
 --seg aparc+aseg_nocortex.mgz and an intensity of 149.6910 +/- 15.6547
 with --aseg wmparc.mgz. Also the number of voxels of the same structure is
 different in each case. Is there a reason why this is happening?
what are your command lines?

 2) If I want to include the wm parcellation map to calculate the mean
 intensity, I am assuming that wmparc.mgz would be the correct segmentation
 volume to use, right?
mean intensity of what?

 3) If the answer to (2) is yes, and if I wanted to measure the average
 intensity with --seg wmparc.mgz but after excluding the cortex, should I
 run with --seg wmparc.mgz and just not take into consideration all the
 *-ctx-* parcellations that come up in the stats file, or is there a way to
 remove the cortex from wmparc.mgz and then run mri_segstats with the
 wmparc_nocortex.mgz file as the --seg (I tried to subtract a binary map of
 the cortex from wmparc.mgz, but had no luck: maybe I was doing something
 wrong.)

 Thanks in advance for your help!

 Best,
 Panos




 You can just do it in matlab, somethhing like

 a = MRIread('aparc+aseg.mgz');
 ind = find(a.vol  999);
 a.vol(ind) = 0;
 MRIwrite(a,'nocortex.mgz')



 On 04/22/2014 11:38 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 I'm sorry, what I meant to ask in the previous question is whether there
 is a way to come up with a segmentation volume for the mri_segstats
 command that is exactly like aseg.mgz but that does not include the
 cortex. The reason I'm asking is because by using the aseg.mgz volume in
 the --seg flag, you're also incorporating the intensity of the cortex
 when
 measuring the mean intensity of orig.mgz, but I wanted to see if there
 was
 a way to calculate the mean intensity of orig.mgz but without
 incorporating the intensity of the cortex.

 Thanks again,
 Panos

 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the
 surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not
 include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in
 the
 command line: The segmentations only specify the areas of the brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct?
 That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
  --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
  --nonempty --excludeid 0 --sum bert.aseg.sum
  --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



 ___
 Freesurfer mailing list
 

Re: [Freesurfer] mri_segstats question

2014-04-24 Thread pfotiad

 On 04/24/2014 09:40 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your help. I had two questions that came up from doing
 some preliminary analysis with the mri_segstats:

 1) When running the mri_segstats command with --seg
 aparc+aseg_nocortex.mgz (which is the result of the matlab code you
 provided below) and with --seg wmparc.mgz, even though the average
 intensity is very close to each other, the individual intensities of
 same
 structures are different. For instance
 Left-Cerebral-White-Matter has an intensity of 145.3869 +/- 21.6883 with
 --seg aparc+aseg_nocortex.mgz and an intensity of 149.6910 +/- 15.6547
 with --aseg wmparc.mgz. Also the number of voxels of the same structure
 is
 different in each case. Is there a reason why this is happening?
 what are your command lines?


The commands are:
mri_segstats --seg subj_ID_path/mri/aparc+aseg_nocortex.mgz --ctab
$FREESURFER_HOME/FreeSurferColorLUT.txt --nonempty --excludeid 0 --sum
subj_ID_path/stats/int.aparc+aseg_nocortex.sum --in
subj_ID_path/mri/orig.mgz

and

mri_segstats --seg subj_ID_path/mri/wmparc.mgz --ctab
$FREESURFER_HOME/FreeSurferColorLUT.txt --nonempty --excludeid 0 --sum
subj_ID_path/stats/int.wmparc.sum --in subj_ID_path/mri/orig.mgz


 2) If I want to include the wm parcellation map to calculate the mean
 intensity, I am assuming that wmparc.mgz would be the correct
 segmentation
 volume to use, right?
 mean intensity of what?


The mean intensity of orig.mgz.


 3) If the answer to (2) is yes, and if I wanted to measure the average
 intensity with --seg wmparc.mgz but after excluding the cortex, should I
 run with --seg wmparc.mgz and just not take into consideration all the
 *-ctx-* parcellations that come up in the stats file, or is there a way
 to
 remove the cortex from wmparc.mgz and then run mri_segstats with the
 wmparc_nocortex.mgz file as the --seg (I tried to subtract a binary map
 of
 the cortex from wmparc.mgz, but had no luck: maybe I was doing something
 wrong.)

 Thanks in advance for your help!

 Best,
 Panos




 You can just do it in matlab, somethhing like

 a = MRIread('aparc+aseg.mgz');
 ind = find(a.vol  999);
 a.vol(ind) = 0;
 MRIwrite(a,'nocortex.mgz')



 On 04/22/2014 11:38 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 I'm sorry, what I meant to ask in the previous question is whether
 there
 is a way to come up with a segmentation volume for the mri_segstats
 command that is exactly like aseg.mgz but that does not include the
 cortex. The reason I'm asking is because by using the aseg.mgz volume
 in
 the --seg flag, you're also incorporating the intensity of the cortex
 when
 measuring the mean intensity of orig.mgz, but I wanted to see if there
 was
 a way to calculate the mean intensity of orig.mgz but without
 incorporating the intensity of the cortex.

 Thanks again,
 Panos

 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the
 surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the
 aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files
 and
 subtract them, and then use the result in the mri_segstats command,
 or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not
 include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there
 is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations
 in
 the
 command line: The segmentations only specify the areas of the
 brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct?
 That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the
 orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
  --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
  --nonempty --excludeid 0 --sum bert.aseg.sum
  --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 

Re: [Freesurfer] mri_segstats question

2014-04-22 Thread pfotiad
Hi Doug,

Thanks again for your reply. One last question: The aseg.mgz file includes
the cortex as well. If I want to extract the cortex from the aseg.mgz
file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
subtract them, and then use the result in the mri_segstats command, or is
there a different way?

Thanks,
Panos


 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in the
 command line: The segmentations only specify the areas of the brain that
 you would like to measure the intensity on, but besides that they don't
 provide any intensity info by themselves, would that be correct? That is
 the purpose of the --i flag, right?
 Correct
 doug

 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
   --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
   --nonempty --excludeid 0 --sum bert.aseg.sum
   --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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



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




___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-22 Thread Douglas N Greve

If you want the volume of cortex, you should definitely not use 
aseg.mgz. aparc+aseg is better, but the best is to use the surface-based 
measure found in aseg.stats

doug

On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in the
 command line: The segmentations only specify the areas of the brain that
 you would like to measure the intensity on, but besides that they don't
 provide any intensity info by themselves, would that be correct? That is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
--ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
--nonempty --excludeid 0 --sum bert.aseg.sum
--in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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


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



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



-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-22 Thread pfotiad
Hi Doug,

I'm sorry, what I meant to ask in the previous question is whether there
is a way to come up with a segmentation volume for the mri_segstats
command that is exactly like aseg.mgz but that does not include the
cortex. The reason I'm asking is because by using the aseg.mgz volume in
the --seg flag, you're also incorporating the intensity of the cortex when
measuring the mean intensity of orig.mgz, but I wanted to see if there was
a way to calculate the mean intensity of orig.mgz but without
incorporating the intensity of the cortex.

Thanks again,
Panos


 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in
 the
 command line: The segmentations only specify the areas of the brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct? That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
--ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
--nonempty --excludeid 0 --sum bert.aseg.sum
--in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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


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



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



 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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




___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-22 Thread Douglas N Greve

You can just do it in matlab, somethhing like

a = MRIread('aparc+aseg.mgz');
ind = find(a.vol  999);
a.vol(ind) = 0;
MRIwrite(a,'nocortex.mgz')



On 04/22/2014 11:38 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 I'm sorry, what I meant to ask in the previous question is whether there
 is a way to come up with a segmentation volume for the mri_segstats
 command that is exactly like aseg.mgz but that does not include the
 cortex. The reason I'm asking is because by using the aseg.mgz volume in
 the --seg flag, you're also incorporating the intensity of the cortex when
 measuring the mean intensity of orig.mgz, but I wanted to see if there was
 a way to calculate the mean intensity of orig.mgz but without
 incorporating the intensity of the cortex.

 Thanks again,
 Panos

 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in
 the
 command line: The segmentations only specify the areas of the brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct? That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
 --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
 --nonempty --excludeid 0 --sum bert.aseg.sum
 --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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


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



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


 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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



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



-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu

Re: [Freesurfer] mri_segstats question

2014-04-22 Thread pfotiad
That is great,
Thanks a lot, Doug!


 You can just do it in matlab, somethhing like

 a = MRIread('aparc+aseg.mgz');
 ind = find(a.vol  999);
 a.vol(ind) = 0;
 MRIwrite(a,'nocortex.mgz')



 On 04/22/2014 11:38 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 I'm sorry, what I meant to ask in the previous question is whether there
 is a way to come up with a segmentation volume for the mri_segstats
 command that is exactly like aseg.mgz but that does not include the
 cortex. The reason I'm asking is because by using the aseg.mgz volume in
 the --seg flag, you're also incorporating the intensity of the cortex
 when
 measuring the mean intensity of orig.mgz, but I wanted to see if there
 was
 a way to calculate the mean intensity of orig.mgz but without
 incorporating the intensity of the cortex.

 Thanks again,
 Panos

 If you want the volume of cortex, you should definitely not use
 aseg.mgz. aparc+aseg is better, but the best is to use the
 surface-based
 measure found in aseg.stats

 doug

 On 04/22/2014 10:55 AM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks again for your reply. One last question: The aseg.mgz file
 includes
 the cortex as well. If I want to extract the cortex from the aseg.mgz
 file, should I binarize both the aseg.mgz and aparc_aseg.mgz files and
 subtract them, and then use the result in the mri_segstats command, or
 is
 there a different way?

 Thanks,
 Panos

 On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not
 include
 the
 intensity of the skull, just everything inside, right?
 It includes all the structures that are segmented in seg. If there is
 not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in
 the
 command line: The segmentations only specify the areas of the brain
 that
 you would like to measure the intensity on, but besides that they
 don't
 provide any intensity info by themselves, would that be correct?
 That
 is
 the purpose of the --i flag, right?
 Correct
 doug
 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig
 file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
 --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
 --nonempty --excludeid 0 --sum bert.aseg.sum
 --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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


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



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


 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing:
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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



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



 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

 ___
 Freesurfer mailing list
 

Re: [Freesurfer] mri_segstats question

2014-04-18 Thread Douglas Greve

On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
Yes
 2) In case I would like to measure the mean intensity of the orig file as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
  --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
  --nonempty --excludeid 0 --sum bert.aseg.sum
  --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean intensity
 within the skull, or does it serve another purpose?
The seg defines the segmentations (eg, 17 is hippocampus)


 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer



___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-18 Thread pfotiad
Hi Doug,

Thanks for the quick reply! In addition:

1) The average intensity measure in the above example does not include the
intensity of the skull, just everything inside, right?
2) Just to be clear on the purpose of including the segmentations in the
command line: The segmentations only specify the areas of the brain that
you would like to measure the intensity on, but besides that they don't
provide any intensity info by themselves, would that be correct? That is
the purpose of the --i flag, right?

Thanks again for your help,
Panos


 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
  --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
  --nonempty --excludeid 0 --sum bert.aseg.sum
  --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)


 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer



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




___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats question

2014-04-18 Thread Douglas Greve

On 4/18/14 4:25 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi Doug,

 Thanks for the quick reply! In addition:

 1) The average intensity measure in the above example does not include the
 intensity of the skull, just everything inside, right?
It includes all the structures that are segmented in seg. If there is 
not a skull segmentation, then it will not be in the output list.
 2) Just to be clear on the purpose of including the segmentations in the
 command line: The segmentations only specify the areas of the brain that
 you would like to measure the intensity on, but besides that they don't
 provide any intensity info by themselves, would that be correct? That is
 the purpose of the --i flag, right?
Correct
doug

 Thanks again for your help,
 Panos

 On 4/18/14 3:32 PM, pfot...@nmr.mgh.harvard.edu wrote:
 Hi FS community,

 I had some questions regarding the mri_segstats command:

 1) In the excludeid flag, are the ids the ones shown in the
 FreeSurferColorLUT.txt?
 Yes
 2) In case I would like to measure the mean intensity of the orig file
 as
 outlined in the second example in
 https://surfer.nmr.mgh.harvard.edu/fswiki/mri_segstats:

 mri_segstats --seg $SUBJECTS_DIR/bert/mri/aseg
   --ctab $FREESURFER_HOME/FreeSurferColorLUT.txt
   --nonempty --excludeid 0 --sum bert.aseg.sum
   --in $SUBJECTS_DIR/bert/mri/orig

 is the --seg flag necessary in order to calculate only the mean
 intensity
 within the skull, or does it serve another purpose?
 The seg defines the segmentations (eg, 17 is hippocampus)

 Thanks in advance,
 Panos
 ___
 Freesurfer mailing list
 Freesurfer@nmr.mgh.harvard.edu
 https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


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



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



___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



[Freesurfer] mri_segstats - Manual Parcellation

2014-02-04 Thread Gonzalo Iribarne
Hello Freesurfers,

I am manually parcellating a cerebellum using Freeview and would like to
compare #voxels across filled-in ROIs for reliability control.

When using mri_segstats, which should be my segmentation volume? I have
included my parcellation volume in the --mask option to target the voxels
in my ROIs. Is this necessary or can I simply define my --seg volume as the
manual (M_Parc.mgz) parcellation volume?

Here is my command:

mri_segstats --seg mri/testM_Parc.mgz --sum stats/testM_Parc.stats --pv
mri/norm.mgz --excludeid 0 --mask testM_Parc.mgz --ctab
/Volumes/share/Cerebellum/CerebellumStudyLUT.txt --subject 19

Thanks in advance!

-Gonzalo Iribarne
___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] mri_segstats - Manual Parcellation

2014-02-04 Thread Douglas N Greve

you have the right segmentation volume. You do not need a mask (if a 
mask is given, it only reports the number of voxels in the mask)

On 02/04/2014 01:38 PM, Gonzalo Iribarne wrote:
 Hello Freesurfers,

 I am manually parcellating a cerebellum using Freeview and would like 
 to compare #voxels across filled-in ROIs for reliability control.

 When using mri_segstats, which should be my segmentation volume? I 
 have included my parcellation volume in the --mask option to target 
 the voxels in my ROIs. Is this necessary or can I simply define my 
 --seg volume as the manual (M_Parc.mgz) parcellation volume?

 Here is my command:

 mri_segstats --seg mri/testM_Parc.mgz --sum stats/testM_Parc.stats
 --pv mri/norm.mgz --excludeid 0 --mask testM_Parc.mgz --ctab
 /Volumes/share/Cerebellum/CerebellumStudyLUT.txt --subject 19

 Thanks in advance!

 -Gonzalo Iribarne



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

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats url in 5.3.0 release notes does not exist

2013-11-04 Thread Douglas N Greve
Hi Jonathan, see my email from earlier about the new permanent location 
for mri_segstats
doug

On 10/30/2013 12:26 PM, Jonathan Harlap wrote:
 The version of mri_segstats that fixes the issue where mri_segstats 
 fails unless -autorecon3 is run returns a file not found at the url 
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats. 
 Is there a source that the release notes should refer to and which 
 will not disappear, or can it be restored?

 Cheers,
 Jonathan




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

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

___
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 Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.



Re: [Freesurfer] mri_segstats url in 5.3.0 release notes does not exist

2013-11-04 Thread Jonathan Harlap
Thanks Doug, I did see that.

Cheers,
Jonathan

 On Nov 4, 2013, at 6:23 PM, Douglas N Greve gr...@nmr.mgh.harvard.edu wrote:

 Hi Jonathan, see my email from earlier about the new permanent location
 for mri_segstats
 doug

 On 10/30/2013 12:26 PM, Jonathan Harlap wrote:
 The version of mri_segstats that fixes the issue where mri_segstats
 fails unless -autorecon3 is run returns a file not found at the url
 ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_segstats.
 Is there a source that the release notes should refer to and which
 will not disappear, or can it be restored?

 Cheers,
 Jonathan




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

 --
 Douglas N. Greve, Ph.D.
 MGH-NMR Center
 gr...@nmr.mgh.harvard.edu
 Phone Number: 617-724-2358
 Fax: 617-726-7422

 Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
 FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
 www.nmr.mgh.harvard.edu/facility/filedrop/index.html
 Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

 ___
 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 Partners Compliance HelpLine 
 at
 http://www.partners.org/complianceline . If the e-mail was sent to you in 
 error
 but does not contain patient information, please contact the sender and 
 properly
 dispose of the e-mail.

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


  1   2   >