aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Yan2014-02-05 15:09:38 -0600
committerLei Yan2014-02-05 15:09:38 -0600
commitce3b232328ad8fcfb321419ec74fa6cec465a66d (patch)
tree1489c5ffb63156db0a756f2c5d9c211a78ba5c4f
parentf8141607cf01afd5ed68358a3b2903b5f99c122a (diff)
downloadgenenetwork2-ce3b232328ad8fcfb321419ec74fa6cec465a66d.tar.gz
On branch master
-rw-r--r--wqflask/maintenance/dataset/utilities.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py
index 76d81f5e..30e135cb 100644
--- a/wqflask/maintenance/dataset/utilities.py
+++ b/wqflask/maintenance/dataset/utilities.py
@@ -25,3 +25,14 @@ def to_dic(keys, values):
value = values[i]
dic[key] = value
return dic
+
+def overlap(dic1, dic2):
+ keys = []
+ values1 = []
+ values2 = []
+ for key in dic1.keys():
+ if key in dic2:
+ keys.append(key)
+ values1.append(dic1[key])
+ values2.append(dic2[key])
+ return keys, values1, values2