diff options
author | zsloan | 2015-11-18 17:04:54 +0000 |
---|---|---|
committer | zsloan | 2015-11-18 17:04:54 +0000 |
commit | 933b90b8eba789dd89555ec31a6ff8db30808eac (patch) | |
tree | 6aa7ae945df8921b970e6fa07b184eb8c07649e7 /wqflask/base/mrna_assay_tissue_data.py | |
parent | 74ba4029f0160f0c4708a8c4b291c05184d3993d (diff) | |
download | genenetwork2-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/mrna_assay_tissue_data.py')
-rwxr-xr-x | wqflask/base/mrna_assay_tissue_data.py | 10 |
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() |