Skip to content

Commit edece6e

Browse files
committed
ENH: Enable recon-all -FLAIR/-FLAIRpial
1 parent ca91455 commit edece6e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -628,10 +628,17 @@ class ReconAllInputSpec(CommandLineInputSpec):
628628
argstr="-hemi %s")
629629
T1_files = InputMultiPath(File(exists=True), argstr='-i %s...',
630630
desc='name of T1 file to process')
631-
T2_file = File(exists=True, argstr="-T2 %s", min_ver='5.3.0',
631+
T2_file = File(exists=True, argstr="-T2 %s",
632+
min_ver='5.3.0', xor=['FLAIR_file'],
632633
desc='Convert T2 image to orig directory')
633-
use_T2 = traits.Bool(argstr="-T2pial", min_ver='5.3.0',
634-
desc='Use converted T2 to refine the cortical surface')
634+
FLAIR_file = File(exists=True, argstr="-FLAIR %s",
635+
min_ver='5.3.0', xor=['T2_file'],
636+
desc='Convert FLAIR image to orig directory')
637+
use_T2 = traits.Bool(argstr="-T2pial", min_ver='5.3.0', xor=['use_FLAIR'],
638+
desc='Use T2 image to refine the pial surface')
639+
use_FLAIR = traits.Bool(argstr="-FLAIRpial",
640+
min_ver='5.3.0', xor=['use_T2'],
641+
desc='Use FLAIR image to refine the pial surface')
635642
openmp = traits.Int(argstr="-openmp %d",
636643
desc="Number of processors to use in parallel")
637644
parallel = traits.Bool(argstr="-parallel",

0 commit comments

Comments
 (0)