[Freesurfer] Correcting Skull-Strip Errors - Watershed Algorithm Question

2017-03-22 Thread Abhinav Kurada
The initial running of recon-all autorecon-1 autorecon-2 for a sample scan 
resulted in a bad skull strip. I am attempting to troubleshoot the issue 
through running just the skull strip portion of the recon-all pipeline again, 
followed by adjusting the watershed parameters. 

During re-running -skullstrip, I am given a 

mri_watershed Error: read failed

 (the em_register portion of the -skullstrip flag ran without interruption). I 
have attached the corresponding log.

Is there a way to fix this watershed error (when I have tried to run the 
watershed command by itself, the command is not recognized)?

https://share.polymail.io/v1/z/f/NThkMzUzYTU4ODA4/Vp21pl8rsUD4Tvw7tgnoOONDLHvyqODHm-JuJ2CuYvbpNRv74VHiIXFW2sq1hbb-_IVq_gsswxsr7C_ze5rXaYdUNPgZe62f-6Nkfl5OYuq3oGTdw0D4lWWL-eF5CxE20aCbJXC_5RQpmTiuFb46yJ13lSZ5Dvo3xeSo4ogTr6_M5umIcZTfK7sFK3yjPIXu2Cc=/recon-all.log

https://share.polymail.io/v1/z/f/NThkMzUzYTU4ODA4/Vp21pl8rsUD4Tvw7tgnoOONDLHvyqODHm-JuJ2CuYvbpNRv74VHiIXFW2sq1hbb-_IVq_gsswxsr7C_ze5rXaYdUNPgZe62f-6Nkfl5OYuq3oGTdw0D4lWWL-eF5CxE20aCbJXC_5RQpmTiuFb46yJ13lSZ5Dvo3xeSo4ogTr6_M5umIcZTfK7sFK3yjPIXu2Cc=/recon-all.log___
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] Qdec 1.5

2017-03-22 Thread Duy Nguyen
Dear Douglas

Thank you for your response.  I cannot run asegstats2table and
aparcstats2table command outside of qdec.

Best regards,
Duy Nguyen

*--v-- Peace --v--*
*Duy Nguyễn *
*Biomedical Engineering Department- IU HCMC*
*Cell: (+84)90056*
*Email: duy.nguyen...@gmail.com *

On Thu, Mar 23, 2017 at 5:07 AM, Douglas Greve 
wrote:

> don't know what is going on there. Can you run the asegstats2table command
> outside of qdec?
>
> On 3/17/17 8:29 AM, Duy Nguyen wrote:
>
> Dear FS Expert
>
> I am doing analysis from the group_analysis_tutorial data to practice and
> learn.  However, I come across the error window like it shows on the
> attached picture (please see the attachment) when I press the button
> "Generate Stats Data Table." Please help me how can I can find the file
> aseg.volume.stats.dat.  If the file does not exist, how can I create one?
>
> Thank you for your response. Any help would be appreciated!!!
> *--v-- Peace --v--*
> *Duy Nguyễn *
> *Biomedical Engineering Department- IU HCMC*
> *Cell: (+84)90056*
> *Email: duy.nguyen...@gmail.com *
>
>
> ___
> 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] LME mass univariate model

2017-03-22 Thread Bronwyn Overs
Hi Mailing List,

I am fitting an LME model with random effects for B0 and B2, so I am using the 
following to fit a spatiotemporal model:

lhstats = lme_mass_fit_Rgw(X,[1 3],Y,ni,lhTh0,lhRgs,lhsphere);

However, prior to this when i am computing the initial temporal covariance 
estimates, do the square bracketed numbers refer to the random effects as well? 
So would this be run for random effects at B0 and B2:

[lhTh0,lhRe] = lme_mass_fit_EMinit(X,[1 3],Y,ni,lhcortex,3);

Kind regards,
Bronwyn Overs
Research Assistant

Neuroscience Research Australia
Margarete Ainsworth Building
Barker Street Randwick Sydney NSW 2031 Australia
M 0411 308 769 T +61 2 9399 1883 F +61 2 9399 1265

neura.edu.au  
  
 

> On 7 Mar 2017, at 11:57 pm, Martin Reuter  wrote:
> 
> Hi Bronwyn, 
> 
> to shorten equations, lets set t = years_form_baseline
> a = age
> g = group
> s = sex
> 
> so your model is
> Y_ij = b0 + b1 t_ij + b2 a_i + b3 g_i + b4 s_i + b5 t_ij a_i + b6 t_ij g_i + 
> b7 a_i g_i + b8 t_ij a_i g_i
> (as a fist step, I would consider simplifying it, by dropping the age 
> interactions). 
> 
> Anyway
> 
> for male (s_i =0) and controls (g_i = 0) this reduces to
> Y_ij = b0 + b1 t_ij + b2 a_i + b5 t_ij a_i 
> so b1 is the slope for male controls, controlling for age and the slope age 
> interaction. (0 1 0….)
> 
> Now for female (s=1) patients (g=1) we get this:
> 
> Y_ij = b0 + b1 t_ij + b2 a_i + b3  + b4 + b5 t_ij a_i + b6 t_ij + b7 a_i + b8 
> t_ij
>= (b0+b3+b4) + (b1 + b6 + b8 ) t_ij + (b2+b7) a_i + b5 t_ij a_i 
> So the slope for female patients (controlling for age and age time 
> interaction) would be
> (b1 + b6 + b8)
> 0 1 0 0 0 0 1 0 1
> 
> The difference in slope between female patients and male controls would be
> 0 0 0 0 0 0 1 0 1 (or the negative of that depending which way you subtract). 
> Similarly you can look at group differences (controlling for age gender and 
> interactions). 
> 
> Always write out the full model to make sure you understand what you are 
> doing. 
> 
> To complete the picture, here is the contrast for the slope of male patients
> 0 1 0 0 0 0 1 0 1 (it is the same as for female patients, because you don’t 
> have a timeXgender interaction. So that is your patient slope )
> Therefore the 
> 0 0 0 0 0 0 1 0 1  is the slope difference between the groups. 
> 
> I would recommend you talk to a local biostatistician, to make sure you are 
> actually modelling what you want to model. And that you are interpreting the 
> results correctly.  
> 
> Grüße, Martin
> 
>> On 06 Mar 2017, at 18:56, Bronwyn Overs > > wrote:
>> 
>> Hi Martin,
>> 
>> Thank you for your response, that is much clearer. 
>> 
>> I am also a little confused about how to specify the exact contrasts we wish 
>> to test and was hoping to get some advice. My design matrix X includes the 
>> following columns:
>> 1. Intercept
>> 2. Years from baseline
>> 3. Age at baseline
>> 4. Group (patients labelled 1, controls 0)
>> 5. Gender (females labelled 1, males 0)
>> 6. Col 2 (years) * Col 3 (age)
>> 7. Col 2 (years) * Col 4 (group)
>> 8. Col 3 (age) * Col 4 (group)
>> 9. Col 2 (years) * Col 3 (age) * Col 4 (group)
>> 
>> If I test the following contrast, is it giving me the effect of years across 
>> all groups and genders, or just years for male controls:
>> CM.C = [0 1 0 0 0 0 0 0 0]
>> 
>> Also, what contrast should I use to examine the effect of years in my 
>> patient group irrespective of gender?
>> 
>> Kind regards,
>> Bronwyn Overs
>> Research Assistant
>> 
>> Neuroscience Research Australia
>> Margarete Ainsworth Building
>> Barker Street Randwick Sydney NSW 2031 Australia
>> M 0411 308 769 T +61 2 9399 1883 F +61 2 9399 1265
>> 
>> neura.edu.au  
>>   
>>  
>> 
>>> On 4 Mar 2017, at 12:43 am, Martin Reuter >> > wrote:
>>> 
>>> Hi Bronwyn, 
>>> 
>>> I think years-between-scans should be years-from-baseline-scans . You may 
>>> need to compute that if what you have is really years between neighbouring 
>>> scans.
>>> 
>>> 1. Usually people use intercept and maybe years-from-baseline as random 
>>> effects. I would not include too many random effects, as it each adds a lot 
>>> of free parameters and you need a lot of data to fit all that in a 
>>> meaningful way. Which of your columns are random effects can be passed 
>>> lme_fit_FS(X,[1 2],Y(:,1)+Y(:,2),ni);
>>> for example has column 1 and 2 as random effects. 
>>> 
>>> 2. You can do a model comparison as described on our wiki 
>>> 

Re: [Freesurfer] Fw: PETsurfer surface based analysis

2017-03-22 Thread miracooloz
  Hello Doug, I was able to solve the problem. It had to do with the gtmseg part of the pipeline. I had to re-run gtmseg again and mri_gtmpvc exited without error and produced all output. Thank you Best, Paul Sent from my BlackBerry 10 smartphone.From: Douglas GreveSent: Wednesday, March 22, 2017 5:10 PMTo: freesurfer@nmr.mgh.harvard.eduReply To: Freesurfer support listSubject: Re: [Freesurfer] Fw: PETsurfer surface based analysis
  

  
  
Can you tar up the output folder and send it to me at our file
  drop?

https://gate.nmr.mgh.harvard.edu/filedrop2
Also, please send the following 3 files
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.mgz
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.ctab
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta



On 3/22/17 3:34 PM, miracle ozzoude
  wrote:


  Thank you Doug. I am trying to perform pvc for my
pet data based on the tutorial however, I keep getting this
error: 

  " mri_gtmpvc --i
C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg
C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg
gtmseg.mgz --default-seg-merge --auto-mask PSF .01 --mgx
0.01 --o C6_01_001_140813.gtmpvc.output
  Loading input C6_01_001_140813_PET_AV45_coreg_avg.nii.gz
    done loading input 1 frames
  
  
  $Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman
Exp $
  setenv SUBJECTS_DIR /net/synapse/nt/paul/Analysis
  cd /net/synapse/nt/paul/Analysis
  mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz
--reg C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm
--seg gtmseg.mgz --default-seg-merge --auto-mask PSF .01
--mgx 0.01 --o C6_01_001_140813.gtmpvc.output
  sysname  Linux
  hostname neuron2.sri.utoronto.ca
  machine  x86_64
  user     paul
  vgthresh   0.001000
  nReplace   18
  0. 0. 0. 0. 0. 0.
  24 avail.processors, using 1
  Creating output directory C6_01_001_140813.gtmpvc.output
  Loading seg for gtm
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.mgz
  Loading seg ctab
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.ctab
  Reading
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta
  Replacing 18
  Pruning ctab
  ERROR: CTABpruneCTab(): ctab does not have segid 192
  Checking tissue type
  Segmentation fault"
  
  
  Step 1 and 2 were successful. Please can you tell me what
is wrong. Thanks
  Best, 
  Paul 
  
  
  
  

  
  
On Wed, Mar 22, 2017 at 3:07 PM,
  Douglas Greve 
  wrote:
  




On
  3/22/17 2:02 PM, miracle ozzoude wrote:


  Hello Doug, 
Thank you for the detailed reply. I do have
  other questions. 


1) Can you confirm if this is the correct use
  of mris_preproc for Uncached PET data.
  mris_preproc --fsgd your.fsgd --target fsaverage
  --hemi lh --meas Pet --out lh.your.pet.00.mgh.
  This modification was made from the thickness
  thickness data. https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/GroupAnalysis
  

   You need to specify the pet input data. See for
  example the fMRI analysis tutorial here
  http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MultiModalFmriGroup_freeview

  


2) if both the thickness and pet maps have the
  same contrast matrices, can I use one of them as
  my matrix for multimodal analysis? 
   

Re: [Freesurfer] Qdec 1.5

2017-03-22 Thread Douglas Greve
don't know what is going on there. Can you run the asegstats2table 
command outside of qdec?



On 3/17/17 8:29 AM, Duy Nguyen wrote:

Dear FS Expert

