From 6285d5b626cc846850c95dff44a786449c8afca4 Mon Sep 17 00:00:00 2001 From: zsloan Date: Sun, 23 Oct 2022 18:51:30 +0000 Subject: Fix Variant Browser's db_cursor issues --- wqflask/wqflask/snp_browser/snp_browser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') 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( -- cgit v1.2.3