I am new to nipype and would like to turn my afni scripts into a workflow. Unfortunately there is no example workflow for afni on the nipype website and I ran into an issue already at the first step:
In all afni commands indexing of scan volumes is done by adding a sub-brick selection suffix, e.g. mydata+orig to select the sub-brick/volume 5.
For example, when I would like to cut off the 10 initial volumes from a dataset, the afni command would be:
3dTcat -prefix output_filename input_file+orig'[10..$]'
When using the afni interface of nipype, could I just define
tcat.inputs.outfile this way, or will this not be passed to the raw afni code?
I noticed for afni.Calc() they added some more arguments, such as start_idx, stop_idx to slice the input file, but it only works for the first input file. This is quite a limitation, since 3dcalc is used to perform complex calculations between several input datasets.
Are there any examples for afni workflows, or should I replace all functions that require selection of volumes with FSL or SPM equivalents?