[Freesurfer] bvecs and bvals don't have the same number of entries

2014-01-22 Thread Francesco Baldacchini
Hi everybody, I'm trying to run trac all -prep on my data but I'm getting this error "bvecs and bvals don't have the same number of entries". I've checked my bvals and bvecs, which are in attach, but they seems to be formatted in the right way. The other 2 bvals and bvecs in DTI folder are the one

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-11-12 Thread Anastasia Yendiki
No problem. By original I mean the file that you specify by "set bvecfile = ..." in your config file. That one need to be in columns, not rows. On Wed, 13 Nov 2013, Laura Christine Anderson wrote: Thanks! What do you mean by my "original TLR108.bvec file"? I think the issue may be that the b

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-11-12 Thread Laura Christine Anderson
Thanks! What do you mean by my "original TLR108.bvec file"? I think the issue may be that the bvec and bval files were originally created using dcm2nii before we had decided to use Tracula. I am just having trouble determining in which directory the original bvec and bval files were created, becaus

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-11-12 Thread Anastasia Yendiki
The problem is that your original TLR108.bvec file is still in 3 rows, not 3 columns. You need to transpose the rows into columns. Yes, there's an example config file that comes with the 5.3 distribution and it's as usual in $FREESURFER_HOME/bin/dmrirc.example. It's also described on the wiki,

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-11-12 Thread Anastasia Yendiki
Thanks. What do these files look like? /export/data/brain1/RSTOM/TLR108/dmri/bvecs /export/data/brain1/RSTOM/TLR108/dmri/bvals These are the ones that the error message in trac-all.log is about, so something probably goes wrong with the conversion from your original files. Also, I recommend ve

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-11-11 Thread Anastasia Yendiki
Hi Laura - First of all, which version of freesurfer do you have? It looks to me like you've based your config file on the old example file that came with version 5.1. Second, could you please convert your bvecs and bvals files to 3 columns and 1 column, respectively, then run trac-all and sen

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-10-15 Thread Anastasia Yendiki
Hi Laura - This means that there is only 1 line in each of the files, so the end-of-line characters aren't recognized. I'd make sure that the file is saved as plain text. a.y On Tue, 15 Oct 2013, Laura Christine Anderson wrote: > When I run "wc -l" on the bvec and bval files, I get "1" for bo

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-10-14 Thread Anastasia Yendiki
Hi Laura - I don't think the error "bvecs and bvals don't have the same number of entries" should have to do with interspersed zero b-values. When you run "wc -l" on the bvecs and bvals files, what do you get? a.y On Mon, 14 Oct 2013, Laura Christine Anderson wrote: > Hi Anastasia, the bval/b

Re: [Freesurfer] bvecs and bvals don't have the same number of entries

2013-10-11 Thread Anastasia Yendiki
Hi Laura - Were these bval/bvec files created on windows or with excel by any chance? When you view them in unix (with the more command for example) you'll see an "^M" character instead of every end-of-line. Can you try editing these files in a unix editor to fix that? Let me know if this sol