From cf0da796c3b67aa3edbdb592dc4cb8ae3a8ffbb2 Mon Sep 17 00:00:00 2001 From: YamilVidal Date: Wed, 2 Oct 2024 16:25:39 +0200 Subject: [PATCH] Do not add 'sub-' when loading subject list Do not add 'sub-' when loading subject list because that string is already contained in the subject list files --- coglib/fmri/helper_functions_MRI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coglib/fmri/helper_functions_MRI.py b/coglib/fmri/helper_functions_MRI.py index dfff085..c6dc355 100644 --- a/coglib/fmri/helper_functions_MRI.py +++ b/coglib/fmri/helper_functions_MRI.py @@ -40,7 +40,7 @@ def get_subject_list(bids_dir,list_type='all'): subject_list = bids_dir + os.sep + fname_suffix subj_df = pd.read_csv(subject_list, sep="\t") # subjects = subj_df['participant_id'].values - subjects = 'sub-'+subj_df['participant_id'].values + subjects = subj_df['participant_id'].values print('Number of Subjects:', subjects.size) return subjects