Development_fmri data interpetation

Say I fetch the data like so

data = datasets.fetch_development_fmri(n_subjects=20)

The example Nilearn: Statistical Analysis for NeuroImaging in Python — Machine learning for NeuroImaging says data.func gives a “list of 4D nifti files for each subject”.

Does this mean that data.func[0] is the 4D file for one subject, data.func[1] is for another subject, data.func[2] is for a different subject, etc?

len(data.func) returns 20 so I assume this is the case, but I want to be sure.

Yes, that should be the case.

1 Like