Hi @oesteban,
Thank you very much for the updates. I have tried the new pediatric template of Template Flow using the command that you provided but ran into some errors (see below). I have several questions regarding the errors. First, I have specified output --output-spaces MNIInfant:cohort-9:res-2, but why did it download tpl-MNIInfant_cohort-9_res-1_T1w.nii.gz instead? Second, for Freesurfer, how can I specify the output space (default fsaverage5")? Third, how to add the output space for --use-aroma? It is not using the one I specified but using “MNI152NLin6Asym:res-2” instead. Thanks.
The whole command I am using is as following:
singularity run
–cleanenv
–home /scratch/YX_data_analysis:/asd/apps/software
/asd/apps/software/fmriprep_1.4.1rc2.sif
/asd/apps/software/Converted_BIDs /asd/apps/software/RESTvsTASK participant
–participant-label ${subj}
–skull-strip-template MNIInfant:cohort-9 --output-spaces MNIInfant:cohort-9:res-2
–use-aroma --output-spaces MNIInfant:cohort-9:res-2
–nthreads 6 --n_cpus 12 --omp-nthreads 12
–mem-mb 16000
–skip_bids_validation
–fs-license-file /asd/apps/software/license.txt I have several questions for that
Error report:
Although --fs-no-reconall
was not set (i.e., FreeSurfer is to be run), no FreeSurfer output space (valid values are: fsaverage, fsaverage6, fsnative, fsaverage5) was selected. Adding default “fsaverage5” to the list of output spaces.
Option “–use-aroma” requires functional images to be resampled to MNI152NLin6Asym space. The argument “MNI152NLin6Asym:res-2” has been automatically added to the list of output spaces (option --output-spaces
).
190609-07:50:42,606 nipype.workflow IMPORTANT:
Running fMRIPREP version 1.4.1rc2:
* BIDS dataset path: /asd/apps/software/Converted_BIDs.
* Participant list: ['AACE54614A'].
* Run identifier: 20190609-075042_f3cd8a79-11cf-4049-8d45-919c48a89aeb.
Downloading https://templateflow.s3.amazonaws.com/tpl-MNIInfant/cohort-9/tpl-MNIInfant_cohort-9_res-1_T1w.nii.gz
Process Process-2:
Traceback (most recent call last):
File “/usr/local/miniconda/lib/python3.7/multiprocessing/process.py”, line 297, in _bootstrap
self.run()
File “/usr/local/miniconda/lib/python3.7/multiprocessing/process.py”, line 99, in run
self._target(*self._args, **self._kwargs)
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/run.py”, line 608, in build_workflow
work_dir=str(work_dir),
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py”, line 259, in init_fmriprep_wf
use_syn=use_syn,
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/workflows/base.py”, line 551, in init_single_subject_wf
skull_strip_template=skull_strip_template,
File “/usr/local/miniconda/lib/python3.7/site-packages/smriprep/workflows/anatomical.py”, line 230, in init_anat_preproc_wf
normalization_quality=‘precise’ if not debug else ‘testing’)
File “/usr/local/miniconda/lib/python3.7/site-packages/niworkflows/anat/ants.py”, line 188, in init_brain_extraction_wf
tpl_target_path = get_template(in_template, **template_spec)
File “/usr/local/miniconda/lib/python3.7/site-packages/templateflow/api.py”, line 39, in get
_s3_get(filepath)
File “/usr/local/miniconda/lib/python3.7/site-packages/templateflow/api.py”, line 139, in _s3_get
with filepath.open(‘wb’) as f:
File “/usr/local/miniconda/lib/python3.7/pathlib.py”, line 1176, in open
opener=self._opener)
File “/usr/local/miniconda/lib/python3.7/pathlib.py”, line 1030, in _opener
return self._accessor.open(self, flags, mode)
OSError: [Errno 30] Read-only file system: ‘/opt/templateflow/tpl-MNIInfant/cohort-9/tpl-MNIInfant_cohort-9_res-1_T1w.nii.gz’