Skip to content

Commit

Permalink
Merge pull request #210 from chrisfilo/enh/rm_fslroi
Browse files Browse the repository at this point in the history
[RTM] remove unnecessary fslroi
  • Loading branch information
chrisgorgo committed Dec 5, 2016
2 parents 4c62b5e + f545e3d commit 6a2b7d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions fmriprep/workflows/epi.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def epi_hmc(name='EPI_HMC', settings=None):
hmc = pe.Node(fsl.MCFLIRT(
save_mats=True, save_plots=True, mean_vol=True), name='EPI_hmc')

pick_1st = pe.Node(fsl.ExtractROI(t_min=0, t_size=1), name='EPIPickFirst')
hcm2itk = pe.MapNode(c3.C3dAffineTool(fsl2ras=True, itk_transform=True),
iterfield=['transform_file'], name='hcm2itk')

Expand All @@ -57,11 +56,10 @@ def epi_hmc(name='EPI_HMC', settings=None):
name='EPI_hmc_bet')

workflow.connect([
(inputnode, pick_1st, [('epi', 'in_file')]),
(inputnode, hmc, [('epi', 'in_file')]),
(hmc, hcm2itk, [('mat_file', 'transform_file')]),
(pick_1st, hcm2itk, [('roi_file', 'source_file'),
('roi_file', 'reference_file')]),
(hmc, hcm2itk, [('mat_file', 'transform_file'),
('mean_img', 'source_file'),
('mean_img', 'reference_file')]),
(hcm2itk, outputnode, [('itk_transform', 'xforms')]),
(hmc, outputnode, [('out_file', 'epi_brain'),
('par_file', 'movpar_file')]),
Expand Down

0 comments on commit 6a2b7d7

Please sign in to comment.