From fb01efa96365cd649ac1a0892ac79bd371ddb405 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 20 Jul 2022 20:53:31 +0000 Subject: Change mapping results table (minus Interval Analyst) to use new create_datatable.js code and load table from JSON row data --- wqflask/wqflask/templates/mapping_results.html | 229 ++++++++++++++----------- 1 file changed, 130 insertions(+), 99 deletions(-) diff --git a/wqflask/wqflask/templates/mapping_results.html b/wqflask/wqflask/templates/mapping_results.html index 29e9002d..55d18cba 100644 --- a/wqflask/wqflask/templates/mapping_results.html +++ b/wqflask/wqflask/templates/mapping_results.html @@ -65,7 +65,7 @@
| - | Row | -Marker | - {% if LRS_LOD == "-logP" %} -–logP |
- {% else %}
- {{ LRS_LOD }} |
- {% endif %}
- Position ({% if plotScale == "physic" %}Mb{% else %}cM{% endif %}) |
- {% if 'additive' in trimmed_markers[0] %}
- Add Eff |
- {% endif %}
- {% if 'dominance' in trimmed_markers[0] and dataset.group.genetic_type != "riset" %}
- Dom Eff |
- {% endif %}
-
|---|
| - - | -{{ loop.index }} | -{% if geno_db_exists == "True" %}{{ marker.name }}{% else %}{{ marker.name }}{% endif %} | - {% if LRS_LOD == "LOD" or LRS_LOD == "-logP" %} - {% if 'lod_score' in marker %} -{{ '%0.2f' | format(marker.lod_score|float) }} | - {% else %} -{{ '%0.2f' | format(marker.lrs_value|float / 4.61) }} | - {% endif %} - {% else %} - {% if 'lod_score' in marker %} -{{ '%0.2f' | format(marker.lod_score|float * 4.61) }} | - {% else %} -{{ '%0.2f' | format(marker.lrs_value|float) }} | - {% endif %} - {% endif %} -{{ marker.display_pos }} | - {% if 'additive' in marker %} - {% if geno_db_exists == "True" %} -{{ '%0.3f' | format(marker.additive|float) }} | - {% else %} -{{ '%0.3f' | format(marker.additive|float) }} | - {% endif %} - {% endif %} - {% if 'dominance' in marker and dataset.group.genetic_type != "riset" %} -{{ '%0.2f' | format(marker.dominance|float) }} | - {% endif %} -Loading... |