From cb36331a6fde5496af3c4b07c88f46326cb4ac00 Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 9 Sep 2022 21:50:38 +0000 Subject: Fix bug in display_mapping_results chromosome query A tuple of chromosome names was being passed into the query as a single argument, while it expected a separate argument for each chromosome --- wqflask/wqflask/marker_regression/display_mapping_results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py index 7f399597..1d59c694 100644 --- a/wqflask/wqflask/marker_regression/display_mapping_results.py +++ b/wqflask/wqflask/marker_regression/display_mapping_results.py @@ -466,7 +466,7 @@ class DisplayMappingResults: f"({', '.join(['%s' for x in self.ChrList[1:]])}) " "ORDER BY Chr_Length.OrderId", (self.dataset.group.name, - [x[0] for x in self.ChrList[1:]],)) + *[x[0] for x in self.ChrList[1:]],)) self.ChrLengthMbList = cursor.fetchall() self.ChrLengthMbList = [x[0] / 1000000.0 for x in self.ChrLengthMbList] -- cgit v1.2.3