I am doing analysis from the group_analysis_tutorial data to practice 
and learn.  However, I come across the error window like it shows on 
the attached picture (please see the attachment) when I press the 
button "Generate Stats Data Table." Please help me how can I can find 
the file aseg.volume.stats.dat.  If the file does not exist, how can I 
create one?


Thank you for your response. Any help would be appreciated!!!
*--v-- Peace --v--*
*Duy Nguyễn *
*Biomedical Engineering Department- IU HCMC*
*Cell: (+84)90056*
*Email: duy.nguyen...@gmail.com *


___
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] A Bug in Monte-Carlo Simulation.

2017-03-22 Thread Douglas Greve
not sure what is going on there. Can you send the full terminal output? 
Also can you email me the mri_glmfit-sim file?



On 3/19/17 11:00 PM, June Kang wrote:

The version downloaded in offical page. 6.0 stable for OS X.

On Mar 20, 2017, at 11:02 AM, Douglas Greve 
> wrote:


what version of FS are you running?


On 3/18/17 11:41 AM, June Kang wrote:


Dear Freesurfer Developers,

6.0 Stable in OS X seems to have some bugs.
Monte-Carlo simulation works fine in 10mm FWMH, but error shows up 
in 5mm or 0mm as below.

###Error Code###
ERROR: CSDread(): could not open 
/Applications/freesurfer/average/mult-comp-cor/fsaverage/lh/cortex/fwhm4/abs/th13/mc-z.csd

ERROR!
Error in Monte Carlo simulation: Error running mri_surfcluster!
###Error Code###
I found that the actual directory contains cud file  is fwhm04, and 
not fwhm4, so after I copied fwhm04 to fwhm4 in cortex directory, 
the simulation works.

I think it’s small bug, but can make many people (like me) confused.
Bests,
J.


___
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 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] contrast between two independent CTh maps?

2017-03-22 Thread Uquillas, Federico D'Oleire
Ah I see. Okay, will give this a try. Thank you Doug!

Best regards,

Fred

> On Mar 22, 2017, at 17:04, Douglas Greve  wrote:
> 
> when you ran mri_glmfit, you had to give it an input (eg, --y 
> group1.mgh) with all the subjects from group 1. You would have a similar 
> file for group2. You would then combine them into one file, eg
> 
> mri_concat group1.mgh group2.mgh --o group1-and2.mgh
> 
> you would then create a new FSGD file for both groups, then run 
> mri_glmfit --y goup1-and2.mgh ...
> 
> 
>> On 3/22/17 4:55 PM, Uquillas, Federico D'Oleire wrote:
>> Hi Doug,
>> What do you mean by combining all the data (and how would you suggest we go 
>> about this?)?
>> And also how does one do a two-group test?
>> 
>> Thank you!
>> 
>> Best,
>> 
>> Fred
>> 
>>> On Mar 22, 2017, at 16:51, Uquillas, Federico D'Oleire 
>>>  wrote:
>>> 
>>> Dear FreeSurfer experts,
>>> 
>>> I’ve been trying to find a way to get a map of the difference between two 
>>> independent CTh association maps but can’t seem to find a solution.
>>> 
>>> I have two maps of independent groups (one is N=15, the other N=20) I would 
>>> like to compare. Is there maybe a way to do a sig1.mgh – sig2.mgh and then 
>>> visualize this? Not sure how to go about it. I’m basically trying to 
>>> visualize what is left over after subtracting one map from the other 
>>> (independent samples t-test of sorts).
>>> 
>>> Thank you so much for any help you may be able to provide!
>>> 
>>> Best regards,
>>> 
>>> Fred
>>> 
>>> 
>>> ___
>>> 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] Petsurfer mri_gtmpvc error

2017-03-22 Thread Douglas Greve
FWHM should be the impulse response FWHM for your scanner. This is a 
number (eg, the HR+ is about 6), not the string 'FWHM'



On 3/22/17 4:16 PM, Agrawal, Shubhi (NIH/NINDS) [E] wrote:

Hi,
I am trying to run SGTM partial volume correction in Petsurfer by 
following the tutorial on the wiki. Every step preceding mri_gtmpvc 
has been successful and the coregistration looks good.

the last step,  mri_gtmpvc command gives an error-
Segmentation fault (core dumped)

This is the information from the log file-

$Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman Exp $
setenv SUBJECTS_DIR /home/agrawals8/freesurfer/subjects
cd /home/agrawals8/freesurfer/subjects/NIH047
mri_gtmpvc --i mri/OutBrick_run_008.nii --reg mri/template.reg.lta 
--psf 6 --seg mri/gtmseg.mgz --default-seg-merge --auto-mask FWHM .01 
--o gtmpvc.output

sysname  Linux
hostname ndsw-eeg-dreifuss.ninds.nih.gov
machine  x86_64
user agrawals8
vgthresh   0.001000
nReplace   18
0. 0. 0. 0. 0. 0.
Loading seg for gtm mri/gtmseg.mgz
Loading ctab mri/gtmseg.ctab
Reading mri/gtmseg.lta
MEM: Size 479268  Peak: 955936   RSS: 339984  Data: 338176  Stk: 92
MEM: Size 570956  Peak: 955936   RSS: 431688  Data: 429864  Stk: 92
Data load time 25.9 sec
nmask = 2680458, nsegs = 100, excluding segid=0
FWHM: 6 6 6
Std:  2.54797 2.54797 2.54797
nPad 13, PadThresh 0.0001
Segmentations used for rescaling
 174 Pons
MEM: Size 422356  Peak: 955936   RSS: 283024  Data: 281264  Stk: 92



___
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] Fw: PETsurfer surface based analysis

2017-03-22 Thread Douglas Greve

Can you tar up the output folder and send it to me at our file drop?

https://gate.nmr.mgh.harvard.edu/filedrop2

Also, please send the following 3 files
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.mgz
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.ctab
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta



On 3/22/17 3:34 PM, miracle ozzoude wrote:
Thank you Doug. I am trying to perform pvc for my pet data based on 
the tutorial however, I keep getting this error:


" mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg 
C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz 
--default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o 
C6_01_001_140813.gtmpvc.output

Loading input C6_01_001_140813_PET_AV45_coreg_avg.nii.gz
  done loading input 1 frames

$Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman Exp $
setenv SUBJECTS_DIR /net/synapse/nt/paul/Analysis
cd /net/synapse/nt/paul/Analysis
mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg 
C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz 
--default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o 
C6_01_001_140813.gtmpvc.output

sysname  Linux
hostname neuron2.sri.utoronto.ca 
machine  x86_64
user paul
vgthresh   0.001000
nReplace   18
0. 0. 0. 0. 0. 0.
24 avail.processors, using 1
Creating output directory C6_01_001_140813.gtmpvc.output
Loading seg for gtm 
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.mgz
Loading seg ctab 
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.ctab

Reading /net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta
Replacing 18
Pruning ctab
ERROR: CTABpruneCTab(): ctab does not have segid 192
Checking tissue type
Segmentation fault"

Step 1 and 2 were successful. Please can you tell me what is wrong. Thanks
Best,
Paul



On Wed, Mar 22, 2017 at 3:07 PM, Douglas Greve 
> wrote:




On 3/22/17 2:02 PM, miracle ozzoude wrote:

Hello Doug,
Thank you for the detailed reply. I do have other questions.

1) Can you confirm if this is the correct use of mris_preproc for
Uncached PET data. mris_preproc --fsgd your.fsgd --target
fsaverage --hemi lh --meas Pet --out lh.your.pet.00.mgh. This
modification was made from the thickness thickness data.
https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/GroupAnalysis


You need to specify the pet input data. See for example the fMRI
analysis tutorial here

http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MultiModalFmriGroup_freeview




2) if both the thickness and pet maps have the same contrast
matrices, can I use one of them as my matrix for multimodal
analysis?

No, you will need to as a regressor for the PVR. The way it works
is that a design matrix is created from the FSGD. Then when glmfit
goes to analyze a particular voxel, it gets the PVR data from that
voxel and adds it as a column to the design matrix. So you need to
include that column in your contrast matrix.


3)What if they don't share similar contrast matrices, Can i still
perform multimodal analysis? This is because contrast matrices
are based on regressors and class in fsgd files.

I don't know. It is your data and you are doing the analysis, so
you will know what you are trying to test much better than me!



Best,
Paul

On Wed, Mar 22, 2017 at 1:11 PM, Douglas Greve
> wrote:



On 3/22/17 11:02 AM, miracoo...@gmail.com
 wrote:



Sent from my BlackBerry 10 smartphone.
*From: *miracle ozzoude 

*Sent: *Tuesday, March 21, 2017 7:41 PM
*To: *Douglas N Greve
*Subject: *PETsurfer surface based analysis


Hello,
I am working through the PETsurfer surface based analysis
and i have couple of question
a) Since the procedure is the same as surface based analysis
for cortical thickness except mri_vol2surf, Can I use the
procedure for thickness?

Yes

b) What is the difference between mris_preproc and
mri_concat. If I use mris_preproc, do I also need to use
mri_concat? Also, can I use mris_preproc instead of mri_concat?

mris_preproc is a fronend for mri_concat that makes running
mri_concat easier. You can use one or the other but not both

c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?

Yes, they use the same underlying code for surface smoothing.

d) While researching PETsurfer surface based 

Re: [Freesurfer] contrast between two independent CTh maps?

2017-03-22 Thread Uquillas, Federico D'Oleire
Hi Doug,
What do you mean by combining all the data (and how would you suggest we go 
about this?)?
And also how does one do a two-group test? 

Thank you!

Best,

Fred

> On Mar 22, 2017, at 16:51, Uquillas, Federico D'Oleire 
>  wrote:
> 
> Dear FreeSurfer experts,
> 
> I’ve been trying to find a way to get a map of the difference between two 
> independent CTh association maps but can’t seem to find a solution.
> 
> I have two maps of independent groups (one is N=15, the other N=20) I would 
> like to compare. Is there maybe a way to do a sig1.mgh – sig2.mgh and then 
> visualize this? Not sure how to go about it. I’m basically trying to 
> visualize what is left over after subtracting one map from the other 
> (independent samples t-test of sorts).
> 
> Thank you so much for any help you may be able to provide!
> 
> Best regards,
> 
> Fred
> 
> 
> ___
> 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] contrast between two independent CTh maps?

2017-03-22 Thread Douglas Greve
when you ran mri_glmfit, you had to give it an input (eg, --y 
group1.mgh) with all the subjects from group 1. You would have a similar 
file for group2. You would then combine them into one file, eg

mri_concat group1.mgh group2.mgh --o group1-and2.mgh

you would then create a new FSGD file for both groups, then run 
mri_glmfit --y goup1-and2.mgh ...


On 3/22/17 4:55 PM, Uquillas, Federico D'Oleire wrote:
> Hi Doug,
> What do you mean by combining all the data (and how would you suggest we go 
> about this?)?
> And also how does one do a two-group test?
>
> Thank you!
>
> Best,
>
> Fred
>
>> On Mar 22, 2017, at 16:51, Uquillas, Federico D'Oleire 
>>  wrote:
>>
>> Dear FreeSurfer experts,
>>
>> I’ve been trying to find a way to get a map of the difference between two 
>> independent CTh association maps but can’t seem to find a solution.
>>
>> I have two maps of independent groups (one is N=15, the other N=20) I would 
>> like to compare. Is there maybe a way to do a sig1.mgh – sig2.mgh and then 
>> visualize this? Not sure how to go about it. I’m basically trying to 
>> visualize what is left over after subtracting one map from the other 
>> (independent samples t-test of sorts).
>>
>> Thank you so much for any help you may be able to provide!
>>
>> Best regards,
>>
>> Fred
>>
>>
>> ___
>> 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] Re. display SPM results on inflated surface?

2017-03-22 Thread Douglas Greve
Just map your mni152-spm volume to the surface with mri_vol2surf and 
--regheader, eg,

mri_vol2surf --mov yourspm152.nii.gz --hemi lh --projfrac 0.5 --s mni152 
--o lh.yourspm152.nii.gz

then visualize

