diff options
author | zsloan | 2015-05-22 21:47:48 +0000 |
---|---|---|
committer | zsloan | 2015-05-22 21:47:48 +0000 |
commit | 809990fca27c0bae3573c0572c384cb6f6f3325d (patch) | |
tree | acc0c8f346629716d1f2b6d5ecda1c3226447187 /wqflask/base/mrna_assay_tissue_data.py | |
parent | cce1715090f0ef7579881c0b9de49b3a49f5a249 (diff) | |
download | genenetwork2-809990fca27c0bae3573c0572c384cb6f6f3325d.tar.gz |
Fixed issue where correlation didn't work for human traits (and probably some others)
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 |