diff options
author | uditgulati | 2020-06-28 11:28:28 -0500 |
---|---|---|
committer | uditgulati | 2020-11-01 05:10:59 -0600 |
commit | 73e3f354b0bf6accfd884f0fab8ef93f03be7945 (patch) | |
tree | cd5d363c6d55454fc196f8d937d0cb14e6351c67 /wqflask | |
parent | 88715630c4d18d962a7473dcac7e34b1b9c098a0 (diff) | |
download | genenetwork2-73e3f354b0bf6accfd884f0fab8ef93f03be7945.tar.gz |
fix typo in check_if_in_gene function while querying for species_id = 0
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/snp_browser/snp_browser.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/wqflask/wqflask/snp_browser/snp_browser.py b/wqflask/wqflask/snp_browser/snp_browser.py index 6c3fcf53..a2fb7195 100644 --- a/wqflask/wqflask/snp_browser/snp_browser.py +++ b/wqflask/wqflask/snp_browser/snp_browser.py @@ -526,7 +526,6 @@ class SnpBrowser(object): the_rows.append(this_row) return the_rows - def include_record(self, domain, function, snp_source, conservation_score): """ Decide whether to add this record """ @@ -868,8 +867,6 @@ def get_gene_id_name_dict(species_id, gene_name_list): if len(results) > 0: for item in results: gene_id_name_dict[item[1]] = item[0] - else: - pass return gene_id_name_dict @@ -883,7 +880,7 @@ def check_if_in_gene(species_id, chr, mb): query = """SELECT geneId,geneSymbol FROM GeneList WHERE chromosome = '{0}' AND - (txStart < {1} AND txEnd > {1}); """.format(species_id, chr, mb) + (txStart < {1} AND txEnd > {1}); """.format(chr, mb) result = g.db.execute(query).fetchone() |