From b4abbe430c0e86aaf0982f95b539166dca19cb44 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 23 Sep 2024 11:22:11 +0300 Subject: Refactor: Init move search from base to index file. --- gn2/wqflask/templates/index_page.html | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'gn2/wqflask/templates/index_page.html') diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index 734cd075..4e2888e9 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -61,6 +61,37 @@ } {% endblock %} + +{% block search %} +
+
+
+
+ +
+ + + +
+ + + + GNQA Search + + + + + + + +
+
+
+
+ {% endblock %} {% block content %}
-- cgit v1.2.3 From 0b357115d88a38a4c0f128671636a37e2b5287c0 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 23 Sep 2024 11:31:55 +0300 Subject: Refactor: move global search css to index page. --- gn2/wqflask/templates/base.html | 26 -------------------------- gn2/wqflask/templates/index_page.html | 34 +++++++++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 27 deletions(-) (limited to 'gn2/wqflask/templates/index_page.html') diff --git a/gn2/wqflask/templates/base.html b/gn2/wqflask/templates/base.html index b00caedd..454139df 100644 --- a/gn2/wqflask/templates/base.html +++ b/gn2/wqflask/templates/base.html @@ -33,32 +33,6 @@ table.dataTable thead .sorting_desc { background-image: url({{ url_for("js", filename="DataTables/images/sort_desc_disabled.png") }}); } - .global_search_input{ - padding:9px 8px; - text-decoration: none; - border: none; - - border-radius: 5px; - } - .global_search_input:focus{ - outline: none; - } - .btn-stc { - padding:9px 8px; - border-left:none; - border-radius:0 40px 40px 0; - cursor: pointer; - height: 40px; - width: 64px; - margin:0; - border:1px solid #d3d3d3; - background-color: white; - position: absolute; - top:0; - left: 100%; - right: 0; - border-left: none; - } diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index 4e2888e9..b836cbb1 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -59,10 +59,40 @@ color:#000; } + + .global_search_input{ + padding:9px 8px; + text-decoration: none; + border: none; + + border-radius: 5px; + } + .global_search_input:focus{ + outline: none; + } + .btn-stc { + padding:9px 8px; + border-left:none; + border-radius:0 40px 40px 0; + cursor: pointer; + height: 40px; + width: 64px; + margin:0; + border:1px solid #d3d3d3; + background-color: white; + position: absolute; + top:0; + left: 100%; + right: 0; + border-left: none; + } + + {% endblock %} -{% block search %} + + {% block search %}
@@ -92,6 +122,8 @@
{% endblock %} + + {% block content %}
-- cgit v1.2.3 From 7613298d6c427f4f3cfd3bd843e6d41099cba125 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Mon, 23 Sep 2024 11:38:36 +0300 Subject: Refactor: move global search js to index file. --- gn2/wqflask/templates/base.html | 41 ---------------------------- gn2/wqflask/templates/index_page.html | 50 +++++++++++++++++++++++++++++++---- 2 files changed, 45 insertions(+), 46 deletions(-) (limited to 'gn2/wqflask/templates/index_page.html') diff --git a/gn2/wqflask/templates/base.html b/gn2/wqflask/templates/base.html index 454139df..82387db2 100644 --- a/gn2/wqflask/templates/base.html +++ b/gn2/wqflask/templates/base.html @@ -233,7 +233,6 @@
- - diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index b836cbb1..216e1c38 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -418,11 +418,51 @@ {%endblock%} {% block js %} - - - - - + + + + - - - - - - - + +{% endblock %} +{% block search %} +
+
+
+
+ +
+ + +
+ + + GNQA Search + + + + + + +
+
+
+
{% endblock %} - - - {% block search %} -
-
-
-
- -
- - - -
- - - - GNQA Search - - - - - - - -
-
-
-
- {% endblock %} - - {% block content %} - +
- - {{ flash_me() }} - - {%if anon_collections | length > 0%} -
-
-

Import Anonymous Collections

-
-
-

- There {%if anon_collections | length > 1%}are{%else%}is{%endif%} - {{anon_collections | length}} anonymous - collection{%if anon_collections | length > 1%}s{%endif%} - associated with your current session. What do you wish to do? -

-

- - If you choose to ignore this, the anonymous collections will be - eventually deleted and lost. - -

-
-
- - - - -
- - -
-
-
- {%endif%} - + {{ flash_me() }} + {% if anon_collections | length > 0 %} +
+
+

Import Anonymous Collections

+
+
+

+ There + {% if anon_collections | length > 1 %} + are + {% else %} + is + {% endif %} + {{ anon_collections | length }} anonymous + collection + {% if anon_collections | length > 1 %}s{% endif %} + associated with your current session. What do you wish to do? +

+

+ + If you choose to ignore this, the anonymous collections will be + eventually deleted and lost. + +

+
+
+ + + + +
+ +
+
+
+ {% endif %}
- -
+
-
-
+
- Webinars & Courses
- In-person courses, live webinars and webinar recordings
+ Webinars & Courses +
+ In-person courses, live webinars and webinar recordings +
- Tutorials
- Tutorials: Training materials in HTML, PDF and video formats
+ Tutorials +
+ Tutorials: Training materials in HTML, PDF and video formats +
- Documentation
- Online manuals, handbooks, fact sheets and FAQs
+ Documentation +
+ Online manuals, handbooks, fact sheets and FAQs +
@@ -354,18 +458,19 @@ -
+
- -{%endblock%} - +{% endblock %} {% block js %} - - - - - + + - + - - + + - - - - - + ul { + margin-top: 0px; + } + + .toot { + padding-top:8px; + background:#f9f9f9; + color:#000; + + } + + {% endblock %} {% block search %} - {% include "gsearch.html" %} +{% include "gsearch.html" %} {% endblock %} {% block content %} - -
- {{ flash_me() }} - {% if anon_collections | length > 0 %} -
-
-

Import Anonymous Collections

+
+ {{ flash_me() }} + {% if anon_collections | length > 0 %} +
+
+

Import Anonymous Collections

+
+
+

+ There + {% if anon_collections | length > 1 %} + are + {% else %} + is + {% endif %} + {{ anon_collections | length }} anonymous + collection + {% if anon_collections | length > 1 %}s{% endif %} + associated with your current session. What do you wish to do? +

+

+ + If you choose to ignore this, the anonymous collections will be + eventually deleted and lost. + +

+ +
+ + + +
-
-

- There - {% if anon_collections | length > 1 %} - are - {% else %} - is - {% endif %} - {{ anon_collections | length }} anonymous - collection - {% if anon_collections | length > 1 %}s{% endif %} - associated with your current session. What do you wish to do? -

-

- - If you choose to ignore this, the anonymous collections will be - eventually deleted and lost. - -

- -
- - - - -
- - + + +
+
+ {% endif %} +
+
+
- {% endif %} -
-
- -
- + + +
+
+ +

+ You can also use advanced commands. Copy these simple examples into the Get Any field for single term searches and Combined for searches with multiple terms: +

+
    +
  • + POSITION=(chr1 25 30) finds genes, markers, or transcripts on + chromosome 1 between 25 and 30 Mb. +
  • +
  • + MEAN=(15 16) in the Combined field finds + highly expressed genes (15 to 16 log2 units) +
  • +
  • + RANGE=(1.5 2.5) in the Any field finds traits with values with a specified fold-range (minimum = 1). + Useful for finding "housekeeping genes" (1.0 1.2) or highly variable molecular assays (10 100). +
  • +
  • + LRS=(15 1000) or LOD=(2 8) finds all traits with peak LRS or LOD scores between lower and upper limits. +
  • +
  • + LRS=(9 999 Chr4 122 155) finds all traits on Chr 4 from 122 and 155 Mb with LRS scores between 9 and 999. +
  • +
  • + cisLRS=(15 1000 5) or cisLOD=(2 8 5) finds all cis eQTLs with peak LRS or LOD scores between lower and upper limits, + with an inclusion zone of 5 Mb around the parent gene. +
  • +
  • + transLRS=(15 1000 5) or transLOD=(2 8 5) finds all trans eQTLs with peak LRS or LOD scores between lower and upper limits, + with an exclusion zone of 5 Mb around the parent gene. You can also add a fourth term specifying which chromosome you want the transLRS to be on + (for example transLRS=(15 1000 5 7) would find all trans eQTLs with peak LRS on chromosome 7 that is also a trans eQTL with exclusionary zone of 5Mb). +
  • +
  • + POSITION=(Chr4 122 130) cisLRS=(9 999 10) + finds all traits on Chr 4 from 122 and 155 Mb with cisLRS scores + between 9 and 999 and an inclusion zone of 10 Mb. +
  • +
  • + RIF=mitochondrial searches RNA databases for GeneRIF links. +
  • +
  • + WIKI=nicotine searches GeneWiki for genes that you or other users have annotated + with the word nicotine. +
  • +
  • + GO:0045202 searches for synapse-associated genes listed in the + Gene Ontology. +
  • +
  • + RIF=diabetes LRS=(9 999 Chr2 100 105) transLRS=(9 999 10) + finds diabetes-associated transcripts with peak trans eQTLs on Chr 2 between 100 and 105 Mb with LRS + scores between 9 and 999. +
  • +
+
+
+
+
+ +
+
+ Webinars & Courses +
+ In-person courses, live webinars and webinar recordings +
+ +
+
+ Tutorials +
+ Tutorials: Training materials in HTML, PDF and video formats +
+
-

- You can also use advanced commands. Copy these simple examples into the Get Any field for single term searches and Combined for searches with multiple terms: -

+
+ Documentation +
+ Online manuals, handbooks, fact sheets and FAQs +
+ +
+
+
+
+ + + +
+
+ +
    +
  • Github
    • - POSITION=(chr1 25 30) finds genes, markers, or transcripts on - chromosome 1 between 25 and 30 Mb. + GN2 Source Code
    • - MEAN=(15 16) in the Combined field finds - highly expressed genes (15 to 16 log2 units) + GN3 Source Code
    • -
    • - RANGE=(1.5 2.5) in the Any field finds traits with values with a specified fold-range (minimum = 1). - Useful for finding "housekeeping genes" (1.0 1.2) or highly variable molecular assays (10 100). +
    • + GN1 Source Code
    • - LRS=(15 1000) or LOD=(2 8) finds all traits with peak LRS or LOD scores between lower and upper limits. + System Maintenance Code
    • +
    +
+
    +
  • GeneNetwork v2
  • +
    • - LRS=(9 999 Chr4 122 155) finds all traits on Chr 4 from 122 and 155 Mb with LRS scores between 9 and 999. + Main website at UTHSC
    • +
    +
+
    +
  • GeneNetwork v1
  • +
    • - cisLRS=(15 1000 5) or cisLOD=(2 8 5) finds all cis eQTLs with peak LRS or LOD scores between lower and upper limits, - with an inclusion zone of 5 Mb around the parent gene. + Main website at UTHSC
    • +
    +
+
    +
  • Affiliates
  • +
    • - transLRS=(15 1000 5) or transLOD=(2 8 5) finds all trans eQTLs with peak LRS or LOD scores between lower and upper limits, - with an exclusion zone of 5 Mb around the parent gene. You can also add a fourth term specifying which chromosome you want the transLRS to be on - (for example transLRS=(15 1000 5 7) would find all trans eQTLs with peak LRS on chromosome 7 that is also a trans eQTL with exclusionary zone of 5Mb). + GeneNetwork 1 at UTHSC
    • - POSITION=(Chr4 122 130) cisLRS=(9 999 10) - finds all traits on Chr 4 from 122 and 155 Mb with cisLRS scores - between 9 and 999 and an inclusion zone of 10 Mb. + Systems Genetics at EPFL
    • - RIF=mitochondrial searches RNA databases for GeneRIF links. + Bayesian Network Web Server at UTHSC
    • - WIKI=nicotine searches GeneWiki for genes that you or other users have annotated - with the word nicotine. + GeneWeaver
    • - GO:0045202 searches for synapse-associated genes listed in the - Gene Ontology. + PhenoGen at University of Colorado
    • - RIF=diabetes LRS=(9 999 Chr2 100 105) transLRS=(9 999 10) - finds diabetes-associated transcripts with peak trans eQTLs on Chr 2 between 100 and 105 Mb with LRS - scores between 9 and 999. + WebGestalt at Baylor
    -
-
-
-
- -
-
- Webinars & Courses -
- In-person courses, live webinars and webinar recordings -
- -
-
- Tutorials -
- Tutorials: Training materials in HTML, PDF and video formats -
- -
-
- Documentation -
- Online manuals, handbooks, fact sheets and FAQs -
- -
-
-
-
- - - -
-
- - - + +
-
+ +
+
+ {% endblock %} + + + {% block js %} - - - - + + - + if( event.target.value.trim() != "" ) { + saveBeforeSubmit(event.target.value.trim()) + $("#searchform").prop("action", "/search") + $("#searchform")[0].submit(); + } + + } + } + + + {% endblock %} -- cgit v1.2.3 From 5b840e6421ae5b20ce946642053ff702d0588f03 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Fri, 27 Sep 2024 12:06:09 +0300 Subject: Refactor: use url_for to fetch static files. --- gn2/wqflask/templates/base.html | 22 ++++++++++++++-------- gn2/wqflask/templates/index_page.html | 17 +++++++++++------ 2 files changed, 25 insertions(+), 14 deletions(-) (limited to 'gn2/wqflask/templates/index_page.html') diff --git a/gn2/wqflask/templates/base.html b/gn2/wqflask/templates/base.html index 8d477659..76c7df67 100644 --- a/gn2/wqflask/templates/base.html +++ b/gn2/wqflask/templates/base.html @@ -22,16 +22,22 @@ href="{{ url_for('css', filename='bootstrap/css/bootstrap.css') }}" /> + href="{{ url_for('static', filename='/new/css/bootstrap-custom.css') }}" /> - - - - + href="{{ url_for('static', filename='/new/css/non-responsive.css') }}" /> + + + + diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index d3af519b..7044e9e3 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -4,11 +4,13 @@ - - {% block css %} - - + +