nipype
nipype copied to clipboard
1deval AFNI
I was running a script that used 1deval from the afni package. Everytime it runs it gives me an error saying "-prefix = unknown command line option!" even though this is the default setting for the out_file function. I have pasted the code below for reference. Thanks!
eval.inputs.in_file_a = f'{output_dir}/outcount.r{index}.1D' eval.inputs.expr = '1-step(a-.1)' eval.inputs.out1D = True eval.inputs.out_file = f'{output_dir}/rm.out.cen.r{index}.1D' eval.run()
Looks like 1deval
doesn't accept the -prefix
option, so either something changed in AFNI or the interface was coded wrong. It seems that this has been here in more or less the same form since 2f898cc3e27638b5214ce1b485269e70affd1ae9.
I don't know enough to immediately suggest how to fix it, but perhaps @tsalo, @Shotgunosine or @rmarkello might? Or might know who else to ask.
My guess is that the interface is coded wrong. The docstring test calls 3deval, which isn't currently an afni program. I don't remember how to change the nipype interface to accomplish this, but you could fix the interface by changing it to put the output into the file specified by prefix with a redirect (basically, add this to the end of the command line f'> {out_file}'
.