tksurferfv mni152 lh inflated -ov lh.yourmni152.nii.gz


On 3/22/17 3:46 PM, Schoot, Lotte wrote:
> Thanks so much, I appreciate the help.
> However, I am not sure what I am supposed to do with the output of the 
> recon-all process.
> Can I simply use the .dat file that is outputted there in MRI_vol2surf?
>
> Lotte
>
>
> Date: Wed, 22 Mar 2017 13:01:42 -0400
> From: Douglas Greve <gr...@nmr.mgh.harvard.edu>
> Subject: Re: [Freesurfer] display SPM results on inflated surface?
> To: freesurfer@nmr.mgh.harvard.edu
> Message-ID: <41134c50-bb0b-792c-c52b-b6850bcec...@nmr.mgh.harvard.edu>
> Content-Type: text/plain; charset="windows-1252"
>
> If you have the T1 for the mni152 (which is somewhere in the bowels of the 
> spm distribution), then you just run recon-all on it. I've done this for 
> myself, so you can just download the result (which I have not checked 
> thoroughly) from here 
> https://gate.nmr.mgh.harvard.edu/safelinks/greve/mni152.tar.gz
>
>
>
> On 3/21/17 1:27 PM, Schoot, Lotte wrote:
>> Hi Doug and others,
>>
>> A while ago, I got this reply to my question below (thanks!). I tried to 
>> look in to it, but I am a bit confused (probably because I am very new to 
>> Freesurfer).
>> My results are on the MNI 152, but I don't understand what you mean with 
>> 'run the mni152 through freesurfer'. Is this the process to get the 
>> register.dat file that is required in mri_vol2surf?
>> What would you recommend to get the register.dat file? Is it possible to use 
>> bbregister for that? I have tried this, but I don't know whether it is 
>> correct:
>>
>> bbregister --s fsaverage --mov con_0001.nii --init-spm --reg
>> register.dat --bold
>>
>>
>> Thanks!
>> Lotte
>>
>>
>>> If your results are on the MNI152, you can run the mni152 through
>>> freesurfer, then use mri_vol2surf to map the data to the surface then
>>> view it with freeview (or tksurfer). You should not confuse this with
>>> doing the fMRI analysis on the surface. You will not have the
>>> benefits of surface-based analysis
>>
>> On 02/15/2017 03:37 PM, Schoot, Lotte wrote:
>>> /Hi all, />//>/I was wondering if you knew of a way to display SPM
>>> results onto the />/inflated surface in Freesurfer. />//>/I have
>>> tried using SurfRend but there seem to be problems which might />/be
>>> due to the fact the results are obtained with SPM12 and SurfRend
>>> />/was designed to work with SPM5. />//>/Thanks, />/Lotte
>>> />//>//>/___
>>> />/Freesurfer mailing list />/Freesurfer at nmr.mgh.harvard.edu
>> <https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer>
>> />/https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer /
>> --
>> Douglas N. Greve, Ph.D.
>> MGH-NMR Center
>> greve at nmr.mgh.harvard.edu
>> <https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer>
>> Phone Number: 617-724-2358
>> Fax: 617-726-7422
>>
>>
>> ___
>> Freesurfer mailing list
>> Freesurfer@nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
> -- next part --
> An HTML attachment was scrubbed...
> URL: 
> http://mail.nmr.mgh.harvard.edu/pipermail/freesurfer/attachments/20170322/8c03908e/attachment-0001.html
>
> --
>
> ___
> 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] contrast between two independent CTh maps?

2017-03-22 Thread Douglas Greve
the easiest thing to do is to combine all the data together and do a two 
group test



On 3/22/17 4:49 PM, Uquillas, Federico D'Oleire wrote:

Dear FreeSurfer experts,

I’ve been trying to find a way to get a map of the difference between 
two independent CTh association maps but can’t seem to find a solution.


I have two maps of independent groups (one is N=15, the other N=20) I 
would like to compare. Is there maybe a way to do a sig1.mgh – 
sig2.mgh and then visualize this? Not sure how to go about it. I’m 
basically trying to visualize what is left over after subtracting one 
map from the other (independent samples t-test of sorts).


Thank you so much for any help you may be able to provide!

Best regards,

Fred




___
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] contrast between two independent CTh maps?

2017-03-22 Thread Uquillas, Federico D'Oleire
Dear FreeSurfer experts,

I’ve been trying to find a way to get a map of the difference between two 
independent CTh association maps but can’t seem to find a solution.

I have two maps of independent groups (one is N=15, the other N=20) I would 
like to compare. Is there maybe a way to do a sig1.mgh – sig2.mgh and then 
visualize this? Not sure how to go about it. I’m basically trying to visualize 
what is left over after subtracting one map from the other (independent samples 
t-test of sorts).

Thank you so much for any help you may be able to provide!

Best regards,

Fred


___
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] Fw: PETsurfer surface based analysis

2017-03-22 Thread miracle ozzoude
Never mind Doug. I was able to solve the problem.
Best,
Paul

On Wed, Mar 22, 2017 at 3:34 PM, miracle ozzoude 
wrote:

> Thank you Doug. I am trying to perform pvc for my pet data based on the
> tutorial however, I keep getting this error:
>
> " mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg
> C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz
> --default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o
> C6_01_001_140813.gtmpvc.output
> Loading input C6_01_001_140813_PET_AV45_coreg_avg.nii.gz
>   done loading input 1 frames
>
> $Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman Exp $
> setenv SUBJECTS_DIR /net/synapse/nt/paul/Analysis
> cd /net/synapse/nt/paul/Analysis
> mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg
> C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz
> --default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o
> C6_01_001_140813.gtmpvc.output
> sysname  Linux
> hostname neuron2.sri.utoronto.ca
> machine  x86_64
> user paul
> vgthresh   0.001000
> nReplace   18
> 0. 0. 0. 0. 0. 0.
> 24 avail.processors, using 1
> Creating output directory C6_01_001_140813.gtmpvc.output
> Loading seg for gtm /net/synapse/nt/paul/Analysis/
> C6_01_001_140813/mri/gtmseg.mgz
> Loading seg ctab /net/synapse/nt/paul/Analysis/
> C6_01_001_140813/mri/gtmseg.ctab
> Reading /net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta
> Replacing 18
> Pruning ctab
> ERROR: CTABpruneCTab(): ctab does not have segid 192
> Checking tissue type
> Segmentation fault"
>
> Step 1 and 2 were successful. Please can you tell me what is wrong. Thanks
> Best,
> Paul
>
>
>
> On Wed, Mar 22, 2017 at 3:07 PM, Douglas Greve 
> wrote:
>
>>
>>
>> On 3/22/17 2:02 PM, miracle ozzoude wrote:
>>
>> Hello Doug,
>> Thank you for the detailed reply. I do have other questions.
>>
>> 1) Can you confirm if this is the correct use of mris_preproc for
>> Uncached PET data. mris_preproc --fsgd your.fsgd --target fsaverage --hemi
>> lh --meas Pet --out lh.your.pet.00.mgh. This modification was made from the
>> thickness thickness data. https://surfer.nmr.mgh.h
>> arvard.edu/fswiki/FsTutorial/GroupAnalysis
>>
>> You need to specify the pet input data. See for example the fMRI analysis
>> tutorial here http://surfer.nmr.mgh.harvard.
>> edu/fswiki/FsTutorial/MultiModalFmriGroup_freeview
>>
>>
>> 2) if both the thickness and pet maps have the same contrast matrices,
>> can I use one of them as my matrix for multimodal analysis?
>>
>> No, you will need to as a regressor for the PVR. The way it works is that
>> a design matrix is created from the FSGD. Then when glmfit goes to analyze
>> a particular voxel, it gets the PVR data from that voxel and adds it as a
>> column to the design matrix. So you need to include that column in your
>> contrast matrix.
>>
>>
>> 3)What if they don't share similar contrast matrices, Can i still perform
>> multimodal analysis? This is because contrast matrices are based on
>> regressors and class in fsgd files.
>>
>> I don't know. It is your data and you are doing the analysis, so you will
>> know what you are trying to test much better than me!
>>
>>
>> Best,
>> Paul
>>
>> On Wed, Mar 22, 2017 at 1:11 PM, Douglas Greve > > wrote:
>>
>>>
>>>
>>> On 3/22/17 11:02 AM, miracoo...@gmail.com wrote:
>>>
>>>
>>>
>>> Sent from my BlackBerry 10 smartphone.
>>> *From: *miracle ozzoude  
>>> *Sent: *Tuesday, March 21, 2017 7:41 PM
>>> *To: *Douglas N Greve
>>> *Subject: *PETsurfer surface based analysis
>>>
>>> Hello,
>>> I am working through the PETsurfer surface based analysis and i have
>>> couple of question
>>> a) Since the procedure is the same as surface based analysis for
>>> cortical thickness except mri_vol2surf, Can I use the procedure for
>>> thickness?
>>>
>>> Yes
>>>
>>> b) What is the difference between mris_preproc and mri_concat. If I use
>>> mris_preproc, do I also need to use mri_concat? Also, can I use
>>> mris_preproc instead of mri_concat?
>>>
>>> mris_preproc is a fronend for mri_concat that makes running mri_concat
>>> easier. You can use one or the other but not both
>>>
>>> c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?
>>>
>>> Yes, they use the same underlying code for surface smoothing.
>>>
>>> d) While researching PETsurfer surface based analysis in the forum, I
>>> came across multiple trends that used the "--projfrac" flag in both
>>> mri_vol2surf command and mris_preproc command. At what stage should I
>>> include this flag and why?
>>>
>>> At which the time you run the program. If you are using mri_vol2surf
>>> prior to mris_preproc, then you would not include it in mris_preproc.
>>>
>>> e) If I want to perform a multimodal analysis using thickness or
>>> Surface area, Can anyone confirm if this is the correct steps.
>>>
>>>- Perform surface base analysis for 

[Freesurfer] Petsurfer mri_gtmpvc error

2017-03-22 Thread Agrawal, Shubhi (NIH/NINDS) [E]
Hi,
I am trying to run SGTM partial volume correction in Petsurfer by following the 
tutorial on the wiki. Every step preceding mri_gtmpvc has been successful and 
the coregistration looks good.
the last step,  mri_gtmpvc command gives an error-
Segmentation fault (core dumped)

This is the information from the log file-

$Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman Exp $
setenv SUBJECTS_DIR /home/agrawals8/freesurfer/subjects
cd /home/agrawals8/freesurfer/subjects/NIH047
mri_gtmpvc --i mri/OutBrick_run_008.nii --reg mri/template.reg.lta --psf 6 
--seg mri/gtmseg.mgz --default-seg-merge --auto-mask FWHM .01 --o gtmpvc.output
sysname  Linux
hostname ndsw-eeg-dreifuss.ninds.nih.gov
machine  x86_64
user agrawals8
vgthresh   0.001000
nReplace   18
0. 0. 0. 0. 0. 0.
Loading seg for gtm mri/gtmseg.mgz
Loading ctab mri/gtmseg.ctab
Reading mri/gtmseg.lta
MEM: Size 479268  Peak: 955936   RSS: 339984  Data: 338176  Stk: 92
MEM: Size 570956  Peak: 955936   RSS: 431688  Data: 429864  Stk: 92
Data load time 25.9 sec
nmask = 2680458, nsegs = 100, excluding segid=0
FWHM: 6 6 6
Std:  2.54797 2.54797 2.54797
nPad 13, PadThresh 0.0001
Segmentations used for rescaling
 174 Pons
MEM: Size 422356  Peak: 955936   RSS: 283024  Data: 281264  Stk: 92

___
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] Re. display SPM results on inflated surface?

2017-03-22 Thread Schoot, Lotte
Thanks so much, I appreciate the help. 
However, I am not sure what I am supposed to do with the output of the 
recon-all process.
Can I simply use the .dat file that is outputted there in MRI_vol2surf? 

Lotte


