@@ -820,6 +820,7 @@ class ReconAllInputSpec(CommandLineInputSpec):
820
820
"recon_all" ,
821
821
argstr = "-subjid %s" ,
822
822
desc = "subject name" ,
823
+ xor = ["base_template_id" ,"longitudinal_timepoint_id" ],
823
824
)
824
825
directive = traits .Enum (
825
826
"all" ,
@@ -845,21 +846,28 @@ class ReconAllInputSpec(CommandLineInputSpec):
845
846
usedefault = True ,
846
847
position = 0 ,
847
848
)
848
- hemi = traits .Enum ("lh" , "rh" , desc = "hemisphere to process" , argstr = "-hemi %s" )
849
+ hemi = traits .Enum ("lh" , "rh" ,
850
+ desc = "hemisphere to process" ,
851
+ argstr = "-hemi %s" ,
852
+ requires = ["subject_id" ],
853
+ )
849
854
T1_files = InputMultiPath (
850
- File (exists = True ), argstr = "-i %s..." , desc = "name of T1 file to process"
855
+ File (exists = True ), argstr = "-i %s..." , desc = "name of T1 file to process" ,
856
+ requires = ["subject_id" ],
851
857
)
852
858
T2_file = File (
853
859
exists = True ,
854
860
argstr = "-T2 %s" ,
855
861
min_ver = "5.3.0" ,
856
862
desc = "Convert T2 image to orig directory" ,
863
+ requires = ["subject_id" ],
857
864
)
858
865
FLAIR_file = File (
859
866
exists = True ,
860
867
argstr = "-FLAIR %s" ,
861
868
min_ver = "5.3.0" ,
862
869
desc = "Convert FLAIR image to orig directory" ,
870
+ requires = ["subject_id" ]
863
871
)
864
872
use_T2 = traits .Bool (
865
873
argstr = "-T2pial" ,
@@ -888,18 +896,21 @@ class ReconAllInputSpec(CommandLineInputSpec):
888
896
"Assume scan parameters are MGH MP-RAGE "
889
897
"protocol, which produces darker gray matter"
890
898
),
899
+ requires = ["subject_id" ],
891
900
)
892
901
big_ventricles = traits .Bool (
893
902
argstr = "-bigventricles" ,
894
903
desc = ("For use in subjects with enlarged " "ventricles" ),
895
904
)
896
905
brainstem = traits .Bool (
897
- argstr = "-brainstem-structures" , desc = "Segment brainstem structures"
906
+ argstr = "-brainstem-structures" , desc = "Segment brainstem structures" ,
907
+ requires = ["subject_id" ],
898
908
)
899
909
hippocampal_subfields_T1 = traits .Bool (
900
910
argstr = "-hippocampal-subfields-T1" ,
901
911
min_ver = "6.0.0" ,
902
912
desc = "segment hippocampal subfields using input T1 scan" ,
913
+ requires = ["subject_id" ],
903
914
)
904
915
hippocampal_subfields_T2 = traits .Tuple (
905
916
File (exists = True ),
@@ -910,6 +921,7 @@ class ReconAllInputSpec(CommandLineInputSpec):
910
921
"segment hippocampal subfields using T2 scan, identified by "
911
922
"ID (may be combined with hippocampal_subfields_T1)"
912
923
),
924
+ requires = ["subject_id" ],
913
925
)
914
926
expert = File (
915
927
exists = True , argstr = "-expert %s" , desc = "Set parameters using expert file"
0 commit comments