aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/mrna_assay_tissue_data.py
diff options
context:
space:
mode:
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()