# HG changeset patch
# User bimib
# Date 1550052505 18000
# Node ID 3d77287caf22b629a797a9dcc58a5a85b39616ed
# Parent d185506631e160f8c994ea6b23515d3f64bbd698
Uploaded
diff -r d185506631e1 -r 3d77287caf22 Marea/local/Recon_rules.p
Binary file Marea/local/Recon_rules.p has changed
diff -r d185506631e1 -r 3d77287caf22 Marea/marea.py
--- a/Marea/marea.py Wed Feb 13 05:06:53 2019 -0500
+++ b/Marea/marea.py Wed Feb 13 05:08:25 2019 -0500
@@ -456,7 +456,7 @@
elif l[0] == 'or':
flag = False
break
- if flag == True: #when there are only AND in list
+ if flag == True: #se ci sono solo AND nella lista
tmp.extend(tmpAnd)
elif flag == False:
tmp.append(tmpAnd)
diff -r d185506631e1 -r 3d77287caf22 Marea/marea.xml
--- a/Marea/marea.xml Wed Feb 13 05:06:53 2019 -0500
+++ b/Marea/marea.xml Wed Feb 13 05:08:25 2019 -0500
@@ -83,8 +83,8 @@
-
-
+
+
diff -r d185506631e1 -r 3d77287caf22 Marea/marea_cluster.py
--- a/Marea/marea_cluster.py Wed Feb 13 05:06:53 2019 -0500
+++ b/Marea/marea_cluster.py Wed Feb 13 05:08:25 2019 -0500
@@ -540,22 +540,13 @@
def f_cluster(resolve_rules):
os.makedirs('cluster_out')
args = process_args(sys.argv)
- k_min = args.k_min
- k_max = args.k_max
- if k_min > k_max:
- warning('k range boundaries inverted.\n')
- tmp = k_min
- k_min = k_max
- k_max = tmp
- else:
- warning('k range correct.\n')
cluster_data = pd.DataFrame.from_dict(resolve_rules, orient = 'index')
for i in cluster_data.columns:
tmp = cluster_data[i][0]
if tmp == None:
cluster_data = cluster_data.drop(columns=[i])
distorsion = []
- for i in range(k_min, k_max+1):
+ for i in range(args.k_min, args.k_max+1):
tmp_kmeans = KMeans(n_clusters = i,
n_init = 100,
max_iter = 300,
@@ -568,7 +559,7 @@
classe.to_csv(dest, sep = '\t', index = False,
header = ['Patient_ID', 'Class'])
plt.figure(0)
- plt.plot(range(k_min, k_max+1), distorsion, marker = 'o')
+ plt.plot(range(args.k_min, args.k_max+1), distorsion, marker = 'o')
plt.xlabel('Number of cluster')
plt.ylabel('Distorsion')
plt.savefig(args.elbow, dpi = 240, format = 'pdf')
@@ -585,6 +576,8 @@
def main():
args = process_args(sys.argv)
+ if args.k_min > args.k_max:
+ sys.exit('Execution aborted: max cluster > min cluster')
if args.rules_selector == 'HMRcore':
recon = pk.load(open(args.tool_dir + '/local/HMRcore_rules.p', 'rb'))
elif args.rules_selector == 'Recon':
diff -r d185506631e1 -r 3d77287caf22 Marea/marea_cluster.xml
diff -r d185506631e1 -r 3d77287caf22 Marea/marea_macros.xml
--- a/Marea/marea_macros.xml Wed Feb 13 05:06:53 2019 -0500
+++ b/Marea/marea_macros.xml Wed Feb 13 05:08:25 2019 -0500
@@ -66,7 +66,7 @@
-This tool is developed by the `BIMIB`_ at the `Department of Informatics, Systems and Communications`_ of `University of Milan - Bicocca`_.
+This tool is developed by the `BIMIB`_ at the `Department of Informatics, Systems and Communications`_ of `University of Milan - Bicocca`_. Development team: Irene Sala, Luca Rosato, Davide Maspero, Chiara Damiani.
.. _BIMIB: http://sito di bio.org
.. _Department of Informatics, Systems and Communications: http://www.disco.unimib.it/go/Home/English
diff -r d185506631e1 -r 3d77287caf22 Marea_beckup_13022019.zip
Binary file Marea_beckup_13022019.zip has changed