Skip to content

Commit 886c081

Browse files
authored
Merge pull request #2695 from akeshavan/colorfa
ENH: Add colorFA output to DIPY DTI interface
2 parents 37f3781 + a13a892 commit 886c081

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nipype/interfaces/dipy/tensors.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class DTIOutputSpec(TraitedSpec):
2121
md_file = File(exists=True)
2222
rd_file = File(exists=True)
2323
ad_file = File(exists=True)
24+
color_fa_file = File(exists=True)
2425

2526

2627
class DTI(DipyDiffusionInterface):
@@ -62,7 +63,7 @@ def _run_interface(self, runtime):
6263
IFLOGGER.info('DTI parameters image saved as %s', out_file)
6364

6465
# FA MD RD and AD
65-
for metric in ["fa", "md", "rd", "ad"]:
66+
for metric in ["fa", "md", "rd", "ad", "color_fa"]:
6667
data = getattr(ten_fit, metric).astype("float32")
6768
out_name = self._gen_filename(metric)
6869
nb.Nifti1Image(data, affine).to_filename(out_name)
@@ -74,7 +75,7 @@ def _list_outputs(self):
7475
outputs = self._outputs().get()
7576
outputs['out_file'] = self._gen_filename('dti')
7677

77-
for metric in ["fa", "md", "rd", "ad"]:
78+
for metric in ["fa", "md", "rd", "ad", "color_fa"]:
7879
outputs["{}_file".format(metric)] = self._gen_filename(metric)
7980

8081
return outputs

0 commit comments

Comments
 (0)