From 4931c70884c7aa7bb3d4fba927597a2f89b4c9b0 Mon Sep 17 00:00:00 2001 From: Hao Chen Date: Mon, 13 May 2019 11:52:24 -0500 Subject: reorg page layout --- server.py | 6 ++++++ static/style.css | 8 ++++---- templates/index.html | 24 ++++++++---------------- templates/layout.html | 23 ++++++++++++++++++++--- templates/topAddictionGene.html | 8 +++++++- 5 files changed, 45 insertions(+), 24 deletions(-) diff --git a/server.py b/server.py index 29aa66c..2cff990 100755 --- a/server.py +++ b/server.py @@ -14,6 +14,12 @@ app.config['SECRET_KEY'] = '#DtfrL98G5t1dC*4' def root(): return render_template('index.html') +@app.route("/about") +def about(): + return render_template('about.html') + + + @app.route('/progress') def progress(): # only 1-6 terms are allowed diff --git a/static/style.css b/static/style.css index 509a2b7..867a753 100644 --- a/static/style.css +++ b/static/style.css @@ -7,20 +7,20 @@ a:link { - color:grey ; + color: #097DC9; } /* A link that has been visited */ a:visited { - color: grey; + color: #097DC9; } /* A link that is hovered on */ a:hover { - color: blue; + color: #097DC9; } /* A link that is selected */ a:active { - color: blue; + color: #097DC9; } diff --git a/templates/index.html b/templates/index.html index 0771787..b94853e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,26 +1,18 @@ {% extends "layout.html" %} {% block content %} -

-
{{ message | safe }} -

- - -
-
+ +

Relationship with Addiction Through Searches of PubMed +

+ + This app searches PubMed to find sentences that contain the query terms (e.g., gene symbols) and keywords related to drug addiction. -


-Searches are conducted through PubMed to get relevant PMIDs, which are then used to retrieve the abstracts from a local archive. The gene-keyword relationships are presented as an interactive cytoscape graph. The nodes can be moved to better reveal the connections. Tap on the links will bring up the corresponding sentences in a new browser window. -

- -

- +

+ +

- -
- Source code {% endblock %} diff --git a/templates/layout.html b/templates/layout.html index 43ebee0..08977c3 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -13,13 +13,30 @@ - +
+
{% block content %}{% endblock %}
diff --git a/templates/topAddictionGene.html b/templates/topAddictionGene.html index 0608378..5709bba 100644 --- a/templates/topAddictionGene.html +++ b/templates/topAddictionGene.html @@ -1,8 +1,13 @@ {% extends "layout.html" %} {% block content %} - +

Top 150 addiction related genes

+
+These genes are ranked by the number of PubMed abstracts that contain the name of the gene and one or more addiction related keyword. +
+ +
  1. FOS
  2. BDNF
    @@ -154,5 +159,6 @@
  3. GRM7
  4. GRIA2
  5. DNMT1
    +
{% endblock %} -- cgit v1.2.3