@@ -113,7 +113,7 @@ def task_connectivity(layout, subject, session, task, atlas, confounds, connecti
113113 ex_bold = image .index_img (bold_file [0 ], 2 )
114114 display = plotting .plot_epi (ex_bold )
115115 display .add_contours (atlas )
116- display .savefig (join (deriv_dir , f'sub-{ subject } ' , f'ses-{ session } ' , 'func' , f'sub-{ subject } _ses-{ session } _task-{ task } _run-{ run } _desc -{ atlas_name } _overlay.png' ))
116+ display .savefig (join (deriv_dir , f'sub-{ subject } ' , f'ses-{ session } ' , 'func' , f'sub-{ subject } _ses-{ session } _task-{ task } _run-{ run } _space-MNI152NLin2009cAsym_space -{ atlas_name } _overlay.png' ))
117117
118118 print (f'BOLD file located at { bold_file } \n TR = { tr } s' )
119119
@@ -156,7 +156,7 @@ def task_connectivity(layout, subject, session, task, atlas, confounds, connecti
156156 corrmat_df = pd .DataFrame (index = np .arange (1 , avg_corrmat .shape [0 ]+ 1 ), columns = np .arange (1 , avg_corrmat .shape [0 ]+ 1 ),data = avg_corrmat )
157157 avg_corrmats [condition ] = corrmat_df
158158 corrmat_file = join (deriv_dir ,
159- f'sub-{ subject } ' , f'ses-{ session } ' , 'func' , f'sub-{ subject } _ses-{ session } _task-{ task } _condition -{ condition } _desc -{ atlas_name } _corrmat.tsv' )
159+ f'sub-{ subject } ' , f'ses-{ session } ' , 'func' , f'sub-{ subject } _ses-{ session } _task-{ task } _desc -{ condition } _space-MNI152NLin2009cAsym_atlas -{ atlas_name } _corrmat.tsv' )
160160 try :
161161 corrmat_df .to_csv (corrmat_file , sep = '\t ' )
162162 files .append (corrmat_file )
0 commit comments