aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorzsloan2024-03-21 17:50:58 +0000
committerzsloan2024-03-21 17:52:49 +0000
commit091b7934178f3543c0037664d5aefc0a66fa96fb (patch)
tree1aa97302fe4a33edcce7acd2e54d1bf4280634d2 /gn2
parent5f763c1e1accff47d754d83f831245c9abdd3f81 (diff)
downloadgenenetwork2-091b7934178f3543c0037664d5aefc0a66fa96fb.tar.gz
Fix bug where scatterplot didn't work for temp traits
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/correlation/corr_scatter_plot.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gn2/wqflask/correlation/corr_scatter_plot.py b/gn2/wqflask/correlation/corr_scatter_plot.py
index 59e9ac4a..ab130cc5 100644
--- a/gn2/wqflask/correlation/corr_scatter_plot.py
+++ b/gn2/wqflask/correlation/corr_scatter_plot.py
@@ -20,13 +20,15 @@ class CorrScatterPlot:
def __init__(self, params):
if "Temp" in params['dataset_1']:
+ temp_group = params['trait_1'].split("_")[2]
self.dataset_1 = data_set.create_dataset(
- dataset_name="Temp", dataset_type="Temp", group_name=params['dataset_1'].split("_")[1])
+ dataset_name="Temp", dataset_type="Temp", group_name=temp_group)
else:
self.dataset_1 = data_set.create_dataset(params['dataset_1'])
if "Temp" in params['dataset_2']:
+ temp_group = params['trait_2'].split("_")[2]
self.dataset_2 = data_set.create_dataset(
- dataset_name="Temp", dataset_type="Temp", group_name=params['dataset_2'].split("_")[1])
+ dataset_name="Temp", dataset_type="Temp", group_name=temp_group)
else:
self.dataset_2 = data_set.create_dataset(params['dataset_2'])