Question for post aroma

Hi all

Summary of what happened:

When I run my code for post aroma, I encounter a issue that I have no idea why.

Thank you in advance for any input

Kind regards
Eric

Command used (and if a helper script was used, a link to the helper script or the command generated):

Below is my code for fmriprep (use MNI152NLin6Asym) and postaroma:

Fmriprep:

docker run --rm -it \
	-v ${PROJECT_DIR}/license.txt:/license.txt:ro \
	-v ${PROJECT_DIR}/Nifti:/data:ro \
	-v ${PROJECT_DIR}/deriv-fmriprep_aroma:/out \
	nipreps/fmriprep:24.1.1 \
	/data \
	/out \
	participant \
	--participant-label $i \
	--fs-license-file /license.txt \
	--fs-no-reconall \
	--output-spaces MNI152NLin6Asym:res-02 \
	--stop-on-first-crash

postaroma:

docker run --rm -it \
	-v ${PROJECT_DIR}/Nifti:/data \
	-v ${PROJECT_DIR}/PostAroma:/out \
	-v ${PROJECT_DIR}/deriv-fmriprep_aroma:/prep \
	nipreps/fmripost-aroma:main \
	/data  \
	/out \
	participant \
	--notrack \
	--derivatives fmriprep=/prep \
	--denoising-method nonaggr \
	--participant-label $i \
	--error-on-warnings

Version:

fmriprep 24.1.1, postaroma main

Environment (Docker, Singularity / Apptainer, custom installation):

Docker

Data formatted according to a validatable standard? Please provide the output of the validator:

PASTE VALIDATOR OUTPUT HERE

