|
48 | 48 | ),
|
49 | 49 | (
|
50 | 50 | "fieldcoeff_file",
|
51 |
| - ty.Any, |
| 51 | + str, |
52 | 52 | {
|
53 | 53 | "help_string": "name of output file with field coefficients or true",
|
54 | 54 | "argstr": "--cout={fieldcoeff_file}",
|
| 55 | + "output_file_template": "{in_file}_fieldwarp", |
55 | 56 | },
|
56 | 57 | ),
|
57 | 58 | (
|
|
65 | 66 | ),
|
66 | 67 | (
|
67 | 68 | "field_file",
|
68 |
| - ty.Any, |
| 69 | + str, |
69 | 70 | {
|
70 | 71 | "help_string": "name of output file with field or true",
|
71 | 72 | "argstr": "--fout={field_file}",
|
| 73 | + "output_file_template": "{in_file}_field", |
72 | 74 | },
|
73 | 75 | ),
|
74 | 76 | (
|
75 | 77 | "jacobian_file",
|
76 |
| - ty.Any, |
| 78 | + str, |
77 | 79 | {
|
78 | 80 | "help_string": "name of file for writing out the Jacobian of the field (for diagnostic or VBM purposes)",
|
79 | 81 | "argstr": "--jout={jacobian_file}",
|
| 82 | + "output_file_template": "{in_file}_field_jacobian", |
80 | 83 | },
|
81 | 84 | ),
|
82 | 85 | (
|
83 | 86 | "modulatedref_file",
|
84 |
| - ty.Any, |
| 87 | + str, |
85 | 88 | {
|
86 | 89 | "help_string": "name of file for writing out intensity modulated --ref (for diagnostic purposes)",
|
87 | 90 | "argstr": "--refout={modulatedref_file}",
|
| 91 | + "output_file_template": "{in_file}_modulated", |
88 | 92 | },
|
89 | 93 | ),
|
90 | 94 | (
|
91 | 95 | "out_intensitymap_file",
|
92 |
| - ty.Any, |
| 96 | + str, |
93 | 97 | {
|
94 | 98 | "help_string": "name of files for writing information pertaining to intensity mapping",
|
95 | 99 | "argstr": "--intout={out_intensitymap_file}",
|
|
353 | 357 | ]
|
354 | 358 | FNIRT_input_spec = specs.SpecInfo(name="Input", fields=input_fields, bases=(specs.ShellSpec,))
|
355 | 359 |
|
356 |
| -output_fields = [ |
357 |
| - ( |
358 |
| - "fieldcoeff_file", |
359 |
| - specs.File, |
360 |
| - { |
361 |
| - "help_string": "file with field coefficients", |
362 |
| - "requires": ["in_file"], |
363 |
| - "output_file_template": "{in_file}_fieldwarp", |
364 |
| - }, |
365 |
| - ), |
366 |
| - ( |
367 |
| - "field_file", |
368 |
| - specs.File, |
369 |
| - { |
370 |
| - "help_string": "file with warp field", |
371 |
| - "requires": ["in_file"], |
372 |
| - "output_file_template": "{in_file}_field", |
373 |
| - }, |
374 |
| - ), |
375 |
| - ( |
376 |
| - "jacobian_file", |
377 |
| - specs.File, |
378 |
| - { |
379 |
| - "help_string": "file containing Jacobian of the field", |
380 |
| - "requires": ["in_file"], |
381 |
| - "output_file_template": "{in_file}_field_jacobian", |
382 |
| - }, |
383 |
| - ), |
384 |
| - ( |
385 |
| - "modulatedref_file", |
386 |
| - specs.File, |
387 |
| - { |
388 |
| - "help_string": "file containing intensity modulated --ref", |
389 |
| - "requires": ["in_file"], |
390 |
| - "output_file_template": "{in_file}_modulated", |
391 |
| - }, |
392 |
| - ), |
393 |
| -] |
394 |
| -FNIRT_output_spec = specs.SpecInfo( |
395 |
| - name="Output", fields=output_fields, bases=(specs.ShellOutSpec,) |
396 |
| -) |
397 |
| - |
398 | 360 |
|
399 | 361 | class FNIRT(ShellCommandTask):
|
400 | 362 | input_spec = FNIRT_input_spec
|
401 |
| - output_spec = FNIRT_output_spec |
402 | 363 | executable = "fnirt"
|
0 commit comments