[Neuroimaging] iterating a workflow over inputs

Ian Malone ibmalone at gmail.com
Tue Jan 10 11:47:27 EST 2017


On 9 January 2017 at 18:59, Ian Malone <ibmalone at gmail.com> wrote:
> Hi,
>
> I've got a relatively complex workflow that I'd like to use as a
> sub-workflow of another one, however it needs to be iterated over some
> of the inputs. I suppose I could replace the appropriate pe.Node()s in
> it with MapNode()s, but there are a fair number of them, and quite a
> few connections. (I also think, that this would prevent it being used
> on single instance inputs without first packing them into a list,
> though I could be wrong.)
>

> Is this at all possible, or should I bite the bullet and start
> MapNode-ing the sub-workflow?

This has turned out to be doubly interesting as I forgot my
sub-workflow already had its own sub-workflow, which is already used
elsewhere with a single set of inputs. I suppose I can use
interfaces.utility.Split() to extract the single output again in that
case, but the bigger workflow (which I'd also like to use elsewhere)
has quite a few outputs, and connecting a split to each one seems a
bit unwieldy. Any good solutions to this?

-- 
imalone


More information about the Neuroimaging mailing list