aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/mrna_assay_tissue_data.py
diff options
context:
space:
mode:
authorpjotrp2016-02-08 10:04:12 +0100
committerpjotrp2016-02-08 10:04:12 +0100
commit10ae56e0dcc7ac76c671789a67b754d0e1dd03ec (patch)
treeaf103b937f9003db84b1dd425554b1d20ae15abd /wqflask/base/mrna_assay_tissue_data.py
parentcb0f10fc4850b6b06f2237b532317a5c6668584a (diff)
parentfdc0cdeda64213c82512da20b10264238bd210ea (diff)
downloadgenenetwork2-10ae56e0dcc7ac76c671789a67b754d0e1dd03ec.tar.gz
Merge branch 'master' of github.com:genenetwork/genenetwork2 into gn-master
Diffstat (limited to 'wqflask/base/mrna_assay_tissue_data.py')
-rwxr-xr-xwqflask/base/mrna_assay_tissue_data.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/wqflask/base/mrna_assay_tissue_data.py b/wqflask/base/mrna_assay_tissue_data.py
index 54a7ce8e..ba82057a 100755
--- a/wqflask/base/mrna_assay_tissue_data.py
+++ b/wqflask/base/mrna_assay_tissue_data.py
@@ -19,7 +19,7 @@ class MrnaAssayTissueData(object):
if self.gene_symbols == None:
self.gene_symbols = []
- print("self.gene_symbols:", self.gene_symbols)
+ #print("self.gene_symbols:", self.gene_symbols)
self.data = collections.defaultdict(Bunch)
@@ -57,9 +57,15 @@ class MrnaAssayTissueData(object):
results = g.db.execute(query).fetchall()
+ lower_symbols = []
+ for gene_symbol in gene_symbols:
+ if gene_symbol != None:
+ lower_symbols.append(gene_symbol.lower())
+
for result in results:
symbol = result[0]
- if symbol.lower() in [gene_symbol.lower() for gene_symbol in gene_symbols]:
+ #if symbol.lower() in [gene_symbol.lower() for gene_symbol in gene_symbols]:
+ if symbol.lower() in lower_symbols:
#gene_symbols.append(symbol)
symbol = symbol.lower()