Skip to content

Commit

Permalink
First level contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Dec 12, 2024
1 parent 44f8d79 commit d979a67
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions narps_open/pipelines/team_DC61.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d979a67

Please sign in to comment.