c89d274b734d5a3be34607ccc8e4f54507121a09,pynets/workflows.py,,wb_functional_connectometry,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,9

Before Change


    res = wb_functional_connectometry_wf.run(plugin="MultiProc")
    //res = wb_functional_connectometry_wf.run()

    try:
        thr=list(res.nodes())[-1].result.outputs.thr
        est_path=list(res.nodes())[-1].result.outputs.est_path
    except AttributeError:
        try:
            thr=list(res.nodes())[-2].result.outputs.thr
            est_path=list(res.nodes())[-2].result.outputs.est_path
        except AttributeError:
            thr=list(res.nodes())[-3].result.outputs.thr
            est_path=list(res.nodes())[-3].result.outputs.est_path
    return(est_path, thr)

def rsn_functional_connectometry(func_file, ID, atlas_select, network, node_size, mask, thr, parlistfile, multi_nets, conn_model, dens_thresh, conf, adapt_thresh, plot_switch, parc, ref_txt, procmem, dir_path, multi_thr, multi_atlas, max_thr, min_thr, step_thr, k, clust_mask, k_min, k_max, k_step, k_clustering, user_atlas_list, clust_mask_list, node_size_list):
    from nipype.pipeline import engine as pe

After Change


    wb_functional_connectometry_wf.config["execution"]["plugin"]="MultiProc"
    res = wb_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 rsn_functional_connectometry(func_file, ID, atlas_select, network, node_size, mask, thr, parlistfile, multi_nets, conn_model, dens_thresh, conf, adapt_thresh, plot_switch, parc, ref_txt, procmem, dir_path, multi_thr, multi_atlas, max_thr, min_thr, step_thr, k, clust_mask, k_min, k_max, k_step, k_clustering, user_atlas_list, clust_mask_list, node_size_list):
    from nipype.pipeline import engine as pe
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 43

Instances


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: wb_functional_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: rsn_functional_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: wb_structural_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: wb_functional_connectometry


Project Name: dPys/PyNets
Commit Name: c89d274b734d5a3be34607ccc8e4f54507121a09
Time: 2018-01-19
Author: dpisner@utexas.edu
File Name: pynets/workflows.py
Class Name:
Method Name: rsn_structural_connectometry