diff options
author | Lei Yan | 2014-02-05 15:09:38 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-05 15:09:38 -0600 |
commit | ce3b232328ad8fcfb321419ec74fa6cec465a66d (patch) | |
tree | 1489c5ffb63156db0a756f2c5d9c211a78ba5c4f | |
parent | f8141607cf01afd5ed68358a3b2903b5f99c122a (diff) | |
download | genenetwork2-ce3b232328ad8fcfb321419ec74fa6cec465a66d.tar.gz |
On branch master
-rw-r--r-- | wqflask/maintenance/dataset/utilities.py | 11 |
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 |