Fmripost-aroma error: KeyError: 'session'

Summary of what happened:

using the latest version of fmripost-aroma (via docker) while providing the fmriprep (version 24.1.1, docker) output directory as input. Get the error ‘KeyError: ‘session’’ at the node of init_fmripost_aroma_wf().

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

docker run --rm \
-v ${fmriprep_dir}:/data:ro \
-v ${output_dir}:/derivatives \
-v ${temp_dir}:/temp \
nipreps/fmripost-aroma:main \
/data /derivatives \
participant \
--participant-label sub-pins034 \
--denoising-method nonaggr \
--task-id rest \
--ignore fieldmaps slicetiming \
--melodic-dimensionality 200 \
--error-on-warnings \
--nthreads 20 \
--omp-nthreads 10 \
--random-seed 1234 \
--write-graph \
--stop-on-first-crash \
--mem_mb ${mem_mb} \
--work-dir /temp

Version:

fMRIPost-AROMA v0.1.dev1+ga90f01f

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

Building fMRIPost-AROMA's workflow:
           * BIDS dataset path: /data.
           * Participant list: ['pins032'].
           * Run identifier: 20250227-011721_b86ff46a-999d-44a7-83b3-123cdf33b106.
           * Output spaces: None.
250227-01:17:44,564 nipype.workflow INFO:
	 Derivatives-only workflow mode enabled
250227-01:17:44,941 nipype.workflow INFO:
	 Collected subject data:
!!python/object/apply:collections.defaultdict
args:
- !!python/name:builtins.list ''
dictitems:
    anat2mni152nlin6asym:
    - /data/sub-percept005/anat/sub-percept005_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept006/anat/sub-percept006_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept007/anat/sub-percept007_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept008/anat/sub-percept008_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept0011/anat/sub-percept0011_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept011/anat/sub-percept011_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept0012/anat/sub-percept0012_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept015/anat/sub-percept015_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept017/anat/sub-percept017_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-percept024/anat/sub-percept024_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-pins006/anat/sub-pins006_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-pins007/anat/sub-pins007_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-pins031/anat/sub-pins031_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-pins032/anat/sub-pins032_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    - /data/sub-pins034/anat/sub-pins034_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
    anat_dseg:
    - /data/sub-percept005/anat/sub-percept005_dseg.nii.gz
    - /data/sub-percept006/anat/sub-percept006_dseg.nii.gz
    - /data/sub-percept007/anat/sub-percept007_dseg.nii.gz
    - /data/sub-percept008/anat/sub-percept008_dseg.nii.gz
    - /data/sub-percept0011/anat/sub-percept0011_dseg.nii.gz
    - /data/sub-percept011/anat/sub-percept011_dseg.nii.gz
    - /data/sub-percept0012/anat/sub-percept0012_dseg.nii.gz
    - /data/sub-percept015/anat/sub-percept015_dseg.nii.gz
    - /data/sub-percept017/anat/sub-percept017_dseg.nii.gz
    - /data/sub-percept024/anat/sub-percept024_dseg.nii.gz
    - /data/sub-pins006/anat/sub-pins006_dseg.nii.gz
    - /data/sub-pins007/anat/sub-pins007_dseg.nii.gz
    - /data/sub-pins031/anat/sub-pins031_dseg.nii.gz
    - /data/sub-pins032/anat/sub-pins032_dseg.nii.gz
    - /data/sub-pins034/anat/sub-pins034_dseg.nii.gz
    anat_mni152nlin6asym:
    - /data/sub-percept005/anat/sub-percept005_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept006/anat/sub-percept006_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept007/anat/sub-percept007_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept008/anat/sub-percept008_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept0011/anat/sub-percept0011_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept011/anat/sub-percept011_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept0012/anat/sub-percept0012_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept015/anat/sub-percept015_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept017/anat/sub-percept017_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-percept024/anat/sub-percept024_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-pins006/anat/sub-pins006_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-pins007/anat/sub-pins007_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-pins031/anat/sub-pins031_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-pins032/anat/sub-pins032_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    - /data/sub-pins034/anat/sub-pins034_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
    bold: &id001
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz
    bold_confounds:
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_desc-confounds_timeseries.tsv
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_desc-confounds_timeseries.tsv
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_desc-confounds_timeseries.tsv
    bold_hmc:
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
    bold_mask_mni152nlin6asym:
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
    bold_mask_native:
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_desc-brain_mask.nii.gz
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_desc-brain_mask.nii.gz
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_desc-brain_mask.nii.gz
    bold_mni152nlin6asym: *id001
    boldref2anat:
    - /data/sub-pins032/ses-pre/func/sub-pins032_ses-pre_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
    - /data/sub-pins032/ses-psa/func/sub-pins032_ses-psa_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
    - /data/sub-pins032/ses-stn/func/sub-pins032_ses-stn_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
    boldref2fmap: null

Relevant log outputs (up to 20 lines):

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 140, in collect_derivatives
    item_sessions = [layout.get_file(f).entities['session'] for f in item]
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/fmripost_aroma/utils/bids.py", line 140, in <listcomp>
    item_sessions = [layout.get_file(f).entities['session'] for f in item]
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/opt/conda/envs/fmripost_aroma/lib/python3.11/site-packages/sqlalchemy/ext/associationproxy.py", line 1662, in __getitem__
    return self._get(self.col[key])
                     ~~~~~~~~^^^^^
KeyError: 'session'

Screenshots / relevant information:

It seems that the software did not find ‘bold_mni152nlin6asym’ files?

Hi @Zhengyu,

It looks like there’s only sub-pins032 BOLD outputs in the dataset you are working with, at least according to those logs. Also, there are session-level BOLD data but anatomical data at the subject level. I don’t know if that’s an issue or not.

Can you please share the fmriprep command you used to make the data (including version), as well as the tree structure of the fmriprep outputs for the subject you are working with sub-pins034?

Best,
Steven

Hi @Steven ,

I preprocessed several subjects in fmriprep and i would like to test the fmripost-aroma on sub-pins032. Sorry for the mistake in the command that after ‘–participant-label’ should be ‘sub-pins032’ but bot ‘sub-pins034’.

Acutually i generated the fmriprep (version 24.1.1) output using two commands, one for generating the minimal anatomical output, another for generating the functional output after checking the mask of the minimal output. The freesurfer (7.3.2) recon-all was run separately outside of fmriprep.

The first fmriprep command:

docker run --rm \
-v ${input_dir}:/data:ro \
-v ${output_dir}:/derivatives \
-v ${temp_dir}:/temp \
-v ${fslicense_root}/license.txt:/opt/freesurfer/license.txt \
-v ${templateflow_dir}:/fmriprep/.cache/templateflow \
-v ${config_dir}:/config \
nipreps/fmriprep:24.1.1 \
/data /derivatives \
participant \
--participant-label sub-pins034 \
--task-id rest \
--ignore fieldmaps slicetiming t2w flair \
--output-spaces MNI152NLin6Asym:res-2 \
--level minimal \
--fs-no-reconall \
--anat-only \
--fs-license-file /opt/freesurfer/license.txt \
--nthreads 4 \
--omp-nthreads 2 \
--random-seed 1234 \
--write-graph \
--stop-on-first-crash \
--mem_mb ${mem_mb} \
--work-dir /temp

And the command for the second step:

