Skip to content

Best practices for linking outputs of nested workflows into parent workflows? #2423

Closed
@dPys

Description

@dPys

What is the preferable way to link outputs of a nested workflow back into its parent workflow? Does anyone have a really good example (e.g. from fmriprep) where this is done?

Specifically, how might the workflow_selector function of this workflow be restructured so as to eliminate lines 421-434, where the results of a nested workflow ("sub_func_wf") that is run within the "imp_est" node of the main workflow is queried to retrieve the variable "est_path"?
...After "est_path" is fetched, the main workflow proceeds to compile lists of 8 iterfields including est_path from the nested workflow (right now, this is done explicitly with a function, rather than with pure nipype for various reasons outside of the scope of this issue) and then sends those iterfields to the "extractnetstats" node of the main workflow, and so forth...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions