Skip to content

Commit

Permalink
Merge pull request #48 from mwaskom/fix_fnirt_rename
Browse files Browse the repository at this point in the history
Fix bug in FNIRT workflow datasink
  • Loading branch information
mwaskom committed Oct 28, 2014
2 parents e32afdd + 482fe85 commit ca41e87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions doc/release/v0.0.4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Mixed effects workflow

- Fixed a bug where the analysis mask was getting smoothed on the surface.

FNIRT-based normalization workflow
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Fixed a bug where the outputs of FNIRT were not properly renamed and thus
were not correctly picked up by the registration stage of the functional
pipeline.

Surface snapshots script
~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
13 changes: 7 additions & 6 deletions lyman/workflows/anatwarp.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ def create_fsl_workflow(data_dir=None, subjects=None, name="fslwarp"):
name="subjectsource")

# Grab recon-all outputs
head_image = "T1"
templates = dict(aseg="{subject_id}/mri/aparc+aseg.mgz",
head="{subject_id}/mri/T1.mgz")
head="{subject_id}/mri/" + head_image + ".mgz")
datasource = Node(SelectFiles(templates,
base_directory=data_dir),
"datasource")
Expand Down Expand Up @@ -108,13 +109,13 @@ def create_fsl_workflow(data_dir=None, subjects=None, name="fslwarp"):
warpreport = Node(WarpReport(), "warpreport")

# Save relevant files to the data directory
fnirt_subs = [(head_image + "_out_masked_flirt.mat", "affine.mat"),
(head_image + "_out_fieldwarp", "warpfield"),
(head_image + "_out_masked", "brain"),
(head_image + "_out", "T1")]
datasink = Node(DataSink(base_directory=data_dir,
parameterization=False,
substitutions=[
("orig_out_masked_flirt.mat", "affine.mat"),
("orig_out_fieldwarp", "warpfield"),
("orig_out_masked", "brain"),
("orig_out", "T1")]),
substitutions=fnirt_subs),
"datasink")

# Define and connect the workflow
Expand Down

0 comments on commit ca41e87

Please sign in to comment.