Skip to content

Commit

Permalink
80GC group analysis select files using 3dTCat
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Apr 3, 2024
1 parent ecb65e8 commit b766fe2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions narps_open/pipelines/team_80GC.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b766fe2

Please sign in to comment.