[Freesurfer] ERROR: niiRead(): error opening file

2021-10-22 Thread g . toniol
External Email - Use Caution

Hello FreeSurfer Developers,

Thank you for your work ! 

I am trying to segment .nii images with FS, using an ubuntu shell in Windows 
10. When I run the command "recon-all" I receive the Error message that the 
file "exists but is not readable". So I tried converting the file with 
mri_convert but the following error appears: "niiRead(): error opening file".

I tried selecting several different .nii files from different subjects but the 
same errors appear, I think it is unlikely that all files are corrupted: what 
may be the cause? 

I am new to Freesurfer and I apologize if my question is naive but I cannot 
find a solution in any of the online resources.

Thank you very much for your time!
Best regards. 



$ recon-all -s S001 -i 
/usr/local/freesurfer/7-dev/ws44891-153636-1-00192-1.nii

ERROR: /usr/local/freesurfer/7-dev/ws44891-153636-1-00192-1.nii exists but 
is not readable

$ mri_convert /usr/local/freesurfer/7-dev/ws44891-153636-1-00192-1.nii 
S001/mri/orig/001.mgz

ERROR: niiRead(): error opening file 
/usr/local/freesurfer/7-dev/ws44891-153636-1-00192-1.nii___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer

Re: [Freesurfer] long_mris_slopes

2021-10-22 Thread Veena Nair
External Email - Use Caution

That worked!

*python2 /opt/softwarepackages/freesurfer/bin/long_mris_slopes --qdec
qdec/long.qdec.table.dat --meas thickness --hemi lh --do-avg --do-rate
--do-pc1 --do-spc --do-stack --do-label --time months --qcache fsaverage
--sd $SUBJECTS_DIR*


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

Re: [Freesurfer] long_mris_slopes

2021-10-22 Thread Tim Schäfer
External Email - Use Caution

This is a bit of a guess, but I think the issue is that the script requires 
python2, but your python interpreter (the 'python' command on your system) 
points to python3.

You can check whether this is the case by running:

   python --version

If that prints 'Python 3.x.y', the solution is to use a python2 interpreter to 
call mris_slopes_long. You will have to give it the full path to the script 
though. E.g., if your python2 interpreter is 'python2' and you have FreeSurfer 
setup correctly in your shell, then you could do:

  python2 $FREESURFER_HOME/bin/long_mris_slopes 

To run your command (where  is all the arguments you posted).

Tim


--
Dr. Tim Schäfer
Postdoc Computational Neuroimaging
Department of Child and Adolescent Psychiatry, Psychosomatics and Psychotherapy
University Hospital Frankfurt, Goethe University Frankfurt am Main, Germany


> On 10/22/2021 3:05 AM Veena Nair  wrote:
> 
>  
> External Email - Use Caution
> 
> Hello, I am trying to do some preliminary analysis of a
> longitudinal dataset, following the tutorial.
> 
> I am running FS on Ubuntu 20.04 and
> freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0-2beb96c
> 
> I have finished  processing the dataset; to prepare the data for the
> statistical analysis, I am running this command.
> 
> long_mris_slopes --qdec long.qdec.table.dat --meas thickness --hemi lh
> --do-avg --do-rate --do-pcl --do-spc --do-stack --do-label --time years
> --qcache fsaverage --sd $SUBJECTS_DIR
> 
> But I get the following error-
> File "/opt/softwarepackages/freesurfer/bin/long_mris_slopes", line 448
> print '\nERROR: Specify --qdec (and other required arguments)\n'
>   ^
> SyntaxError: invalid syntax
> I tried (as sudo) fixing the typo in the script, but that didn't help!!
> I tried switching from python version 3 to 2 [a previous post on this issue
> had recommended the solution], but that didn't help.
> 
> I would appreciate any inputs on how to fix this issue.
> 
> Thank you.
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://secure-web.cisco.com/1QUc7jiTjtKBNZvhJ-9T0nliU1sykrdVxolEUPmOWHZd8DB2GXZa-SedyUsDpuphvls7AAqX266yAoEOyvvIiqQHnnNxG50Bd4cb_yXvF0cZJq0VMP-cwuTkZb-Lehzw7XqqB1Ge4ph34dG_z3CEWUIe0VubkrWu4bCTBEXKLOBROLBLDGAm3EowXQ-Fupd1eQ5Rfs2Zz7DSDVfBlxgRof8eeJkxhsydYWf3p2_Zp_HsrRtxdaRBIK0InUQT1AZbN/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer

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

Re: [Freesurfer] [EXTERNAL] Re: Tracula 7.2 -bedp error

2021-10-22 Thread Chong, Catherine (Cat), Ph.D.
External Email - Use Caution

Dear Tracula Team,
I ran the command suggested below to merge the files: bedpostx_postproc.sh 
/path/to/your/tracula/dir/subjname/dmri
But this did not seem to work unfortunately, here is the output.


Removing intermediate files

Creating identity xfm

/usr/local/biotools/fsl/6.0.5/bin/bedpostx_postproc.sh: line 150: 
/research/labs/neurology/cat/freesurfer/subjects/Tracula/DODHC09_1_out/dmri.bedpostX.bedpostX/xfms/eye.mat:
 No such file or directory