Date: Wed, 22 Mar 2017 13:01:42 -0400
From: Douglas Greve <gr...@nmr.mgh.harvard.edu>
Subject: Re: [Freesurfer] display SPM results on inflated surface?
To: freesurfer@nmr.mgh.harvard.edu
Message-ID: <41134c50-bb0b-792c-c52b-b6850bcec...@nmr.mgh.harvard.edu>
Content-Type: text/plain; charset="windows-1252"

If you have the T1 for the mni152 (which is somewhere in the bowels of the spm 
distribution), then you just run recon-all on it. I've done this for myself, so 
you can just download the result (which I have not checked thoroughly) from 
here https://gate.nmr.mgh.harvard.edu/safelinks/greve/mni152.tar.gz



On 3/21/17 1:27 PM, Schoot, Lotte wrote:
> Hi Doug and others,
>
> A while ago, I got this reply to my question below (thanks!). I tried to look 
> in to it, but I am a bit confused (probably because I am very new to 
> Freesurfer).
> My results are on the MNI 152, but I don't understand what you mean with 'run 
> the mni152 through freesurfer'. Is this the process to get the register.dat 
> file that is required in mri_vol2surf?
> What would you recommend to get the register.dat file? Is it possible to use 
> bbregister for that? I have tried this, but I don't know whether it is 
> correct:
>
> bbregister --s fsaverage --mov con_0001.nii --init-spm --reg 
> register.dat --bold
>
>   
> Thanks!
> Lotte
>
>
> >If your results are on the MNI152, you can run the mni152 through 
> >freesurfer, then use mri_vol2surf to map the data to the surface then 
> >view it with freeview (or tksurfer). You should not confuse this with 
> >doing the fMRI analysis on the surface. You will not have the 
> >benefits of surface-based analysis
>
>
> On 02/15/2017 03:37 PM, Schoot, Lotte wrote:
> >/Hi all, />//>/I was wondering if you knew of a way to display SPM 
> >results onto the />/inflated surface in Freesurfer. />//>/I have 
> >tried using SurfRend but there seem to be problems which might />/be 
> >due to the fact the results are obtained with SPM12 and SurfRend 
> >/>/was designed to work with SPM5. />//>/Thanks, />/Lotte 
> >/>//>//>/___ 
> >/>/Freesurfer mailing list />/Freesurfer at nmr.mgh.harvard.edu
> <https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer> 
> />/https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer /
> --
> Douglas N. Greve, Ph.D.
> MGH-NMR Center
> greve at nmr.mgh.harvard.edu
> <https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer>
> Phone Number: 617-724-2358
> Fax: 617-726-7422
>
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

-- next part --
An HTML attachment was scrubbed...
URL: 
http://mail.nmr.mgh.harvard.edu/pipermail/freesurfer/attachments/20170322/8c03908e/attachment-0001.html
 

--

___
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] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR DTI

2017-03-22 Thread Yendiki, Anastasia
This is the wrapper script that it’ll call, the input formats are explained 
here:

http://surfer.nmr.mgh.harvard.edu/fswiki/epidewarp.fsl

From: 
>
 on behalf of VA Research 
>
Reply-To: Freesurfer support list 
>
Date: Wednesday, March 22, 2017 at 2:29 PM
To: Freesurfer support list 
>
Subject: Re: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR 
DTI

do I have to prepare the mag file and make it radians/s for FreeSurfer?

like you do in FSL? with command fsl_prepare_fieldmap

On Wed, Mar 22, 2017 at 7:35 AM, Yendiki, Anastasia 
> wrote:
Hi Joseph – You can use fugue as part of the preprocessing in TRACULA. Search 
for items with “b0” in the example config file:
https://surfer.nmr.mgh.harvard.edu/fswiki/dmrirc

Best,
a.y

From: 
>
 on behalf of VA Research 
>
Reply-To: Freesurfer support list 
>
Date: Tuesday, March 21, 2017 at 9:19 PM
To: Freesurfer support list 
>, FSL - 
FMRIB's Software Library >
Subject: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR DTI

Hello FSL and FS pros,

I am trying to pre process DW images but am not sure how to unwarp images.

We are using Siemens Skyra 3T and output fieldmaps;

2 files output from the scanner;
the first file contains two magnitude files in one
the second file contains the single phase difference image

---
FSL
---


through FSL we have run
eddy correct, bet the magnitude file, and run fsl prepare fieldmap
(example code below)

I am not sure how to use the prelude and FUGUE command and am unclear on their 
inputs/outputs

Does anyone in FSL land have a clear tutorial of how to utilize these tools?

for example, given my type of fieldmaps do i need to use prelude?

later through FSL stream we would like to complete
bet preprocessed DW images, dtifit, bedpostx


FREESURFERS

I have read over the TRACULA requirements and how to edit the configuration 
files.

There is mention of eddy current correction that is available through tracula 
but nothing mentioned for dealing with the warping issue.

Does anyone in freesurfer land have any suggestions on how to tackle this as a 
part of the tracula data stream?


Any input will be appreciated,
Thanks so much

Joseph Veliz
Brentwood Biomedical Research
VA Hospital West Los Angeles



example

#Eddy correction
eddy_correct ${name}_dti.nii.gz 
/Users/seahorse/Studies/NN/DTI/${name}/${name}DTI_eddy.nii.gz 0

#BET fieldmap mag super tight; exclude all non brain voxels
bet 10001_dtiFMmag1mag2.nii.gz 
/Users/seahorse/Studies/NN/DTI/10001/10001dtimags_brain.nii.gz -F -m -f 0.85

#generate fieldmap in rad/s for FEAT or FUGUE
fsl_prepare_fieldmap SIEMENS 10001_dtiFMphase.nii.gz 10001dtimags_brain.nii.gz 
fmap_rads 2.46

#Prelude
prelude -c data --unwrap=result
prelude --complex=data -u result

#FUGUE Utility for Geometrically Unwarping EPIs; performs unwarping of an EPI 
image based on fieldmap data
fugue -i epi -p unwrappedphase --dwell=dwelltime --asym=asymtime -s 0.5 -u 
result
fugue -i epi --dwell=dwelltime --loadfmap=fieldmap -u result





___
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] Fw: PETsurfer surface based analysis

2017-03-22 Thread miracle ozzoude
Thank you Doug. I am trying to perform pvc for my pet data based on the
tutorial however, I keep getting this error:

" mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg
C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz
--default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o
C6_01_001_140813.gtmpvc.output
Loading input C6_01_001_140813_PET_AV45_coreg_avg.nii.gz
  done loading input 1 frames

$Id: mri_gtmpvc.c,v 1.69.2.1 2016/07/08 19:50:25 zkaufman Exp $
setenv SUBJECTS_DIR /net/synapse/nt/paul/Analysis
cd /net/synapse/nt/paul/Analysis
mri_gtmpvc --i C6_01_001_140813_PET_AV45_coreg_avg.nii.gz --reg
C6_01_001_140813_PET_AV45_coreg_avg.reg.lta --psf 6mm --seg gtmseg.mgz
--default-seg-merge --auto-mask PSF .01 --mgx 0.01 --o
C6_01_001_140813.gtmpvc.output
sysname  Linux
hostname neuron2.sri.utoronto.ca
machine  x86_64
user paul
vgthresh   0.001000
nReplace   18
0. 0. 0. 0. 0. 0.
24 avail.processors, using 1
Creating output directory C6_01_001_140813.gtmpvc.output
Loading seg for gtm
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.mgz
Loading seg ctab
/net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.ctab
Reading /net/synapse/nt/paul/Analysis/C6_01_001_140813/mri/gtmseg.lta
Replacing 18
Pruning ctab
ERROR: CTABpruneCTab(): ctab does not have segid 192
Checking tissue type
Segmentation fault"

Step 1 and 2 were successful. Please can you tell me what is wrong. Thanks
Best,
Paul



On Wed, Mar 22, 2017 at 3:07 PM, Douglas Greve 
wrote:

>
>
> On 3/22/17 2:02 PM, miracle ozzoude wrote:
>
> Hello Doug,
> Thank you for the detailed reply. I do have other questions.
>
> 1) Can you confirm if this is the correct use of mris_preproc for Uncached
> PET data. mris_preproc --fsgd your.fsgd --target fsaverage --hemi lh --meas
> Pet --out lh.your.pet.00.mgh. This modification was made from the thickness
> thickness data. https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/
> GroupAnalysis
>
> You need to specify the pet input data. See for example the fMRI analysis
> tutorial here http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/
> MultiModalFmriGroup_freeview
>
>
> 2) if both the thickness and pet maps have the same contrast matrices, can
> I use one of them as my matrix for multimodal analysis?
>
> No, you will need to as a regressor for the PVR. The way it works is that
> a design matrix is created from the FSGD. Then when glmfit goes to analyze
> a particular voxel, it gets the PVR data from that voxel and adds it as a
> column to the design matrix. So you need to include that column in your
> contrast matrix.
>
>
> 3)What if they don't share similar contrast matrices, Can i still perform
> multimodal analysis? This is because contrast matrices are based on
> regressors and class in fsgd files.
>
> I don't know. It is your data and you are doing the analysis, so you will
> know what you are trying to test much better than me!
>
>
> Best,
> Paul
>
> On Wed, Mar 22, 2017 at 1:11 PM, Douglas Greve 
> wrote:
>
>>
>>
>> On 3/22/17 11:02 AM, miracoo...@gmail.com wrote:
>>
>>
>>
>> Sent from my BlackBerry 10 smartphone.
>> *From: *miracle ozzoude  
>> *Sent: *Tuesday, March 21, 2017 7:41 PM
>> *To: *Douglas N Greve
>> *Subject: *PETsurfer surface based analysis
>>
>> Hello,
>> I am working through the PETsurfer surface based analysis and i have
>> couple of question
>> a) Since the procedure is the same as surface based analysis for cortical
>> thickness except mri_vol2surf, Can I use the procedure for thickness?
>>
>> Yes
>>
>> b) What is the difference between mris_preproc and mri_concat. If I use
>> mris_preproc, do I also need to use mri_concat? Also, can I use
>> mris_preproc instead of mri_concat?
>>
>> mris_preproc is a fronend for mri_concat that makes running mri_concat
>> easier. You can use one or the other but not both
>>
>> c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?
>>
>> Yes, they use the same underlying code for surface smoothing.
>>
>> d) While researching PETsurfer surface based analysis in the forum, I
>> came across multiple trends that used the "--projfrac" flag in both
>> mri_vol2surf command and mris_preproc command. At what stage should I
>> include this flag and why?
>>
>> At which the time you run the program. If you are using mri_vol2surf
>> prior to mris_preproc, then you would not include it in mris_preproc.
>>
>> e) If I want to perform a multimodal analysis using thickness or
>> Surface area, Can anyone confirm if this is the correct steps.
>>
>>- Perform surface base analysis for cortical thickness from step 1
>>(mris_preproc) to correction for multiple comparison
>>- Perform PET surface based analysis from step 1 (gtmseg) to step 5.
>>While conducting mri_glmfit, include the smoothed thickness map
>>(?h.thickness.10B.mgh) as pvr (per vertex regressor)
>>- e.g. mri_glmfit 

Re: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR DTI

2017-03-22 Thread VA Research
do I have to prepare the mag file and make it radians/s for FreeSurfer?

like you do in FSL? with command fsl_prepare_fieldmap

On Wed, Mar 22, 2017 at 7:35 AM, Yendiki, Anastasia <
ayend...@mgh.harvard.edu> wrote:

