9
9
from GenNet_utils .Utility_functions import query_yes_no , get_paths
10
10
11
11
12
-
13
-
14
-
15
12
def cicos_plot (resultpath , importance_csv , plot_weights = True , plot_arrows = False ):
16
13
print ("in progress..." )
17
14
colormap = ['#7dcfe2' , '#4b78b5' , 'darkgrey' , 'dimgray' ] * 1000
@@ -156,10 +153,8 @@ def manhattan_importance(resultpath, importance_csv, num_annotated=10):
156
153
colormap = ['#7dcfe2' , '#4b78b5' , 'darkgrey' , 'dimgray' ] * len (color_end )
157
154
158
155
for i in range (len (color_end ) - 1 ):
159
-
160
156
plt .scatter (x [color_end [i ]:color_end [i + 1 ]], weights [color_end [i ]:color_end [i + 1 ]], c = colormap [i ])
161
157
162
-
163
158
plt .ylim (bottom = 0 , top = 1.2 )
164
159
plt .xlim (0 , len (weights ) + int (len (weights ) / 100 ))
165
160
plt .title ("Raw Importance Manhattan" , size = 36 )
@@ -191,6 +186,7 @@ def manhattan_importance(resultpath, importance_csv, num_annotated=10):
191
186
plt .savefig (resultpath + "Path_importance.png" , bbox_inches = 'tight' , pad_inches = 0 )
192
187
plt .show ()
193
188
189
+
194
190
def plot (args ):
195
191
folder , resultpath = get_paths (args .ID )
196
192
importance_csv = pd .read_csv (resultpath + "/connection_weights.csv" , index_col = 0 )
@@ -204,4 +200,4 @@ def plot(args):
204
200
manhattan_importance (resultpath = resultpath , importance_csv = importance_csv )
205
201
else :
206
202
print ("invalid type:" , args .type )
207
- exit ()
203
+ exit ()
0 commit comments