/usr/local/biotools/fsl/6.0.5/bin/bedpostx_postproc.sh: line 151: 
/research/labs/neurology/cat/freesurfer/subjects/Tracula/DODHC09_1_out/dmri.bedpostX.bedpostX/xfms/eye.mat:
 No such file or directory

/usr/local/biotools/fsl/6.0.5/bin/bedpostx_postproc.sh: line 152: 
/research/labs/neurology/cat/freesurfer/subjects/Tracula/DODHC09_1_out/dmri.bedpostX.bedpostX/xfms/eye.mat:
 No such file or directory

/usr/local/biotools/fsl/6.0.5/bin/bedpostx_postproc.sh: line 153: 
/research/labs/neurology/cat/freesurfer/subjects/Tracula/DODHC09_1_out/dmri.bedpostX.bedpostX/xfms/eye.mat:
 No such file or directory

Done


From:  on behalf of "Yendiki, 
Anastasia" 
Reply-To: Freesurfer support list 
Date: Thursday, October 21, 2021 at 5:06 PM
To: "freesurfer@nmr.mgh.harvard.edu" 
Subject: [EXTERNAL] Re: [Freesurfer] Dracula 7.2 -bedp error

Not sure why, could be a specific version of FSL. You can try running the step 
that merges everything separately:
bedpostx_postproc.sh /path/to/your/tracula/dir/subjname/dmri

On a separate note: I have to do some emergency travel so I will not be 
monitoring the list through the next week.

From: freesurfer-boun...@nmr.mgh.harvard.edu 
 on behalf of Chong, Catherine (Cat), 
Ph.D. 
Sent: Thursday, October 21, 2021 6:16 PM
To: freesurfer@nmr.mgh.harvard.edu 
Subject: [Freesurfer] Dracula 7.2 -bedp error


External Email - Use Caution

Dear Tracula team,



I am running 7.2 on a computing cluster and the -prep stage completes without 
error. The dmri directory show the following files, below.

However, after running the second step ( -bedp), the files under dmri.bedpostX 
do not appear to have merged.

(bvals  bvecs  cancel  commands.txt  diff_slices  logs  monitor  xfms). I am 
not able to find any error messages and the bedpostx_post.o529573 log is below.

I have also attached my script to the very bottom.

I would be grateful for your guidance in helping me solve this problem.

Cat





Usage: fslmerge <-x/y/z/t/a/tr>   [tr value in 
seconds]

 -t : concatenate images in time

 -x : concatenate images in the x direction

 -y : concatenate images in the y direction

 -z : concatenate images in the z direction

 -a : auto-choose: single slices -> volume, volumes -> 4D (time series)

 -tr : concatenate images in time and set the output image tr to the final 
option value

 -n  : only use volume  from each input file (first volume is 0 not 1)



Usage: fslmerge <-x/y/z/t/a/tr>   [tr value in 
seconds]

 -t : concatenate images in time

 -x : concatenate images in the x direction

 -y : concatenate images in the y direction

 -z : concatenate images in the z direction

 -a : auto-choose: single slices -> volume, volumes -> 4D (time series)

 -tr : concatenate images in time and set the output image tr to the final 
option value

 -n  : only use volume  from each input file (first volume is 0 not 1)

Removing intermediate files

Creating identity xfm

Done

~





brain_anat_mni.nii.gz   data_slice_0018.nii.gz  data_slice_0042.nii.gz  
dcminfo.dat   lowb_brain.nii.gz   
nodif_brain_mask_slice_0021.nii.gz  nodif_brain_mask_slice_0045.nii.gz

brain_anat.nii.gz   data_slice_0019.nii.gz  data_slice_0043.nii.gz  
dtifit_FA.nii.gz  lowb.nii.gz 
nodif_brain_mask_slice_0022.nii.gz  nodif_brain_mask_slice_0046.nii.gz

brain_anat_orig.nii.gz  data_slice_0020.nii.gz  data_slice_0044.nii.gz  
dtifit_L1.nii.gz  nodif_brain_mask.nii.gz 
nodif_brain_mask_slice_0023.nii.gz  nodif_brain_mask_slice_0047.nii.gz

bvals   data_slice_0021.nii.gz  data_slice_0045.nii.gz  
dtifit_L2.nii.gz  nodif_brain_mask_slice_.nii.gz  
nodif_brain_mask_slice_0024.nii.gz  nodif_brain_mask_slice_0048.nii.gz

bvecs   data_slice_0022.nii.gz  data_slice_0046.nii.gz  
dtifit_L3.nii.gz  nodif_brain_mask_slice_0001.nii.gz  
nodif_brain_mask_slice_0025.nii.gz  nodif_brain_mask_slice_0049.nii.gz

data.nii.gz data_slice_0023.nii.gz  data_slice_0047.nii.gz  
dtifit_MD.nii.gz  nodif_brain_mask_slice_0002.nii.gz  
nodif_brain_mask_slice_0026.nii.gz  nodif_brain_mask_slice_0050.nii.gz

data_slice_.nii.gz  data_slice_0024.nii.gz  data_slice_0048.nii.gz  
dtifit_MO.nii.gz  nodif_brain_mask_slice_0003.nii.gz  
nodif_brain_mask_slice_0027.nii.gz  nodif_brain_mask_slice_0051.nii.gz

data_slice_0001.nii.gz