From d979a67ea9fafac28ed90ef01d21862cee664a98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Cl=C3=A9net?= Date: Thu, 12 Dec 2024 15:04:38 +0100 Subject: [PATCH] First level contrast --- narps_open/pipelines/team_DC61.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/narps_open/pipelines/team_DC61.py b/narps_open/pipelines/team_DC61.py index e8e2a033..e6f7628f 100644 --- a/narps_open/pipelines/team_DC61.py +++ b/narps_open/pipelines/team_DC61.py @@ -32,13 +32,16 @@ def __init__(self): self.fwhm = 5.0 self.team_id = 'DC61' self.contrast_list = ['0001', '0002'] + + # Give a weight of 1/N to each regressor, N being the number of runs + nb_runs = len(self.run_list) self.subject_level_contrasts = [ ('effect_of_gain', 'T', - [f'gamble_run{r}xgain_param^1' for r in range(1, len(self.run_list) + 1)], - [0.25]*len(self.run_list)), + [f'gamble_run{r}xgain_param^1' for r in range(1, nb_runs + 1)], + [1.0 / nb_runs] * nb_runs), ('effect_of_loss', 'T', - [f'gamble_run{r}xloss_param^1' for r in range(1, len(self.run_list) + 1)], - [0.25]*len(self.run_list)) + [f'gamble_run{r}xloss_param^1' for r in range(1, nb_runs + 1)], + [1.0 / nb_runs] * nb_runs) ] def get_preprocessing(self): @@ -335,8 +338,6 @@ def get_group_level_contrasts(subject_level_contrast: str): ['loss_param_indiff_f', 'F', [indiff_con], [1]] ] - return [] - def get_group_covariates(subjects: list): """ Return a covariates list for OneSampleTTestDesign