Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-11-01 Thread Anastasia Yendiki
Once the file is in 3-column format: cat yourfilename | awk '{print $1 -$2 $3}' On Thu, 31 Oct 2013, Salil Soman wrote: Hi Anastasia, Thank you for this code piece. Is there a way to modify it so that set y's sign gets flipped? (I have a dataset where its is acquired on GE (so the Y row

[Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Salil Soman
Hi, I have dicoms that I turn to nifti using dcm2nii (with the default settings plus anonymization option turned on [-a y]). The bvec files it generates by default are 3 rows by n columns (where n is b0 number + directions). I am under the impression tracula requires this to be converted to a n

Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Anastasia Yendiki
set x = `cat bvecs | awk '{if (NR==1) print}'` set y = `cat bvecs | awk '{if (NR==2) print}'` set z = `cat bvecs | awk '{if (NR==3) print}'` @ k = 1 while ( $k = `head -1 bvecs|wc -w` ) echo $x[$k] $y[$k] $z[$k] @ k = $k + 1 end I'd make sure though dcm2nii doesn't L-R flip the gradient

Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Salil Soman
Thank you for the email. I saw a warning to check for flipping L-R from the dcm2nii site: http://www.mccauslandcenter.sc.edu/mricro/mricron/dcm2nii.html Is the problem you mentioned vendor specific (I have all GE data). Is there a different tool you would recommend for generating the bvec files?

Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Anastasia Yendiki
Hi Sal - Right now you'd just have to try it on one data set and look at the eigenvectors of the tensor (display dmri/dtifit_V1.nii.gz as lines) to make sure they're pointing in the right way. I'm hoping for the next freesurfer release to finally get mri_convert to read gradient vectors off

Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Salil Soman
Thank you for your response. Is there a best way to review the eigenvectors (tkmedit, freeview, other program?). Thank you. -S ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] preferred method for generating appropriate bvecs for tracula

2013-08-07 Thread Anastasia Yendiki
Freeview can do this in principle, but the current version of freeview has a known bug with displaying eigenvectors as lines (see known issues in http://surfer.nmr.mgh.harvard.edu/fswiki/ReleaseNotes), so for now you can use fslview. On Wed, 7 Aug 2013, Salil Soman wrote: Thank you for