Dear Neurostars team,
I am trying to follow the steps given in the tutorial Functional Neuroimaging Analysis in Python but I am facing some problems when I execute the function layout = bids.BIDSLayout('../data/ds000030/derivatives/fmriprep/', config=['bids','derivatives'])
. I should have to obtain the list of my subjects once I execute layout.get_subjects()
but in order, my result is [ ]
.
Later in the tutorial, is being said that is necessary to run this function.
If we didnβt configure pyBIDS with config=['bids','derivatives'] then the desc keyword would not work!
.
I am adding a screenshot too of my Python file.
Steven
February 5, 2024, 2:02pm
2
Hi @Joan_Carreras_Diaz ,
It would help if we had the BIDS validation report on the BIDS root directory and the tree
output of the fmriprep output directory.
Best,
Steven
Yes, of course, the tree output of the fmriprep directory is the following one:
/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep
βββ dataset_description.json
βββ desc-aparcaseg_dseg.tsv
βββ desc-aseg_dseg.tsv
βββ logs
βββ sub-ADNI002S0413
βββ sub-ADNI002S0413.html
I donβt think I have any file with the BIDS validation report, as I donβt have any index.html file in the BIDS_DIRECTORY folder:
/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY
βββ README
βββ conversion_info
βββ dataset_description.json
βββ derivatives
βββ participants.tsv
βββ sub-ADNI002S0413
However, I have run bids-validator /Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY
and I have obtained the following message:
bids-validator@1.14.0
(node:15960) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:15960) Warning: Closing directory handle on garbage collection
This dataset appears to be BIDS compatible.
Summary: Available Tasks: Available Modalities:
68 Files, 524.32MB MRI
1 - Subject PET
13 - Sessions
If you have any questions, please post on https://neurostars.org/tags/bids.
Thank you,
Joan
Steven
February 5, 2024, 3:46pm
4
What about tree
run on the fMRIPrep subject output, that is, tree /Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/
The simplification of that would be the following one:
/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/
βββ anat
βββ figures
βββ log
βββ ses-M000
βββ ses-M006
βββ ses-M012
βββ ses-M024
βββ ses-M036
βββ ses-M048
βββ ses-M060
βββ ses-M072
βββ ses-M084
βββ ses-M096
βββ ses-M108
βββ ses-M132
βββ ses-M162
If you might prefer the entire one it looks like this:
/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/
βββ anat
β βββ sub-ADNI002S0413_desc-brain_mask.json
β βββ sub-ADNI002S0413_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_desc-preproc_T1w.json
β βββ sub-ADNI002S0413_desc-preproc_T1w.nii.gz
β βββ sub-ADNI002S0413_desc-ribbon_mask.json
β βββ sub-ADNI002S0413_desc-ribbon_mask.nii.gz
β βββ sub-ADNI002S0413_dseg.nii.gz
β βββ sub-ADNI002S0413_from-MNI152NLin2009cAsym_to-T1w_mode-image_xfm.h5
β βββ sub-ADNI002S0413_from-T1w_to-MNI152NLin2009cAsym_mode-image_xfm.h5
β βββ sub-ADNI002S0413_from-T1w_to-fsnative_mode-image_xfm.txt
β βββ sub-ADNI002S0413_from-fsnative_to-T1w_mode-image_xfm.txt
β βββ sub-ADNI002S0413_hemi-L_desc-reg_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-L_midthickness.surf.gii
β βββ sub-ADNI002S0413_hemi-L_pial.surf.gii
β βββ sub-ADNI002S0413_hemi-L_space-fsLR_desc-msmsulc_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-L_space-fsLR_desc-reg_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-L_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-L_sulc.shape.gii
β βββ sub-ADNI002S0413_hemi-L_thickness.shape.gii
β βββ sub-ADNI002S0413_hemi-L_white.surf.gii
β βββ sub-ADNI002S0413_hemi-R_desc-reg_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-R_midthickness.surf.gii
β βββ sub-ADNI002S0413_hemi-R_pial.surf.gii
β βββ sub-ADNI002S0413_hemi-R_space-fsLR_desc-msmsulc_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-R_space-fsLR_desc-reg_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-R_sphere.surf.gii
β βββ sub-ADNI002S0413_hemi-R_sulc.shape.gii
β βββ sub-ADNI002S0413_hemi-R_thickness.shape.gii
β βββ sub-ADNI002S0413_hemi-R_white.surf.gii
β βββ sub-ADNI002S0413_label-CSF_probseg.nii.gz
β βββ sub-ADNI002S0413_label-GM_probseg.nii.gz
β βββ sub-ADNI002S0413_label-WM_probseg.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_desc-brain_mask.json
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_desc-preproc_T1w.json
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_desc-preproc_T1w.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_dseg.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_label-CSF_probseg.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_label-GM_probseg.nii.gz
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_label-WM_probseg.nii.gz
βββ figures
β βββ sub-ADNI002S0413_desc-conform_T1w.html
β βββ sub-ADNI002S0413_desc-reconall_T1w.svg
β βββ sub-ADNI002S0413_dseg.svg
β βββ sub-ADNI002S0413_ses-M000_desc-about_T1w.html
β βββ sub-ADNI002S0413_ses-M000_desc-summary_T1w.html
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-carpetplot_bold.svg
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-compcorvar_bold.svg
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-confoundcorr_bold.svg
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-coreg_bold.svg
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-rois_bold.svg
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-summary_bold.html
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-validation_bold.html
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-carpetplot_bold.svg
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-compcorvar_bold.svg
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-confoundcorr_bold.svg
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-coreg_bold.svg
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-rois_bold.svg
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-summary_bold.html
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-validation_bold.html
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-carpetplot_bold.svg
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-compcorvar_bold.svg
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-confoundcorr_bold.svg
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-coreg_bold.svg
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-rois_bold.svg
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-summary_bold.html
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-validation_bold.html
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-carpetplot_bold.svg
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-compcorvar_bold.svg
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-confoundcorr_bold.svg
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-coreg_bold.svg
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-rois_bold.svg
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-summary_bold.html
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-validation_bold.html
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-carpetplot_bold.svg
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-compcorvar_bold.svg
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-confoundcorr_bold.svg
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-coreg_bold.svg
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-rois_bold.svg
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-summary_bold.html
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-validation_bold.html
β βββ sub-ADNI002S0413_space-MNI152NLin2009cAsym_T1w.svg
βββ log
β βββ 20240117-185138_35bcf3be-da65-485c-a6b4-fb456cf9e865
β β βββ crash-20240117-201746-root-anat_merge-b67922a0-fe47-4606-bd80-2ff14f427aa1.txt
β β βββ fmriprep.toml
β βββ 20240130-152425_78a06a63-ee48-4bc3-b642-63352eaedc34
β β βββ fmriprep.toml
β βββ 20240201-191731_98442f86-414d-4962-bfe3-cef64248ea16
β βββ fmriprep.toml
βββ ses-M000
β βββ anat
β βββ sub-ADNI002S0413_ses-M000_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M006
β βββ anat
β βββ sub-ADNI002S0413_ses-M006_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M012
β βββ anat
β βββ sub-ADNI002S0413_ses-M012_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M024
β βββ anat
β βββ sub-ADNI002S0413_ses-M024_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M036
β βββ anat
β βββ sub-ADNI002S0413_ses-M036_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M048
β βββ anat
β βββ sub-ADNI002S0413_ses-M048_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M060
β βββ anat
β β βββ sub-ADNI002S0413_ses-M060_from-orig_to-T1w_mode-image_xfm.txt
β βββ func
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-confounds_timeseries.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-confounds_timeseries.tsv
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-coreg_boldref.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-coreg_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-hmc_boldref.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_desc-hmc_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M060_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
β βββ sub-ADNI002S0413_ses-M060_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
β βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
β βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
βββ ses-M072
β βββ anat
β β βββ sub-ADNI002S0413_ses-M072_from-orig_to-T1w_mode-image_xfm.txt
β βββ func
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-confounds_timeseries.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-confounds_timeseries.tsv
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-coreg_boldref.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-coreg_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-hmc_boldref.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_desc-hmc_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M072_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
β βββ sub-ADNI002S0413_ses-M072_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
β βββ sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
β βββ sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
βββ ses-M084
β βββ anat
β β βββ sub-ADNI002S0413_ses-M084_from-orig_to-T1w_mode-image_xfm.txt
β βββ func
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-confounds_timeseries.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-confounds_timeseries.tsv
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-coreg_boldref.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-coreg_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-hmc_boldref.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_desc-hmc_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M084_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
β βββ sub-ADNI002S0413_ses-M084_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
β βββ sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
β βββ sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
βββ ses-M096
β βββ anat
β β βββ sub-ADNI002S0413_ses-M096_from-orig_to-T1w_mode-image_xfm.txt
β βββ func
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-confounds_timeseries.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-confounds_timeseries.tsv
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-coreg_boldref.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-coreg_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-hmc_boldref.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_desc-hmc_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M096_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
β βββ sub-ADNI002S0413_ses-M096_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
β βββ sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
β βββ sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
βββ ses-M108
β βββ anat
β βββ sub-ADNI002S0413_ses-M108_from-orig_to-T1w_mode-image_xfm.txt
βββ ses-M132
β βββ anat
β β βββ sub-ADNI002S0413_ses-M132_from-orig_to-T1w_mode-image_xfm.txt
β βββ func
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-confounds_timeseries.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-confounds_timeseries.tsv
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-coreg_boldref.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-coreg_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-hmc_boldref.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_desc-hmc_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M132_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
β βββ sub-ADNI002S0413_ses-M132_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
β βββ sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
β βββ sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
β βββ sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
β βββ sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
βββ ses-M162
βββ anat
βββ sub-ADNI002S0413_ses-M162_from-orig_to-T1w_mode-image_xfm.txt
Hi Joan!
Can you try this:
layout = bids.BIDSLayout('../data/ds000030/derivatives/fmriprep/', derivatives='../data/ds000030/derivatives/fmriprep/', config=['bids','derivatives'])
If Iβm correct, what is happening is that BIDSLayout
is looking for derivatives under the ./derivatives
folder, but since you are setting the main directory to a derivative, it wont find any.
This is pretty counter intuitive, but pybids
was not originally conceived to be run on derivatives as first order folders. Obviously, itβs a sensible use case, however.
I donβt really understand your answer, I canβt use this directory as I donβt have these folders. Changing the '../data/ds000030/derivatives/fmriprep/', derivatives='../data/ds000030/derivatives/fmriprep/'
for my '/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/'
I donβt obtain nothing, but it is because it doesnβt recognize any subject In BIDSLayout.
Oh, sorry, I was just copying your directory in your first question, it should be your directory.
It actually sounds like you have a different issue.
What version of pybids do you have?
My pybids version is 0.16.4
Hmm, Iβm not sure what the issue is but can you possibly try the following:
layout = bids.BIDSLayout('/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY', derivatives=True)
1 Like
It has worked! Thank you very much! If there is something else related to this thread I will let you know.
Great! You might try this as well, which is a variation of my original suggestion:
fmriprep_dir = '/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep'
layout = bids.BIDSLayout(fmriprep_dir, derivatives=fmriprep_dir)
Iβm guessing the config parameter has changed in how it works since the tutorial was writen.
Yes, it might be this.
When I execute the following commands I donβt notice of any other inconveniences except when I have run the following line that the result is an empty vector:
t1w_func_data = layout.get(datatype='func', desc='preproc', space="T1w")
t1w_func_data
I have noticed that when running the line:
func_data = layout.get(datatype='func', desc='preproc')
func_data
The result is
[<BIDSJSONFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M060/func/sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json'>,
<BIDSImageFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M060/func/sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz'>,
<BIDSJSONFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M072/func/sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json'>,
<BIDSImageFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M072/func/sub-ADNI002S0413_ses-M072_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz'>,
<BIDSJSONFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M084/func/sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json'>,
<BIDSImageFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M084/func/sub-ADNI002S0413_ses-M084_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz'>,
<BIDSJSONFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M096/func/sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json'>,
<BIDSImageFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M096/func/sub-ADNI002S0413_ses-M096_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz'>,
<BIDSJSONFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M132/func/sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json'>,
<BIDSImageFile filename='/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M132/func/sub-ADNI002S0413_ses-M132_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz'>]
As you can see, there is no file named with T1w, however in one of my func folders, there are some files named with T1w:
/Users/joancarrerasdz/Desktop/CARPETES/UdG/Practiques/Dades_ADNI/BIDS_DIRECTORY/derivatives/fmriprep/sub-ADNI002S0413/ses-M060/func
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-confounds_timeseries.json
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-confounds_timeseries.tsv
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-coreg_boldref.json
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-coreg_boldref.nii.gz
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-hmc_boldref.json
βββ sub-ADNI002S0413_ses-M060_task-rest_desc-hmc_boldref.nii.gz
βββ sub-ADNI002S0413_ses-M060_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.json
βββ sub-ADNI002S0413_ses-M060_task-rest_from-boldref_to-T1w_mode-image_desc-coreg_xfm.txt
βββ sub-ADNI002S0413_ses-M060_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.json
βββ sub-ADNI002S0413_ses-M060_task-rest_from-orig_to-boldref_mode-image_desc-hmc_xfm.txt
βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_boldref.nii.gz
βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-brain_mask.nii.gz
βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.json
βββ sub-ADNI002S0413_ses-M060_task-rest_space-MNI152NLin2009cAsym_desc-preproc_bold.nii.gz
That is expected behavior.
You asked for files with desc-preproc
but the T1w files have desc-coreg
.
And at least from this list of files, there are no files with space=T1w.