> Hi Joseph – You can use fugue as part of the preprocessing in TRACULA.
> Search for items with “b0” in the example config file:
> https://surfer.nmr.mgh.harvard.edu/fswiki/dmrirc
>
> Best,
> a.y
>
> From:  on behalf of VA Research <
> n.n.di.methyl.tryptami...@gmail.com>
> Reply-To: Freesurfer support list 
> Date: Tuesday, March 21, 2017 at 9:19 PM
> To: Freesurfer support list , FSL -
> FMRIB's Software Library 
> Subject: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING
> FOR DTI
>
> Hello FSL and FS pros,
>
> I am trying to pre process DW images but am not sure how to unwarp images.
>
> We are using Siemens Skyra 3T and output fieldmaps;
>
> 2 files output from the scanner;
> the first file contains two magnitude files in one
> the second file contains the single phase difference image
>
> 
> ---
> FSL
> 
> ---
>
>
> through FSL we have run
> eddy correct, bet the magnitude file, and run fsl prepare fieldmap
> (example code below)
>
> I am not sure how to use the prelude and FUGUE command and am unclear on
> their inputs/outputs
>
> Does anyone in FSL land have a clear tutorial of how to utilize these
> tools?
>
> for example, given my type of fieldmaps do i need to use prelude?
>
> later through FSL stream we would like to complete
> bet preprocessed DW images, dtifit, bedpostx
>
> 
> 
> FREESURFERS
> 
> 
> I have read over the TRACULA requirements and how to edit the
> configuration files.
>
> There is mention of eddy current correction that is available through
> tracula but nothing mentioned for dealing with the warping issue.
>
> Does anyone in freesurfer land have any suggestions on how to tackle this
> as a part of the tracula data stream?
>
>
> Any input will be appreciated,
> Thanks so much
>
> Joseph Veliz
> Brentwood Biomedical Research
> VA Hospital West Los Angeles
>
>
> 
> 
> example
> 
> 
> #Eddy correction
> eddy_correct ${name}_dti.nii.gz /Users/seahorse/Studies/NN/
> DTI/${name}/${name}DTI_eddy.nii.gz 0
>
> #BET fieldmap mag super tight; exclude all non brain voxels
> bet 10001_dtiFMmag1mag2.nii.gz /Users/seahorse/Studies/NN/
> DTI/10001/10001dtimags_brain.nii.gz -F -m -f 0.85
>
> #generate fieldmap in rad/s for FEAT or FUGUE
> fsl_prepare_fieldmap SIEMENS 10001_dtiFMphase.nii.gz
> 10001dtimags_brain.nii.gz fmap_rads 2.46
>
> #Prelude
> prelude -c data --unwrap=result
> prelude --complex=data -u result
>
> #FUGUE Utility for Geometrically Unwarping EPIs; performs unwarping of an
> EPI image based on fieldmap data
> fugue -i epi -p unwrappedphase --dwell=dwelltime --asym=asymtime -s
> 0.5 -u result
> fugue -i epi --dwell=dwelltime --loadfmap=fieldmap -u result
>
>
>
>
>
> ___
> 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] Fw: PETsurfer surface based analysis

2017-03-22 Thread Douglas Greve



On 3/22/17 2:02 PM, miracle ozzoude wrote:

Hello Doug,
Thank you for the detailed reply. I do have other questions.

1) Can you confirm if this is the correct use of mris_preproc for 
Uncached PET data. mris_preproc --fsgd your.fsgd --target fsaverage 
--hemi lh --meas Pet --out lh.your.pet.00.mgh. This modification was 
made from the thickness thickness data. 
https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/GroupAnalysis
You need to specify the pet input data. See for example the fMRI 
analysis tutorial here 
http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/MultiModalFmriGroup_freeview


2) if both the thickness and pet maps have the same contrast matrices, 
can I use one of them as my matrix for multimodal analysis?
No, you will need to as a regressor for the PVR. The way it works is 
that a design matrix is created from the FSGD. Then when glmfit goes to 
analyze a particular voxel, it gets the PVR data from that voxel and 
adds it as a column to the design matrix. So you need to include that 
column in your contrast matrix.


3)What if they don't share similar contrast matrices, Can i still 
perform multimodal analysis? This is because contrast matrices are 
based on regressors and class in fsgd files.
I don't know. It is your data and you are doing the analysis, so you 
will know what you are trying to test much better than me!


Best,
Paul

On Wed, Mar 22, 2017 at 1:11 PM, Douglas Greve 
> wrote:




On 3/22/17 11:02 AM, miracoo...@gmail.com
 wrote:



Sent from my BlackBerry 10 smartphone.
*From: *miracle ozzoude 

*Sent: *Tuesday, March 21, 2017 7:41 PM
*To: *Douglas N Greve
*Subject: *PETsurfer surface based analysis


Hello,
I am working through the PETsurfer surface based analysis and i
have couple of question
a) Since the procedure is the same as surface based analysis for
cortical thickness except mri_vol2surf, Can I use the procedure
for thickness?

Yes

b) What is the difference between mris_preproc and mri_concat. If
I use mris_preproc, do I also need to use mri_concat? Also, can I
use mris_preproc instead of mri_concat?

mris_preproc is a fronend for mri_concat that makes running
mri_concat easier. You can use one or the other but not both

c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?

Yes, they use the same underlying code for surface smoothing.

d) While researching PETsurfer surface based analysis in the
forum, I came across multiple trends that used the "--projfrac"
flag in both mri_vol2surf command and mris_preproc command. At
what stage should I include this flag and why?

At which the time you run the program. If you are using
mri_vol2surf prior to mris_preproc, then you would not include it
in mris_preproc.

e) If I want to perform a multimodal analysis using thickness
or Surface area, Can anyone confirm if this is the correct
steps.

  * Perform surface base analysis for cortical thickness from
step 1 (mris_preproc) to correction for multiple comparison
  * Perform PET surface based analysis from step 1 (gtmseg) to
step 5. While conducting mri_glmfit, include the smoothed
thickness map (?h.thickness.10B.mgh) as pvr (per vertex
regressor)
  * e.g. mri_glmfit --y lh.pet.10.mgh --fsgd your.fsgd dods --pvr
lh.thickness.10B.mgh --C contrast.mtx --surf fsaverage lh
--cortex --glmdir pvr.lh.pet.thickness.glmdir
  * Lastly, build a new monte carlo correction for multiple
comparison.


That looks right. You should not need to build a new MC, at least
based on that command line

Thank you
Best,
Paul



___
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] Hippocampal Subfields Posterior Probability

2017-03-22 Thread Bharadwaj, Pradyumna - (prad)
Great! Thank you for taking that time to clarify that.


-Prad


From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Iglesias Gonzalez, 
Eugenio 
Sent: Wednesday, March 22, 2017 11:34 AM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Hi again, Prad,
In that case, you don’t need the discrete segmentations. Just look at the 
posteriors directly.
Cheers,
/Eugenio


Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:26, Bharadwaj, Pradyumna - (prad) 
> wrote:

Sorry about that. I should have stated what I was trying to do. I'm trying to 
see if the posterior probability changes when using a certain combination of 
the different T1 and T2 weighted scans that we have in our lab. I thought using 
the binary masks to extract the probabilities as they were the final volumes of 
the subfields would be a better way.


As an example,
when I extract some basic stats on the left CA1 posteriors for one subject, 
these are the values I get,
range: 0.15 to 1, with a mean (sd) of 0.245258 (0.335046);

and , when I use the binary mask of the CA1 from lh.hippoSfLabels-T1.v10.mgz 
and then extract the same basic stats, I get,

range: 0.247501 to 1, with a mean (sd) of 0.770796 (0.175752)

Is my approach incorrect ?

Thanks!,
-Prad



From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Wednesday, March 22, 2017 11:06 AM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Hi Prad,
The final probabilities are in the posterior files. There’s no need to binarize 
?h.hippoSfLabels if what you’re interested in is the soft segmentations.
Or maybe I’m missing something? What are you exactly trying to do?
Cheers,
/E

Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:02, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hi Dr. Iglesias,

Thank you for the overview of the labeling rules. I have also tried setting 
WRITE_POSTERIORS to 1 to write out the posteriors.

I had a follow up question about obtaining the probabilities for the final 
subfield labels as available in the ?h.hippoSfLabels-T1.v10.mgz

I use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain binary masks for 
each subfield, and then used these masks with their respective posteriors to 
obtain the distributions.

Is this procedure correct or is there a better way ?

Thanks,
-Prad

From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Tuesday, March 21, 2017 2:22 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Dear Prad,
There is a “secret” way of getting the posteriors. You need to set the 
environment variable WRITE_POSTERIORS to 1 before you call recon-all.
In (t)csh:
setenv WRITE_POSTERIORS 1
In bash:
export WRITE_POSTERIORS=1
And then call recon-all -hippocampal-subfields-T1(T2) as usual.

The discrete segmentation picks, for each voxel, the most likely label. The 
posterior of this label might or might not be above 0.5. For instance, if a 
voxel has p=0.4 of being CA1, p=0.3 of being background, and p=0.3 of being 
fimbria, it will be labeled as CA1 (even though p<0.5 for such subfield). Some 
people seem to prefer a 2-stage approach, in which a hippocampal mask is first 
created by selecting the voxels for which p(background)<0.5, and then each 
voxel within that mask is colored with the most likely subfield at that 
location.

I hope this helps!

Cheers,

/Eugenio



Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 21 Mar 2017, at 20:09, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hello Dr. Iglesias,

I'm currently examining the distributions of the posterior probabilities of the 
different hippocampal subfields, and I'm interested in obtaining the 
probability distribution images for the subfields that correspond to the 

Re: [Freesurfer] Hippocampal Subfields Posterior Probability

2017-03-22 Thread Iglesias Gonzalez, Eugenio
Hi again, Prad,
In that case, you don’t need the discrete segmentations. Just look at the 
posteriors directly.
Cheers,
/Eugenio


Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:26, Bharadwaj, Pradyumna - (prad) 
> wrote:

Sorry about that. I should have stated what I was trying to do. I'm trying to 
see if the posterior probability changes when using a certain combination of 
the different T1 and T2 weighted scans that we have in our lab. I thought using 
the binary masks to extract the probabilities as they were the final volumes of 
the subfields would be a better way.


As an example,
when I extract some basic stats on the left CA1 posteriors for one subject, 
these are the values I get,
range: 0.15 to 1, with a mean (sd) of 0.245258 (0.335046);

and , when I use the binary mask of the CA1 from lh.hippoSfLabels-T1.v10.mgz 
and then extract the same basic stats, I get,

range: 0.247501 to 1, with a mean (sd) of 0.770796 (0.175752)

Is my approach incorrect ?

Thanks!,
-Prad



From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Wednesday, March 22, 2017 11:06 AM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Hi Prad,
The final probabilities are in the posterior files. There’s no need to binarize 
?h.hippoSfLabels if what you’re interested in is the soft segmentations.
Or maybe I’m missing something? What are you exactly trying to do?
Cheers,
/E

Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:02, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hi Dr. Iglesias,

Thank you for the overview of the labeling rules. I have also tried setting 
WRITE_POSTERIORS to 1 to write out the posteriors.

I had a follow up question about obtaining the probabilities for the final 
subfield labels as available in the ?h.hippoSfLabels-T1.v10.mgz

I use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain binary masks for 
each subfield, and then used these masks with their respective posteriors to 
obtain the distributions.

Is this procedure correct or is there a better way ?

Thanks,
-Prad

From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Tuesday, March 21, 2017 2:22 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Dear Prad,
There is a “secret” way of getting the posteriors. You need to set the 
environment variable WRITE_POSTERIORS to 1 before you call recon-all.
In (t)csh:
setenv WRITE_POSTERIORS 1
In bash:
export WRITE_POSTERIORS=1
And then call recon-all -hippocampal-subfields-T1(T2) as usual.

The discrete segmentation picks, for each voxel, the most likely label. The 
posterior of this label might or might not be above 0.5. For instance, if a 
voxel has p=0.4 of being CA1, p=0.3 of being background, and p=0.3 of being 
fimbria, it will be labeled as CA1 (even though p<0.5 for such subfield). Some 
people seem to prefer a 2-stage approach, in which a hippocampal mask is first 
created by selecting the voxels for which p(background)<0.5, and then each 
voxel within that mask is colored with the most likely subfield at that 
location.

I hope this helps!

Cheers,

/Eugenio



Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 21 Mar 2017, at 20:09, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hello Dr. Iglesias,

