From 6eed291f3029066a9eb9d76ad25e2dccc7a06bfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Boris=20Cl=C3=A9net?= Date: Fri, 6 Oct 2023 12:02:31 +0200 Subject: [PATCH] Issue with contrasts ids --- narps_open/pipelines/team_T54A.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/narps_open/pipelines/team_T54A.py b/narps_open/pipelines/team_T54A.py index e3efd6ac..3dbf01a6 100644 --- a/narps_open/pipelines/team_T54A.py +++ b/narps_open/pipelines/team_T54A.py @@ -27,7 +27,7 @@ def __init__(self): super().__init__() self.fwhm = 4.0 self.team_id = 'T54A' - self.contrast_list = ['01', '02'] + self.contrast_list = ['1', '2'] def get_preprocessing(self): """ No preprocessing has been done by team T54A """ @@ -326,9 +326,9 @@ def get_run_level_outputs(self): parameters = { 'run_id' : self.run_list, 'subject_id' : self.subject_list, + 'contrast_id' : self.contrast_list, 'file' : [ - join('results', 'cope1.nii.gz'), - join('results', 'cope2.nii.gz'), + join('results', 'cope{contrast_id}.nii.gz'), join('results', 'dof'), join('results', 'logfile'), join('results', 'pe10.nii.gz'), @@ -351,12 +351,9 @@ def get_run_level_outputs(self): join('results', 'res4d.nii.gz'), join('results', 'sigmasquareds.nii.gz'), join('results', 'threshac1.nii.gz'), - join('results', 'tstat1.nii.gz'), - join('results', 'tstat2.nii.gz'), - join('results', 'varcope1.nii.gz'), - join('results', 'varcope2.nii.gz'), - join('results', 'zstat1.nii.gz'), - join('results', 'zstat2.nii.gz'), + join('results', 'tstat{contrast_id}.nii.gz'), + join('results', 'varcope{contrast_id}.nii.gz'), + join('results', 'zstat{contrast_id}.nii.gz'), 'run0.mat', 'run0.png', 'sub-{subject_id}_task-MGT_run-{run_id}_bold_space-MNI152NLin2009cAsym_preproc_brain_mask.nii.gz'