Dear colleagesI am trying to convert my dicom files to .mgz from Freesurfer by using the mri_convert command, but it provides me the following error:edward-virtual-machine:~/freesurfer/subjects/Artists/Controls/C1> mri_convert /home/edward/freesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mri/orig/001.mgz mri_convert /home/edward/freesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mri/orig/001.mgz mri_convert: extra argument ("mri/orig/001.mgz") type mri_convert -u for usageCould anybody help me with this problem? Thanks in advance -Edward
Hi Edward
it's because there is a space in the name of your file. This always complicates things in unix and you are better off avoiding it.
cheers Bruce
On Wed, 3 Feb 2016, Edward Su wrote:
Dear colleages
I am trying to convert my dicom files to .mgz from Freesurfer by using the mri_convert comman d, but it provides me the following error:
edward-virtual-machine:~/freesurfer/subjects/Artists/Controls/C1> mri_convert /home/edward/fr eesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mri/orig/001.mgz mri_convert /home/edward/freesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mr i/orig/001.mgz mri_convert: extra argument ("mri/orig/001.mgz") type mri_convert -u for usage
Could anybody help me with this problem? Thanks in advance -Edward
you have to tell it what you want the output to be, eg, mri_convert file.dcm output.mgz
On 2/3/16 4:07 AM, Edward Su wrote:
Dear colleages I am trying to convert my dicom files to .mgz from Freesurfer by using the mri_convert command, but it provides me the following error: edward-virtual-machine:~/freesurfer/subjects/Artists/Controls/C1> mri_convert /home/edward/freesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mri/orig/001.mgz mri_convert /home/edward/freesurfer/subjects/Artists/Controls/C1/mprage grappa2x_i0001.dcm mri/orig/001.mgz mri_convert: extra argument ("mri/orig/001.mgz") type mri_convert -u for usage Could anybody help me with this problem? Thanks in advance -Edward
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
freesurfer@nmr.mgh.harvard.edu