diff options
author | Alexander Kabui | 2022-01-19 12:22:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-02-09 08:49:56 +0300 |
commit | bad7d2c2b5c3f4e8c5fdd350135c8b96b9add8e5 (patch) | |
tree | d2127cf23e5843ded78730bc8949c8e0593197d0 /wqflask | |
parent | 04203f785e5a8c86509089bc68340e1e01162ffd (diff) | |
download | genenetwork2-bad7d2c2b5c3f4e8c5fdd350135c8b96b9add8e5.tar.gz |
add ui template for ctl
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/templates/g3_ctl_results.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/wqflask/wqflask/templates/g3_ctl_results.html b/wqflask/wqflask/templates/g3_ctl_results.html new file mode 100644 index 00000000..e3f09c12 --- /dev/null +++ b/wqflask/wqflask/templates/g3_ctl_results.html @@ -0,0 +1,42 @@ +{% extends "base.html" %} +{% block title %}Ctl results{% endblock %} +{% block content %} +<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css"> +<div style="margin-top:10px"> + <div> + <h3>CTL/QTL Plots for Individual Traits</h3> + {% for ctl_plot in ctl_plots %} + <img style="width:1000px;height: 600px;" src="data:image/jpeg;base64,{{ ctl_plot | safe }}"> + {% endfor %} + </div> + <h2 style="text-align:center">Significant CTL </h2> + <table id="significance" width="80vw"></table> + <div> + <h2>Ctl line plot</h2> + <img style="width:1000px;height: 600px;" src="data:image/jpeg;base64,{{ image_data | safe }}"> + </div> + <div> + <h3>Network figure</h3> + </div> +</div> +<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.js') }}"></script> +<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTables/js/jquery.dataTables.min.js') }}"></script> +<script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/scroller/js/dataTables.scroller.min.js') }}"></script> +<script type="text/javascript"> +let results = {{significance_data | safe}} + + +// let signifance_data = results["significance_table"] + +let { data_set_rows, col_names } = results + +$('#significance').DataTable({ + data: data_set_rows, + columns: col_names.map((name) => { + return { + title: name + } + }) +}); +</script> +{% endblock %}
\ No newline at end of file |