aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-05-03 11:56:40 +0300
committerFrederick Muriuki Muriithi2022-05-03 11:56:40 +0300
commite4cb741d0e5ea1f4671c527a0a938664b71850ea (patch)
treeccf64a83ee62d870dc0eefa4982c6bf45ee208cc /wqflask
parent65909b5006f5f2177b753180cc9a2d851c1623e6 (diff)
downloadgenenetwork2-e4cb741d0e5ea1f4671c527a0a938664b71850ea.tar.gz
Put contents into "container" divs to get similar styling
Put the contents of the partial correlations pages between the <div class="container"></div> tags to take advantage of the existing styling of the content, especially regarding margins and paddings.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/partial_correlations/pcorrs_error.html90
-rw-r--r--wqflask/wqflask/templates/partial_correlations/pcorrs_poll_results.html8
-rw-r--r--wqflask/wqflask/templates/partial_correlations/pcorrs_results_presentation.html440
-rw-r--r--wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html208
4 files changed, 377 insertions, 369 deletions
diff --git a/wqflask/wqflask/templates/partial_correlations/pcorrs_error.html b/wqflask/wqflask/templates/partial_correlations/pcorrs_error.html
index 36847f57..2bcb5e02 100644
--- a/wqflask/wqflask/templates/partial_correlations/pcorrs_error.html
+++ b/wqflask/wqflask/templates/partial_correlations/pcorrs_error.html
@@ -3,51 +3,53 @@
{% block content %}
<!-- Start of body -->
-<div class="col-md-8">
-<div class="form-group has-error">
- <div class="control-label" for="inputError1">
-
- <img src="/static/gif/error/{{ error_image }}">
-
- <h1>ERROR</h1>
-
- <p>
- This error is not what we wanted to see. Unfortunately errors
- are part of all software systems and we need to resolve this
- together.
- </p>
- <p>
- <b>It is important to report this ERROR so we can fix it for everyone</b>.
- </p>
-
- <p>
- Report to the GeneNetwork team by recording the steps you take
- to reproduce this ERROR. Next to those steps, copy-paste below
- stack trace, either as
- a <a href="https://github.com/genenetwork/genenetwork2/issues/new">new
- issue</a> or E-mail this full page to one of the developers
- directly.
- </p>
+<div class="container">
+ <div class="col-md-8">
+ <div class="form-group has-error">
+ <div class="control-label" for="inputError1">
+
+ <img src="/static/gif/error/{{ error_image }}">
+
+ <h1>ERROR</h1>
+
+ <p>
+ This error is not what we wanted to see. Unfortunately errors
+ are part of all software systems and we need to resolve this
+ together.
+ </p>
+ <p>
+ <b>It is important to report this ERROR so we can fix it for everyone</b>.
+ </p>
+
+ <p>
+ Report to the GeneNetwork team by recording the steps you take
+ to reproduce this ERROR. Next to those steps, copy-paste below
+ stack trace, either as
+ a <a href="https://github.com/genenetwork/genenetwork2/issues/new">new
+ issue</a> or E-mail this full page to one of the developers
+ directly.
+ </p>
+ </div>
+
+ <p>
+ (GeneNetwork error: {{message[:128]}})
+ </p>
+
+ <p>
+ To check if this already a known issue, search the
+ <a href="https://github.com/genenetwork/genenetwork2/issues">issue
+ tracker</a>.
+ </p>
+
+ <a href="#Stack" class="btn btn-default" data-toggle="collapse">Toggle full stack trace</a>
+ <div id="Stack" class="collapse">
+ <pre>
+ GeneNetwork {{ version }} {% for line in stack %} {{ line }}
+ {% endfor %}
+ </pre>
+ </div>
+ </div>
</div>
-
- <p>
- (GeneNetwork error: {{message[:128]}})
- </p>
-
- <p>
- To check if this already a known issue, search the
- <a href="https://github.com/genenetwork/genenetwork2/issues">issue
- tracker</a>.
- </p>
-
- <a href="#Stack" class="btn btn-default" data-toggle="collapse">Toggle full stack trace</a>
- <div id="Stack" class="collapse">
- <pre>
- GeneNetwork {{ version }} {% for line in stack %} {{ line }}
- {% endfor %}
- </pre>
- </div>
-</div>
</div>
diff --git a/wqflask/wqflask/templates/partial_correlations/pcorrs_poll_results.html b/wqflask/wqflask/templates/partial_correlations/pcorrs_poll_results.html
index 47acc294..05bd4cbd 100644
--- a/wqflask/wqflask/templates/partial_correlations/pcorrs_poll_results.html
+++ b/wqflask/wqflask/templates/partial_correlations/pcorrs_poll_results.html
@@ -9,7 +9,9 @@
{%block content%}
-<p>Computing partial correlations...</p>
-<img src="/static/gif/waitAnima2.gif"
- alt="Image indicating computation of partial correlations is ongoing" />
+<div class="container">
+ <p>Computing partial correlations...</p>
+ <img src="/static/gif/waitAnima2.gif"
+ alt="Image indicating computation of partial correlations is ongoing" />
+</div>
{%endblock%}
diff --git a/wqflask/wqflask/templates/partial_correlations/pcorrs_results_presentation.html b/wqflask/wqflask/templates/partial_correlations/pcorrs_results_presentation.html
index c109f24b..53175053 100644
--- a/wqflask/wqflask/templates/partial_correlations/pcorrs_results_presentation.html
+++ b/wqflask/wqflask/templates/partial_correlations/pcorrs_results_presentation.html
@@ -10,232 +10,234 @@
{%endblock%}
{%block content%}
-<p>
- <strong>Primary Trait</strong><br /><br />
- <a href="{{url_for(
- 'show_trait_page',
- trait_id=primary['trait_name'],
- dataset=primary['dataset_name'])}}"
- title="Link to trait data for trait {{primary['trait_name']}}">
- {{primary["dataset_type"]}}/{{primary["trait_name"]}}
- [{{primary["symbol"] }} on Chr {{primary["chr"]}} @ {{primary["mb"]}}]:
- {{primary["description"]}}
- </a> --- FROM: {{primary["dataset_name"]}}
-</p>
-<p><strong>Control Traits</strong><br /><br />
- {%for trait in controls:%}
- <a href="{{url_for(
- 'show_trait_page',
- trait_id=trait['trait_name'],
- dataset=trait['dataset_name'])}}"
- title="Link to trait data for trait {{trait['trait_name']}}">
- {{trait["dataset_type"]}}/{{trait["trait_name"]}}
- [{{trait["symbol"] }} on Chr {{trait["chr"]}} @ {{trait["mb"]}}]:
- {{trait["description"]}}
- </a> --- FROM: {{trait["dataset_name"]}}<br />
- {%endfor%}
-</p>
+<div class="container">
+ <p>
+ <strong>Primary Trait</strong><br /><br />
+ <a href="{{url_for(
+ 'show_trait_page',
+ trait_id=primary['trait_name'],
+ dataset=primary['dataset_name'])}}"
+ title="Link to trait data for trait {{primary['trait_name']}}">
+ {{primary["dataset_type"]}}/{{primary["trait_name"]}}
+ [{{primary["symbol"] }} on Chr {{primary["chr"]}} @ {{primary["mb"]}}]:
+ {{primary["description"]}}
+ </a> --- FROM: {{primary["dataset_name"]}}
+ </p>
+ <p><strong>Control Traits</strong><br /><br />
+ {%for trait in controls:%}
+ <a href="{{url_for(
+ 'show_trait_page',
+ trait_id=trait['trait_name'],
+ dataset=trait['dataset_name'])}}"
+ title="Link to trait data for trait {{trait['trait_name']}}">
+ {{trait["dataset_type"]}}/{{trait["trait_name"]}}
+ [{{trait["symbol"] }} on Chr {{trait["chr"]}} @ {{trait["mb"]}}]:
+ {{trait["description"]}}
+ </a> --- FROM: {{trait["dataset_name"]}}<br />
+ {%endfor%}
+ </p>
-<div id="partial-correlation-results">
- {%if dataset_type == "Publish":%}
- <table id="part-corr-results-publish"
- class="table-hover table-striped cell-border"
- style="float: left;">
- <thead>
- <tr>
- <th></th>
- <th>Index</th>
- <th>Record</th>
- <th>Phenotype</th>
- <th>Authors</th>
- <th>Year</th>
- <th>N</th>
- <th>Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- </tr>
- </thead>
+ <div id="partial-correlation-results">
+ {%if dataset_type == "Publish":%}
+ <table id="part-corr-results-publish"
+ class="table-hover table-striped cell-border"
+ style="float: left;">
+ <thead>
+ <tr>
+ <th></th>
+ <th>Index</th>
+ <th>Record</th>
+ <th>Phenotype</th>
+ <th>Authors</th>
+ <th>Year</th>
+ <th>N</th>
+ <th>Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ </tr>
+ </thead>
- <tbody>
- {%for trait in correlations:%}
- <tr class="results-row">
- <td></td>
- <td data-column-heading="Index"></td>
- <td data-column-heading="Record">
- <a href="{{url_for(
- 'show_trait_page',
- trait_id=trait['trait_name'],
- dataset=trait['dataset_name'])}}"
- title="Link to trait data for trait {{trait['trait_name']}}">
- {{trait["trait_name"]}}
- </a>
- </td>
- <td data-column-heading="Phenotype">
- {{trait["post_publication_description"]}}</td>
- <td data-column-heading="Authors">{{trait["authors"]}}</td>
- <td data-column-heading="Year">{{trait["year"]}}</td>
- <td data-column-heading="N">{{trait["noverlap"]}}</td>
- <td data-column-heading="Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("partial_corr"))}}
- </td>
- <td data-column-heading="p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("partial_corr_p_value"))}}
- </td>
- <td data-column-heading="{%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("corr"))}}
- </td>
- <td data-column-heading="p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("corr_p_value"))}}
- </td>
- <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("delta"))}}
- </td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
- {%endif%}
+ <tbody>
+ {%for trait in correlations:%}
+ <tr class="results-row">
+ <td></td>
+ <td data-column-heading="Index"></td>
+ <td data-column-heading="Record">
+ <a href="{{url_for(
+ 'show_trait_page',
+ trait_id=trait['trait_name'],
+ dataset=trait['dataset_name'])}}"
+ title="Link to trait data for trait {{trait['trait_name']}}">
+ {{trait["trait_name"]}}
+ </a>
+ </td>
+ <td data-column-heading="Phenotype">
+ {{trait["post_publication_description"]}}</td>
+ <td data-column-heading="Authors">{{trait["authors"]}}</td>
+ <td data-column-heading="Year">{{trait["year"]}}</td>
+ <td data-column-heading="N">{{trait["noverlap"]}}</td>
+ <td data-column-heading="Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("partial_corr"))}}
+ </td>
+ <td data-column-heading="p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("partial_corr_p_value"))}}
+ </td>
+ <td data-column-heading="{%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("corr"))}}
+ </td>
+ <td data-column-heading="p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("corr_p_value"))}}
+ </td>
+ <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("delta"))}}
+ </td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
- {%if dataset_type == "Geno":%}
- <table id="part-corr-results-geno"
- class="table-hover table-striped cell-border"
- style="float: left;">
- <thead>
- <tr>
- <th></th>
- <th>Index</th>
- <th>Locus</th>
- <th>Chr</th>
- <th>Megabase</th>
- <th>N</th>
- <th>Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- </tr>
- </thead>
+ {%if dataset_type == "Geno":%}
+ <table id="part-corr-results-geno"
+ class="table-hover table-striped cell-border"
+ style="float: left;">
+ <thead>
+ <tr>
+ <th></th>
+ <th>Index</th>
+ <th>Locus</th>
+ <th>Chr</th>
+ <th>Megabase</th>
+ <th>N</th>
+ <th>Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ </tr>
+ </thead>
- <tbody>
- {%for trait in correlations:%}
- <tr class="results-row">
- <td></td>
- <td data-column-heading="Index"></td>
- <td data-column-heading="Locus">
- <a href="{{url_for(
- 'show_trait_page',
- trait_id=trait['trait_name'],
- dataset=trait['dataset_name'])}}"
- title="Link to trait data for trait {{trait['trait_name']}}">
- {{trait["trait_name"]}}
- </a>
- </td>
- <td data-column-heading="Chr">{{trait["chr"]}}</td>
- <td data-column-heading="Megabase">{{trait["mb"]}}</td>
- <td data-column-heading="N">{{trait["noverlap"]}}</td>
- <td data-column-heading="Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("partial_corr"))}}
- </td>
- <td data-column-heading="p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("partial_corr_p_value"))}}
- </td>
- <td data-column-heading="{%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("corr"))}}
- </td>
- <td data-column-heading="p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("corr_p_value"))}}
- </td>
- <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("delta"))}}
- </td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
- {%endif%}
+ <tbody>
+ {%for trait in correlations:%}
+ <tr class="results-row">
+ <td></td>
+ <td data-column-heading="Index"></td>
+ <td data-column-heading="Locus">
+ <a href="{{url_for(
+ 'show_trait_page',
+ trait_id=trait['trait_name'],
+ dataset=trait['dataset_name'])}}"
+ title="Link to trait data for trait {{trait['trait_name']}}">
+ {{trait["trait_name"]}}
+ </a>
+ </td>
+ <td data-column-heading="Chr">{{trait["chr"]}}</td>
+ <td data-column-heading="Megabase">{{trait["mb"]}}</td>
+ <td data-column-heading="N">{{trait["noverlap"]}}</td>
+ <td data-column-heading="Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("partial_corr"))}}
+ </td>
+ <td data-column-heading="p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("partial_corr_p_value"))}}
+ </td>
+ <td data-column-heading="{%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("corr"))}}
+ </td>
+ <td data-column-heading="p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("corr_p_value"))}}
+ </td>
+ <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("delta"))}}
+ </td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
- {%if dataset_type == "ProbeSet":%}
- <table id="part-corr-results-probeset"
- class="table-hover table-striped cell-border"
- style="float: left;">
- <thead>
- <tr>
- <th></th>
- <th>Index</th>
- <th>Record</th>
- <th>Gene ID</th>
- <th>Homologene ID</th>
- <th>Symbol</th>
- <th>Description</th>
- <th>Chr</th>
- <th>Megabase</th>
- <th>Mean Expr</th>
- <th>N</th>
- <th>Sample Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>Sample p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>Sample {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>Sample p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>Lit Corr</th>
- <th>Tissue {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
- <th>Tissue p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
- </tr>
- </thead>
+ {%if dataset_type == "ProbeSet":%}
+ <table id="part-corr-results-probeset"
+ class="table-hover table-striped cell-border"
+ style="float: left;">
+ <thead>
+ <tr>
+ <th></th>
+ <th>Index</th>
+ <th>Record</th>
+ <th>Gene ID</th>
+ <th>Homologene ID</th>
+ <th>Symbol</th>
+ <th>Description</th>
+ <th>Chr</th>
+ <th>Megabase</th>
+ <th>Mean Expr</th>
+ <th>N</th>
+ <th>Sample Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>Sample p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>Sample {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>Sample p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ <th>delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>Lit Corr</th>
+ <th>Tissue {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}</th>
+ <th>Tissue p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%})</th>
+ </tr>
+ </thead>
- <tbody>
- {%for trait in correlations:%}
- <tr class="results-row">
- <td></td>
- <td data-column-heading="Index"></td>
- <td data-column-heading="Record">
- <a href="{{url_for(
- 'show_trait_page',
- trait_id=trait['trait_name'],
- dataset=trait['dataset_name'])}}"
- title="Link to trait data for trait {{trait['trait_name']}}">
- {{trait["trait_name"]}}
- </a>
- </td>
- <td data-column-heading="Gene ID">{{trait["geneid"]}}</td>
- <td data-column-heading="Homologene ID">{{trait["homologeneid"]}}</td>
- <td data-column-heading="Symbol">{{trait["symbol"]}}</td>
- <td data-column-heading="Description">{{trait["description"]}}</td>
- <td data-column-heading="Chr">{{trait["chr"]}}</td>
- <td data-column-heading="Megabase">{{trait["mb"]}}</td>
- <td data-column-heading="Mean Expr">{{trait["mean_expr"]}}</td>
- <td data-column-heading="N">{{trait["noverlap"]}}</td>
- <td data-column-heading="Sample Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("partial_corr"))}}
- </td>
- <td data-column-heading="Sample p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("partial_corr_p_value"))}}
- </td>
- <td data-column-heading="Sample {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("corr"))}}
- </td>
- <td data-column-heading="Sample p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("corr_p_value"))}}
- </td>
- <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("delta"))}}
- </td>
- <td data-column-heading="Lit Corr">
- {{format_number(trait.get("l_corr"))}}
- </td>
- <td data-column-heading="Tissue {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
- {{format_number(trait.get("tissue_corr"))}}
- </td>
- <td data-column-heading="Tissue p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
- {{format_number(trait.get("tissue_p_value"))}}
- </td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
- {%endif%}
+ <tbody>
+ {%for trait in correlations:%}
+ <tr class="results-row">
+ <td></td>
+ <td data-column-heading="Index"></td>
+ <td data-column-heading="Record">
+ <a href="{{url_for(
+ 'show_trait_page',
+ trait_id=trait['trait_name'],
+ dataset=trait['dataset_name'])}}"
+ title="Link to trait data for trait {{trait['trait_name']}}">
+ {{trait["trait_name"]}}
+ </a>
+ </td>
+ <td data-column-heading="Gene ID">{{trait["geneid"]}}</td>
+ <td data-column-heading="Homologene ID">{{trait["homologeneid"]}}</td>
+ <td data-column-heading="Symbol">{{trait["symbol"]}}</td>
+ <td data-column-heading="Description">{{trait["description"]}}</td>
+ <td data-column-heading="Chr">{{trait["chr"]}}</td>
+ <td data-column-heading="Megabase">{{trait["mb"]}}</td>
+ <td data-column-heading="Mean Expr">{{trait["mean_expr"]}}</td>
+ <td data-column-heading="N">{{trait["noverlap"]}}</td>
+ <td data-column-heading="Sample Partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("partial_corr"))}}
+ </td>
+ <td data-column-heading="Sample p(partial {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("partial_corr_p_value"))}}
+ </td>
+ <td data-column-heading="Sample {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("corr"))}}
+ </td>
+ <td data-column-heading="Sample p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("corr_p_value"))}}
+ </td>
+ <td data-column-heading="delta {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("delta"))}}
+ </td>
+ <td data-column-heading="Lit Corr">
+ {{format_number(trait.get("l_corr"))}}
+ </td>
+ <td data-column-heading="Tissue {%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%}">
+ {{format_number(trait.get("tissue_corr"))}}
+ </td>
+ <td data-column-heading="Tissue p({%if 'spearman' in (method | lower):%}rho{%else:%}r{%endif%})">
+ {{format_number(trait.get("tissue_p_value"))}}
+ </td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
+ {%endif%}
+ </div>
</div>
{%endblock%}
diff --git a/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html b/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
index e541f31b..4b5bc635 100644
--- a/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
+++ b/wqflask/wqflask/templates/partial_correlations/pcorrs_select_operations.html
@@ -14,110 +14,111 @@
{%endblock%}
{%block content%}
-<form id="pcorrs-form"
- method="POST"
- action="{{url_for('partial_correlations')}}">
- {%with messages = get_flashed_messages(with_categories=true)%}
- {%if messages:%}
- <ul class=flashes>
- {%for category, message in messages:%}
- <li class="{{category}}">{{message}}</li>
- {%endfor%}
- </ul>
- {%endif%}
- {%endwith%}
+<div class="container">
+ <form id="pcorrs-form"
+ method="POST"
+ action="{{url_for('partial_correlations')}}">
+ {%with messages = get_flashed_messages(with_categories=true)%}
+ {%if messages:%}
+ <ul class=flashes>
+ {%for category, message in messages:%}
+ <li class="{{category}}">{{message}}</li>
+ {%endfor%}
+ </ul>
+ {%endif%}
+ {%endwith%}
- <input type="hidden" value="{{trait_list_str}}" name="trait_list">
- <table id="pcorrs_traits_table" class="table-hover table-striped cell-border">
- <thead>
- <tr>
- <th>Primary (X)</th>
- <th>Controls (Z)</th>
- <th>Ignored</th>
- <th>Dataset</th>
- <th>Trait ID</th>
- <th>Symbol</th>
- <th>Description</th>
- <th>Location</th>
- <th>Mean</th>
- <th>Max LRS</th>
- <th>Max LRS Location Chr and Mb</th>
- </tr>
- </thead>
+ <input type="hidden" value="{{trait_list_str}}" name="trait_list">
+ <table id="pcorrs_traits_table" class="table-hover table-striped cell-border">
+ <thead>
+ <tr>
+ <th>Primary (X)</th>
+ <th>Controls (Z)</th>
+ <th>Ignored</th>
+ <th>Dataset</th>
+ <th>Trait ID</th>
+ <th>Symbol</th>
+ <th>Description</th>
+ <th>Location</th>
+ <th>Mean</th>
+ <th>Max LRS</th>
+ <th>Max LRS Location Chr and Mb</th>
+ </tr>
+ </thead>
- <tbody>
- {%for trait in traits:%}
- <tr>
- <td>
- <input type="radio" name="trait_{{trait['trait_name']}}"
- id="trait_{{trait['trait_name']}}"
- value="primary_{{trait['trait_name']}}">
- </td>
- <td>
- <input type="radio" name="trait_{{trait['trait_name']}}"
- id="trait_{{trait['trait_name']}}"
- value="controls_{{trait['trait_name']}}">
- </td>
- <td>
- <input type="radio" name="trait_{{trait['trait_name']}}"
- id="trait_{{trait['trait_name']}}"
- value="ignored_{{trait['trait_name']}}" checked="checked">
- </td>
- <td>{{trait.get("dataset", "_")}}
- <td>{{trait.get("trait_name", "_")}}</td>
- <td>{{trait.get("symbol", "_")}}</td>
- <td>{{trait.get("description", "_")}}</td>
- <td>{{trait.get("location", "_")}}</td>
- <td>{{trait.get("mean", "_")}}</td>
- <td>{{trait.get("lrs", "_")}}</td>
- <td>{{trait.get("lrs_location", "_")}}</td>
- </tr>
- {%endfor%}
- </tbody>
- </table>
+ <tbody>
+ {%for trait in traits:%}
+ <tr>
+ <td>
+ <input type="radio" name="trait_{{trait['trait_name']}}"
+ id="trait_{{trait['trait_name']}}"
+ value="primary_{{trait['trait_name']}}">
+ </td>
+ <td>
+ <input type="radio" name="trait_{{trait['trait_name']}}"
+ id="trait_{{trait['trait_name']}}"
+ value="controls_{{trait['trait_name']}}">
+ </td>
+ <td>
+ <input type="radio" name="trait_{{trait['trait_name']}}"
+ id="trait_{{trait['trait_name']}}"
+ value="ignored_{{trait['trait_name']}}" checked="checked">
+ </td>
+ <td>{{trait.get("dataset", "_")}}
+ <td>{{trait.get("trait_name", "_")}}</td>
+ <td>{{trait.get("symbol", "_")}}</td>
+ <td>{{trait.get("description", "_")}}</td>
+ <td>{{trait.get("location", "_")}}</td>
+ <td>{{trait.get("mean", "_")}}</td>
+ <td>{{trait.get("lrs", "_")}}</td>
+ <td>{{trait.get("lrs_location", "_")}}</td>
+ </tr>
+ {%endfor%}
+ </tbody>
+ </table>
- <div class="form-group">
- <label for="corr-method-input" class="form-label">Compute</label>
- <select id="corr-method-input" required="required" name="method"
- class="form-control">
- <option value="Genetic Correlation, Pearson's r">
- Genetic Correlation, Pearson's r</option>
- <option value="Genetic Correlation, Spearman's rho">
- Genetic Correlation, Spearman's rho</option>
- <option value="SGO Literature Correlation">
- SGO Literature Correlation</option>
- <option value="Tissue Correlation, Pearson's r">
- Tissue Correlation, Pearson's r</option>
- <option value="Tissue Correlation, Spearman's rho">
- Tissue Correlation, Spearman's rho</option>
- </select>
- </div>
+ <div class="form-group">
+ <label for="corr-method-input" class="form-label">Compute</label>
+ <select id="corr-method-input" required="required" name="method"
+ class="form-control">
+ <option value="Genetic Correlation, Pearson's r">
+ Genetic Correlation, Pearson's r</option>
+ <option value="Genetic Correlation, Spearman's rho">
+ Genetic Correlation, Spearman's rho</option>
+ <option value="SGO Literature Correlation">
+ SGO Literature Correlation</option>
+ <option value="Tissue Correlation, Pearson's r">
+ Tissue Correlation, Pearson's r</option>
+ <option value="Tissue Correlation, Spearman's rho">
+ Tissue Correlation, Spearman's rho</option>
+ </select>
+ </div>
- <div class="form-group">
- <label for="target-db-input" class="form-label">Choose Database</label>
- <select id="target-db-input" required="required" name="target_db"
- class="form-control">
- {%if target_dbs:%}
- {%for item in target_dbs:%}
- {%if "description" in item.keys():%}
- <option value="{{item['value']}}">{{item['description']}}</option>
- {%else:%}
- {%for group, opts in item.items()%}
- {%if opts | length > 0:%}
- <optgroup label="{{group}} ------">
- {%for item2 in opts:%}
- <option value="{{item2['value']}}">{{item2['description']}}</option>
+ <div class="form-group">
+ <label for="target-db-input" class="form-label">Choose Database</label>
+ <select id="target-db-input" required="required" name="target_db"
+ class="form-control">
+ {%if target_dbs:%}
+ {%for item in target_dbs:%}
+ {%if "description" in item.keys():%}
+ <option value="{{item['value']}}">{{item['description']}}</option>
+ {%else:%}
+ {%for group, opts in item.items()%}
+ {%if opts | length > 0:%}
+ <optgroup label="{{group}} ------">
+ {%for item2 in opts:%}
+ <option value="{{item2['value']}}">{{item2['description']}}</option>
+ {%endfor%}
+ </optgroup>
+ {%endif%}
{%endfor%}
- </optgroup>
- {%endif%}
- {%endfor%}
- {%endif%}
- {%endfor%}
- {%endif%}
- </select>
- </div>
+ {%endif%}
+ {%endfor%}
+ {%endif%}
+ </select>
+ </div>
- <div class="form-group">
+ <div class="form-group">
<label for="criteria-input" class="form-label">Return</label>
<select id="criteria-input" required="required" name="criteria" size="1"
class="form-control">
@@ -133,11 +134,12 @@
</select>
</div>
- <button type="submit" class="btn btn-primary" name="submit"
- value="Run Partial Correlations">
- Run Partial Correlations
- </button>
-</form>
+ <button type="submit" class="btn btn-primary" name="submit"
+ value="Run Partial Correlations">
+ Run Partial Correlations
+ </button>
+ </form>
+</div>
{%endblock%}
{%block js%}