From e4cb741d0e5ea1f4671c527a0a938664b71850ea Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 3 May 2022 11:56:40 +0300 Subject: Put contents into "container" divs to get similar styling Put the contents of the partial correlations pages between the
tags to take advantage of the existing styling of the content, especially regarding margins and paddings. --- .../partial_correlations/pcorrs_error.html | 90 ++--- .../partial_correlations/pcorrs_poll_results.html | 8 +- .../pcorrs_results_presentation.html | 440 +++++++++++---------- .../pcorrs_select_operations.html | 208 +++++----- 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 %} -- This error is not what we wanted to see. Unfortunately errors - are part of all software systems and we need to resolve this - together. -
-- It is important to report this ERROR so we can fix it for everyone. -
- -- 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 new - issue or E-mail this full page to one of the developers - directly. -
++ This error is not what we wanted to see. Unfortunately errors + are part of all software systems and we need to resolve this + together. +
++ It is important to report this ERROR so we can fix it for everyone. +
+ ++ 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 new + issue or E-mail this full page to one of the developers + directly. +
++ (GeneNetwork error: {{message[:128]}}) +
+ ++ To check if this already a known issue, search the + issue + tracker. +
+ + Toggle full stack trace ++ GeneNetwork {{ version }} {% for line in stack %} {{ line }} + {% endfor %} ++
- (GeneNetwork error: {{message[:128]}}) -
- -- To check if this already a known issue, search the - issue - tracker. -
- - Toggle full stack trace -- GeneNetwork {{ version }} {% for line in stack %} {{ line }} - {% endfor %} --
Computing partial correlations...
- +Computing partial correlations...
+ +
- Primary Trait
-
- {{primary["dataset_type"]}}/{{primary["trait_name"]}}
- [{{primary["symbol"] }} on Chr {{primary["chr"]}} @ {{primary["mb"]}}]:
- {{primary["description"]}}
- --- FROM: {{primary["dataset_name"]}}
-
Control Traits
- {%for trait in controls:%}
-
- {{trait["dataset_type"]}}/{{trait["trait_name"]}}
- [{{trait["symbol"] }} on Chr {{trait["chr"]}} @ {{trait["mb"]}}]:
- {{trait["description"]}}
- --- FROM: {{trait["dataset_name"]}}
- {%endfor%}
-
+ Primary Trait
+
+ {{primary["dataset_type"]}}/{{primary["trait_name"]}}
+ [{{primary["symbol"] }} on Chr {{primary["chr"]}} @ {{primary["mb"]}}]:
+ {{primary["description"]}}
+ --- FROM: {{primary["dataset_name"]}}
+
Control Traits
+ {%for trait in controls:%}
+
+ {{trait["dataset_type"]}}/{{trait["trait_name"]}}
+ [{{trait["symbol"] }} on Chr {{trait["chr"]}} @ {{trait["mb"]}}]:
+ {{trait["description"]}}
+ --- FROM: {{trait["dataset_name"]}}
+ {%endfor%}
+
- | Index | -Record | -Phenotype | -Authors | -Year | -N | -Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -
---|
+ | Index | +Record | +Phenotype | +Authors | +Year | +N | +Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +
---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - - {{trait["trait_name"]}} - - | -- {{trait["post_publication_description"]}} | -{{trait["authors"]}} | -{{trait["year"]}} | -{{trait["noverlap"]}} | -- {{format_number(trait.get("partial_corr"))}} - | -- {{format_number(trait.get("partial_corr_p_value"))}} - | -- {{format_number(trait.get("corr"))}} - | -- {{format_number(trait.get("corr_p_value"))}} - | -- {{format_number(trait.get("delta"))}} - | -
- | Index | -Locus | -Chr | -Megabase | -N | -Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -
---|
+ | Index | +Locus | +Chr | +Megabase | +N | +Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +{%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +
---|---|---|---|---|---|---|---|---|---|---|
- | - | - - {{trait["trait_name"]}} - - | -{{trait["chr"]}} | -{{trait["mb"]}} | -{{trait["noverlap"]}} | -- {{format_number(trait.get("partial_corr"))}} - | -- {{format_number(trait.get("partial_corr_p_value"))}} - | -- {{format_number(trait.get("corr"))}} - | -- {{format_number(trait.get("corr_p_value"))}} - | -- {{format_number(trait.get("delta"))}} - | -
- | Index | -Record | -Gene ID | -Homologene ID | -Symbol | -Description | -Chr | -Megabase | -Mean Expr | -N | -Sample Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -Sample p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -Sample {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -Sample p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -Lit Corr | -Tissue {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | -Tissue p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | -
---|
+ | Index | +Record | +Gene ID | +Homologene ID | +Symbol | +Description | +Chr | +Megabase | +Mean Expr | +N | +Sample Partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +Sample p(partial {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +Sample {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +Sample p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +delta {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +Lit Corr | +Tissue {%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%} | +Tissue p({%if "spearman" in (method | lower):%}rho{%else:%}r{%endif%}) | +
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | - | - - {{trait["trait_name"]}} - - | -{{trait["geneid"]}} | -{{trait["homologeneid"]}} | -{{trait["symbol"]}} | -{{trait["description"]}} | -{{trait["chr"]}} | -{{trait["mb"]}} | -{{trait["mean_expr"]}} | -{{trait["noverlap"]}} | -- {{format_number(trait.get("partial_corr"))}} - | -- {{format_number(trait.get("partial_corr_p_value"))}} - | -- {{format_number(trait.get("corr"))}} - | -- {{format_number(trait.get("corr_p_value"))}} - | -- {{format_number(trait.get("delta"))}} - | -- {{format_number(trait.get("l_corr"))}} - | -- {{format_number(trait.get("tissue_corr"))}} - | -- {{format_number(trait.get("tissue_p_value"))}} - | -