diff --git a/narps_open/pipelines/team_80GC.py b/narps_open/pipelines/team_80GC.py index 3062ff03..9dbad23d 100644 --- a/narps_open/pipelines/team_80GC.py +++ b/narps_open/pipelines/team_80GC.py @@ -486,15 +486,15 @@ def get_group_level_analysis(self): # Function select_subbrick - Select the subbrick index of 3dttest++ output file select_subbrick = MapNode(Function( - function = self.select_subbrick, - input_names = ['in_file', 'index'], + function = lambda a, b : f'{a}\'[{b}]\'', + input_names = ['a', 'b'], output_names = ['out'] ), name = 'select_subbrick', iterfield = 'index' ) - select_subbrick.inputs.index = ['\'[0]\'', '\'[1]\'', '\'[2]\''] - group_level.connect(t_test, 'out_file', select_subbrick, 'in_file') + select_subbrick.inputs.b = [0, 1, 2] + group_level.connect(t_test, 'out_file', select_subbrick, 'a') # SELECT DATASET - Split output of 3dttest++ select_output = MapNode(TCatSubBrick(), name = 'select_output', iterfield = 'in_files')