We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b6d816 + fa0a101 commit 86706b9Copy full SHA for 86706b9
nipype/interfaces/dipy/tensors.py
@@ -21,6 +21,7 @@ class DTIOutputSpec(TraitedSpec):
21
md_file = File(exists=True)
22
rd_file = File(exists=True)
23
ad_file = File(exists=True)
24
+ color_fa_file = File(exists=True)
25
26
27
class DTI(DipyDiffusionInterface):
@@ -62,7 +63,7 @@ def _run_interface(self, runtime):
62
63
IFLOGGER.info('DTI parameters image saved as %s', out_file)
64
65
# FA MD RD and AD
- for metric in ["fa", "md", "rd", "ad"]:
66
+ for metric in ["fa", "md", "rd", "ad", "color_fa"]:
67
data = getattr(ten_fit, metric).astype("float32")
68
out_name = self._gen_filename(metric)
69
nb.Nifti1Image(data, affine).to_filename(out_name)
@@ -74,7 +75,7 @@ def _list_outputs(self):
74
75
outputs = self._outputs().get()
76
outputs['out_file'] = self._gen_filename('dti')
77
78
79
outputs["{}_file".format(metric)] = self._gen_filename(metric)
80
81
return outputs
nipype/utils/misc.py
@@ -233,8 +233,8 @@ def normalize_mc_params(params, source):
233
y Anterior-Posterior (mm)
234
z Superior-Inferior (mm)
235
rx Pitch (rad)
236
- ry Yaw (rad)
237
- rz Roll (rad)
+ ry Roll (rad)
+ rz Yaw (rad)
238
"""
239
if source.upper() == 'FSL':
240
params = params[[3, 4, 5, 0, 1, 2]]
0 commit comments