Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: mghRead(/[...]/mri/brain.mgz, -1): could not open file #15

Open
yqliu9240 opened this issue Oct 12, 2022 · 1 comment
Open

error: mghRead(/[...]/mri/brain.mgz, -1): could not open file #15

yqliu9240 opened this issue Oct 12, 2022 · 1 comment

Comments

@yqliu9240
Copy link

yqliu9240 commented Oct 12, 2022

Hello!

I got this error when running the mri_convert command under the "=====Creating orig and rawavg from input=======" section:

mri_convert -rl /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/brain.mgz /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/proc_VBG/sub-LS/sub-LS_Brain_clean.nii.gz /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/real_T1.mgz
Started @ 2022-10-11_21-56-11
pid = 98958 basicPID = 1957
mri_convert -rl /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/brain.mgz /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/proc_VBG/sub-LS/sub-LS_Brain_clean.nii.gz /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/real_T1.mgz
error: mghRead(/Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/brain.mgz, -1): could not open file
error reading from volume /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/brain.mgz

reading from /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/proc_VBG/sub-LS/sub-LS_Brain_clean.nii.gz...
niiRead(): detected input as 64 bit double, reading in as 32 bit float
TR=0.00, TE=0.00, TI=0.00, flip angle=0.00
i_ras = (-1, -0, 0)
j_ras = (-0, 0, -1)
k_ras = (-0, 1, 0)
reading template info from volume /Users/chenglu/Documents/Liu/LS_VBG/VBG_out/output_VBG/sub-LS/sub-LSfastsurfer/sub-LS/mri/brain.mgz...
Success
Finished @ 2022-10-11_21-56-17

And this resulted in a bunch of other errors onward. I checked and found that the brain.mgz file is indeed missing in the mri folder, and I am attaching a screenshot of what my mri folder contains. I am not sure what is missing because the script prior to this part seemed to have run fine. And this is the command I input:
KUL_VBG.sh -S LS -a sub-LS_T1w.nii.gz -n 1 -l LesionMask_T1.nii.gz -z T1 -B 1 -P 2 -v

Please let me know if you have any insights! Thank you in advance.

Yuqi

截屏2022-10-12 08 40 48

@BrainTseng
Copy link

I think it's because you are using Freesufer v7 rather than v6. The '-make all' flag is no longer used in v7 while the scripts are based on v6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants