fix transforms passing
@@ -198,7 +198,9 @@ def brain_extraction(name='antsBrainExtraction',
(init_aff, norm, [('output_transform', 'initial_moving_transform')]),
(mrg_tmpl, norm, [('out', 'fixed_image')]),
(mrg_target, norm, [('out', 'moving_image')]),
- (norm, map_brainmask, [('forward_transforms', 'transforms')]),
+ (norm, map_brainmask, [
+ ('reverse_invert_flags', 'invert_transform_flags'),
+ ('reverse_transforms', 'transforms')]),
(map_brainmask, thr_brainmask, [('output_image', 'input_image')]),
(thr_brainmask, dil_brainmask, [('output_image', 'op1')]),
(dil_brainmask, get_brainmask, [('output_image', 'op1')]),
