Hello Steven, thank you
The "More than one surface found.\n"
line and the error only showing up when I was trying to select one session from multiple sessions made me think they were potentially similar errors, my apologies.
Below is the fMRIPrep command I used, and the --fs-no-reconall flag was not included.
singularity run --cleanenv -B /projects -B $Scratch_space $Singularity_path/fmriprep-23.0.2.simg
$BIDS_DIR $BIDS_DIR/derivatives/fmriprep-23.0.2/ participant --participant-label SUBJ01
-w $Scratch_space/workdir --nthreads 16 --omp-nthreads 12 --mem_mb 48000
--fs-license-file $FSLICENSEFILE --fs-subjects-dir $FSDIR --output-spaces anat fsnative
MNI152NLin2009cAsym fsLR fsaverage --cifti-output 91k --fd-spike-threshold 0.5 --dvars-spike-
threshold 1.5 --dummy-scans 4 --skip-bids-validation --bids-filter-file $SESFILTER
I added full op logs using both 0.4.1rc2 and 0.5.0rc2 for reference.
Version: 0.4.1rc2
230807-10:31:29,901 nipype.workflow IMPORTANT:
Running xcp_d version 0.4.1rc2:
* fMRI directory path: /path/to/test/folder/derivatives/fmriprep.
* Participant list: ['SUBJ01'].
* Run identifier: 20230807-103127_2a970825-d75b-47b2-8c05-bba902388959.
230807-10:31:29,998 nipype.workflow INFO:
Beginning the xcpd_wf workflow
230807-10:31:30,784 nipype.utils WARNING:
Multiple files found for query 't1w':
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-preproc_T1w.nii.gz
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_desc-preproc_T1w.nii.gz
230807-10:31:30,784 nipype.utils WARNING:
Multiple files found for query 'anat_dseg':
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_dseg.nii.gz
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_dseg.nii.gz
230807-10:31:30,784 nipype.utils WARNING:
Multiple files found for query 'template_to_anat_xfm':
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
230807-10:31:30,784 nipype.utils WARNING:
Multiple files found for query 'anat_brainmask':
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-brain_mask.nii.gz
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_desc-brain_mask.nii.gz
230807-10:31:30,784 nipype.utils WARNING:
Multiple files found for query 'anat_to_template_xfm':
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
230807-10:31:30,785 nipype.utils IMPORTANT:
Collected data:
anat_brainmask: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-brain_mask.nii.gz
anat_dseg: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_dseg.nii.gz
anat_to_template_xfm: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
bold:
- /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/func/sub-SUBJ01_ses-01_task-rest_dir-AP_space-fsLR_den-91k_bold.dtseries.nii
t1w: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-preproc_T1w.nii.gz
t2w: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/anat/sub-SUBJ01_desc-preproc_T2w.nii.gz
template_to_anat_xfm: /path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
230807-10:31:30,822 nipype.utils INFO:
No standard-space surfaces found.
230807-10:31:30,858 nipype.utils INFO:
No standard-space surfaces found.
230807-10:31:30,895 nipype.utils INFO:
No standard-space surfaces found.
230807-10:31:30,931 nipype.utils INFO:
No standard-space surfaces found.
Process Process-2:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/miniconda/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/cli/run.py", line 937, in build_workflow
retval["workflow"] = init_xcpd_wf(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/workflows/base.py", line 192, in init_xcpd_wf
single_subj_wf = init_subject_wf(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/workflows/base.py", line 369, in init_subject_wf
mesh_available, morphometry_files, standard_space_mesh, surface_data = collect_surface_data(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/utils/bids.py", line 489, in collect_surface_data
mesh_available, standard_space_mesh, mesh_files = _find_standard_space_surfaces(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/utils/bids.py", line 422, in _find_standard_space_surfaces
raise ValueError(
ValueError: More than one surface found.
Surfaces found:
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_hemi-L_pial.surf.gii
/path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_hemi-L_pial.surf.gii
Query: {'hemi': 'L', 'desc': None, 'suffix': 'pial', 'extension': '.surf.gii'}
Version: 0.5.0rc2
230804-14:21:09,908 nipype.workflow IMPORTANT:
Running xcp_d version 0.5.0rc2:
* fMRI directory path: /path/to/test/folder/derivatives/fmriprep.
* Participant list: ['SUBJ01'].
* Run identifier: 20230804-142106_e0b61b5b-2ae3-4175-b051-a33c90eb66ad.
230804-14:21:10,34 nipype.workflow INFO:
Beginning the xcpd_wf workflow
230804-14:21:11,169 nipype.utils WARNING:
Multiple files found for query 't1w':
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-preproc_T1w.nii.gz
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_desc-preproc_T1w.nii.gz
230804-14:21:11,170 nipype.utils WARNING:
Multiple files found for query 'anat_dseg':
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_dseg.nii.gz
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_dseg.nii.gz
230804-14:21:11,170 nipype.utils WARNING:
Multiple files found for query 'template_to_anat_xfm':
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
230804-14:21:11,170 nipype.utils WARNING:
Multiple files found for query 'anat_brainmask':
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-brain_mask.nii.gz
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_desc-brain_mask.nii.gz
230804-14:21:11,170 nipype.utils WARNING:
Multiple files found for query 'anat_to_template_xfm':
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-02/anat/sub-SUBJ01_ses-02_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
230804-14:21:11,172 nipype.utils IMPORTANT:
Collected data:
anat_brainmask: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-brain_mask.nii.gz
anat_dseg: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_dseg.nii.gz
anat_to_template_xfm: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
bold:
- path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/func/sub-SUBJ01_ses-01_task-rest_dir-AP_space-fsLR_den-91k_bold.dtseries.nii
t1w: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_desc-preproc_T1w.nii.gz
t2w: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/anat/sub-SUBJ01_desc-preproc_T2w.nii.gz
template_to_anat_xfm: path/to/test/folder/derivatives/fmriprep/sub-SUBJ01/ses-01/anat/sub-SUBJ01_ses-01_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
230804-14:21:11,223 nipype.utils INFO:
No standard-space surfaces found.
230804-14:21:11,273 nipype.utils INFO:
No standard-space surfaces found.
230804-14:21:11,444 nipype.utils INFO:
No standard-space surfaces found.
230804-14:21:11,496 nipype.utils INFO:
No standard-space surfaces found.
Process Process-2:
Traceback (most recent call last):
File "/usr/local/miniconda/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/usr/local/miniconda/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/cli/run.py", line 990, in build_workflow
retval["workflow"] = init_xcpd_wf(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/workflows/base.py", line 199, in init_xcpd_wf
single_subj_wf = init_subject_wf(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/workflows/base.py", line 384, in init_subject_wf
mesh_available, standard_space_mesh, mesh_files = collect_mesh_data(
File "/usr/local/miniconda/lib/python3.8/site-packages/xcp_d/utils/bids.py", line 445, in collect_mesh_data
"More than one surface found.\n"
KeyError: 'lh_pial_surf'
Thank you.