Skip to content

Commit

Permalink
FSL's MathsCommand for mask intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
bclenet committed Jun 14, 2024
1 parent 38ba3bb commit 5b8edec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions narps_open/pipelines/team_4TQ6.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
FSLCommand, Randomise
)
from nipype.algorithms.modelgen import SpecifyModel
from nipype.interfaces.fsl.maths import MultiImageMaths
from nipype.interfaces.fsl.maths import MultiImageMaths, MathsCommand

from narps_open.utils.configuration import Configuration
from narps_open.pipelines import Pipeline
Expand Down Expand Up @@ -470,10 +470,10 @@ def get_group_level_analysis_sub_workflow(self, method):
merge_masks.inputs.dimension = 't'
group_level.connect(get_masks, ('out_list', clean_list), merge_masks, 'in_files')

# MultiImageMaths Node - Create a group mask by
# MathsCommand Node - Create a group mask by
# computing the intersection of all subject masks.
mask_intersection = Node(MultiImageMaths(), name = 'mask_intersection')
mask_intersection.inputs.op_string = '-Tmin -thr 0.9'
mask_intersection = Node(MathsCommand(), name = 'mask_intersection')
mask_intersection.inputs.args = '-Tmin -thr 0.9'
group_level.connect(merge_masks, 'merged_file', mask_intersection, 'in_file')

# MultipleRegressDesign Node - Specify model
Expand Down

0 comments on commit 5b8edec

Please sign in to comment.