Skip to content

Commit 44a63d1

Browse files
committed
update 1.3.0 topology
1 parent 976f343 commit 44a63d1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

GenNet_utils/Create_plots.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
from GenNet_utils.Utility_functions import query_yes_no, get_paths
1010

1111

12-
13-
14-
1512
def cicos_plot(resultpath, importance_csv, plot_weights=True, plot_arrows=False):
1613
print("in progress...")
1714
colormap = ['#7dcfe2', '#4b78b5', 'darkgrey', 'dimgray'] * 1000
@@ -156,10 +153,8 @@ def manhattan_importance(resultpath, importance_csv, num_annotated=10):
156153
colormap = ['#7dcfe2', '#4b78b5', 'darkgrey', 'dimgray'] * len(color_end)
157154

158155
for i in range(len(color_end) - 1):
159-
160156
plt.scatter(x[color_end[i]:color_end[i + 1]], weights[color_end[i]:color_end[i + 1]], c=colormap[i])
161157

162-
163158
plt.ylim(bottom=0, top=1.2)
164159
plt.xlim(0, len(weights) + int(len(weights) / 100))
165160
plt.title("Raw Importance Manhattan", size=36)
@@ -191,6 +186,7 @@ def manhattan_importance(resultpath, importance_csv, num_annotated=10):
191186
plt.savefig(resultpath + "Path_importance.png", bbox_inches='tight', pad_inches=0)
192187
plt.show()
193188

189+
194190
def plot(args):
195191
folder, resultpath = get_paths(args.ID)
196192
importance_csv = pd.read_csv(resultpath + "/connection_weights.csv", index_col=0)
@@ -204,4 +200,4 @@ def plot(args):
204200
manhattan_importance(resultpath=resultpath, importance_csv=importance_csv)
205201
else:
206202
print("invalid type:", args.type)
207-
exit()
203+
exit()

0 commit comments

Comments
 (0)