about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Kabui2020-11-29 17:30:43 +0300
committerBonfaceKilz2021-01-06 01:26:38 +0300
commit7b1d35701c283973ab63db3b665951f569a8c5fc (patch)
tree4b7c8c2fb90f924fc3c16b75f3d82752abb37e28
parent1666f8d50df090e9a14dbf0f4f195bac079de058 (diff)
downloadgenenetwork2-7b1d35701c283973ab63db3b665951f569a8c5fc.tar.gz
refactor code in correlation/correlation_functions
-rw-r--r--wqflask/wqflask/correlation/correlation_functions.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/wqflask/wqflask/correlation/correlation_functions.py b/wqflask/wqflask/correlation/correlation_functions.py
index b883e361..fd7691d4 100644
--- a/wqflask/wqflask/correlation/correlation_functions.py
+++ b/wqflask/wqflask/correlation/correlation_functions.py
@@ -71,34 +71,6 @@ def cal_zero_order_corr_for_tiss (primaryValue=[], targetValue=[], method='pears
     return corr_result
 
 
-###########################################################################
-#Input: cursor, symbolList (list), dataIdDict(Dict)
-#output: symbolValuepairDict (dictionary):one dictionary of Symbol and Value Pair,
-#        key is symbol, value is one list of expression values of one probeSet;
-#function: get one dictionary whose key is gene symbol and value is tissue expression data (list type).
-#Attention! All keys are lower case!
-###########################################################################
-def get_symbol_value_pairs(tissue_data):
-    id_list = [tissue_data[symbol.lower()].data_id for item in tissue_data]
-
-    symbol_value_pairs = {}
-    value_list=[]
-
-    query = """SELECT value, id
-               FROM TissueProbeSetData
-               WHERE Id IN {}""".format(create_in_clause(id_list))
-
-    try :
-        results = g.db.execute(query).fetchall()
-        for result in results:
-            value_list.append(result.value)
-        symbol_value_pairs[symbol] = value_list
-    except:
-        symbol_value_pairs[symbol] = None
-
-    return symbol_value_pairs
-
-
 ########################################################################################################
 #input: cursor, symbolList (list), dataIdDict(Dict): key is symbol
 #output: SymbolValuePairDict(dictionary):one dictionary of Symbol and Value Pair.