-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
The RSA tutorial asks us to generate a file list from the data written in the single subject GLM tutorial that gets files that don't include the word 'betas' and extracts the conditions. However, in the earlier tutorial, we write a single file.
smoothed.write(f'{sub}_betas_denoised_smoothed{fwhm}_preprocessed_fMRI_bold.nii.gz')
I'm confused as to how to use the below code in the RSA tutorial, when the written file has the word "betas" and doesn't seem to contain specific condition info
sub = 'S01'
file_list = glob.glob(os.path.join(data_dir, 'derivatives','fmriprep', f'sub-{sub}' ,'func','*denoised*.nii.gz'))
file_list = [x for x in file_list if 'betas' not in x]
file_list.sort()
conditions = [os.path.basename(x).split(f'sub-{sub}_')[1].split('_denoised')[0] for x in file_list]
beta = Brain_Data(file_list)
Metadata
Metadata
Assignees
Labels
No labels