Relevant log outputs (up to 20 lines):

Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym/tpl-MNI152NLin6Asym_res-02_desc-brain_T1w.nii.gz
100%|████████████████████████████████████████| 429k/429k [00:09<00:00, 47.0kB/s]
Not all requested output spaces were found. We will try to find transforms to these spaces and apply them to the BOLD data.
Process Process-2:
Traceback (most recent call last):
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/cli/workflow.py", line 115, in build_workflow
    retval['workflow'] = init_fmripost_aroma_wf()
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 71, in init_fmripost_aroma_wf
    single_subject_wf = init_single_subject_wf(subject_id)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 280, in init_single_subject_wf
    single_run_wf = init_single_run_wf(bold_file)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 321, in init_single_run_wf
    collect_derivatives(
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/utils/bids.py", line 218, in collect_derivatives
    raise ValueError(
ValueError: Transforms to the following requested spaces not found: MNI152NLin6Asym.

Screenshots / relevant information:


@PSYC_Eric, can you share the tree of fMRIPrep derivatives you’re using?

Can you try just using the fMRIPrep derivatives, since you shouldn’t need the raw dataset if you have MNI152NLin6Asym:res-2 derivatives? That is a simpler configuration and should be easier to debug.

docker run --rm -it \
	-v ${PROJECT_DIR}/PostAroma:/out \
	-v ${PROJECT_DIR}/deriv-fmriprep_aroma:/prep \
	nipreps/fmripost-aroma:main \
	/prep  \
	/out \
	participant \
	--notrack \
	--denoising-method nonaggr \
	--participant-label $i \
	--error-on-warnings

Hi @tsalo

I have tried to change the input but there is still error (same error for both subject):

250219-14:59:14,242 nipype.workflow IMPORTANT:
	 Building fMRIPost-AROMA's workflow:
           * BIDS dataset path: /prep.
           * Participant list: ['102'].
           * Run identifier: 20250219-145853_9d57a66d-7dd9-4c75-b11e-baf5c52d1cb9.
           * Output spaces: None.
250219-14:59:14,767 nipype.workflow INFO:
	 Derivatives-only workflow mode enabled
Process Process-2:
Traceback (most recent call last):
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/cli/workflow.py", line 115, in build_workflow
    retval['workflow'] = init_fmripost_aroma_wf()
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 71, in init_fmripost_aroma_wf
    single_subject_wf = init_single_subject_wf(subject_id)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 208, in init_single_subject_wf
    raise RuntimeError(
RuntimeError: No BOLD images found for participant 102 and task <all>. All workflows require BOLD images. Please check your BIDS filters: None.

Here is the fmriprep derivatives tree, I didn’t change anything:

.
├── dataset_description.json
├── logs
│   ├── CITATION.bib
│   ├── CITATION.html
│   ├── CITATION.md
│   └── CITATION.tex
├── sub-101
│   ├── figures
│   │   ├── sub-101_ses-1_desc-about_T1w.html
│   │   ├── sub-101_ses-1_desc-conform_T1w.html
│   │   ├── sub-101_ses-1_desc-summary_T1w.html
│   │   ├── sub-101_ses-1_dseg.svg
│   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_T1w.svg
│   │   ├── sub-101_ses-1_task-rest_desc-carpetplot_bold.svg
│   │   ├── sub-101_ses-1_task-rest_desc-compcorvar_bold.svg
│   │   ├── sub-101_ses-1_task-rest_desc-confoundcorr_bold.svg
│   │   ├── sub-101_ses-1_task-rest_desc-coreg_bold.svg
│   │   ├── sub-101_ses-1_task-rest_desc-rois_bold.svg
│   │   ├── sub-101_ses-1_task-rest_desc-summary_bold.html
│   │   ├── sub-101_ses-1_task-rest_desc-validation_bold.html
│   │   ├── sub-101_ses-2_task-rest_desc-carpetplot_bold.svg
│   │   ├── sub-101_ses-2_task-rest_desc-compcorvar_bold.svg
│   │   ├── sub-101_ses-2_task-rest_desc-confoundcorr_bold.svg
│   │   ├── sub-101_ses-2_task-rest_desc-coreg_bold.svg
│   │   ├── sub-101_ses-2_task-rest_desc-rois_bold.svg
│   │   ├── sub-101_ses-2_task-rest_desc-summary_bold.html
│   │   └── sub-101_ses-2_task-rest_desc-validation_bold.html
│   ├── log
│   │   └── 20250219-012602_57dd42bd-2e7e-463b-b751-93cf85751438
│   │       └── fmriprep.toml
│   ├── ses-1
│   │   ├── anat
│   │   │   ├── sub-101_ses-1_desc-brain_mask.json
│   │   │   ├── sub-101_ses-1_desc-brain_mask.nii.gz
│   │   │   ├── sub-101_ses-1_desc-preproc_T1w.json
│   │   │   ├── sub-101_ses-1_desc-preproc_T1w.nii.gz
│   │   │   ├── sub-101_ses-1_dseg.nii.gz
│   │   │   ├── sub-101_ses-1_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
│   │   │   ├── sub-101_ses-1_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
│   │   │   ├── sub-101_ses-1_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
│   │   │   ├── sub-101_ses-1_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
│   │   │   ├── sub-101_ses-1_label-CSF_probseg.nii.gz
│   │   │   ├── sub-101_ses-1_label-GM_probseg.nii.gz
│   │   │   ├── sub-101_ses-1_label-WM_probseg.nii.gz
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_desc-preproc_T1w.json
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_desc-preproc_T1w.nii.gz
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_dseg.json
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_dseg.nii.gz
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_label-CSF_probseg.nii.gz
│   │   │   ├── sub-101_ses-1_space-MNI152NLin6Asym_res-02_label-GM_probseg.nii.gz
│   │   │   └── sub-101_ses-1_space-MNI152NLin6Asym_res-02_label-WM_probseg.nii.gz
│   │   └── func
│   │       ├── sub-101_ses-1_task-rest_desc-brain_mask.json
│   │       ├── sub-101_ses-1_task-rest_desc-brain_mask.nii.gz
│   │       ├── sub-101_ses-1_task-rest_desc-confounds_timeseries.json
│   │       ├── sub-101_ses-1_task-rest_desc-confounds_timeseries.tsv
│   │       ├── sub-101_ses-1_task-rest_desc-coreg_boldref.json
│   │       ├── sub-101_ses-1_task-rest_desc-coreg_boldref.nii.gz
│   │       ├── sub-101_ses-1_task-rest_desc-hmc_boldref.json
│   │       ├── sub-101_ses-1_task-rest_desc-hmc_boldref.nii.gz
│   │       ├── sub-101_ses-1_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│   │       ├── sub-101_ses-1_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│   │       ├── sub-101_ses-1_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│   │       ├── sub-101_ses-1_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│   │       ├── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_boldref.json
│   │       ├── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_boldref.nii.gz
│   │       ├── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│   │       ├── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│   │       ├── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json
│   │       └── sub-101_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz
│   └── ses-2
│       └── func
│           ├── sub-101_ses-2_task-rest_desc-brain_mask.json
│           ├── sub-101_ses-2_task-rest_desc-brain_mask.nii.gz
│           ├── sub-101_ses-2_task-rest_desc-confounds_timeseries.json
│           ├── sub-101_ses-2_task-rest_desc-confounds_timeseries.tsv
│           ├── sub-101_ses-2_task-rest_desc-coreg_boldref.json
│           ├── sub-101_ses-2_task-rest_desc-coreg_boldref.nii.gz
│           ├── sub-101_ses-2_task-rest_desc-hmc_boldref.json
│           ├── sub-101_ses-2_task-rest_desc-hmc_boldref.nii.gz
│           ├── sub-101_ses-2_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│           ├── sub-101_ses-2_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│           ├── sub-101_ses-2_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│           ├── sub-101_ses-2_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│           ├── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_boldref.json
│           ├── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_boldref.nii.gz
│           ├── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│           ├── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│           ├── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json
│           └── sub-101_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz
├── sub-101.html
├── sub-102
│   ├── figures
│   │   ├── sub-102_ses-1_desc-about_T1w.html
│   │   ├── sub-102_ses-1_desc-conform_T1w.html
│   │   ├── sub-102_ses-1_desc-summary_T1w.html
│   │   ├── sub-102_ses-1_dseg.svg
│   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_T1w.svg
│   │   ├── sub-102_ses-1_task-rest_desc-carpetplot_bold.svg
│   │   ├── sub-102_ses-1_task-rest_desc-compcorvar_bold.svg
│   │   ├── sub-102_ses-1_task-rest_desc-confoundcorr_bold.svg
│   │   ├── sub-102_ses-1_task-rest_desc-coreg_bold.svg
│   │   ├── sub-102_ses-1_task-rest_desc-rois_bold.svg
│   │   ├── sub-102_ses-1_task-rest_desc-summary_bold.html
│   │   ├── sub-102_ses-1_task-rest_desc-validation_bold.html
│   │   ├── sub-102_ses-2_task-rest_desc-carpetplot_bold.svg
│   │   ├── sub-102_ses-2_task-rest_desc-compcorvar_bold.svg
│   │   ├── sub-102_ses-2_task-rest_desc-confoundcorr_bold.svg
│   │   ├── sub-102_ses-2_task-rest_desc-coreg_bold.svg
│   │   ├── sub-102_ses-2_task-rest_desc-rois_bold.svg
│   │   ├── sub-102_ses-2_task-rest_desc-summary_bold.html
│   │   └── sub-102_ses-2_task-rest_desc-validation_bold.html
│   ├── log
│   │   └── 20250219-015316_ced0bc72-309a-449a-bccb-8fd582bdcab6
│   │       └── fmriprep.toml
│   ├── ses-1
│   │   ├── anat
│   │   │   ├── sub-102_ses-1_desc-brain_mask.json
│   │   │   ├── sub-102_ses-1_desc-brain_mask.nii.gz
│   │   │   ├── sub-102_ses-1_desc-preproc_T1w.json
│   │   │   ├── sub-102_ses-1_desc-preproc_T1w.nii.gz
│   │   │   ├── sub-102_ses-1_dseg.nii.gz
│   │   │   ├── sub-102_ses-1_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
│   │   │   ├── sub-102_ses-1_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
│   │   │   ├── sub-102_ses-1_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
│   │   │   ├── sub-102_ses-1_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
│   │   │   ├── sub-102_ses-1_label-CSF_probseg.nii.gz
│   │   │   ├── sub-102_ses-1_label-GM_probseg.nii.gz
│   │   │   ├── sub-102_ses-1_label-WM_probseg.nii.gz
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_desc-preproc_T1w.json
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_desc-preproc_T1w.nii.gz
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_dseg.json
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_dseg.nii.gz
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_label-CSF_probseg.nii.gz
│   │   │   ├── sub-102_ses-1_space-MNI152NLin6Asym_res-02_label-GM_probseg.nii.gz
│   │   │   └── sub-102_ses-1_space-MNI152NLin6Asym_res-02_label-WM_probseg.nii.gz
│   │   └── func
│   │       ├── sub-102_ses-1_task-rest_desc-brain_mask.json
│   │       ├── sub-102_ses-1_task-rest_desc-brain_mask.nii.gz
│   │       ├── sub-102_ses-1_task-rest_desc-confounds_timeseries.json
│   │       ├── sub-102_ses-1_task-rest_desc-confounds_timeseries.tsv
│   │       ├── sub-102_ses-1_task-rest_desc-coreg_boldref.json
│   │       ├── sub-102_ses-1_task-rest_desc-coreg_boldref.nii.gz
│   │       ├── sub-102_ses-1_task-rest_desc-hmc_boldref.json
│   │       ├── sub-102_ses-1_task-rest_desc-hmc_boldref.nii.gz
│   │       ├── sub-102_ses-1_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│   │       ├── sub-102_ses-1_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│   │       ├── sub-102_ses-1_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│   │       ├── sub-102_ses-1_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│   │       ├── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_boldref.json
│   │       ├── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_boldref.nii.gz
│   │       ├── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│   │       ├── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│   │       ├── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json
│   │       └── sub-102_ses-1_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz
│   └── ses-2
│       └── func
│           ├── sub-102_ses-2_task-rest_desc-brain_mask.json
│           ├── sub-102_ses-2_task-rest_desc-brain_mask.nii.gz
│           ├── sub-102_ses-2_task-rest_desc-confounds_timeseries.json
│           ├── sub-102_ses-2_task-rest_desc-confounds_timeseries.tsv
│           ├── sub-102_ses-2_task-rest_desc-coreg_boldref.json
│           ├── sub-102_ses-2_task-rest_desc-coreg_boldref.nii.gz
│           ├── sub-102_ses-2_task-rest_desc-hmc_boldref.json
│           ├── sub-102_ses-2_task-rest_desc-hmc_boldref.nii.gz
│           ├── sub-102_ses-2_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│           ├── sub-102_ses-2_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│           ├── sub-102_ses-2_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│           ├── sub-102_ses-2_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│           ├── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_boldref.json
│           ├── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_boldref.nii.gz
│           ├── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.json
│           ├── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-brain_mask.nii.gz
│           ├── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.json
│           └── sub-102_ses-2_task-rest_space-MNI152NLin6Asym_res-02_desc-preproc_bold.nii.gz
├── sub-102.html

Eric

I think I see the problem. It looks like a value of "2" is hardcoded in the query, which won’t work for a value of “02” like you have. I am working on a fix now.

Okay the new version should be available on DockerHub as main. Can you try pulling the updated version and testing it on your data?

Hi @tsalo

Thanks for the quick reply. Now I think the issue of BOLD image has resolved, but we are back to the original error:

Downloading https://templateflow.s3.amazonaws.com/tpl-MNI152NLin6Asym/tpl-MNI152NLin6Asym_res-02_desc-brain_T1w.nii.gz
100%|████████████████████████████████████████| 429k/429k [00:06<00:00, 67.3kB/s]
Process Process-2:
Traceback (most recent call last):
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/cli/workflow.py", line 115, in build_workflow
    retval['workflow'] = init_fmripost_aroma_wf()
                         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 71, in init_fmripost_aroma_wf
    single_subject_wf = init_single_subject_wf(subject_id)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 280, in init_single_subject_wf
    single_run_wf = init_single_run_wf(bold_file)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/workflows/base.py", line 346, in init_single_run_wf
    collect_derivatives(
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/utils/bids.py", line 218, in collect_derivatives
    raise ValueError(
ValueError: Transforms to the following requested spaces not found: MNI152NLin6Asym.

(The code used here is using fmriprep derivatives as input)

Eric

That actually makes sense to me. You have anatomical derivatives for session 01 but not for session 02. I think fMRIPost-AROMA is preparing the workflow for the BOLD run from session 02, wherein it will look for anatomical data that is either in session 02 or has no session at all. Since there are no anatomical data that fit those criteria, it’s failing.

To be honest, I’m not sure what the best route forward is on fMRIPost-AROMA’s end. @effigies would you mind weighing in? How do you think NiPost workflows should operate when only a subset of sessions have anatomical data?

I suppose what you would do is look first for a matching session, and then remove the session entity and try to find a matching anatomical. If there are more than one, then I would probably fail for now. I don’t know if we’re including the preprocessed anatomical in the Sources metadata for the transform, which is what you would really need in order to verify that the transform has an appropriate reference image.

I can try looking to a single matching anatomical scan in any session and raise an error if there’s more than one. Actually leveraging the Sources metadata might be a bit too much of a hill to climb for a quick bug fix, but I’ll open an issue and maybe we can work on it at the NiPreps sprint.

@PSYC_Eric can you try pulling the new version from main and test it out?

Hi @tsalo, I have tried the new version but there is still the same error.

(Will it be easier to debug if I provide you with one subject’s fmriprep derivative output?)

That’s unfortunate.

That would be great. Thank you.

@tsalo is there an email address I can directly send it to you?

I just pushed another fix and it seems to be working. Would you mind trying the new version?

It worked! Thank you for the help!