I'm currently examining the distributions of the posterior probabilities of the 
different hippocampal subfields, and I'm interested in obtaining the 
probability distribution images for the subfields that correspond to the 
volumes output in the subjects text file.

While I can use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain the 
subfield masks and use them to obtain the posterior probabilities distribution 
after soft segmentation,
is there some other straighforward way to obtain these posterior probabilities 
for the volumes stated in the output text file ?

A follow up question - It appears 

Re: [Freesurfer] Hippocampal Subfields Posterior Probability

2017-03-22 Thread Bharadwaj, Pradyumna - (prad)
Sorry about that. I should have stated what I was trying to do. I'm trying to 
see if the posterior probability changes when using a certain combination of 
the different T1 and T2 weighted scans that we have in our lab. I thought using 
the binary masks to extract the probabilities as they were the final volumes of 
the subfields would be a better way.


As an example,
when I extract some basic stats on the left CA1 posteriors for one subject, 
these are the values I get,
range: 0.15 to 1, with a mean (sd) of 0.245258 (0.335046);

and , when I use the binary mask of the CA1 from lh.hippoSfLabels-T1.v10.mgz 
and then extract the same basic stats, I get,

range: 0.247501 to 1, with a mean (sd) of 0.770796 (0.175752)

Is my approach incorrect ?

Thanks!,
-Prad



From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Iglesias Gonzalez, 
Eugenio 
Sent: Wednesday, March 22, 2017 11:06 AM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Hi Prad,
The final probabilities are in the posterior files. There’s no need to binarize 
?h.hippoSfLabels if what you’re interested in is the soft segmentations.
Or maybe I’m missing something? What are you exactly trying to do?
Cheers,
/E

Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:02, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hi Dr. Iglesias,

Thank you for the overview of the labeling rules. I have also tried setting 
WRITE_POSTERIORS to 1 to write out the posteriors.

I had a follow up question about obtaining the probabilities for the final 
subfield labels as available in the ?h.hippoSfLabels-T1.v10.mgz

I use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain binary masks for 
each subfield, and then used these masks with their respective posteriors to 
obtain the distributions.

Is this procedure correct or is there a better way ?

Thanks,
-Prad

From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Tuesday, March 21, 2017 2:22 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Dear Prad,
There is a “secret” way of getting the posteriors. You need to set the 
environment variable WRITE_POSTERIORS to 1 before you call recon-all.
In (t)csh:
setenv WRITE_POSTERIORS 1
In bash:
export WRITE_POSTERIORS=1
And then call recon-all -hippocampal-subfields-T1(T2) as usual.

The discrete segmentation picks, for each voxel, the most likely label. The 
posterior of this label might or might not be above 0.5. For instance, if a 
voxel has p=0.4 of being CA1, p=0.3 of being background, and p=0.3 of being 
fimbria, it will be labeled as CA1 (even though p<0.5 for such subfield). Some 
people seem to prefer a 2-stage approach, in which a hippocampal mask is first 
created by selecting the voxels for which p(background)<0.5, and then each 
voxel within that mask is colored with the most likely subfield at that 
location.

I hope this helps!

Cheers,

/Eugenio



Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 21 Mar 2017, at 20:09, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hello Dr. Iglesias,

I'm currently examining the distributions of the posterior probabilities of the 
different hippocampal subfields, and I'm interested in obtaining the 
probability distribution images for the subfields that correspond to the 
volumes output in the subjects text file.

While I can use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain the 
subfield masks and use them to obtain the posterior probabilities distribution 
after soft segmentation,
is there some other straighforward way to obtain these posterior probabilities 
for the volumes stated in the output text file ?

A follow up question - It appears that the soft segmentation approach 
approximates thresholding the posteriors by a value around 0.5 ? In your 
opinion, is this value acceptable and have you found similar values in your 
testing ?

Thanks!
-Prad


___
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 

Re: [Freesurfer] Hippocampal Subfields Posterior Probability

2017-03-22 Thread Iglesias Gonzalez, Eugenio
Hi Prad,
The final probabilities are in the posterior files. There’s no need to binarize 
?h.hippoSfLabels if what you’re interested in is the soft segmentations.
Or maybe I’m missing something? What are you exactly trying to do?
Cheers,
/E

Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 22 Mar 2017, at 18:02, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hi Dr. Iglesias,

Thank you for the overview of the labeling rules. I have also tried setting 
WRITE_POSTERIORS to 1 to write out the posteriors.

I had a follow up question about obtaining the probabilities for the final 
subfield labels as available in the ?h.hippoSfLabels-T1.v10.mgz

I use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain binary masks for 
each subfield, and then used these masks with their respective posteriors to 
obtain the distributions.

Is this procedure correct or is there a better way ?

Thanks,
-Prad

From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 on behalf of Iglesias Gonzalez, Eugenio 
>
Sent: Tuesday, March 21, 2017 2:22 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Dear Prad,
There is a “secret” way of getting the posteriors. You need to set the 
environment variable WRITE_POSTERIORS to 1 before you call recon-all.
In (t)csh:
setenv WRITE_POSTERIORS 1
In bash:
export WRITE_POSTERIORS=1
And then call recon-all -hippocampal-subfields-T1(T2) as usual.

The discrete segmentation picks, for each voxel, the most likely label. The 
posterior of this label might or might not be above 0.5. For instance, if a 
voxel has p=0.4 of being CA1, p=0.3 of being background, and p=0.3 of being 
fimbria, it will be labeled as CA1 (even though p<0.5 for such subfield). Some 
people seem to prefer a 2-stage approach, in which a hippocampal mask is first 
created by selecting the voxels for which p(background)<0.5, and then each 
voxel within that mask is colored with the most likely subfield at that 
location.

I hope this helps!

Cheers,

/Eugenio



Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 21 Mar 2017, at 20:09, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hello Dr. Iglesias,

I'm currently examining the distributions of the posterior probabilities of the 
different hippocampal subfields, and I'm interested in obtaining the 
probability distribution images for the subfields that correspond to the 
volumes output in the subjects text file.

While I can use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain the 
subfield masks and use them to obtain the posterior probabilities distribution 
after soft segmentation,
is there some other straighforward way to obtain these posterior probabilities 
for the volumes stated in the output text file ?

A follow up question - It appears that the soft segmentation approach 
approximates thresholding the posteriors by a value around 0.5 ? In your 
opinion, is this value acceptable and have you found similar values in your 
testing ?

Thanks!
-Prad


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

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


The information in this e-mail 

Re: [Freesurfer] Fw: PETsurfer surface based analysis

2017-03-22 Thread miracle ozzoude
Hello Doug,
Thank you for the detailed reply. I do have other questions.

1) Can you confirm if this is the correct use of mris_preproc for Uncached
PET data. mris_preproc --fsgd your.fsgd --target fsaverage --hemi lh --meas
Pet --out lh.your.pet.00.mgh. This modification was made from the thickness
thickness data.
https://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/GroupAnalysis

2) if both the thickness and pet maps have the same contrast matrices, can
I use one of them as my matrix for multimodal analysis?

3)What if they don't share similar contrast matrices, Can i still perform
multimodal analysis? This is because contrast matrices are based on
regressors and class in fsgd files.

Best,
Paul

On Wed, Mar 22, 2017 at 1:11 PM, Douglas Greve 
wrote:

>
>
> On 3/22/17 11:02 AM, miracoo...@gmail.com wrote:
>
>
>
> Sent from my BlackBerry 10 smartphone.
> *From: *miracle ozzoude  
> *Sent: *Tuesday, March 21, 2017 7:41 PM
> *To: *Douglas N Greve
> *Subject: *PETsurfer surface based analysis
>
> Hello,
> I am working through the PETsurfer surface based analysis and i have
> couple of question
> a) Since the procedure is the same as surface based analysis for cortical
> thickness except mri_vol2surf, Can I use the procedure for thickness?
>
> Yes
>
> b) What is the difference between mris_preproc and mri_concat. If I use
> mris_preproc, do I also need to use mri_concat? Also, can I use
> mris_preproc instead of mri_concat?
>
> mris_preproc is a fronend for mri_concat that makes running mri_concat
> easier. You can use one or the other but not both
>
> c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?
>
> Yes, they use the same underlying code for surface smoothing.
>
> d) While researching PETsurfer surface based analysis in the forum, I came
> across multiple trends that used the "--projfrac" flag in both mri_vol2surf
> command and mris_preproc command. At what stage should I include this flag
> and why?
>
> At which the time you run the program. If you are using mri_vol2surf prior
> to mris_preproc, then you would not include it in mris_preproc.
>
> e) If I want to perform a multimodal analysis using thickness or
> Surface area, Can anyone confirm if this is the correct steps.
>
>- Perform surface base analysis for cortical thickness from step 1
>(mris_preproc) to correction for multiple comparison
>- Perform PET surface based analysis from step 1 (gtmseg) to step 5.
>While conducting mri_glmfit, include the smoothed thickness map
>(?h.thickness.10B.mgh) as pvr (per vertex regressor)
>- e.g. mri_glmfit --y lh.pet.10.mgh --fsgd your.fsgd dods --pvr
>lh.thickness.10B.mgh --C contrast.mtx --surf fsaverage lh --cortex --glmdir
>pvr.lh.pet.thickness.glmdir
>- Lastly, build a new monte carlo correction for multiple comparison.
>
> That looks right. You should not need to build a new MC, at least based on
> that command line
>
> Thank you
> Best,
> Paul
>
>
>
> ___
> 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] Hippocampal Subfields Posterior Probability

2017-03-22 Thread Bharadwaj, Pradyumna - (prad)
Hi Dr. Iglesias,


Thank you for the overview of the labeling rules. I have also tried setting 
WRITE_POSTERIORS to 1 to write out the posteriors.


I had a follow up question about obtaining the probabilities for the final 
subfield labels as available in the ?h.hippoSfLabels-T1.v10.mgz


I use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain binary masks for 
each subfield, and then used these masks with their respective posteriors to 
obtain the distributions.


Is this procedure correct or is there a better way ?


Thanks,

-Prad


From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Iglesias Gonzalez, 
Eugenio 
Sent: Tuesday, March 21, 2017 2:22 PM
To: Freesurfer support list
Subject: Re: [Freesurfer] Hippocampal Subfields Posterior Probability

Dear Prad,
There is a "secret" way of getting the posteriors. You need to set the 
environment variable WRITE_POSTERIORS to 1 before you call recon-all.
In (t)csh:
setenv WRITE_POSTERIORS 1
In bash:
export WRITE_POSTERIORS=1
And then call recon-all -hippocampal-subfields-T1(T2) as usual.

The discrete segmentation picks, for each voxel, the most likely label. The 
posterior of this label might or might not be above 0.5. For instance, if a 
voxel has p=0.4 of being CA1, p=0.3 of being background, and p=0.3 of being 
fimbria, it will be labeled as CA1 (even though p<0.5 for such subfield). Some 
people seem to prefer a 2-stage approach, in which a hippocampal mask is first 
created by selecting the voxels for which p(background)<0.5, and then each 
voxel within that mask is colored with the most likely subfield at that 
location.

I hope this helps!

Cheers,

/Eugenio



Juan Eugenio Iglesias
ERC Senior Research Fellow
Translational Imaging Group
University College London
http://www.jeiglesias.com
http://cmictig.cs.ucl.ac.uk/


On 21 Mar 2017, at 20:09, Bharadwaj, Pradyumna - (prad) 
> wrote:

Hello Dr. Iglesias,

I'm currently examining the distributions of the posterior probabilities of the 
different hippocampal subfields, and I'm interested in obtaining the 
probability distribution images for the subfields that correspond to the 
volumes output in the subjects text file.

While I can use mri_binarize on ?h.hippoSfLabels-T1.v10.mgz to obtain the 
subfield masks and use them to obtain the posterior probabilities distribution 
after soft segmentation,
is there some other straighforward way to obtain these posterior probabilities 
for the volumes stated in the output text file ?

