2
2
import nipype .interfaces .utility as util
3
3
import nipype .interfaces .cmtk as cmtk
4
4
import nipype .algorithms .misc as misc
5
+ from .group_connectivity import pullnodeIDs
5
6
6
7
def create_networkx_pipeline (name = "networkx" , extra_column_heading = "subject" ):
7
8
"""Creates a workflow to calculate various graph measures (via NetworkX) on
@@ -52,6 +53,7 @@ def create_networkx_pipeline(name="networkx", extra_column_heading="subject"):
52
53
pipeline .connect ([(Matlab2CSV_node , MergeCSVFiles_node ,[("csv_files" ,"in_files" )])])
53
54
pipeline .connect ([(inputnode , MergeCSVFiles_node ,[("extra_field" ,"out_file" )])])
54
55
pipeline .connect ([(inputnode , MergeCSVFiles_node ,[("extra_field" ,"extra_field" )])])
56
+ pipeline .connect ([(inputnode , MergeCSVFiles_node , [(("network_file" , pullnodeIDs ), "row_headings" )])])
55
57
56
58
pipeline .connect ([(inputnode , mergeNetworks ,[("network_file" ,"in1" )])])
57
59
pipeline .connect ([(ntwkMetrics , mergeNetworks ,[("gpickled_network_files" ,"in2" )])])
@@ -67,7 +69,7 @@ def create_networkx_pipeline(name="networkx", extra_column_heading="subject"):
67
69
pipeline .connect ([(Matlab2CSV_global , mergeCSVs , [("csv_files" , "in2" )])])
68
70
pipeline .connect ([(mergeNetworks , outputnode , [("out" , "network_files" )])])
69
71
pipeline .connect ([(mergeCSVs , outputnode , [("out" , "csv_files" )])])
70
- pipeline .connect ([(ntwkMetrics , outputnode ,[("matlab_matrix_files" ,"matlab_files" )])])
72
+ pipeline .connect ([(ntwkMetrics , outputnode ,[("matlab_matrix_files" , "matlab_files" )])])
71
73
return pipeline
72
74
73
75
def create_cmats_to_csv_pipeline (name = "cmats_to_csv" , extra_column_heading = "subject" ):
0 commit comments