help > Error in opening a volume file with command line.
Showing 1-2 of 2 posts
Display:
Results per page:
Sep 11, 2018  10:09 PM | avantika mathur - UNL
Error in opening a volume file with command line.
Hi,

When I use the command BrainNet_MapCfg to ope a SPM Tmap file (.nii) file.
It gives me following error:

Error using spm_vol>spm_vol_hdr (line 80)
File "Users/postdoc/Desktop/HL_fMRIData/HL002_SKY01116/Result/spmT_0004_SPM_p05_k8.nii" does not exist.

Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_MapCfg (line 160)
surf.hdr=spm_vol(VolFileName);

The file exists in the specified folder and I am able to open it and map it on a surface file with GUI.

I don 't understand why the error is happening over command line.

Thanks 
Avantika
Sep 12, 2018  11:09 AM | Mingrui Xia
RE: Error in opening a volume file with command line.
Hi Avantika, 

I think the full path should be "/Users/postdoc/Desktop/HL_fMRIData/HL002_SKY01116/Result/spmT_0004_SPM_p05_k8.nii".

Best,
Mingrui
Originally posted by avantika mathur:
Hi,

When I use the command BrainNet_MapCfg to ope a SPM Tmap file (.nii) file.
It gives me following error:

Error using spm_vol>spm_vol_hdr (line 80)
File "Users/postdoc/Desktop/HL_fMRIData/HL002_SKY01116/Result/spmT_0004_SPM_p05_k8.nii" does not exist.

Error in spm_vol (line 61)
v = spm_vol_hdr(deblank(P(i,:)));
Error in BrainNet_MapCfg (line 160)
surf.hdr=spm_vol(VolFileName);

The file exists in the specified folder and I am able to open it and map it on a surface file with GUI.

I don 't understand why the error is happening over command line.

Thanks 
Avantika