A follow up question - It appears that the soft segmentation approach 
approximates thresholding the posteriors by a value around 0.5 ? In your 
opinion, is this value acceptable and have you found similar values in your 
testing ?

Thanks!
-Prad


___
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] preproc-sess -per-run vs. -per-session

2017-03-22 Thread Feilong Ma
Thanks for the reply, Doug!

Best,
Feilong

On Wed, Mar 22, 2017 at 1:24 PM, Douglas Greve 
wrote:

> I think the motion correction works a little better if done to a reference
> inside each run, and there's probably less interpolation in the end
>
> On 3/20/17 11:04 AM, Feilong Ma wrote:
>
> Hi FreeSurfer Experts,
>
> I was reading the document of preproc-sess, and it seems -per-run is
> recommended instead of -per-session.  Here is the part:
>
>> -per-run
>> Motion correct and register using the middle time point of each run.
>> This is the option that you should use.
>> -per-session
>> Motion correct and register using the first time point of the first
>> run.  This is mainly for compatability with version 4.
>>
>
> Is there a reason to preprocess each run separately?  I know some people
> motion correct and register all EPI volumes to the same reference EPI
> volume, which also works well.
>
> Thanks,
> Feilong
>
>
> ___
> 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] preproc-sess -per-run vs. -per-session

2017-03-22 Thread Douglas Greve
I think the motion correction works a little better if done to a 
reference inside each run, and there's probably less interpolation in 
the end



On 3/20/17 11:04 AM, Feilong Ma wrote:

Hi FreeSurfer Experts,

I was reading the document of preproc-sess, and it seems -per-run is 
recommended instead of -per-session.  Here is the part:


-per-run
Motion correct and register using the middle time point of each run.
This is the option that you should use.
-per-session
Motion correct and register using the first time point of the first
run.  This is mainly for compatability with version 4.


Is there a reason to preprocess each run separately?  I know some 
people motion correct and register all EPI volumes to the same 
reference EPI volume, which also works well.


Thanks,
Feilong


___
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] Multiple comparisons

2017-03-22 Thread Douglas Greve
We don't have something explicitly to do this, but you can run FDR on it 
using either mri_fdr (use nomask for the mask) or you can load the 
sig.mgh file into matlab and run it there, eg,

sig = MRIread('sig.mgh');
p = 10^-abs(sig.vol);
fdrthresh = fast_fdrthresh(p);



On 3/20/17 9:32 AM, Laura Ferrero Montes wrote:
> Dear FS team,
>I would like to correct for multiple comparisons after I run
> command-line GLM analysis on stats tables. I would like to make a
> second level analysis between a control group and an autism group. I
> would like to know if  there is a command-line in FreeSurfer or if
> there is any program or toolkit in Matlab that allows to do that.
>
> Thank you,
> Laura
>
> ___
> 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] Fw: PETsurfer surface based analysis

2017-03-22 Thread Douglas Greve



On 3/22/17 11:02 AM, miracoo...@gmail.com wrote:



Sent from my BlackBerry 10 smartphone.
*From: *miracle ozzoude 
*Sent: *Tuesday, March 21, 2017 7:41 PM
*To: *Douglas N Greve
*Subject: *PETsurfer surface based analysis


Hello,
I am working through the PETsurfer surface based analysis and i have 
couple of question
a) Since the procedure is the same as surface based analysis for 
cortical thickness except mri_vol2surf, Can I use the procedure for 
thickness?

Yes
b) What is the difference between mris_preproc and mri_concat. If I 
use mris_preproc, do I also need to use mri_concat? Also, can I use 
mris_preproc instead of mri_concat?
mris_preproc is a fronend for mri_concat that makes running mri_concat 
easier. You can use one or the other but not both

c) Can I use mri_surf2surf in place of mris_fwhm? If no, why?

Yes, they use the same underlying code for surface smoothing.
d) While researching PETsurfer surface based analysis in the forum, I 
came across multiple trends that used the "--projfrac" flag in both 
mri_vol2surf command and mris_preproc command. At what stage should I 
include this flag and why?
At which the time you run the program. If you are using mri_vol2surf 
prior to mris_preproc, then you would not include it in mris_preproc.
e) If I want to perform a multimodal analysis using thickness or 
Surface area, Can anyone confirm if this is the correct steps.


  * Perform surface base analysis for cortical thickness from step 1
(mris_preproc) to correction for multiple comparison
  * Perform PET surface based analysis from step 1 (gtmseg) to step 5.
While conducting mri_glmfit, include the smoothed thickness map
(?h.thickness.10B.mgh) as pvr (per vertex regressor)
  * e.g. mri_glmfit --y lh.pet.10.mgh --fsgd your.fsgd dods --pvr
lh.thickness.10B.mgh --C contrast.mtx --surf fsaverage lh --cortex
--glmdir pvr.lh.pet.thickness.glmdir
  * Lastly, build a new monte carlo correction for multiple comparison.

That looks right. You should not need to build a new MC, at least based 
on that command line

Thank you
Best,
Paul



___
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] Custom brain segmentation to equal sized regions

2017-03-22 Thread Douglas Greve
I don't think this will do it, and I don't think we have anything that 
will do this precisely. You can do something like it by running the 
xhemi stream http://surfer.nmr.mgh.harvard.edu/fswiki/Xhemi, mapping the 
lh and rh thickness to the lh for fsaverage_sym, then run the face 
parcellation on fsaverage_sym


On 3/21/17 2:20 PM, Bruce Fischl wrote:
> Hi David
>
> mris_make_face_parcellation can do what you want for the cortex. If you use
> the sphere used for cross-hemisphere registration as input I think
> (Hopefully Doug  can tell us what it is called)
>
> cheers
> Bruce
>
>
>
>
> On
> Tue, 21 Mar 2017, david.kam...@pet.wayne.edu wrote:
>
>> Freesurfers,
>>
>> Is there a way to segment each hemisphere to an identical number of equal
>> sized regions which are as close in size and location as possible to their
>> contralateral homotopic regions.
>> Eg. I?d like to segment the left hemisphere to regions with a 2 cm2
>> surface and do the same for the right in order to compare asymmetries in
>> these small regions. Anybody had done this before?
>>
>> David
>>
>> ___
>> 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] display SPM results on inflated surface?

2017-03-22 Thread Douglas Greve
If you have the T1 for the mni152 (which is somewhere in the bowels of 
the spm distribution), then you just run recon-all on it. I've done this 
for myself, so you can just download the result (which I have not 
checked thoroughly) from here 
https://gate.nmr.mgh.harvard.edu/safelinks/greve/mni152.tar.gz




On 3/21/17 1:27 PM, Schoot, Lotte wrote:

Hi Doug and others,

A while ago, I got this reply to my question below (thanks!). I tried to look 
in to it, but I am a bit confused (probably because I am very new to 
Freesurfer).
My results are on the MNI 152, but I don't understand what you mean with 'run 
the mni152 through freesurfer'. Is this the process to get the register.dat 
file that is required in mri_vol2surf?
What would you recommend to get the register.dat file? Is it possible to use 
bbregister for that? I have tried this, but I don't know whether it is correct:

bbregister --s fsaverage --mov con_0001.nii --init-spm --reg register.dat --bold

  
Thanks!

Lotte


>If your results are on the MNI152, you can run the mni152 through
>freesurfer, then use mri_vol2surf to map the data to the surface then
>view it with freeview (or tksurfer). You should not confuse this with
>doing the fMRI analysis on the surface. You will not have the benefits
>of surface-based analysis


On 02/15/2017 03:37 PM, Schoot, Lotte wrote:
>/Hi all, />//>/I was wondering if you knew of a way to display SPM results onto the />/inflated surface in Freesurfer. />//>/I have tried using SurfRend but there seem to be problems which might />/be due to the fact the results are obtained with SPM12 and SurfRend />/was designed to work with SPM5. />//>/Thanks, />/Lotte />//>//>/___ />/Freesurfer mailing list />/Freesurfer at nmr.mgh.harvard.edu 
 />/https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer /

--
Douglas N. Greve, Ph.D.
MGH-NMR Center
greve at nmr.mgh.harvard.edu 


Phone Number: 617-724-2358
Fax: 617-726-7422


___
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] White matter volume in each lobe

2017-03-22 Thread Douglas Greve

not that I know of. I think you'll have to do it by hand (sorry)


On 3/21/17 11:02 AM, Ahearn, T wrote:


Hello

I need separate grey and white volumes for the frontal and temporal 
lobes. I have values for grey volume from


mri_annotation2label --subject 01 --hemi lh --lobesStrict lobar_annotation

mris_anatomical_statson the  lh.lobar_annotation.annot file to 
generate a text file.


I’ve also run similar to the following and now have a text file 
wmparc.a2009.stats.


mri_aparc2aseg --s subject --labelwm --hypo-as-wm --rip-unknown

--volmask --o mri/wmparc.a2009s.mgz --a2009s --ctxseg 
aparc.a2009s+aseg.mgz


mri_segstats --seg mri/wmparc.a2009s.mgz --sum

stats/wmparc.a2009s.stats --pv mri/norm.mgz --excludeid 0

--brain-vol-from-seg --brainmask mri/brainmask.mgz --in mri/norm.mgz

--in-intensity-name norm --in-intensity-units MR --subject subject

--surf-wm-vol

--ctab $FREESURFER_HOME/WMParcStatsLUT.txt --etiv

Is there a standard list of labels in this file that are used to 
create the frontal and temporal lobes?


Thanks



The University of Aberdeen is a charity registered in Scotland, No 
SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, 
Àir. SC013683.



___
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] xhemi label

2017-03-22 Thread Douglas Greve

copy it to $FREESURFER_HOME/bin and then

chmod a+x mris_apply_reg

then

rehash



On 3/21/17 8:23 AM, Marissa Pifer wrote:

Hi Doug,

I'm not sure how to use this binary. Do I need to install it?

Marissa

On Fri, Mar 17, 2017 at 12:23 PM, Douglas N Greve 
> wrote:


Are you using v5.3? You will need a version 6. You can get this binary
for v6 here

https://gate.nmr.mgh.harvard.edu/safelinks/greve/mris_apply_reg



On 03/17/2017 11:47 AM, Marissa Pifer wrote:
>
> Marcs-MacBook-Pro:SRMC01-1 marchaut$ mris_apply_reg --src-label
> label/rh.V1_exvivo.thresh.label --trg
rh-on-lh.V1_exvivo.thresh.label
> --streg xhemi/surf/lh.fsaverage_sym.sphere.reg
> surf/lh.fsaverage_sym.sphere.reg
>
> ERROR: Option --src-label unknown
>
>
>
> On Fri, Mar 17, 2017 at 11:26 AM, Douglas Greve
> 
>> wrote:
>
> please send command line
>
>
> On 3/17/17 10:38 AM, Marissa Pifer wrote:
>> Hi freesurfers,
>>
>> I am using xhemi to map the right hemisphere of each subject to
>> the left hemisphere of the same subject. The first xhemi
command
>> works fine, but the 2nd step for mapping the label, I get this
>> error: "Option --src-label unknown"
>>
>> Do you know how to fix this?
>>
>> Marissa
>>
>>
>> ___
>> 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 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


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


The information in this e-mail is 

Re: [Freesurfer] intensity normalization and GM exclusion

2017-03-22 Thread Bruce Fischl

Hi Meaghan

it looks like the white surface is pretty accurate but the gm doesn't get 
out far enough. I would play with some of the expert options to 
mris_make_surfaces like max_gray_at_csf_border. If you upload a subject I 
can try it out and see if I can improve things and get back to you.


cheers
Bruce


On Wed, 22 Mar 2017, Meaghan Perdue wrote:



  Hello,

  I attended the September 2016 Freesurfer training course, and I am 
seeking help to resolve a consistent issue with white and pial surface 
extraction
  that seems to be rooted in poor intensity normalization. Our lab is 
working with a pediatric dataset acquired on a 3T scanner and recon-all was run 
in
  Freesurfer v5.3. Throughout the dataset, we have found that the surfaces 
are cutting off white matter and excluding a significant amount of gray
  matter, particularly in the lateral temporal lobes.  I have attached 
several images to illustrate the problem. As you can see in the images, the pial
  surface in the lateral temporal lobes hugs close to the white/gray 
boundary and excludes gray matter.

  We have used the -3T flag when running recon-all for all subjects, and we 
have manually changed the smoothing distance in mi_nu_correct to 30 for
  several subjects in an attempt to improve this, but we did not get a 
better result. We are hesitant to address this problem using control points
  because it would require adding many control points across many slices in 
nearly all the subjects, and we would like to avoid the
  reliability/replicability issues of so much manual editing. (Not to 
mention the time required to do such heavy editing). Is there any way to address
  this automatically through the recon pipeline? 


  Many thanks,

  Meaghan Perdue



___
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] Dimensions question

2017-03-22 Thread yusif Al-kheder
For a skull-stripped anatomical nifti file, What’s the difference between '91 x 
109 x 91’ and 2mm x 2mm x 2mm?
[image1.png]
Youssif

___
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] Fw: PETsurfer surface based analysis

2017-03-22 Thread miracooloz
  Sent from my BlackBerry 10 smartphone.From: miracle ozzoude Sent: Tuesday, March 21, 2017 7:41 PMTo: Douglas N GreveSubject: PETsurfer surface based analysisHello, I am working through the PETsurfer surface based analysis and i have couple of questiona) Since the procedure is the same as surface based analysis for cortical thickness except mri_vol2surf, Can I use the procedure for thickness? b) What is the difference between mris_preproc and mri_concat. If I use mris_preproc, do I also need to use mri_concat? Also, can I use mris_preproc instead of mri_concat? c) Can I use mri_surf2surf in place of mris_fwhm? If no, why? d) While researching PETsurfer surface based analysis in the forum, I came across multiple trends that used the "--projfrac" flag in both mri_vol2surf command and mris_preproc command. At what stage should I include this flag and why? e) If I want to perform a multimodal analysis using thickness or Surface area, Can anyone confirm if this is the correct steps. Perform surface base analysis for cortical thickness from step 1 (mris_preproc) to correction for multiple comparisonPerform PET surface based analysis from step 1 (gtmseg) to step 5. While conducting mri_glmfit, include the smoothed thickness map (?h.thickness.10B.mgh) as pvr (per vertex regressor) e.g. mri_glmfit --y lh.pet.10.mgh --fsgd your.fsgd dods --pvr lh.thickness.10B.mgh --C contrast.mtx --surf fsaverage lh --cortex --glmdir pvr.lh.pet.thickness.glmdirLastly, build a new monte carlo correction for multiple comparison. Thank youBest, Paul 

___
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] Dimensions question

2017-03-22 Thread Yendiki, Anastasia
The first is the number of voxels, the second is the size of a single voxel.

From: 
>
 on behalf of yusif Al-kheder >
Reply-To: Freesurfer support list 
>
Date: Wednesday, March 22, 2017 at 9:31 AM
To: "freesurfer@nmr.mgh.harvard.edu" 
>
Subject: [Freesurfer] Dimensions question

For a skull-stripped anatomical nifti file, What’s the difference between '91 x 
109 x 91’ and 2mm x 2mm x 2mm?
[image1.png]
Youssif

___
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] TRACULA tract reconstruction

2017-03-22 Thread Yendiki, Anastasia
Hi Joëlle – What images do you pass as input to TRACULA? Do you pass the dicom 
itself, or a converted file? Happy to look at your dicom, if it’s anonymized.

a.y

From: 
>
 on behalf of Joëlle Ismay Rosanne Van Der Molen 
>
Reply-To: Freesurfer support list 
>
Date: Wednesday, March 22, 2017 at 3:55 AM
To: Freesurfer support list 
>
Subject: Re: [Freesurfer] TRACULA tract reconstruction

Hi Anastasia and Antonin,

I apologize for the late response.
Thank you very much for the explanations!

Regarding the gradient tables, I realized that I was indeed using the old 
version of mrtrix3, and was getting tables with a flipped x component (sign 
inversion), which corresponds to the bug that is highlighted in the blog link 
you sent me. After having updated mrtrix3, the tables now look correct.

What seems odd, however, is that in fact mri_convert outputs the same gradient 
tables as the old version of mrtrix3, that is, with a flipped x component.
I tried running tracula on one of our subjects using gradient tables obtained 
with the updated mrtrix3, versus those obtained with mri_convert, and the 
results are quite different. I attached several files, so that you could maybe 
take a look and tell me how to best interpret this:

- the bvecs from the updated mrtrix3 (mrtrix3up_bvecs)
- a screenshot from the gradient directions (FA map overlaid with V1 map) 
resulting from usage of the bvecs tables from the updated mrtrix3 
(mrtrix3up_graddirs)
- a screenshot from the path reconstruction resulting from usage of the bvecs 
tables from the updated mrtrix3 (mrtrix3up_tracts)

- the bvecs from mri_convert (mriconvert_bvecs)
- a screenshot from the gradient directions resulting from usage of the bvecs 
tables from mri_convert (mriconvert_graddirs)
- a screenshot from the path reconstruction resulting from usage of the bvecs 
tables from mri_convert (mriconvert_tracts)

Note that the TRACULA steps were done using version 6.0.

Based on these outputs, my guess is that the correct bvec table is the one 
obtained with the updated version of mrtrix and not the one obtained with 
mri_convert. But I would appreciate your opinion on that.

Thanks again for your help!

Best,

Joëlle van der Molen



De : 
freesurfer-boun...@nmr.mgh.harvard.edu
 
>
 de la part de Yendiki, Anastasia 
>
Envoyé : jeudi 16 mars 2017 22:27
À : Freesurfer support list
Objet : Re: [Freesurfer] TRACULA tract reconstruction

One potential difference is that TRACULA does not need the gradient vectors to 
be flipped. It needs to get them the way they are stored in the DICOM header, 
and that's what mri_convert outputs.

Best,
a.y


From: 
freesurfer-boun...@nmr.mgh.harvard.edu
 
[freesurfer-boun...@nmr.mgh.harvard.edu]
 on behalf of Antonin Skoch [a...@ikem.cz]
Sent: Wednesday, March 08, 2017 10:03 AM
To: freesurfer@nmr.mgh.harvard.edu
Subject: Re: [Freesurfer] TRACULA tract reconstruction

Dear Joelle,

regarding the conversion to .bvecs, could you please show the example of 
difference between bvecs converted by mri_convert of FreeSurfer and mrconvert 
of mrtrix3?

Do you have most recent version of mrtrix3? There have been a quite extensive 
discussion on implementation of FSL .bvec convention in mrtrix3 in spring 2016:

http://www.mrtrix.org/2016/04/15/bug-in-fsl-bvecs-handling/

However, there have been quite a big effort to settle this issue and I am 
pretty convinced that the recent versions should have this issue resolved.

Maybe you can also post this to the mrtrix community forum, they are usually 
responding very quickly and each post gives detailed attention.

Regards,

Antonin Skoch



??Dear Tracula experts,


I am applying Tracula on a longitudinal data set, and have some questions I am
hoping you could help me with:

Firstly, upon visual inspection, several tracts appear to be quite messy, or
small (on the default freeview threshold) for most subjects. However, the -stat
step from Tracula does not necessarily flag these tracts as outliers. What is
then the best way to decide whether tracts are not correctly reconstructed and
need to be rerun separately once more? Can I rely on the flagged outliers? Or
should I rerun all the tracts that do not look ok after visual inspection? And
in the last case, for tracts that look small, are they considered as 

Re: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR DTI

2017-03-22 Thread Yendiki, Anastasia
Hi Joseph – You can use fugue as part of the preprocessing in TRACULA. Search 
for items with “b0” in the example config file:
https://surfer.nmr.mgh.harvard.edu/fswiki/dmrirc

Best,
a.y

From: 
>
 on behalf of VA Research 
>
Reply-To: Freesurfer support list 
>
Date: Tuesday, March 21, 2017 at 9:19 PM
To: Freesurfer support list 
>, FSL - 
FMRIB's Software Library >
Subject: [Freesurfer] [FSL or FREESURFER] SIEMENS FIELDMAP B0 UNWARPING FOR DTI

Hello FSL and FS pros,

I am trying to pre process DW images but am not sure how to unwarp images.

We are using Siemens Skyra 3T and output fieldmaps;

2 files output from the scanner;
the first file contains two magnitude files in one
the second file contains the single phase difference image

---
FSL
---


through FSL we have run
eddy correct, bet the magnitude file, and run fsl prepare fieldmap
(example code below)

I am not sure how to use the prelude and FUGUE command and am unclear on their 
inputs/outputs

Does anyone in FSL land have a clear tutorial of how to utilize these tools?

for example, given my type of fieldmaps do i need to use prelude?

later through FSL stream we would like to complete
bet preprocessed DW images, dtifit, bedpostx


FREESURFERS

I have read over the TRACULA requirements and how to edit the configuration 
files.

There is mention of eddy current correction that is available through tracula 
but nothing mentioned for dealing with the warping issue.

Does anyone in freesurfer land have any suggestions on how to tackle this as a 
part of the tracula data stream?


Any input will be appreciated,
Thanks so much

Joseph Veliz
Brentwood Biomedical Research
VA Hospital West Los Angeles



example

#Eddy correction
eddy_correct ${name}_dti.nii.gz 
/Users/seahorse/Studies/NN/DTI/${name}/${name}DTI_eddy.nii.gz 0

#BET fieldmap mag super tight; exclude all non brain voxels
bet 10001_dtiFMmag1mag2.nii.gz 
/Users/seahorse/Studies/NN/DTI/10001/10001dtimags_brain.nii.gz -F -m -f 0.85

#generate fieldmap in rad/s for FEAT or FUGUE
fsl_prepare_fieldmap SIEMENS 10001_dtiFMphase.nii.gz 10001dtimags_brain.nii.gz 
fmap_rads 2.46

#Prelude
prelude -c data --unwrap=result
prelude --complex=data -u result

#FUGUE Utility for Geometrically Unwarping EPIs; performs unwarping of an EPI 
image based on fieldmap data
fugue -i epi -p unwrappedphase --dwell=dwelltime --asym=asymtime -s 0.5 -u 
result
fugue -i epi --dwell=dwelltime --loadfmap=fieldmap -u result




___
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] question about "mean curvatura"

2017-03-22 Thread Bruce Fischl

Hi Hui

meancurv is the spatially smoothed mean curvature of the surface at each 
point (that is, the average of the two curvatures k1 and k2)


cheers
Bruce
On Wed, 22 Mar 
2017, 李慧 wrote:



Dear FreeSurfer Group,

Sorry for interrupting.

I am Hui Li, a researcher fron Beijing, China, interesting in sMRI of mind
disorder. Recently, I am working on some data about schizophrenia. I
compared the patients and healthy controls, and found that the main
difference between these two groups is the index of "meancurv". So I
searched online for the papers described "meancurv" of using FreeSurfer
package, however, most of the papers reported an index---gyrificaiton, some
of the gyrificaiton was calculated from "absoult mean curvatura", for
example articles from Dr. Luders (A curvature-based approach to estimate
local gyrification on the cortical surface, NeuroImage, 2006, 29, 1224).
Then I looked for how to calculate "meancurv" in FreeSurfer, I found that
"The curvature in general is measured as 1/r, where r is the radius of an
inscribed circle. Since mean curvature is the average of the two principal
curvatures it has the units of 1/mm. The Gaussian curvature is the product
of them, so it is 1/mm^2". I am confused about these two concepts of "mean
curvatura", could you help me to understand the "mean curvatura" in
FreeSurfer? What is the biological meaning of this index, does it share the
same anatomical meaning with Dr. Luders'? Could I use "mean curvatura" from
FreeSurfer represent Gyrification Index?

Thanks all of you so much.

Hui Li



 


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