From acb2cbdb9a8c3bb65a4daf0d1eaf0e00a7ab3553 Mon Sep 17 00:00:00 2001 From: elodiegermani1 Date: Thu, 14 Dec 2023 10:34:59 +0100 Subject: [PATCH] [REPRO] Add group vector to MultipleRegressDesign --- narps_open/pipelines/team_43FJ_debug.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/narps_open/pipelines/team_43FJ_debug.py b/narps_open/pipelines/team_43FJ_debug.py index 7a5ebf9c..8af1b910 100755 --- a/narps_open/pipelines/team_43FJ_debug.py +++ b/narps_open/pipelines/team_43FJ_debug.py @@ -822,8 +822,10 @@ def get_regressors( # with a list of the size of the number of participants if method == 'equalRange': regressors = dict(group_mean = [1 for i in range(len(equal_range_id))]) + group = [1 for i in equal_range_id] elif method == 'equalIndifference': regressors = dict(group_mean = [1 for i in range(len(equal_indifference_id))]) + group = [1 for i in equal_indifference_id] # For two sample t-test, creates 2 lists: # - one for equal range group, @@ -848,7 +850,9 @@ def get_regressors( equalIndifference = equalIndifference_reg ) - return regressors + group = [1 if i == 1 else 2 for i in equalRange_reg] + + return regressors, group def get_group_level_analysis(self): """ @@ -941,7 +945,10 @@ def get_group_level_analysis_sub_workflow(self, method): 'method', 'subject_list', ], - output_names = ['regressors'], + output_names = [ + 'regressors', + 'group' + ], function = self.get_regressors, ), name = 'regs',