res = rsn_functional_connectometry_wf.run(plugin="MultiProc")
out_node = [x for x in list(res.nodes()) if str(x) == [x for x in [str(i) for i in list(res.nodes())] if "outputnode" in x][-1]][0]
try:
thr=out_node.result.outputs.thr
est_path=out_node.result.outputs.est_path
except AttributeError:
print("Workflow failed!")
return est_path, thr
def wb_structural_connectometry(ID, atlas_select, network, node_size, mask, parlistfile, plot_switch, parc, ref_txt, procmem, dir_path, bedpostx_dir, label_names, anat_loc):
from nipype.pipeline import engine as pe