diff --git a/AutoWorkup/PipeLineFunctionHelpers.py b/AutoWorkup/PipeLineFunctionHelpers.py index fb91217b..41e031a7 100644 --- a/AutoWorkup/PipeLineFunctionHelpers.py +++ b/AutoWorkup/PipeLineFunctionHelpers.py @@ -16,6 +16,8 @@ POSTERIORS = ['WM', 'SURFGM', 'ACCUMBEN', 'CAUDATE', 'PUTAMEN', 'GLOBUS', 'THALAMUS', 'HIPPOCAMPUS', 'CRBLGM', 'CRBLWM', 'CSF', 'VB', 'NOTCSF', 'NOTGM', 'NOTWM', 'NOTVB', 'AIR'] +def convertToList(element): + return [ element ] def makeListOfValidImages(imageFile): diff --git a/AutoWorkup/WorkupT1T2TissueClassify.py b/AutoWorkup/WorkupT1T2TissueClassify.py index af6f3e7d..44a975c7 100644 --- a/AutoWorkup/WorkupT1T2TissueClassify.py +++ b/AutoWorkup/WorkupT1T2TissueClassify.py @@ -200,7 +200,7 @@ def MakeInverseTransformFileName(TransformFileName): """### HACK: This function is to work around a deficiency in BRAINSABCext where the inverse transform name is not being computed properly in the list outputs""" fixed_inverse_name = TransformFileName.replace(".h5", "_Inverse.h5") - return fixed_inverse_name + return [ fixed_inverse_name ] tissueClassifyWF.connect([(BABCext, outputsSpec, [(('atlasToSubjectTransform', MakeInverseTransformFileName), "atlasToSubjectInverseTransform")]), ]) tissueClassifyWF.connect(BABCext, 'outputLabels', outputsSpec, 'outputLabels')