aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html24
-rw-r--r--templates/layout.html23
-rw-r--r--templates/topAddictionGene.html8
3 files changed, 35 insertions, 20 deletions
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 %}
-<p>
-<br>
{{ message | safe }}
- <form action="/progress">
- <input name="query" class="form-control form-control-lg" type="search" placeholder="Rgma Nrxn3" aria-label="search" value="">
- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
- </form>
- <br>
+
+<h3> <u>R</u>elationship with <u>A</u>ddiction <u>T</u>hrough <u>S</u>earches of <u>Pub</u>Med </span></a>
+</h3>
+
+
This app searches PubMed to find <i>sentences</i> that contain the query terms (e.g., gene symbols) and <a href="https://github.com/chen42/RatsPub/blob/master/ratspub.py#L95-L129">keywords</a> related to drug addiction.
- <p>
<br>
-Searches are conducted through PubMed to get relevant PMIDs, which are then used to retrieve the abstracts from a <a href="https://dataguide.nlm.nih.gov/edirect/archive.html">local archive</a>. The gene-keyword relationships are presented as an interactive <a href="https://js.cytoscape.org" >cytoscape</a> 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.
-<p>
-
- <form action="/gene_gene">
- <input name="gene" class="form-control form-control-lg" type="search" placeholder="Rgma Nrxn3" aria-label="search" value="Nrxn1">
+ <p>
+ <form action="/progress">
+ <input name="query" class="form-control form-control-lg" type="search" placeholder="Rgma Nrxn3" aria-label="search" value="">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
-
-<hr>
-<a href="https://github.com/chen42/ratspub"> Source code </a>
{% 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 @@
</head>
<body>
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
- <a class="navbar-brand" href="/">RatsPub:</br> <span style="font-size:small"> <u>R</u>elationship with <u>A</u>ddiction <u>T</u>hrough <u>S</u>earches of <u>Pub</u>Med </span></a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
+<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
+ <a class="navbar-brand" href="/">RatsPub</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
+
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
+ <ul class="navbar-nav mr-auto">
+ <li class="nav-item active">
+ <a class="nav-link" href="/">Home <span class="sr-only">(current)</span></a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="/allTopGenes">Addiction Genes</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="/about">About</a>
+ </li>
+
+ </ul>
+ </div>
</nav>
+<br>
+
<div class="container">
{% block content %}{% endblock %}
</div>
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 %}
-
+<h3> Top 150 addiction related genes </h3>
+<br>
+These genes are ranked by the number of PubMed abstracts that contain the name of the gene and one or more addiction related keyword.
+<hr>
+
+<ol>
<li><a href="/showTopGene?topGene=FOS">FOS</a><br>
<li><a href="/showTopGene?topGene=BDNF">BDNF</a><br>
@@ -154,5 +159,6 @@
<li><a href="/showTopGene?topGene=GRM7">GRM7</a><br>
<li><a href="/showTopGene?topGene=GRIA2">GRIA2</a><br>
<li><a href="/showTopGene?topGene=DNMT1">DNMT1</a><br>
+</ol>
{% endblock %}