docker run --rm \
-v ${input_dir}:/data:ro \
-v ${output_dir}:/derivatives \
-v ${temp_dir}:/temp \
-v ${fslicense_root}/license.txt:/opt/freesurfer/license.txt \
-v ${templateflow_dir}:/fmriprep/.cache/templateflow \
-v ${derivatives_dir}:/fmriprep24_min \
-v ${FS_dir}:/freesurfer \
-v ${config_dir}:/config \
nipreps/fmriprep:24.1.1 \
/data /derivatives \
participant \
--participant-label sub-pins034 \
--task-id rest \
--ignore fieldmaps slicetiming t2w flair \
--fs-subjects-dir /freesurfer \
--derivatives /fmriprep24_min \
--output-spaces MNI152NLin6Asym:res-2 \
--bids-filter-file /config/bidsfilterBOLD.json \
--cifti-output 91k \
--bold2anat-dof 12 \
--fs-license-file /opt/freesurfer/license.txt \
--nthreads 6 \
--omp-nthreads 3 \
--random-seed 1234 \
--write-graph \
--stop-on-first-crash \
--mem_mb ${mem_mb} \
--work-dir /temp

Here is the tree structure of the fmriprep outputs for sub-pins034, the structure for the sub-pins032 is similar.


├── anat
│   ├── sub-pins034_desc-brain_mask.json
│   ├── sub-pins034_desc-brain_mask.nii.gz
│   ├── sub-pins034_desc-preproc_T1w.json
│   ├── sub-pins034_desc-preproc_T1w.nii.gz
│   ├── sub-pins034_desc-ribbon_mask.json
│   ├── sub-pins034_desc-ribbon_mask.nii.gz
│   ├── sub-pins034_dseg.nii.gz
│   ├── sub-pins034_from-fsnative_to-T1w_mode-image_xfm.txt
│   ├── sub-pins034_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
│   ├── sub-pins034_from-MNI152NLin6Asym_to-T1w_mode-image_xfm.h5
│   ├── sub-pins034_from-T1w_to-fsnative_mode-image_xfm.txt
│   ├── sub-pins034_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
│   ├── sub-pins034_from-T1w_to-MNI152NLin6Asym_mode-image_xfm.h5
│   ├── sub-pins034_hemi-L_desc-preproc_midthickness.surf.gii
│   ├── sub-pins034_hemi-L_desc-preproc_pial.surf.gii
│   ├── sub-pins034_hemi-L_desc-preproc_sphere.surf.gii
│   ├── sub-pins034_hemi-L_desc-preproc_sulc.shape.gii
│   ├── sub-pins034_hemi-L_desc-preproc_thickness.shape.gii
│   ├── sub-pins034_hemi-L_desc-preproc_white.surf.gii
│   ├── sub-pins034_hemi-L_space-fsaverage_desc-reg_sphere.surf.gii
│   ├── sub-pins034_hemi-L_space-fsLR_desc-msmsulc_sphere.surf.gii
│   ├── sub-pins034_hemi-L_space-fsLR_desc-reg_sphere.surf.gii
│   ├── sub-pins034_hemi-R_desc-preproc_midthickness.surf.gii
│   ├── sub-pins034_hemi-R_desc-preproc_pial.surf.gii
│   ├── sub-pins034_hemi-R_desc-preproc_sphere.surf.gii
│   ├── sub-pins034_hemi-R_desc-preproc_sulc.shape.gii
│   ├── sub-pins034_hemi-R_desc-preproc_thickness.shape.gii
│   ├── sub-pins034_hemi-R_desc-preproc_white.surf.gii
│   ├── sub-pins034_hemi-R_space-fsaverage_desc-reg_sphere.surf.gii
│   ├── sub-pins034_hemi-R_space-fsLR_desc-msmsulc_sphere.surf.gii
│   ├── sub-pins034_hemi-R_space-fsLR_desc-reg_sphere.surf.gii
│   ├── sub-pins034_label-CSF_probseg.nii.gz
│   ├── sub-pins034_label-GM_probseg.nii.gz
│   ├── sub-pins034_label-WM_probseg.nii.gz
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_curv.dscalar.nii
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_curv.json
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_sulc.dscalar.nii
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_sulc.json
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_thickness.dscalar.nii
│   ├── sub-pins034_space-fsLR_den-91k_desc-preproc_thickness.json
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-brain_mask.json
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-preproc_dseg.json
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-preproc_dseg.nii.gz
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.json
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_desc-preproc_T1w.nii.gz
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_label-CSF_desc-preproc_probseg.nii.gz
│   ├── sub-pins034_space-MNI152NLin6Asym_res-2_label-GM_desc-preproc_probseg.nii.gz
│   └── sub-pins034_space-MNI152NLin6Asym_res-2_label-WM_desc-preproc_probseg.nii.gz
├── figures
│   ├── sub-pins034_desc-conform_T1w.html
│   ├── sub-pins034_desc-preproc_dseg.svg
│   ├── sub-pins034_desc-reconall_T1w.svg
│   ├── sub-pins034_ses-pre_desc-about_T1w.html
│   ├── sub-pins034_ses-pre_desc-summary_T1w.html
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-carpetplot_bold.svg
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-compcorvar_bold.svg
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-confoundcorr_bold.svg
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-coreg_bold.svg
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-rois_bold.svg
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-summary_bold.html
│   ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-validation_bold.html
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-carpetplot_bold.svg
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-compcorvar_bold.svg
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-confoundcorr_bold.svg
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-coreg_bold.svg
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-rois_bold.svg
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-summary_bold.html
│   ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-validation_bold.html
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-carpetplot_bold.svg
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-compcorvar_bold.svg
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-confoundcorr_bold.svg
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-coreg_bold.svg
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-rois_bold.svg
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-summary_bold.html
│   ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-validation_bold.html
│   └── sub-pins034_space-MNI152NLin6Asym_desc-preproc_T1w.svg
├── log
│   └── 20250225-093909_7cb9c236-18bd-47bb-86ae-a0d74fa985bb
│       └── fmriprep.toml
├── ses-pre
│   └── func
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-brain_mask.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-brain_mask.nii.gz
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-confounds_timeseries.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-confounds_timeseries.tsv
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-coreg_boldref.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-coreg_boldref.nii.gz
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-hmc_boldref.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_desc-hmc_boldref.nii.gz
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-fsLR_den-91k_bold.dtseries.nii
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-fsLR_den-91k_bold.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.nii.gz
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.json
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
│       ├── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.json
│       └── sub-pins034_ses-pre_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz
├── ses-psa
│   └── func
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-brain_mask.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-brain_mask.nii.gz
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-confounds_timeseries.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-confounds_timeseries.tsv
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-coreg_boldref.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-coreg_boldref.nii.gz
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-hmc_boldref.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_desc-hmc_boldref.nii.gz
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-fsLR_den-91k_bold.dtseries.nii
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-fsLR_den-91k_bold.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.nii.gz
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.json
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
│       ├── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.json
│       └── sub-pins034_ses-psa_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz
└── ses-stn
    └── func
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-brain_mask.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-brain_mask.nii.gz
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-confounds_timeseries.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-confounds_timeseries.tsv
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-coreg_boldref.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-coreg_boldref.nii.gz
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-hmc_boldref.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_desc-hmc_boldref.nii.gz
        ├── sub-pins034_ses-stn_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
        ├── sub-pins034_ses-stn_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-fsLR_den-91k_bold.dtseries.nii
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-fsLR_den-91k_bold.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_boldref.nii.gz
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.json
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-brain_mask.nii.gz
        ├── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.json
        └── sub-pins034_ses-stn_task-rest_rec-feat_space-MNI152NLin6Asym_res-2_desc-preproc_bold.nii.gz

Best,
Zhengyu

I believe the problem is that fMRIPost-AROMA’s anatomical queries are not including the participant ID, even though they should. This is a bug on fMRIPost-AROMA’s end, and I’ll try to fix it later today.

I pushed a fix and the new version should be available on DockerHub. Can you try pulling the updated main tag and test it out on your data?

Hi @tsalo ,

Thank you very much. It worked!