Hi again, I need another follow up on that issue…
I need to run fmriprep with pre-run freesurfer for a couple of subjects.
When I ran the following command [given that the prerun freesurfer directory is in the place where fmriprep would write into] it completes almost all of the steps successfully.
docker run -ti --rm \
-v /Users/ilkay.isik/localApps/freesurfer/license.txt:/opt/freesurfer/license.txt:ro \
-v /Users/ilkay.isik/project_folder_temp/fc_content/MRI_data/data_BIDS/Nifti:/data:ro \
-v /Users/ilkay.isik/project_folder_temp/fc_content/MRI_data/data_BIDS/Nifti:/out \
poldracklab/fmriprep:1.1.8 \
/data /out/out \
participant \
--participant-label sub-$subj \
--ignore slicetiming \
--output-space T1w template fsnative fsaverage \
--use-aroma \
--write-graph \
--nthreads 2 --n_cpus 3 --mem_mb 29000 \
--work-dir /out/out/temp_files/sub-$subj
but in the end gives this error:
could not run node: fmriprep_wf.single_subject_01_wf.anat_preproc_wf.t1_2_mni
Errors occurred while generating reports for participants: 01 (1).
And this is what is written in the crash report:
Node: fmriprep_wf.single_subject_01_wf.anat_preproc_wf.t1_2_mni
Working directory: /out/out/temp_files/sub-01/fmriprep_wf/single_subject_01_wf/anat_preproc_wf/t1_2_mni
Node inputs:
compress_report = auto
explicit_masking = True
flavor = precise
float = True
initial_moving_transform = <undefined>
lesion_mask = <undefined>
moving = T1
moving_image = <undefined>
moving_mask = <undefined>
num_threads = 2
orientation = RAS
out_report = report.svg
reference = T1
reference_image = <undefined>
reference_mask = <undefined>
settings = <undefined>
template = mni_icbm152_nlin_asym_09c
template_resolution = 1
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/plugins/multiproc.py", line 69, in run_node
result['result'] = node.run(updatehash=updatehash)
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 408, in run
cached, updated = self.is_cached()
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 294, in is_cached
hashed_inputs, hashvalue = self._get_hashval()
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 488, in _get_hashval
self._get_inputs()
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 531, in _get_inputs
self.set_input(key, deepcopy(output_value))
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/pipeline/engine/nodes.py", line 276, in set_input
setattr(self.inputs, parameter, deepcopy(val))
File "/usr/local/miniconda/lib/python3.6/site-packages/nipype/interfaces/base/traits_extension.py", line 103, in validate
validated_value = super(File, self).validate(object, name, value)
File "/usr/local/miniconda/lib/python3.6/site-packages/traits/trait_types.py", line 411, in validate
self.error( object, name, value )
File "/usr/local/miniconda/lib/python3.6/site-packages/traits/trait_handlers.py", line 172, in error
value )
traits.trait_errors.TraitError: The 'lesion_mask' trait of a RobustMNINormalizationInputSpecRPT instance must be an existing file name, but a value of ['/data/out/fmriprep/sub-01/anat/sub-01_T1w_label-aparcaseg_roi.nii.gz', '/data/out/fmriprep/sub-01/anat/sub-01_T1w_label-aseg_roi.nii.gz'] <class 'list'> was specified.
Error setting node input:
Node: t1_2_mni
input: lesion_mask
results_file: /out/out/temp_files/sub-01/fmriprep_wf/single_subject_01_wf/bidssrc/result_bidssrc.pklz
value: ['/data/out/fmriprep/sub-01/anat/sub-01_T1w_label-aparcaseg_roi.nii.gz', '/data/out/fmriprep/sub-01/anat/sub-01_T1w_label-aseg_roi.nii.gz']