From 75132a5382d32d9332f743aca0e406ae6137d7e5 Mon Sep 17 00:00:00 2001
From: zsloan
Date: Mon, 13 Sep 2021 19:49:05 +0000
Subject: Include some extra metadata in the mapping page details (in addition
to the figure itself)
---
wqflask/wqflask/marker_regression/display_mapping_results.py | 4 ++--
wqflask/wqflask/templates/mapping_results.html | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
(limited to 'wqflask')
diff --git a/wqflask/wqflask/marker_regression/display_mapping_results.py b/wqflask/wqflask/marker_regression/display_mapping_results.py
index a9ebeb64..77d6e2db 100644
--- a/wqflask/wqflask/marker_regression/display_mapping_results.py
+++ b/wqflask/wqflask/marker_regression/display_mapping_results.py
@@ -1198,8 +1198,8 @@ class DisplayMappingResults:
self.dataset.fullname)
- current_datetime = datetime.datetime.now()
- string1 = 'UTC Timestamp: %s' % (current_datetime.strftime("%b %d %Y %H:%M:%S"))
+ self.current_datetime = datetime.datetime.now().strftime("%b %d %Y %H:%M:%S")
+ string1 = 'UTC Timestamp: %s' % (self.current_datetime)
string2 = 'Dataset: %s' % (dataset_label)
string3 = 'Trait Hash: %s' % (self.vals_hash)
diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html
index 7a222d0c..f2d11e89 100644
--- a/wqflask/wqflask/templates/mapping_results.html
+++ b/wqflask/wqflask/templates/mapping_results.html
@@ -69,14 +69,15 @@
Population: {{ dataset.group.species|capitalize }} {{ dataset.group.name }}
Database: {{ dataset.fullname }}
{% if dataset.type == "ProbeSet" %}Trait ID:{% else %}Record ID:{% endif %} {{ this_trait.display_name }}
+ Trait Hash: {{ vals_hash }}
{% if dataset.type == "ProbeSet" %}
Gene Symbol: {{ this_trait.symbol }}
Location: Chr {{ this_trait.chr }} @ {{ this_trait.mb }} Mb
{% endif %}
{% if genofile_string != "" %}
- Genotypes: {{ genofile_string.split(":")[1] }}
+ Genotypes: {{ genofile_string.split(":")[1] }}
{% endif %}
-
+ Current Date/Time: {{ current_datetime }}
Download Full Results
--
cgit v1.2.3