Skip to content

Commit

Permalink
Merge pull request #148 from effigies/fix/t2flair_timing
Browse files Browse the repository at this point in the history
FIX: Use T2/FLAIR refinement at cortribbon stage
  • Loading branch information
oesteban authored Dec 11, 2019
2 parents 5c9528d + c31b112 commit b177f23
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions smriprep/workflows/surfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,13 @@ def init_autorecon_resume_wf(omp_nthreads, name='autorecon_resume_wf'):
autorecon_surfs.interface._always_run = True

# -cortribbon is a prerequisite for -parcstats, -parcstats2, -parcstats3
cortribbon = pe.Node(ReconAll(directive=Undefined,
steps=['cortribbon']), name='cortribbon')
# Claiming two threads because pial refinement can be split by hemisphere
# if -T2pial or -FLAIRpial is enabled.
# Parallelizing by hemisphere saves ~30 minutes over simply enabling
# OpenMP on an 8 core machine.
cortribbon = pe.Node(ReconAll(directive=Undefined, steps=['cortribbon'],
parallel=True),
n_procs=2, name='cortribbon')
cortribbon.interface._always_run = True

# -parcstats* can be run per-hemisphere
Expand Down Expand Up @@ -372,8 +377,8 @@ def _dedup(in_list):
return vals.pop()

workflow.connect([
(inputnode, autorecon_surfs, [('use_T2', 'use_T2'),
('use_FLAIR', 'use_FLAIR')]),
(inputnode, cortribbon, [('use_T2', 'use_T2'),
('use_FLAIR', 'use_FLAIR')]),
(inputnode, autorecon2_vol, [('subjects_dir', 'subjects_dir'),
('subject_id', 'subject_id')]),
(autorecon2_vol, autorecon_surfs, [('subjects_dir', 'subjects_dir'),
Expand Down

0 comments on commit b177f23

Please sign in to comment.