aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/mapping_results.html
diff options
context:
space:
mode:
authorzsloan2024-09-16 18:49:34 +0000
committerzsloan2024-09-17 14:38:13 +0000
commit805b781e6eabfb42cbecb319fffc8ade855de914 (patch)
tree1022428f3e8e4b40ae45bf1307e341aee16d5366 /gn2/wqflask/templates/mapping_results.html
parentfaa9a6329283031218fbd49d1b1491f1874a0a3f (diff)
downloadgenenetwork2-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/templates/mapping_results.html')
-rw-r--r--gn2/wqflask/templates/mapping_results.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/templates/mapping_results.html b/gn2/wqflask/templates/mapping_results.html
index 2b1660fd..c27de85e 100644
--- a/gn2/wqflask/templates/mapping_results.html
+++ b/gn2/wqflask/templates/mapping_results.html
@@ -416,7 +416,7 @@
'data': null,
'render': function(data, type, row, meta) {
{% if geno_db_exists == "True" %}
- return '<a target"_blank" href="corr_scatter_plot?method=pearson&dataset_1={{ dataset.group.name }}Geno&dataset_2={{ dataset.name }}&trait_1=' + data.name + '&trait_2={{ this_trait.name }}&cached_trait=trait_2&dataid={{ dataid }}">' + String(parseFloat(data.additive).toFixed(3)) + '</a>'
+ return '<a target"_blank" href="corr_scatter_plot?method=pearson&dataset_1={{ dataset.group.name }}Geno&dataset_2={{ dataset.name }}&trait_1=' + data.name + '&trait_2={{ this_trait.name }}&cached_trait=trait_2&dataid={{ dataid }}&effect=True">' + String(parseFloat(data.additive).toFixed(3)) + '</a>'
{% else %}
return String(parseFloat(data.additive).toFixed(3))
{% endif %}