diff options
author | zsloan | 2024-09-16 18:49:34 +0000 |
---|---|---|
committer | zsloan | 2024-09-17 14:38:13 +0000 |
commit | 805b781e6eabfb42cbecb319fffc8ade855de914 (patch) | |
tree | 1022428f3e8e4b40ae45bf1307e341aee16d5366 /gn2/wqflask/correlation | |
parent | faa9a6329283031218fbd49d1b1491f1874a0a3f (diff) | |
download | genenetwork2-805b781e6eabfb42cbecb319fffc8ade855de914.tar.gz |
Handle Effect Size plots on the scatterplot page
Added a new parameter to the scatterplot page ('effect') that causes the figures to be drawn differently. For example:
- The plot width is different
- Spearman Rank plot isn't displayed/generated
- The number of X-axis ticks is explicitly set to 3, with no decimal places
Diffstat (limited to 'gn2/wqflask/correlation')
-rw-r--r-- | gn2/wqflask/correlation/corr_scatter_plot.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gn2/wqflask/correlation/corr_scatter_plot.py b/gn2/wqflask/correlation/corr_scatter_plot.py index ab130cc5..79905cc2 100644 --- a/gn2/wqflask/correlation/corr_scatter_plot.py +++ b/gn2/wqflask/correlation/corr_scatter_plot.py @@ -45,6 +45,8 @@ class CorrScatterPlot: if self.dataset_1.group.f1list != None: primary_samples += self.dataset_1.group.f1list + self.effect_plot = True if 'effect' in params else False + if 'dataid' in params: 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"} @@ -116,6 +118,7 @@ class CorrScatterPlot: self.js_data = dict( data=self.data, + effect_plot=self.effect_plot, rdata=self.rdata, indIDs=self.indIDs, trait_1=self.trait_1.dataset.name + ": " + str(self.trait_1.name), |