aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-09-05 18:04:02 +0000
committerzsloan2023-09-05 18:06:37 +0000
commita4bd53a97003a2b0f1b779e0406053686305d523 (patch)
tree0445114a19c51d2c0565742829e0b6be677ce9b1 /wqflask
parent093b0fc7a386d3e8388babe131bdf9d45fbe3c79 (diff)
downloadgenenetwork2-a4bd53a97003a2b0f1b779e0406053686305d523.tar.gz
Fix issue where X and Y axis were the same when using data ID for correlation scatterplot
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/correlation/corr_scatter_plot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/correlation/corr_scatter_plot.py b/wqflask/wqflask/correlation/corr_scatter_plot.py
index e5f545a2..dd12169a 100644
--- a/wqflask/wqflask/correlation/corr_scatter_plot.py
+++ b/wqflask/wqflask/correlation/corr_scatter_plot.py
@@ -47,7 +47,7 @@ class CorrScatterPlot:
trait_data_dict = json.loads(Redis.get(params['dataid']))
trait_data = {key:webqtlCaseData.webqtlCaseData(key, float(trait_data_dict[key])) for (key, value) in trait_data_dict.items() if trait_data_dict[key] != "x"}
samples_1, samples_2, num_overlap = corr_result_helpers.normalize_values_with_samples(
- self.trait_1.data, trait_data)
+ trait_data, self.trait_2.data)
else:
samples_1, samples_2, num_overlap = corr_result_helpers.normalize_values_with_samples(
self.trait_1.data, self.trait_2.data)