# HG changeset patch # User francesco_lapi # Date 1749071251 0 # Node ID 4599fb23f25b46e7ebdf03209403d1592fd76e42 # Parent 10e9a5a86d374591cc049ad20b5c96017d742052 Uploaded diff -r 10e9a5a86d37 -r 4599fb23f25b COBRAxy/marea_cluster.py --- a/COBRAxy/marea_cluster.py Wed Jun 04 21:07:06 2025 +0000 +++ b/COBRAxy/marea_cluster.py Wed Jun 04 21:07:31 2025 +0000 @@ -59,14 +59,14 @@ parser.add_argument('-el', '--elbow', type = str, - default = 'False', - choices = ['True', 'False'], + default = 'false', + choices = ['true', 'false'], help = 'choose if you want to generate an elbow plot for kmeans') parser.add_argument('-si', '--silhouette', type = str, - default = 'False', - choices = ['True', 'False'], + default = 'false', + choices = ['true', 'false'], help = 'choose if you want silhouette plots') parser.add_argument('-td', '--tool_dir', @@ -224,12 +224,12 @@ os.makedirs(args.output_path) - if elbow == 'True': + if elbow == 'true': elbow = True else: elbow = False - if silhouette == 'True': + if silhouette == 'true': silhouette = True else: silhouette = False @@ -477,7 +477,7 @@ prefix = '' if (i + k_min == best): prefix = '_BEST' - if silhouette == 'True': + if silhouette == 'true': silhouette_draw(dataset, labels[i], i + k_min, f'{args.output_path}/silhouette_with_' + str(i + k_min) + prefix + '_clusters.png') for i in range(len(labels)):