aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-09-13 19:49:05 +0000
committerzsloan2021-09-13 19:49:05 +0000
commit75132a5382d32d9332f743aca0e406ae6137d7e5 (patch)
treeb3fb5ad2e36f327d63bc911a07c48203557d13b7 /wqflask
parent6a94f7a3a4893f087af53c2d39685d9dcb4b733d (diff)
downloadgenenetwork2-75132a5382d32d9332f743aca0e406ae6137d7e5.tar.gz
Include some extra metadata in the mapping page details (in addition to the figure itself)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/marker_regression/display_mapping_results.py4
-rw-r--r--wqflask/wqflask/templates/mapping_results.html5
2 files changed, 5 insertions, 4 deletions
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 @@
<b>Population:</b> {{ dataset.group.species|capitalize }} {{ dataset.group.name }}<br>
<b>Database:</b> {{ dataset.fullname }}<br>
{% if dataset.type == "ProbeSet" %}<b>Trait ID:</b>{% else %}<b>Record ID:</b>{% endif %} <a href="/show_trait?trait_id={{ this_trait.name }}&dataset={{ dataset.name }}">{{ this_trait.display_name }}</a><br>
+ <b>Trait Hash: </b> {{ vals_hash }}<br>
{% if dataset.type == "ProbeSet" %}
<b>Gene Symbol:</b> <i>{{ this_trait.symbol }}</i><br>
<b>Location:</b> Chr {{ this_trait.chr }} @ {{ this_trait.mb }} Mb<br>
{% endif %}
{% if genofile_string != "" %}
- <b>Genotypes:</b> {{ genofile_string.split(":")[1] }}
+ <b>Genotypes:</b> {{ genofile_string.split(":")[1] }}<br>
{% endif %}
- <br>
+ <b>Current Date/Time:</b> {{ current_datetime }}<br>
<br>
<a class="export_mapping_results" href="#" target="_blank" >Download Full Results</a>
</div>