Re: [Freesurfer] tracula bvecs problem

2011-07-07 Thread Anastasia Yendiki
Great, good to know. My LANG is en_US.UTF-8, everything else is not set. On Thu, 7 Jul 2011, Franz Liem wrote: > Dear Anastasia & all. > > I fixed it. > > The problem was my LOCALE setting which leads to different handling of > decimal separators by awk (for further details see > http://object

Re: [Freesurfer] tracula bvecs problem

2011-07-07 Thread Franz Liem
Dear Anastasia & all. I fixed it. The problem was my LOCALE setting which leads to different handling of decimal separators by awk (for further details see http://objectmix.com/awk/716715-awk-different-decimal-separator-different-linux-distros.html). My original setting was: % locale LANG="de_

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
Hi again, I found out that, if I change the flip4fsl line printf '%s ' `cat $inbvecs | awk -v sgn=$sign[$k]1 -v n=$k '{print sgn*$n}'` \ to printf '%s ' `cat $inbvecs | awk -v sgn=$sign[$k]1 -v n=$k '{print $n}'` \ (deleting the sgn*) the values in the out-bvecs a

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Anastasia Yendiki
I'm attaching what I get when I run it. Only the trailing zeros are missing. On Wed, 6 Jul 2011, Franz Liem wrote: If i flip4fsl my fake file the the numbers after the decimal point are missing in the output (bvecs_bvecs_onezero3decpoint1_western_out). I have attached a fake bvecs fitting

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
If i flip4fsl my fake file the the numbers after the decimal point are missing in the output (bvecs_bvecs_onezero3decpoint1_western_out). I have attached a fake bvecs fitting your tutorial data (70 lines). Would you be so kind, as to run this. Thank you so much for your help, Franz bvecs_bv

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Anastasia Yendiki
I'd need the nifti file to run flip4fsl. Can you try it on your data? On Wed, 6 Jul 2011, Franz Liem wrote: > does your flip4fsl convert this file correctly (with the numbers after the > decimal point)? > > Thank you, > Franz > > Am 06.07.2011 um 18:06 schrieb Anastasia Yendiki: > >> >> Yes! >>

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
does your flip4fsl convert this file correctly (with the numbers after the decimal point)? Thank you, Franz Am 06.07.2011 um 18:06 schrieb Anastasia Yendiki: > > Yes! > > On Wed, 6 Jul 2011, Franz Liem wrote: > >> Hi Anastasia, >> thank you. I created this file from scratch with osx' TextEdi

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Anastasia Yendiki
Yes! On Wed, 6 Jul 2011, Franz Liem wrote: > Hi Anastasia, > thank you. I created this file from scratch with osx' TextEdit and saved it > as western european (Mac OS Roman). > Are you able to read this? > > Thanks, > Franz > ___ Freesurfer mailing li

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
Hi Anastasia, thank you. I created this file from scratch with osx' TextEdit and saved it as western european (Mac OS Roman). Are you able to read this? Thanks, Franz bvecs_onezero3decpoint1_western Description: Binary data Am 06.07.2011 um 17:42 schrieb Anastasia Yendiki: > > Hi Franz - Look

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Anastasia Yendiki
Hi Franz - Looks like it may be a windows vs. unix text file issue. Looking at dwi_orig.mghdti.bvecs under unix, it seems that it has windows-specific carriage returns (they look like "^M" in unix). Actually, I could only see this on a darwin machine, on a centos machine I can only read the fi

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Anastasia Yendiki
Hi Franz - As long as you have a good aparc+aseg, the exact version of the recon should not matter. a.y On Wed, 6 Jul 2011, Franz Liem wrote: > and another question. > Is it OK to run tracula with recons done with an earlier version (5.0.0)? > > Thank you, > Franz > > Am 06.07.2011 um 00:05 sc

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
and another question. Is it OK to run tracula with recons done with an earlier version (5.0.0)? Thank you, Franz Am 06.07.2011 um 00:05 schrieb Anastasia Yendiki: > > Hi Franz - Which of the files that you sent us are the original files (the > bvalfile and bvecfile from your dmrirc)? I could n

Re: [Freesurfer] tracula bvecs problem

2011-07-06 Thread Franz Liem
Hi Priti and Anastasia. Thank you very much for your replies. Prit, I ran you modified_bvecs. This resulted in zeros (see bvecs_out). I also tried the modified_bvecs in a tab-deliniated version. same result. Anastasia, the original bvecs file is attached as bvecs_orig. I imported this into exc

Re: [Freesurfer] tracula bvecs problem

2011-07-05 Thread Anastasia Yendiki
Hi Franz - Which of the files that you sent us are the original files (the bvalfile and bvecfile from your dmrirc)? I could not find any files that had 33 lines among your attachments so I'm not sure what your input files look like. Thanks, a.y On Tue, 5 Jul 2011, Franz Liem wrote: > Hello a

Re: [Freesurfer] tracula bvecs problem

2011-07-05 Thread rspriti
Hi Franz, Sorry I just saw your previous email now. The problem could be due to the variable decimal places you've used in your input bvecs file. I've modified your bvecs file from the previous email to 3 decimal places constantly for all the gradient values (See Attached!!). Can you check to see

Re: [Freesurfer] tracula bvecs problem

2011-07-05 Thread rspriti
Hi Franz, Please refer to the following page: http://surfer.nmr.mgh.harvard.edu/fswiki/FsTutorial/Tracula Specifically Step7.2 for the format in which bvals/bvecs files should be given as an input. If your input bvals/bvecs are in the right format flip4fsl should not give you an error. Also if

Re: [Freesurfer] tracula bvecs problem

2011-07-05 Thread Franz Liem
Hello again. I dug into the code and could locate the problem (I don't have a solution, though. My coding skills are quite amateurish.) I think the problem somehow lies in the format of my bvecs file. flip4fsl is not able to read it correctly: --- if (-e $inbvecs) then echo "INFO: found