diff options
author | Lei Yan | 2015-07-10 20:12:00 +0000 |
---|---|---|
committer | Lei Yan | 2015-07-10 20:12:00 +0000 |
commit | aa159a17785cc415e81346963aa76f05f5f9d4ad (patch) | |
tree | ae0502dac39d8cf20115b58817df4931a03b727c /wqflask/base/mrna_assay_tissue_data.py | |
parent | 239c5ff97a88bd9ae3c439ca244daca2696fe68b (diff) | |
parent | 840285e3533790760b763aaa43d3099f9b0a5d69 (diff) | |
download | genenetwork2-aa159a17785cc415e81346963aa76f05f5f9d4ad.tar.gz |
Merge https://github.com/genenetwork/genenetwork2
Diffstat (limited to 'wqflask/base/mrna_assay_tissue_data.py')
-rwxr-xr-x | wqflask/base/mrna_assay_tissue_data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/mrna_assay_tissue_data.py b/wqflask/base/mrna_assay_tissue_data.py index 1a05fce7..b2c0448a 100755 --- a/wqflask/base/mrna_assay_tissue_data.py +++ b/wqflask/base/mrna_assay_tissue_data.py @@ -51,15 +51,15 @@ class MrnaAssayTissueData(object): query += ''' Symbol in {} group by Symbol) as x inner join TissueProbeSetXRef as t on t.Symbol = x.Symbol - and t.Mean = x.maxmean; + and t.Mean = x.maxmean;http://docs.python.org/2/library/string.html?highlight=lower#string.lower '''.format(in_clause) results = g.db.execute(query).fetchall() for result in results: symbol = result[0] - if symbol in gene_symbols: - #gene_symbols.append(symbol) + if symbol.lower() in [gene_symbol.lower() for gene_symbol in gene_symbols]: + #gene_symbols.append(symbol) symbol = symbol.lower() self.data[symbol].gene_id = result.GeneId |