@@ -72,6 +72,8 @@ adv_args.add_argument("--working",
72
72
default = os .path .join ('/home/jovyan/work/mindboggle123_output' ,
73
73
'working' ),
74
74
metavar = 'STR' )
75
+ adv_args .add_argument ("--template" , help = "folder with OASIS-30 template" ,
76
+ default = '/opt/data/OASIS-30_Atropos_template' , metavar = 'STR' )
75
77
adv_args .add_argument ("--skip_freesurfer" , action = 'store_true' ,
76
78
help = "skip FreeSurfer for debugging (nipype skips when run)" )
77
79
adv_args .add_argument ("--skip_ants" , action = 'store_true' ,
@@ -105,6 +107,7 @@ IMAGE = args.IMAGE
105
107
ID = args .id
106
108
OUT = args .out
107
109
WORK = args .working
110
+ TDIR = args .template
108
111
if args .skip_freesurfer and args .skip_ants :
109
112
print ("Use only one of the skip arguments: --skip_freesurfer, --skip_ants." )
110
113
@@ -162,7 +165,6 @@ if args.fs_flags:
162
165
# -p $TEMPLATE/Priors2/priors%d.nii.gz \
163
166
# -o $PREFIX
164
167
# ----------------------------------------------------------------------------
165
- TDIR = '/opt/data/OASIS-30_Atropos_template'
166
168
TEMPLATE = os .path .join (TDIR , 'T_template0.nii.gz' )
167
169
REG = os .path .join (TDIR , 'T_template0_BrainCerebellum.nii.gz' )
168
170
PROB = os .path .join (TDIR , 'T_template0_BrainCerebellumProbabilityMask.nii.gz' )
@@ -291,6 +293,7 @@ if __name__ == '__main__':
291
293
# config.enable_provenance()
292
294
mbFlow .config ['execution' ]['hash_method' ] = 'content'
293
295
# mbFlow.config['execution']['use_relative_paths'] = True
296
+ mbFlow .config ['execution' ]['crashfile_format' ] = 'txt'
294
297
295
298
# --------------------------------------------------------------------
296
299
# Debug: http://nipy.org/nipype/users/config_file.html#debug-configuration
0 commit comments