External Email - Use Caution
Dear Dr. Greve,
This happens on all the MEG inputs I've tried not just one or two (I'm using files/data from the OMEGA dataset). I've put some print statements in the load_nifti.m file to see the nitemsread and nvoxels variables that (I think) seem to be causing the problem. The below is what I see:IsIco7 =0dim =1762402561111
ind0 =0×1 empty double column vector
dim =1762402561111
nvoxels =10813440
fp =3ans =0Siamak_1_in_load_niftiihdr =
struct with fields:
sizeof_hdr: 348endian: 'l'data_type: ' 'db_name: ' 'extents: 0session_error: 0regular: 114dim_info: 54dim: [8×1 double]intent_p1: 0intent_p2: 0intent_p3: 0intent_code: 0datatype: 4bitpix: 16slice_start: 0pixdim: [8×1 double]vox_offset: 352scl_slope: 1scl_inter: 0slice_end: 0slice_code: 0xyzt_units: 18cal_max: 0cal_min: 0slice_duration: 0toffset: 0glmax: 0glmin: 0descrip: 'TE=3;Time=134612.108;phase=1 'aux_file: ' 'qform_code: 1sform_code: 1quatern_b: 1.745223999023438e-04quatern_c: 0quatern_d: 0quatern_x: -87.776428222656250quatern_y: -94.240295410156250quatern_z: -1.479825134277344e+02srow_x: [4×1 double]srow_y: [4×1 double]srow_z: [4×1 double]intent_name: ' 'magic: 'n+1 'sform: [4×4 double]qform: [4×4 double]vox2ras: [4×4 double]vol: [21626880×1 double]nitemsread =21626880ans =31762402561111
ERROR: D:\MEG_OMEGA_data\controls\sub-0249_Siamak\ses-01\anat\sub-0249_ses-01_run-1_T1w.nii, read in 21626880 voxels, expected 10813440ERROR: loading D:\MEG_OMEGA_data\controls\sub-0249_Siamak\ses-01\anat\sub-0249_ses-01_run-1_T1w.nii as analyze
I'm just not clear what is causing this mismatch. I can share my screen and show you if you are able to Zoom? In any case, please let me know what you think.
Best,Siamak
On Thursday, January 26, 2023 at 07:13:32 AM PST, Douglas N. Greve <dgreve@mgh.harvard.edu> wrote:
Does this happen on every volume or just with this one. If just this one, then it is probably a problem with the volume itself and not the code
On 1/25/2023 9:15 PM, Siamak Sorooshyari wrote:
External Email - Use Caution
Dear FreeSurfer,
I am using the FieldTrip software to process MEG data, it involves my using the function ft_read_mri() in MATLAB to read in the anatomical MRI file.I have tried feeding into this function a .nii.gz as well as the unzipped .nii version.
In the latter case I get an error:
ERROR: D:\...\anat\sub-0249_ses-01_run-1_T1w.nii, read in 21626880 voxels, expected 10813440
I contacted the FieldTrip folks and they mentioned that it's a FreeSurfer issue. I think I've isolated the issue to the load_nifti.m file with the "nitemsread" variable and "nvoxels" variables not matching in value. I am not clear why this would happen, how can this be fixed?
Best,Siamak
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
_______________________________________________
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be 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 Mass General Brigham Compliance HelpLine at MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.massgeneralbrigham.org/complianceline <MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://www.massgeneralbrigham.org/complianceline> .
_______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer