diff options
author | zsloan | 2022-10-23 18:51:30 +0000 |
---|---|---|
committer | zsloan | 2022-10-23 18:51:49 +0000 |
commit | 6285d5b626cc846850c95dff44a786449c8afca4 (patch) | |
tree | c9076721e9ace19da85000142065eb791c0a38e3 | |
parent | c557b048f017b40965da129b27cab86600713200 (diff) | |
download | genenetwork2-6285d5b626cc846850c95dff44a786449c8afca4.tar.gz |
Fix Variant Browser's db_cursor issues
-rw-r--r-- | wqflask/wqflask/snp_browser/snp_browser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/snp_browser/snp_browser.py b/wqflask/wqflask/snp_browser/snp_browser.py index d5c4e946..208f1206 100644 --- a/wqflask/wqflask/snp_browser/snp_browser.py +++ b/wqflask/wqflask/snp_browser/snp_browser.py @@ -11,7 +11,7 @@ class SnpBrowser: def __init__(self, db_cursor, start_vars): self.strain_lists = get_browser_sample_lists() - self.initialize_parameters(start_vars) + self.initialize_parameters(db_cursor, start_vars) if self.first_run == "false": self.filtered_results = self.get_browser_results() @@ -53,7 +53,7 @@ class SnpBrowser: mouse_species_ob = species.TheSpecies(species_name="Mouse") for key in mouse_species_ob.chromosomes.chromosomes(db_cursor): self.mouse_chr_list.append( - mouse_species_ob.chromosomes.chromosomes[key].name) + mouse_species_ob.chromosomes.chromosomes(db_cursor)[key].name) rat_species_ob = species.TheSpecies(species_name="Rat") for key in rat_species_ob.chromosomes.chromosomes(db_cursor): self.rat_chr_list.append( |