Re: [Freesurfer] convert mgh to nii problems - cannot get output file to reshape properly

2017-08-09 Thread Douglas N Greve
Can you send me the file?


On 08/09/2017 04:17 AM, Suzanne Witt wrote:
> Hi.
>
> I am having a problem similar to that previously described on the freesurfer 
> message boards from May 2011 (Subject: mgh conversion).  Unfortunately, that 
> thread ends with Doug asking the person to send him the files in question, so 
> there does not appear to be any sort of publicly published solution.
>
> I was sent two .mgh files with the resulting activation maps from an fMRI 
> analysis (both left and right hemispheres) and told that the maps were in 
> fsaverage space.  I was not sent any other accompanying files.  I am trying 
> to convert them to nii format.
>
> I have tried both:
>   
> 1. mri_convert filename.mgh filename.nii.gz
>
> and mri_surf2surf (as was suggested in the previous thread)
>
> 2. mri_surf2surf —sval filename.mgh —tval filename.nii —reshape 
> —reshape-factor 6 —s fsaverage —hemi lh
>
> (I realize that the command options should be preceded by double dashes, but 
> my email program is quite insistent about automatically formatting these to 
> long dashes.)
>
> In both cases the when checking the output file using mri_info, the 
> dimensions are still: 163842 x 1 x 1.
>
> Are there any suggestions as to how best to proceed?
>
> Thanks in advance,
>
> Suzanne Witt
>
> ___
> Freesurfer mailing list
> Freesurfer@nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
>
>

-- 
Douglas N. Greve, Ph.D.
MGH-NMR Center
gr...@nmr.mgh.harvard.edu
Phone Number: 617-724-2358
Fax: 617-726-7422

Bugs: surfer.nmr.mgh.harvard.edu/fswiki/BugReporting
FileDrop: https://gate.nmr.mgh.harvard.edu/filedrop2
www.nmr.mgh.harvard.edu/facility/filedrop/index.html
Outgoing: ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/

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


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


[Freesurfer] convert mgh to nii problems - cannot get output file to reshape properly

2017-08-09 Thread Suzanne Witt
Hi.

I am having a problem similar to that previously described on the freesurfer 
message boards from May 2011 (Subject: mgh conversion).  Unfortunately, that 
thread ends with Doug asking the person to send him the files in question, so 
there does not appear to be any sort of publicly published solution.  

I was sent two .mgh files with the resulting activation maps from an fMRI 
analysis (both left and right hemispheres) and told that the maps were in 
fsaverage space.  I was not sent any other accompanying files.  I am trying to 
convert them to nii format.

I have tried both:
 
1. mri_convert filename.mgh filename.nii.gz 

and mri_surf2surf (as was suggested in the previous thread)

2. mri_surf2surf —sval filename.mgh —tval filename.nii —reshape —reshape-factor 
6 —s fsaverage —hemi lh

(I realize that the command options should be preceded by double dashes, but my 
email program is quite insistent about automatically formatting these to long 
dashes.)

In both cases the when checking the output file using mri_info, the dimensions 
are still: 163842 x 1 x 1.

Are there any suggestions as to how best to proceed?  

Thanks in advance,

Suzanne Witt

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


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.