aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base
diff options
context:
space:
mode:
authorzsloan2015-11-18 17:04:54 +0000
committerzsloan2015-11-18 17:04:54 +0000
commit933b90b8eba789dd89555ec31a6ff8db30808eac (patch)
tree6aa7ae945df8921b970e6fa07b184eb8c07649e7 /wqflask/base
parent74ba4029f0160f0c4708a8c4b291c05184d3993d (diff)
downloadgenenetwork2-933b90b8eba789dd89555ec31a6ff8db30808eac.tar.gz
Fixed issue where literature and tissue correlation didn't work
Scatterplot matrix feature only appears if user is logged in now Committing current progress on mapping page (it can at least import the file now, but there are still errors)
Diffstat (limited to 'wqflask/base')
-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()