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 running step 3 - postprocess #4

Closed
snapfinger opened this issue Apr 4, 2019 · 8 comments
Closed

Error running step 3 - postprocess #4

snapfinger opened this issue Apr 4, 2019 · 8 comments

Comments

@snapfinger
Copy link

Hi there, I can run the first two steps without problems, however when it comes to the last step it gives the following error message and I didn't see any generated files under directory /Test/Results
➜ DW-POSSUM git:(master) ✗ ./postProcess.py Test 3 --noise_levels 0 0.0081 0.0165
[0.0, 0.0081, 0.0165]
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction0/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image0
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction0/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image0
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction0/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image0
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction1/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image1
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image1
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction1/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image1
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image1
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction1/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image1
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image1
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction2/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image2
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image2
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction2/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image2
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image2
nx,ny,nz 72 86 1
dx,dy,dz 2.5 2.5 2.5
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
what(): Mat::operator(): index out of bounds
mv: cannot stat '/hd2/EE591/project/DW-POSSUM/Test/Direction2/imageNoise_abs.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image2
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image2
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image0
Aborted (core dumped)
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image0.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image1.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0_image2.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image0
Aborted (core dumped)
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image0.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image1.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0081_image2.nii.gz': No such file or directory
Image Exception : #63 :: No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image0
terminate called after throwing an instance of 'armawrap::AWException'
what(): No image files match: /hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image0
Aborted (core dumped)
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image0.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image1.nii.gz': No such file or directory
rm: cannot remove '/hd2/EE591/project/DW-POSSUM/Test/Results/diff_sigma0.0165_image2.nii.gz': No such file or directory

@snapfinger
Copy link
Author

snapfinger commented Apr 5, 2019

Digging a bit deeper, it seems the signal2image line causes the following error which leads the other errors.

nx,ny,nz 72 86 1 
dx,dy,dz 2.5 2.5 2.5 
Reshaping the signal...

error: Mat::operator(): index out of bounds

terminate called after throwing an instance of 'std::logic_error'
  what():  Mat::operator(): index out of bounds

btw. I'm using fsl 6.0.0

@marksgraham
Copy link
Owner

marksgraham commented Apr 5, 2019 via email

@snapfinger
Copy link
Author

As I mentioned in the last thread, it's fsl 6.0.0. Should I upgrade to 6.0.1? My machine is a Ubuntu 16.04 LTS.

@marksgraham
Copy link
Owner

Could you try running a simple POSSUM simulation: https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/POSSUM
If that doesn't work then it looks like the problem is with FSL itself.

@snapfinger
Copy link
Author

snapfinger commented Apr 6, 2019

Thanks, I tried it, and indeed, it looks it's even having problem with generating signal. If use readsignal function in your code, it will just output empty list.

/usr/local/fsl/bin/fsl_sub -T 10 -j 12457 -F -l /hd2/EE591/project/DW-POSSUM/simdir/logs  /usr/local/fsl/bin/possumX_postproc.sh /hd2/EE591/project/DW-POSSUM/simdir 5
/usr/local/fsl/bin/possum_sum -i /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_ -o /hd2/EE591/project/DW-POSSUM/simdir/signal -n 5
Could not open matrix file /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_0
Could not open matrix file /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_1
Could not open matrix file /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_2
Could not open matrix file /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_3
Could not open matrix file /hd2/EE591/project/DW-POSSUM/simdir/diff_proc/signal_proc_4
Sat Apr  6 09:52:12 PDT 2019
/usr/local/fsl/bin/signal2image -i /hd2/EE591/project/DW-POSSUM/simdir/signal -o /hd2/EE591/project/DW-POSSUM/simdir/image -p /hd2/EE591/project/DW-POSSUM/simdir/pulse -a --homo
nx,ny,nz 64 64 1
dx,dy,dz 4 4 1
Reshaping the signal...

error: Mat::operator(): index out of bounds

Do you have any suggestions for resolving this issue?
I wonder which version of FSL you were using (including the operating system)?

@marksgraham
Copy link
Owner

marksgraham commented Apr 7, 2019 via email

@snapfinger
Copy link
Author

snapfinger commented Apr 8, 2019

Thanks. Indeed, running with FSL ver. 5.0.8 (didn't find 5.0.9) in macOS is without problem.

@15thai
Copy link

15thai commented Dec 6, 2021

Hi there,
I also have the same problem, is there any way we can fix this using fsl6.0?
Since I don't know how to downgrade into fsl5.0 to run a quick tutorial. Thank you.

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

3 participants