-
Notifications
You must be signed in to change notification settings - Fork 66
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
nipype_preproc_spm_auditory.py example broken (after the sprint) (?) #302
Comments
It looks like you are using the matlab spm rather than the standalone spm.
Le 21 févr. 2018 11:46 AM, "CherkaouiHamza" <[email protected]> a
écrit :
… After a step-by-step installation that went well (no error, no warnings),
launching the nipype_preproc_spm_auditory example result in:
(I have enable exception raising)
***@***.***:~/src/THESE/pypreprocess/examples/easy_start$ python
nipype_preproc_spm_auditory.py
2018-02-21 11:44:06,467:INFO: found SPM directory to be
"/home/hc252523/opt/spm12/spm12/spm12_mcr/spm12"
2018-02-21 11:44:06,467:INFO: using SPM version: 12
2018-02-21 11:44:06,467:INFO: setting SPM MCR path to
"/home/hc252523/opt/spm12/spm12.sh" and "use_mcr" to True
2018-02-21 11:44:06,467:INFO: SPM configuration succeeded using SPM MCR.
2018-02-21 11:44:06,468:INFO: found SPM directory to be
"/home/hc252523/opt/spm12/spm12/spm12_mcr/spm12"
2018-02-21 11:44:06,468:INFO: using SPM version: 12
2018-02-21 11:44:06,469:INFO: setting SPM MCR path to
"/home/hc252523/opt/spm12/spm12.sh" and "use_mcr" to True
2018-02-21 11:44:06,469:INFO: SPM configuration succeeded using SPM MCR.
Using the following parameters for preprocessing:
normalize=False
coreg_anat_to_func=False
slice_timing_software=spm
output_modulated_tpms=True
func_write_voxel_sizes=[3.0, 3.0, 3.0]
anat_write_voxel_sizes=[1.0, 1.0, 1.0]
dataset_description=SPM Auditory
(single-subject) <http://www.fil.ion.ucl.ac.uk/spm/data/auditory/>
smooth_software=spm
realign_software=spm
register_to_mean=True
deleteorient=False
dataset_dir=/home/hc252523/nilearn_data/spm_auditory
report=True
dataset_id=/home/hc252523/nilearn_data/spm_auditory
realign_reslice=False
segment=True
interleaved=False
coregister_software=spm
anat_fwhm=0.0
spm_dir=None
dartel=False
coregister_reslice=False
fwhm=[5.0, 5.0, 5.0]
newsegment=False
TR=7.0
realign=True
coregister=True
slice_order=ascending
slice_timing=True
caching=True
tsdiffana=True
matlab_exec=None
TA=TR * (1 - 1 / nslices)
180221-11:44:06,642 root WARNING:
[MemorizedFunc(func=<function niigz2nii at 0x7fe34db04578>,
cachedir='/home/hc252523/nilearn_data/spm_auditory/
pypreprocess_scratch/sub001/cache_dir/joblib')]: Computing func
niigz2nii, argument hash 13206e50e35e7f35ab59f270135895b8 in directory
/home/hc252523/nilearn_data/spm_auditory/pypreprocess_
scratch/sub001/cache_dir/joblib/pypreprocess/io_utils/niigz2nii/
13206e50e35e7f35ab59f270135895b8
------------------------------
[Memory] Calling pypreprocess.io_utils.niigz2nii...
niigz2nii([ '/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/
fM00223_004.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_005.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_006.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_007.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_008.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_009.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_010.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_011.img',
'/home/hc252523/nilearn_data/spm_auditory/sub001/fM00223/fM00223_012.img',
'/hom..., output_dir='/home/hc252523/nilearn_data/spm_auditory/
pypreprocess_scratch/sub001')
Persisting in /home/hc252523/nilearn_data/spm_auditory/pypreprocess_
scratch/sub001/cache_dir/joblib/pypreprocess/io_utils/niigz2nii/
13206e50e35e7f35ab59f270135895b8
________________________________________________________niigz2nii - 0.0s,
0.0min
180221-11:44:06,647 root WARNING:
[MemorizedFunc(func=<function niigz2nii at 0x7fe34db04578>,
cachedir='/home/hc252523/nilearn_data/spm_auditory/
pypreprocess_scratch/sub001/cache_dir/joblib')]: Computing func
niigz2nii, argument hash d0f2f65d1f5d42070553d3133aa0fc6b in directory
/home/hc252523/nilearn_data/spm_auditory/pypreprocess_
scratch/sub001/cache_dir/joblib/pypreprocess/io_utils/niigz2nii/
d0f2f65d1f5d42070553d3133aa0fc6b
------------------------------
[Memory] Calling pypreprocess.io_utils.niigz2nii...
niigz2nii('/home/hc252523/nilearn_data/spm_auditory/
sub001/sM00223/sM00223_002.img', output_dir='/home/hc252523/
nilearn_data/spm_auditory/pypreprocess_scratch/sub001')
Persisting in /home/hc252523/nilearn_data/spm_auditory/pypreprocess_
scratch/sub001/cache_dir/joblib/pypreprocess/io_utils/niigz2nii/
d0f2f65d1f5d42070553d3133aa0fc6b
________________________________________________________niigz2nii - 0.0s,
0.0min
2018-02-21 11:44:06,747:INFO: found SPM directory to be
"/home/hc252523/opt/spm12/spm12/spm12_mcr/spm12"
2018-02-21 11:44:06,748:INFO: using SPM version: 12
2018-02-21 11:44:06,748:INFO: setting SPM MCR path to
"/home/hc252523/opt/spm12/spm12.sh" and "use_mcr" to True
2018-02-21 11:44:06,748:INFO: SPM configuration succeeded using SPM MCR.
180221-11:44:06,755 workflow INFO:
Executing node 503c070fcecc899b3783c6a42a34542e in dir:
/home/hc252523/nilearn_data/spm_auditory/pypreprocess_
scratch/sub001/cache_dir/nipype_mem/nipype-interfaces-
spm-preprocess-SliceTiming/503c070fcecc899b3783c6a42a34542e
Traceback (most recent call last):
File "nipype_preproc_spm_auditory.py", line 49, in
subject_data = do_subjects_preproc(jobfile, dataset_dir=dataset_dir)[0]
File "/home/hc252523/src/THESE/pypreprocess/pypreprocess/nipype_preproc_spm_utils.py",
line 1715, in do_subjects_preproc
subject_data, **preproc_params) for subject_data in subjects)
File "/usr/lib/python2.7/dist-packages/joblib/parallel.py", line 779, in
*call*
while self.dispatch_one_batch(iterator):
File "/usr/lib/python2.7/dist-packages/joblib/parallel.py", line 625, in
dispatch_one_batch
self._dispatch(tasks)
File "/usr/lib/python2.7/dist-packages/joblib/parallel.py", line 588, in
_dispatch
job = self._backend.apply_async(batch, callback=cb)
File "/usr/lib/python2.7/dist-packages/joblib/_parallel_backends.py",
line 111, in apply_async
result = ImmediateResult(func)
File "/usr/lib/python2.7/dist-packages/joblib/_parallel_backends.py",
line 332, in *init*
self.results = batch()
File "/usr/lib/python2.7/dist-packages/joblib/parallel.py", line 131, in
*call*
return [func(*args, **kwargs) for func, args, kwargs in self.items]
File "/home/hc252523/src/THESE/pypreprocess/pypreprocess/nipype_preproc_spm_utils.py",
line 1280, in do_subject_preproc
hardlink_output=hardlink_output
File "/home/hc252523/src/THESE/pypreprocess/pypreprocess/nipype_preproc_spm_utils.py",
line 199, in _do_subject_slice_timing
ignore_exception=False #XXX
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/caching/memory.py",
line 86, in *call*
out = node.run()
File "/home/hc252523/.local/lib/python2.7/site-packages/
nipype/pipeline/engine/nodes.py", line 394, in run
self._run_interface()
File "/home/hc252523/.local/lib/python2.7/site-packages/
nipype/pipeline/engine/nodes.py", line 504, in _run_interface
self._result = self._run_command(execute)
File "/home/hc252523/.local/lib/python2.7/site-packages/
nipype/pipeline/engine/nodes.py", line 630, in _run_command
result = self._interface.run()
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 1034, in run
runtime = self._run_wrapper(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 991, in _run_wrapper
runtime = self._run_interface(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/
nipype/interfaces/spm/base.py", line 311, in _run_interface
results = self.mlab.run()
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 1034, in run
runtime = self._run_wrapper(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 1660, in _run_wrapper
runtime = self._run_interface(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/matlab.py",
line 141, in _run_interface
runtime = super(MatlabCommand, self)._run_interface(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 1694, in _run_interface
self.raise_exception(runtime)
File "/home/hc252523/.local/lib/python2.7/site-packages/nipype/interfaces/base.py",
line 1618, in raise_exception
raise RuntimeError(message)
RuntimeError: Command:
/home/hc252523/opt/spm12/spm12.sh run script /home/hc252523/nilearn_data/
spm_auditory/pypreprocess_scratch/sub001/cache_dir/
nipype_mem/nipype-interfaces-spm-preprocess-SliceTiming/
503c070fcecc899b3783c6a42a34542e/pyscript_slicetiming.m
Standard output:
Warning: Unable to open display ':1'. You will not be able to display
graphics on the screen.
Warning: "Run" is deprecated: use "Batch".
In spm_standalone at 20
SPM12, version 7219 (standalone)
MATLAB, version 7.10.0.499 (R2010a)
------------------------------
/
*)( _ ( / ) _ \ )*__/ ) ( Statistical Parametric Mapping
(*/() (*//_) SPM12 - http://www.fil.ion.ucl.ac.uk/spm/
Warning: Unknown extension: 'script'
In spm_jobman>load_jobs at 345
In spm_jobman at 143
In spm_standalone at 101
Warning: No batch job found in 'script'
In spm_jobman>load_jobs at 354
In spm_jobman at 143
In spm_standalone at 101
Execution failed: script
Bye for now...
Error using ==> spm_jobman at 246
No valid job.
Error in spm_jobman (line 246)
Error in spm_standalone (line 101)
Standard error:
Return code: 1
Interface MatlabCommand failed to run.
Interface SliceTiming failed to run.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#302>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AINqfBXcu6GlJD0Y8tnE1zniEyulKZUvks5tW_QigaJpZM4SNa4w>
.
|
I don't have matlab on this laptop... How can I check your intuition? |
Ok, I just saw |
So far I understand:
(see previous traceback) And For an unknow reason there is this "script" keyword that make the parsing failed:
I'll try to understand who inject this "script" keyword. |
I was not able the understand at which point in the code from pyprepreprocess to nipype who set the command line to be
to
Which fix the crash, but It stills produced failed co-registration: So there is another issue here... First of all, I need to be sure that's a reproducible issue (and not just on my machine...). Can someone runs (it will change your local installation of your pypreprocess):
And posts here the traceback? |
Just tried on a clean install of anaconda2 and pypreprocess-master. I remarked that in the parameters list call: So it is not supposed to performd any spatial normalization. Ok, but realign and segment are set to True, and pypreprocess does not seem to perform them (?) cp983411@is153352:~/tmp/pypreprocess-master/examples/easy_start$ python nipype_preproc_spm_auditory.py
180226-13:04:15,438 root WARNING: [Memory] Calling pypreprocess.io_utils.niigz2nii... [Memory] Calling pypreprocess.io_utils.niigz2nii... Preproc report for subject sub001 written to /home/cp983411/nilearn_data/spm_auditory/pypreprocess_output/sub001/reports/report_preproc.html . Finishing /home/cp983411/nilearn_data/spm_auditory/pypreprocess_output...
Fitting a GLM (this takes time) .. /home/cp983411/anaconda2/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The axisbg attribute was deprecated in version 2.0. Use facecolor instead. Statistic report written to /home/cp983411/nilearn_data/spm_auditory/pypreprocess_output/sub001/reports/report_stats.html |
currently, in
|
Yet, setting
does not seem to change anything (that is, normalization is not performed) |
in
I think your example has crashed but, the exception has been caught; because, indeed, it should have done the co-registration, the motion correction, etc... Which he has not. (Yes, indeed |
You mean a T2* (epi) realign? |
No, I was thinking of the anatomical re-alignement:
Those line should enable the anatomical co-registration. But based on my z-map or your traceback, it seems to not do it... (sorry if I use approximated vocabulary... :( ) |
Ok, it is indeed just a vocabulary issue: In SPM parlance:
|
After a step-by-step installation that went well (no error, no warnings), launching the nipype_preproc_spm_auditory example result in:
(I have enable exception raising)
The text was updated successfully, but these errors were encountered: